默认提交
Showing
3 changed files
with
6 additions
and
3 deletions
... | @@ -2,7 +2,7 @@ let ENV_CONFIG = require('./env/index'); | ... | @@ -2,7 +2,7 @@ let ENV_CONFIG = require('./env/index'); |
2 | 2 | ||
3 | const APPID = '' | 3 | const APPID = '' |
4 | /** ====每次发布版本记得修改此环境配置==== */ | 4 | /** ====每次发布版本记得修改此环境配置==== */ |
5 | const ENV = 'Dev'; // Dev Prod | 5 | const ENV = 'Prod'; // Dev Prod |
6 | const NET_CONFIG = ENV_CONFIG[ENV]; | 6 | const NET_CONFIG = ENV_CONFIG[ENV]; |
7 | const MOCKAPI = ENV_CONFIG.mockApi; | 7 | const MOCKAPI = ENV_CONFIG.mockApi; |
8 | 8 | ... | ... |
... | @@ -257,10 +257,13 @@ Page({ | ... | @@ -257,10 +257,13 @@ Page({ |
257 | data: {} | 257 | data: {} |
258 | }).then((result) => { | 258 | }).then((result) => { |
259 | console.log("result:", result); | 259 | console.log("result:", result); |
260 | _this.queryMember().then((result) => { | ||
260 | wx.showModal({ | 261 | wx.showModal({ |
261 | content: '兑换成功', | 262 | content: '兑换成功', |
263 | showCancel: false, | ||
262 | success(res) {} | 264 | success(res) {} |
263 | }) | 265 | }) |
266 | }).catch((err) => {}); | ||
264 | }).catch((err) => { | 267 | }).catch((err) => { |
265 | if (err.code == 1002) { | 268 | if (err.code == 1002) { |
266 | _this.setData({ | 269 | _this.setData({ |
... | @@ -492,7 +495,7 @@ Page({ | ... | @@ -492,7 +495,7 @@ Page({ |
492 | this.setData({ | 495 | this.setData({ |
493 | authorizeVisible: false, | 496 | authorizeVisible: false, |
494 | productDetailVisible: false, | 497 | productDetailVisible: false, |
495 | signTipsCompVisible:false, | 498 | signTipsCompVisible: false, |
496 | }) | 499 | }) |
497 | }, | 500 | }, |
498 | // 子组件事件 | 501 | // 子组件事件 | ... | ... |
... | @@ -14,7 +14,7 @@ | ... | @@ -14,7 +14,7 @@ |
14 | <view class="data"> | 14 | <view class="data"> |
15 | <view class="data-item" bindtap="onCashExchangeHanler"> | 15 | <view class="data-item" bindtap="onCashExchangeHanler"> |
16 | <view class="data-item-t1"> | 16 | <view class="data-item-t1"> |
17 | {{userInfo&&userInfo.memberPoints ? filter.Fen2Yuan(userInfo.memberPoints) + '元' : '-' }} | 17 | {{userInfo ? filter.Fen2Yuan(userInfo.memberPoints) + '元' : '-' }} |
18 | </view> | 18 | </view> |
19 | <view class="data-item-t2">奖金兑换</view> | 19 | <view class="data-item-t2">奖金兑换</view> |
20 | </view> | 20 | </view> | ... | ... |
-
Please register or sign in to post a comment