ios上设为null不能直接改变页面的状态(页面中的{{}}解析是有问题的)

wechat_user_type
Ge Hao 8 years ago
parent 6c8451f1f4
commit ea04d1a3d0
  1. 1
      app.js
  2. 6
      pages/cart/cart.js
  3. 2
      pages/mine/mine.js

@ -60,6 +60,7 @@ App({
if (!that.globalData.token) {
var token = wx.getStorageSync('userToken')
if (!token) {
wx.hideToast()
wx.showModal({
title: '未登录',
content: '请前往 “我的” 页面绑定手机号',

@ -107,7 +107,7 @@ Page({
wx.showToast({
title: '购买中...',
icon: 'loading',
duration: 10000
duration: 5000
})
var that = this
@ -163,7 +163,7 @@ Page({
if (parseInt(result.statusCode) === 403) {
wx.hideToast()
if (parseInt(result.data.code) === 4001) {
that.setData({coupon: null})
that.setData({coupon: ''})
}
wx.showModal({
title: '出错',
@ -187,7 +187,7 @@ Page({
if (res.confirm) {
that.setData({
cartItems: [],
coupon: null
coupon: ''
})
that.changeCartAmount()
}

@ -110,7 +110,7 @@ Page({
})
that.setData({
needBindMobile: true,
baye_rank: null
baye_rank: ''
})
}
},

Loading…
Cancel
Save