- 为什么我bindtap一次触发两次 上代码
wxml: <view class="tips"> <view class="font-orange bg-green" bindtap="submitList">提交订单</view> </view> js部分: [图片] submitList: function (e) { var mark = e.detail.value; var openId = app.globalData.openId; var orderLists = this.data.orderLists; var storeId = wx.getStorageSync('storeId'); var orderPrice = this.data.orderPrice; var allPrice = this.data.allPrice; var discount = this.data.discount; var storeInfoList = this.data.storeInfoList; var cupNumber = this.data.cupNumber; var activityList = storeInfoList.activityList; var orderStr = { "shopId": storeId, "openid": openId, "rtPic": allPrice, "actualMoney": orderPrice, "discount": discount , "remark": mark, "goodsNum": cupNumber }; var ordersList = []; for (var i = 0; i < orderLists.length; i++) { ordersList[i] = { 'goodsName': orderLists[i].foodName, 'goodsId': orderLists[i].foodId, "goodsPrice": orderLists[i].foodPrice, "goodsNumber": orderLists[i].foodQuantity, "detailPrice": orderLists[i].foodQuantity * orderLists[i].foodPrice } } var orderStrJson = JSON.stringify(orderStr); var detailListJson = JSON.stringify(ordersList); wx.request({ url: url, data: { "orderStr": orderStrJson, "detailList": detailListJson }, header: { 'Content-Type': 'application/json' }, method: "GET", dataType: "json", success: function(res) { console.log(res); wx.reLaunch({ url: '/pages/order/order' }) } }) }
2017-12-11 - 为什么在安卓系统真机测试<textarea>有bug
为什么在安卓系统真机测试<textarea>没有设置位置和层数就覆盖在z-index:100 position:fixed 的底部栏前面[图片] [图片]
2017-11-24 - wxss里面有个报错 关于这个@-webkit-keyframes
@-webkit-keyframes eyeball{ 0%{left: 9px;} 100%{left: 1px;} } [图片]
2017-11-12