Browse Source

上传

master
前端-胡立永 4 months ago
parent
commit
49a0d9b81b
5 changed files with 98 additions and 16 deletions
  1. +3
    -1
      components/user/signInOnePopup.vue
  2. +6
    -6
      components/userShop/userShopCommission.vue
  3. +3
    -0
      pages.json
  4. +30
    -7
      pages_order/mine/purse.vue
  5. +56
    -2
      pages_order/mine/runningWater.vue

+ 3
- 1
components/user/signInOnePopup.vue View File

@ -1,6 +1,8 @@
<template> <template>
<view class="configPopup"> <view class="configPopup">
<uv-popup ref="popup" :round="30" :customStyle="{height: '50vh'}">
<uv-popup ref="popup" :round="30"
:safeAreaInsetBottom="false"
:customStyle="{height: '50vh'}">
<view class="content"> <view class="content">
<view class="title">今日签到获取积分</view> <view class="title">今日签到获取积分</view>


+ 6
- 6
components/userShop/userShopCommission.vue View File

@ -3,19 +3,19 @@
<image src="/static/image/center/10.png" mode=""></image> <image src="/static/image/center/10.png" mode=""></image>
<view class="price"> <view class="price">
<view class="title"> <view class="title">
总佣金
余额
</view> </view>
<view class="num"> <view class="num">
7890.34
{{ userInfo.price }}
</view> </view>
</view> </view>
<view class="font-menu"
s
<!-- <view class="font-menu"
v-if="purse"> v-if="purse">
<view @click="toRunningWater(index)" <view @click="toRunningWater(index)"
v-for="(item, index) in list" v-for="(item, index) in list"
:key="index">{{ item.name }}</view> :key="index">{{ item.name }}</view>
</view>
</view> -->
<view class="btn" <view class="btn"
v-if="!purse" v-if="!purse"
@ -118,7 +118,7 @@
position: absolute; position: absolute;
right: 50rpx; right: 50rpx;
bottom: 50rpx; bottom: 50rpx;
background-color: #FDC440;
background-color: $uni-color;
width: 160rpx; width: 160rpx;
height: 60rpx; height: 60rpx;
display: flex; display: flex;


+ 3
- 0
pages.json View File

@ -178,6 +178,9 @@
}, },
{ {
"path": "product/addProduct" "path": "product/addProduct"
},
{
"path": "mine/purse"
} }
] ]
}], }],


+ 30
- 7
pages_order/mine/purse.vue View File

@ -4,7 +4,7 @@
<!-- 水洗店 --> <!-- 水洗店 -->
<view class="userShop"> <view class="userShop">
<userShopCommission purse />
<userShopCommission purse/>
</view> </view>
<view class="from-body"> <view class="from-body">
@ -15,22 +15,25 @@
<view class="from-line"> <view class="from-line">
<input placeholder="请输入姓名" /> <input placeholder="请输入姓名" />
</view> </view>
<view class="from-line">
<!-- <view class="from-line">
<input placeholder="请输入开户行" /> <input placeholder="请输入开户行" />
</view> </view>
<view class="from-line"> <view class="from-line">
<input placeholder="请输入银行卡卡号" /> <input placeholder="请输入银行卡卡号" />
</view>
<view class="mt56">提现说明</view>
<view style="line-height: 45rpx; font-size: 24rpx;color: #666666;" v-html="notice">
</view>
</view> -->
<!-- <view class="mt56">提现说明</view>
<view
style="line-height: 45rpx; font-size: 24rpx;color: #666666;"
v-html="notice">
</view> -->
<!-- <p>1本次提现必须通过银行卡提现暂不支持其他途径</p> <!-- <p>1本次提现必须通过银行卡提现暂不支持其他途径</p>
<p>2如若遇到24小时提现未到账请联系客服</p> --> <p>2如若遇到24小时提现未到账请联系客服</p> -->
</view> </view>
<view class="b-fiexd"> <view class="b-fiexd">
<view class="button-submit">提交</view>
<view class="button-submit"
@click="submit">提交</view>
</view> </view>
</view> </view>
@ -48,6 +51,26 @@
} }
}, },
methods: { methods: {
submit() {
if (this.$utils.verificationAll(this.form, {
money: '请输入提现金额',
name: '请输入姓名',
})) {
return
}
this.$api('storeWithdrawalApplication', this.form, res => {
if (res.code == 200) {
uni.showToast({
title: '提交成功,待后台审核!',
icon: 'none',
})
setTimeout(uni.navigateTo, 800, {
url: '/pages_order/mine/runningWater?status=1'
})
}
})
},
} }
} }


+ 56
- 2
pages_order/mine/runningWater.vue View File

@ -2,15 +2,42 @@
<view class="running-water"> <view class="running-water">
<navbar :title="title[status]" leftClick @leftClick="leftClick" /> <navbar :title="title[status]" leftClick @leftClick="leftClick" />
<userShopCommission/>
<view class="tab-box"> <view class="tab-box">
<view class="tab-box1"> <view class="tab-box1">
<uv-cell
<!-- <uv-cell
center center
border border
:title="item.title" :title="item.title"
v-for="(item, index) in list" v-for="(item, index) in list"
:value="x[item.type] + item.intger" :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>
<view <view
@ -27,8 +54,12 @@
</template> </template>
<script> <script>
import userShopCommission from '@/components/userShop/userShopCommission.vue'
import mixinsList from '@/mixins/list.js' import mixinsList from '@/mixins/list.js'
export default { export default {
components : {
userShopCommission,
},
mixins: [mixinsList], mixins: [mixinsList],
data() { data() {
return { return {
@ -69,6 +100,29 @@
leftClick() { // leftClick() { //
uni.navigateBack(-1) 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_msgok
console.log('success:', res);
this.getData()
},
fail: (res) => {
console.log('fail:', res);
this.getData()
},
});
},
} }
} }
</script> </script>


Loading…
Cancel
Save