|
@@ -13,13 +13,15 @@ Page({
|
|
sinopec:{},
|
|
sinopec:{},
|
|
petrochina:{},
|
|
petrochina:{},
|
|
phone: {},
|
|
phone: {},
|
|
|
|
+ mini_code:'',
|
|
|
|
|
|
pre_pay_count: 0, // 待付款 10
|
|
pre_pay_count: 0, // 待付款 10
|
|
pre_send_count: 0, // 待发货 20
|
|
pre_send_count: 0, // 待发货 20
|
|
pre_receive_count: 0, // 待收货 30
|
|
pre_receive_count: 0, // 待收货 30
|
|
evaluate_count: 0, // 已收货 40
|
|
evaluate_count: 0, // 已收货 40
|
|
|
|
|
|
- userInfo: app.globalData.userInfo
|
|
|
|
|
|
+ userInfo: app.globalData.userInfo,
|
|
|
|
+ showRCode: false
|
|
},
|
|
},
|
|
|
|
|
|
handleMore(e) {
|
|
handleMore(e) {
|
|
@@ -72,11 +74,11 @@ Page({
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
console.log(res.datas)
|
|
console.log(res.datas)
|
|
if(res.datas) {
|
|
if(res.datas) {
|
|
- const { cards, sub_titles } = res.datas
|
|
|
|
|
|
+ const { cards, sub_titles, mini_code } = res.datas
|
|
const phone = app.getValueByKey('phone', cards)
|
|
const phone = app.getValueByKey('phone', cards)
|
|
const petrochina = app.getValueByKey('petrochina', cards)
|
|
const petrochina = app.getValueByKey('petrochina', cards)
|
|
const sinopec = app.getValueByKey('sinopec', cards)
|
|
const sinopec = app.getValueByKey('sinopec', cards)
|
|
- this.setData({ memberInfo: {...res.datas}, phone, petrochina, sinopec })
|
|
|
|
|
|
+ this.setData({ memberInfo: { ...res.datas }, phone, petrochina, sinopec, mini_code })
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
app.showToast(res.message)
|
|
app.showToast(res.message)
|
|
@@ -132,6 +134,14 @@ Page({
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ onShowMiniCode(e) {
|
|
|
|
+ console.log('onShowMiniCode',this.mini_code)
|
|
|
|
+ this.setData({ showRCode:true })
|
|
|
|
+ },
|
|
|
|
+ onCloseMiniDialog() {
|
|
|
|
+ console.log('myhome,onCloseMiniDialog')
|
|
|
|
+ this.setData({ showRCode: false })
|
|
|
|
+ },
|
|
|
|
|
|
/**
|
|
/**
|
|
* 生命周期函数--监听页面隐藏
|
|
* 生命周期函数--监听页面隐藏
|