|
|
|
@ -86,7 +86,16 @@ |
|
|
|
</view> |
|
|
|
<view class="record-amount"> |
|
|
|
<text class="amount">+{{ item.money }}</text> |
|
|
|
<text class="status" :class="item.withdrawal.status === '1' && withdrawStatus === '0' ? 'status-available' : 'status-received'" v-if="item.withdrawal">{{ getText(item.withdrawal) }}</text> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<text class="status" |
|
|
|
:class="item.withdrawal.status === '1' |
|
|
|
&& item.withdrawal.withdrawStatus === '0' ? 'status-available' : 'status-received'" |
|
|
|
v-if="item.withdrawal && item.withdrawal.status != '1'">{{ getText(item.withdrawal) }}</text> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
@ -159,6 +168,33 @@ export default { |
|
|
|
this.userInfo = res.result |
|
|
|
} |
|
|
|
}, |
|
|
|
requestMerchantTransfer(item) { |
|
|
|
if (!wx.canIUse('requestMerchantTransfer')) { |
|
|
|
wx.showModal({ |
|
|
|
content: '你的微信版本过低,请更新至最新版本。', |
|
|
|
showCancel: false, |
|
|
|
}); |
|
|
|
return |
|
|
|
} |
|
|
|
wx.requestMerchantTransfer({ |
|
|
|
mchId: '1673516176',//万能墙商户号 |
|
|
|
appId: wx.getAccountInfoSync().miniProgram.appId, |
|
|
|
package: item.packageInfo, |
|
|
|
success: (res) => { |
|
|
|
// res.err_msg将在页面展示成功后返回应用时返回ok,并不代表提款成功 |
|
|
|
console.log('success:', res); |
|
|
|
this.getData() |
|
|
|
|
|
|
|
this.$api('requestMerchantTransfer', { |
|
|
|
id : item.id, |
|
|
|
}) |
|
|
|
}, |
|
|
|
fail: (res) => { |
|
|
|
console.log('fail:', res); |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 去二维码 |
|
|
|
goQrcode() { |
|
|
|
uni.navigateTo({ |
|
|
|
|