|
|
@ -2,15 +2,42 @@ |
|
|
|
<view class="running-water"> |
|
|
|
<navbar :title="title[status]" leftClick @leftClick="leftClick" /> |
|
|
|
|
|
|
|
<userShopCommission/> |
|
|
|
|
|
|
|
<view class="tab-box"> |
|
|
|
<view class="tab-box1"> |
|
|
|
<uv-cell |
|
|
|
<!-- <uv-cell |
|
|
|
center |
|
|
|
border |
|
|
|
:title="item.title" |
|
|
|
v-for="(item, index) in list" |
|
|
|
:value="x[item.type] + item.intger" |
|
|
|
:label="item.createTime" /> |
|
|
|
:label="item.createTime" /> --> |
|
|
|
|
|
|
|
<uv-cell center border |
|
|
|
:key="item.id" |
|
|
|
:title="item.title" v-for="(item, index) in list" |
|
|
|
:label="item.createTime"> |
|
|
|
|
|
|
|
<template #value> |
|
|
|
<view class="info"> |
|
|
|
<view class="price"> |
|
|
|
{{ x[item.type] + item.balance }} |
|
|
|
</view> |
|
|
|
<view class="uni-color-btn" |
|
|
|
@click="requestMerchantTransfer(item)" |
|
|
|
v-if="status == 1 && item.status == 4" |
|
|
|
> |
|
|
|
领取 |
|
|
|
</view> |
|
|
|
<view class="status" |
|
|
|
v-else> |
|
|
|
{{ item.status_dictText }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
</uv-cell> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view |
|
|
@ -27,8 +54,12 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import userShopCommission from '@/components/userShop/userShopCommission.vue' |
|
|
|
import mixinsList from '@/mixins/list.js' |
|
|
|
export default { |
|
|
|
components : { |
|
|
|
userShopCommission, |
|
|
|
}, |
|
|
|
mixins: [mixinsList], |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -69,6 +100,29 @@ |
|
|
|
leftClick() { //返回钱包 |
|
|
|
uni.navigateBack(-1) |
|
|
|
}, |
|
|
|
requestMerchantTransfer(item) { |
|
|
|
if (!wx.canIUse('requestMerchantTransfer')) { |
|
|
|
wx.showModal({ |
|
|
|
content: '你的微信版本过低,请更新至最新版本。', |
|
|
|
showCancel: false, |
|
|
|
}); |
|
|
|
return |
|
|
|
} |
|
|
|
wx.requestMerchantTransfer({ |
|
|
|
mchId: '1684424511', |
|
|
|
appId: wx.getAccountInfoSync().miniProgram.appId, |
|
|
|
package: item.packageInfo, |
|
|
|
success: (res) => { |
|
|
|
// res.err_msg将在页面展示成功后返回应用时返回ok,并不代表付款成功 |
|
|
|
console.log('success:', res); |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
fail: (res) => { |
|
|
|
console.log('fail:', res); |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
}); |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|