70f2b522 by simon

默认提交

1 parent 510aba1a
......@@ -2,7 +2,7 @@ let ENV_CONFIG = require('./env/index');
const APPID = ''
/** ====每次发布版本记得修改此环境配置==== */
const ENV = 'Dev'; // Dev Prod
const ENV = 'Prod'; // Dev Prod
const NET_CONFIG = ENV_CONFIG[ENV];
const MOCKAPI = ENV_CONFIG.mockApi;
......
......@@ -257,10 +257,13 @@ Page({
data: {}
}).then((result) => {
console.log("result:", result);
_this.queryMember().then((result) => {
wx.showModal({
content: '兑换成功',
showCancel: false,
success(res) {}
})
}).catch((err) => {});
}).catch((err) => {
if (err.code == 1002) {
_this.setData({
......@@ -492,7 +495,7 @@ Page({
this.setData({
authorizeVisible: false,
productDetailVisible: false,
signTipsCompVisible:false,
signTipsCompVisible: false,
})
},
// 子组件事件
......
......@@ -14,7 +14,7 @@
<view class="data">
<view class="data-item" bindtap="onCashExchangeHanler">
<view class="data-item-t1">
{{userInfo&&userInfo.memberPoints ? filter.Fen2Yuan(userInfo.memberPoints) + '元' : '-' }}
{{userInfo ? filter.Fen2Yuan(userInfo.memberPoints) + '元' : '-' }}
</view>
<view class="data-item-t2">奖金兑换</view>
</view>
......