修改:分销佣金提现修改 - 银行卡分为个人账户和企业账户
This commit is contained in:
parent
a32e8ff742
commit
dfb23a432a
|
|
@ -101,7 +101,13 @@
|
||||||
url: `/pages/annex/web_view/index?url=${url}`
|
url: `/pages/annex/web_view/index?url=${url}`
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (['/pages/goods_cate/goods_cate', '/pages/order_addcart/order_addcart', '/pages/user/index', '/pages/index/index', '/pages/plant_grass/index'].indexOf(url) == -1) {
|
if ([
|
||||||
|
'/pages/goods_cate/goods_cate',
|
||||||
|
'/pages/order_addcart/order_addcart',
|
||||||
|
'/pages/user/index',
|
||||||
|
'/pages/index/index',
|
||||||
|
// '/pages/plant_grass/index'
|
||||||
|
].indexOf(url) == -1) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: url
|
url: url
|
||||||
})
|
})
|
||||||
|
|
|
||||||
52
pages.json
52
pages.json
|
|
@ -30,13 +30,13 @@
|
||||||
"navigationBarTitleText": "购物车"
|
"navigationBarTitleText": "购物车"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
"path": "pages/plant_grass/index",
|
// "path": "pages/plant_grass/index",
|
||||||
"style": {
|
// "style": {
|
||||||
// "navigationStyle": "custom",
|
// // "navigationStyle": "custom",
|
||||||
"navigationBarTitleText": "种草社区"
|
// "navigationBarTitleText": "种草社区"
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
"path": "pages/user/index",
|
"path": "pages/user/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
|
@ -910,12 +910,12 @@
|
||||||
"navigationBarTitleText": "内容发布"
|
"navigationBarTitleText": "内容发布"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
"path": "plant_show/index",
|
// "path": "plant_show/index",
|
||||||
"style": {
|
// "style": {
|
||||||
"navigationBarTitleText": "种草秀"
|
// "navigationBarTitleText": "种草秀"
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
"path": "plant_topic/index",
|
"path": "plant_topic/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
|
@ -1052,13 +1052,13 @@
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
"path": "liveBroadcast/index",
|
// "path": "liveBroadcast/index",
|
||||||
"style": {
|
// "style": {
|
||||||
"navigationBarTitleText": "直播列表",
|
// "navigationBarTitleText": "直播列表",
|
||||||
"navigationBarBackgroundColor": "#F2F2F2"
|
// "navigationBarBackgroundColor": "#F2F2F2"
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
"path": "presell/index",
|
"path": "presell/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
|
@ -1492,12 +1492,12 @@
|
||||||
"selectedIconPath": "static/images/2-002.png",
|
"selectedIconPath": "static/images/2-002.png",
|
||||||
"text": "分类"
|
"text": "分类"
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
"pagePath": "pages/plant_grass/index",
|
// "pagePath": "pages/plant_grass/index",
|
||||||
"iconPath": "static/images/5-001.png",
|
// "iconPath": "static/images/5-001.png",
|
||||||
"selectedIconPath": "static/images/5-002.png",
|
// "selectedIconPath": "static/images/5-002.png",
|
||||||
"text": "逛逛"
|
// "text": "逛逛"
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
"pagePath": "pages/order_addcart/order_addcart",
|
"pagePath": "pages/order_addcart/order_addcart",
|
||||||
"iconPath": "static/images/3-001.png",
|
"iconPath": "static/images/3-001.png",
|
||||||
|
|
|
||||||
|
|
@ -688,8 +688,11 @@
|
||||||
},
|
},
|
||||||
//下拉导航页面跳转
|
//下拉导航页面跳转
|
||||||
linkPage(url) {
|
linkPage(url) {
|
||||||
if (['/pages/index/index', '/pages/order_addcart/order_addcart',
|
if ([
|
||||||
'/pages/user/index', '/pages/plant_grass/index'
|
'/pages/index/index',
|
||||||
|
'/pages/order_addcart/order_addcart',
|
||||||
|
'/pages/user/index',
|
||||||
|
// '/pages/plant_grass/index'
|
||||||
].indexOf(url) > -1) {
|
].indexOf(url) > -1) {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url
|
url
|
||||||
|
|
|
||||||
|
|
@ -594,7 +594,8 @@
|
||||||
//下拉导航页面跳转
|
//下拉导航页面跳转
|
||||||
linkPage(url) {
|
linkPage(url) {
|
||||||
if (['/pages/index/index', '/pages/order_addcart/order_addcart',
|
if (['/pages/index/index', '/pages/order_addcart/order_addcart',
|
||||||
'/pages/user/index', '/pages/plant_grass/index'
|
'/pages/user/index',
|
||||||
|
// '/pages/plant_grass/index'
|
||||||
].indexOf(url) > -1) {
|
].indexOf(url) > -1) {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url
|
url
|
||||||
|
|
|
||||||
|
|
@ -667,7 +667,8 @@
|
||||||
//下拉导航页面跳转
|
//下拉导航页面跳转
|
||||||
linkPage(url) {
|
linkPage(url) {
|
||||||
if (['/pages/index/index', '/pages/order_addcart/order_addcart',
|
if (['/pages/index/index', '/pages/order_addcart/order_addcart',
|
||||||
'/pages/user/index', '/pages/plant_grass/index'
|
'/pages/user/index',
|
||||||
|
// '/pages/plant_grass/index'
|
||||||
].indexOf(url) > -1) {
|
].indexOf(url) > -1) {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url
|
url
|
||||||
|
|
|
||||||
|
|
@ -275,7 +275,9 @@
|
||||||
location.href = url
|
location.href = url
|
||||||
// #endif
|
// #endif
|
||||||
}else{
|
}else{
|
||||||
if(['/pages/goods_cate/goods_cate','/pages/order_addcart/order_addcart','/pages/user/index','/pages/plant_grass/index'].indexOf(url) == -1){
|
if(['/pages/goods_cate/goods_cate','/pages/order_addcart/order_addcart','/pages/user/index',
|
||||||
|
// '/pages/plant_grass/index'
|
||||||
|
].indexOf(url) == -1){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:url
|
url:url
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -221,7 +221,9 @@
|
||||||
location.href = url
|
location.href = url
|
||||||
// #endif
|
// #endif
|
||||||
}else{
|
}else{
|
||||||
if(['/pages/goods_cate/goods_cate','/pages/order_addcart/order_addcart','/pages/user/index','/pages/plant_grass/index'].indexOf(url) == -1){
|
if(['/pages/goods_cate/goods_cate','/pages/order_addcart/order_addcart','/pages/user/index',
|
||||||
|
// '/pages/plant_grass/index'
|
||||||
|
].indexOf(url) == -1){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:url
|
url:url
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -781,7 +781,8 @@
|
||||||
//下拉导航页面跳转
|
//下拉导航页面跳转
|
||||||
linkPage(url) {
|
linkPage(url) {
|
||||||
if (['/pages/index/index', '/pages/order_addcart/order_addcart',
|
if (['/pages/index/index', '/pages/order_addcart/order_addcart',
|
||||||
'/pages/user/index', '/pages/plant_grass/index'
|
'/pages/user/index',
|
||||||
|
// '/pages/plant_grass/index'
|
||||||
].indexOf(url) > -1) {
|
].indexOf(url) > -1) {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url
|
url
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@
|
||||||
<block v-if="community_status">
|
<block v-if="community_status">
|
||||||
<view class="spike-bd plant_bg" :style="{ 'background-image': `url(${domain}/static/images/plant_bg.png)`}">
|
<view class="spike-bd plant_bg" :style="{ 'background-image': `url(${domain}/static/images/plant_bg.png)`}">
|
||||||
<view class="title line1"><image class="title-img" :src="`${domain}/static/images/plant_title.png`"></image></view>
|
<view class="title line1"><image class="title-img" :src="`${domain}/static/images/plant_title.png`"></image></view>
|
||||||
<navigator v-if="!merId" :open-type="open_grass ? 'switchTab' : 'navigate'" url="/pages/plant_grass/index" class="more-btn" hover-class="none">
|
<!--<navigator v-if="!merId" :open-type="open_grass ? 'switchTab' : 'navigate'" url="/pages/plant_grass/index" class="more-btn" hover-class="none">-->
|
||||||
好物分享
|
<!-- 好物分享-->
|
||||||
<text class="iconfont icon-jiantou" hover-class="none"></text>
|
<!-- <text class="iconfont icon-jiantou" hover-class="none"></text>-->
|
||||||
</navigator>
|
<!--</navigator>-->
|
||||||
</view>
|
</view>
|
||||||
<view class="live-wrapper plant" style="border-radius: 0;">
|
<view class="live-wrapper plant" style="border-radius: 0;">
|
||||||
<scroll-view :class="'colum'+styleType" :scroll-x="styleType == 0 ? true : false" >
|
<scroll-view :class="'colum'+styleType" :scroll-x="styleType == 0 ? true : false" >
|
||||||
|
|
|
||||||
|
|
@ -158,7 +158,7 @@
|
||||||
<view class="count">
|
<view class="count">
|
||||||
<image src="../static/images/no_content.png"></image>
|
<image src="../static/images/no_content.png"></image>
|
||||||
<text>内容不存在,可能被删除了哦~</text>
|
<text>内容不存在,可能被删除了哦~</text>
|
||||||
<navigator class="btn" :open-type="open_grass ? 'switchTab' : 'navigate'" url="/pages/plant_grass/index">返回首页</navigator>
|
<!--<navigator class="btn" :open-type="open_grass ? 'switchTab' : 'navigate'" url="/pages/plant_grass/index">返回首页</navigator>-->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 他提到的宝贝弹窗 -->
|
<!-- 他提到的宝贝弹窗 -->
|
||||||
|
|
|
||||||
|
|
@ -222,7 +222,9 @@
|
||||||
location.href = url
|
location.href = url
|
||||||
// #endif
|
// #endif
|
||||||
} else {
|
} else {
|
||||||
if (['/pages/goods_cate/goods_cate', '/pages/order_addcart/order_addcart', '/pages/user/index', '/pages/index/index','/pages/plant_grass/index']
|
if (['/pages/goods_cate/goods_cate', '/pages/order_addcart/order_addcart', '/pages/user/index', '/pages/index/index',
|
||||||
|
// '/pages/plant_grass/index'
|
||||||
|
]
|
||||||
.indexOf(url) == -1) {
|
.indexOf(url) == -1) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: url +'?delta=0'
|
url: url +'?delta=0'
|
||||||
|
|
|
||||||
|
|
@ -603,7 +603,9 @@
|
||||||
location.href = url
|
location.href = url
|
||||||
// #endif
|
// #endif
|
||||||
}else{
|
}else{
|
||||||
if(['/pages/goods_cate/goods_cate','/pages/order_addcart/order_addcart','/pages/user/index','/pages/plant_grass/index'].indexOf(url) == -1){
|
if(['/pages/goods_cate/goods_cate','/pages/order_addcart/order_addcart','/pages/user/index',
|
||||||
|
// '/pages/plant_grass/index'
|
||||||
|
].indexOf(url) == -1){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:url
|
url:url
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -359,7 +359,8 @@
|
||||||
|
|
||||||
let method
|
let method
|
||||||
let indexPat = ['/pages/index/index', '/pages/order_addcart/order_addcart', '/pages/goods_cate/goods_cate',
|
let indexPat = ['/pages/index/index', '/pages/order_addcart/order_addcart', '/pages/goods_cate/goods_cate',
|
||||||
'/pages/user/index','/pages/plant_grass/index'
|
'/pages/user/index',
|
||||||
|
// '/pages/plant_grass/index'
|
||||||
]
|
]
|
||||||
if (indexPat.includes(this.getPath(backUrl))) {
|
if (indexPat.includes(this.getPath(backUrl))) {
|
||||||
method = 'switchTab'
|
method = 'switchTab'
|
||||||
|
|
@ -482,7 +483,8 @@
|
||||||
|
|
||||||
let method
|
let method
|
||||||
let indexPat = ['/pages/index/index', '/pages/order_addcart/order_addcart', '/pages/goods_cate/goods_cate',
|
let indexPat = ['/pages/index/index', '/pages/order_addcart/order_addcart', '/pages/goods_cate/goods_cate',
|
||||||
'/pages/user/index','/pages/plant_grass/index'
|
'/pages/user/index',
|
||||||
|
// '/pages/plant_grass/index'
|
||||||
]
|
]
|
||||||
if (indexPat.includes(this.getPath(backUrl))) {
|
if (indexPat.includes(this.getPath(backUrl))) {
|
||||||
method = 'switchTab'
|
method = 'switchTab'
|
||||||
|
|
@ -568,7 +570,8 @@
|
||||||
that.$store.commit('UPDATE_USERINFO', data.result.user);
|
that.$store.commit('UPDATE_USERINFO', data.result.user);
|
||||||
let method
|
let method
|
||||||
let indexPat = ['/pages/index/index', '/pages/order_addcart/order_addcart', '/pages/goods_cate/goods_cate',
|
let indexPat = ['/pages/index/index', '/pages/order_addcart/order_addcart', '/pages/goods_cate/goods_cate',
|
||||||
'/pages/user/index','/pages/plant_grass/index'
|
'/pages/user/index',
|
||||||
|
// '/pages/plant_grass/index'
|
||||||
]
|
]
|
||||||
if (indexPat.includes(this.getPath(backUrl))) {
|
if (indexPat.includes(this.getPath(backUrl))) {
|
||||||
method = 'switchTab'
|
method = 'switchTab'
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='wrapper'>
|
<view class='wrapper'>
|
||||||
<view :hidden='currentTab != 0' class='list'>
|
<!--<view :hidden='currentTab != 0' class='list'>
|
||||||
<form @submit="subCash" report-submit='true'>
|
<form @submit="subCash" report-submit='true'>
|
||||||
<view class='item acea-row row-between-wrapper'>
|
<view class='item acea-row row-between-wrapper'>
|
||||||
<view class='name'>持卡人</view>
|
<view class='name'>持卡人</view>
|
||||||
|
|
@ -52,6 +52,83 @@
|
||||||
<view class='tip'>
|
<view class='tip'>
|
||||||
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
||||||
</view>
|
</view>
|
||||||
|
<view class="btn-submit">
|
||||||
|
<button formType="submit" :disabled="load" class='bnt b-color' :class="load ? 'disabled' : ''" >提现</button>
|
||||||
|
</view>
|
||||||
|
</form>
|
||||||
|
</view>-->
|
||||||
|
<view :hidden='currentTab != 0' class='list bank-list'>
|
||||||
|
<!--选项卡-->
|
||||||
|
<view class="bank-tabs">
|
||||||
|
<view :class="['bank-tab',{'bank-tab-active': bank_type == 0}]" @click="changeTab(0)">个人账户</view>
|
||||||
|
<view :class="['bank-tab',{'bank-tab-active': bank_type == 1}]" @click="changeTab(1)">企业账户</view>
|
||||||
|
</view>
|
||||||
|
<!--表单-->
|
||||||
|
<form @submit="subCash" report-submit='true'>
|
||||||
|
<template v-if="bank_type == 0">
|
||||||
|
<view class='item acea-row row-between-wrapper'>
|
||||||
|
<view class='name'>持卡人</view>
|
||||||
|
<view class='input'><input placeholder='请输入持卡人姓名' placeholder-class='placeholder' name="real_name" v-model="real_name"></input></view>
|
||||||
|
</view>
|
||||||
|
<view class='item acea-row row-between-wrapper'>
|
||||||
|
<view class='name'>卡号</view>
|
||||||
|
<view class='input'><input type='number' placeholder='请填写卡号' placeholder-class='placeholder' name="bank_code" v-model="bank_code"></input></view>
|
||||||
|
</view>
|
||||||
|
<view class='item acea-row row-between-wrapper' v-if="array.length>0">
|
||||||
|
<view class='name'>银行</view>
|
||||||
|
<view class='input'>
|
||||||
|
<picker @change="bindPickerChange" :value="index" :range="array" range-key="name">
|
||||||
|
<text class='Bank'>{{array[index]["name"]}}</text>
|
||||||
|
<text class='iconfont icon-qiepian38'></text>
|
||||||
|
</picker>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class='item acea-row row-between-wrapper'>
|
||||||
|
<view class='name'>支行信息</view>
|
||||||
|
<view class='input'><input placeholder='请输入支行信息' placeholder-class='placeholder' name="bank_address" v-model="bank_address"></input></view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<template v-if="bank_type == 1">
|
||||||
|
<view class='item acea-row row-between-wrapper'>
|
||||||
|
<view class='name'>开户名称</view>
|
||||||
|
<view class='input'>
|
||||||
|
<input placeholder='请输入开户名称' placeholder-class='placeholder' name="real_name" v-model="real_name" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class='item acea-row row-between-wrapper'>
|
||||||
|
<view class='name'>开户行</view>
|
||||||
|
<view class='input'>
|
||||||
|
<input placeholder='请输入开户行信息' placeholder-class='placeholder' name="bank_address" v-model="bank_address" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class='item acea-row row-between-wrapper'>
|
||||||
|
<view class='name'>账号</view>
|
||||||
|
<view class='input'>
|
||||||
|
<input type='number' placeholder='请填账号' placeholder-class='placeholder' name="bank_code" v-model="bank_code" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<!--公共内容-->
|
||||||
|
<view class='item acea-row row-between-wrapper'>
|
||||||
|
<view class='name'>提现</view>
|
||||||
|
<view class='input'>
|
||||||
|
<input :placeholder='"最低提现金额"+minPrice' placeholder-class='placeholder' name="extract_price" type='digit' v-model="extract_price" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class='tip mt25'>
|
||||||
|
当前可提现金额: <text class="price">¥{{userInfo.brokerage_price}},</text>冻结佣金:¥{{userInfo.lock_brokerage}}
|
||||||
|
</view>
|
||||||
|
<view class='tip'>
|
||||||
|
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
||||||
|
</view>
|
||||||
|
<view class='tip mt25' v-if="Number(withdraw_commission) > 0">
|
||||||
|
提现手续费为: <text class="price">{{ withdraw_commission.toFixed(2) }}%</text>
|
||||||
|
</view>
|
||||||
|
<view class='tip mt25' v-if="Number(extract_price) > 0">
|
||||||
|
实际到账:<text class="price">{{ (extract_price - (extract_price * withdraw_commission / 100)).toFixed(2) }}</text>;
|
||||||
|
手续费: <text class="price">{{ (extract_price * withdraw_commission / 100).toFixed(2) }}</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
<view class="btn-submit">
|
<view class="btn-submit">
|
||||||
<button formType="submit" :disabled="load" class='bnt b-color' :class="load ? 'disabled' : ''" >提现</button>
|
<button formType="submit" :disabled="load" class='bnt b-color' :class="load ? 'disabled' : ''" >提现</button>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -97,11 +174,17 @@
|
||||||
<view class='input'><input placeholder-class='placeholder1' name="extract_price"
|
<view class='input'><input placeholder-class='placeholder1' name="extract_price"
|
||||||
type='digit' :placeholder="placeholderValue" @focus="placeholderValue = ''" v-model="extract_price"></input>
|
type='digit' :placeholder="placeholderValue" @focus="placeholderValue = ''" v-model="extract_price"></input>
|
||||||
</view>
|
</view>
|
||||||
|
<view class='tip mt25' v-if="Number(withdraw_commission) > 0">
|
||||||
|
提现手续费为: <text class="price">{{ withdraw_commission.toFixed(2) }}%</text>
|
||||||
|
</view>
|
||||||
|
<view class='tip mt25' v-if="Number(extract_price) > 0">
|
||||||
|
实际到账:<text class="price">{{ (extract_price - (extract_price * withdraw_commission / 100)).toFixed(2) }}</text>;
|
||||||
|
手续费: <text class="price">{{ (extract_price * withdraw_commission / 100).toFixed(2) }}</text>
|
||||||
|
</view>
|
||||||
<view class="btn-submit">
|
<view class="btn-submit">
|
||||||
<button formType="submit" :disabled="load" class='bnt b-color' :class="load ? 'disabled' : ''" >提现</button>
|
<button formType="submit" :disabled="load" class='bnt b-color' :class="load ? 'disabled' : ''" >提现</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</view>
|
</view>
|
||||||
<view :hidden='currentTab != 2' class='list'>
|
<view :hidden='currentTab != 2' class='list'>
|
||||||
|
|
@ -134,6 +217,13 @@
|
||||||
<view class='tip' v-if="userInfo.broken_day>0">
|
<view class='tip' v-if="userInfo.broken_day>0">
|
||||||
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
说明: 每笔佣金的冻结期为{{userInfo.broken_day}}天,到期后可提现
|
||||||
</view>
|
</view>
|
||||||
|
<view class='tip mt25' v-if="Number(withdraw_commission) > 0">
|
||||||
|
提现手续费为: <text class="price">{{ withdraw_commission.toFixed(2) }}%</text>
|
||||||
|
</view>
|
||||||
|
<view class='tip mt25' v-if="Number(extract_price) > 0">
|
||||||
|
实际到账:<text class="price">{{ (extract_price - (extract_price * withdraw_commission / 100)).toFixed(2) }}</text>;
|
||||||
|
手续费: <text class="price">{{ (extract_price * withdraw_commission / 100).toFixed(2) }}</text>
|
||||||
|
</view>
|
||||||
<view class="btn-submit">
|
<view class="btn-submit">
|
||||||
<button formType="submit" :disabled="load" class='bnt b-color' :class="load ? 'disabled' : ''" >提现</button>
|
<button formType="submit" :disabled="load" class='bnt b-color' :class="load ? 'disabled' : ''" >提现</button>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -148,13 +238,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import {
|
import {extractCash, extractBank, spreadInfo, getBankInfo} from '@/api/user.js';
|
||||||
extractCash,
|
|
||||||
extractBank,
|
|
||||||
getUserInfo,
|
|
||||||
spreadInfo,
|
|
||||||
getBankInfo
|
|
||||||
} from '@/api/user.js';
|
|
||||||
import { mapGetters } from "vuex";
|
import { mapGetters } from "vuex";
|
||||||
import authorize from '@/components/Authorize';
|
import authorize from '@/components/Authorize';
|
||||||
import cash from '@/components/cash';
|
import cash from '@/components/cash';
|
||||||
|
|
@ -208,7 +292,12 @@
|
||||||
real_name: '',
|
real_name: '',
|
||||||
bank_address: '',
|
bank_address: '',
|
||||||
bank_code: '',
|
bank_code: '',
|
||||||
pay_type: []
|
pay_type: [],
|
||||||
|
withdraw_commission: 0,// 手续费比例
|
||||||
|
// 银行卡选项卡
|
||||||
|
bank_type: 0,
|
||||||
|
historyBankInfo: {},
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -223,7 +312,7 @@
|
||||||
immediate: true
|
immediate: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
if (this.isLogin) {
|
if (this.isLogin) {
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
this.getUserExtractBank();
|
this.getUserExtractBank();
|
||||||
|
|
@ -264,13 +353,8 @@
|
||||||
getBankInfo(){
|
getBankInfo(){
|
||||||
let that = this;
|
let that = this;
|
||||||
getBankInfo().then(res => {
|
getBankInfo().then(res => {
|
||||||
let info = res.data;
|
that.historyBankInfo = res.data || {};
|
||||||
console.log(info)
|
that.historyBankChange();
|
||||||
that.real_name = info.real_name;
|
|
||||||
that.bank_name = info.bank_name;
|
|
||||||
that.bank_code = info.bank_code;
|
|
||||||
that.bank_address = info.bank_address;
|
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getUserExtractBank: function() {
|
getUserExtractBank: function() {
|
||||||
|
|
@ -287,6 +371,7 @@
|
||||||
let that = this;
|
let that = this;
|
||||||
spreadInfo().then(res => {
|
spreadInfo().then(res => {
|
||||||
that.userInfo = res.data;
|
that.userInfo = res.data;
|
||||||
|
that.withdraw_commission = res.data.withdraw_commission || 0;
|
||||||
that.minPrice = res.data.user_extract_min;
|
that.minPrice = res.data.user_extract_min;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
@ -344,6 +429,7 @@
|
||||||
// });
|
// });
|
||||||
value.extract_type = 'bank';
|
value.extract_type = 'bank';
|
||||||
value.bank_name = (that.array && that.array.length) ? that.array[that.index].name : '';
|
value.bank_name = (that.array && that.array.length) ? that.array[that.index].name : '';
|
||||||
|
value.bank_type = that.bank_type || 0;
|
||||||
} else if (that.currentTab == 1) { //微信
|
} else if (that.currentTab == 1) { //微信
|
||||||
value.extract_type = 'weixin';
|
value.extract_type = 'weixin';
|
||||||
if(!this.sys_extension_type){
|
if(!this.sys_extension_type){
|
||||||
|
|
@ -375,7 +461,10 @@
|
||||||
console.log(value, 'value')
|
console.log(value, 'value')
|
||||||
that.load = true;
|
that.load = true;
|
||||||
if(that.sys_extension_type && that.currentTab == 1)
|
if(that.sys_extension_type && that.currentTab == 1)
|
||||||
value = {extract_price: e.detail.value.extract_price, extract_type: 3}
|
value = {
|
||||||
|
extract_price: e.detail.value.extract_price,
|
||||||
|
extract_type: 3
|
||||||
|
}
|
||||||
extractCash(value).then(res => {
|
extractCash(value).then(res => {
|
||||||
that.getUserInfo();
|
that.getUserInfo();
|
||||||
that.load = false;
|
that.load = false;
|
||||||
|
|
@ -421,6 +510,22 @@
|
||||||
(action && this[action]) && this[action](value);
|
(action && this[action]) && this[action](value);
|
||||||
this.currentTab = opt.type
|
this.currentTab = opt.type
|
||||||
},
|
},
|
||||||
|
// 选项卡切换
|
||||||
|
changeTab(tabIndex){
|
||||||
|
this.bank_type = tabIndex || 0;
|
||||||
|
this.historyBankChange();
|
||||||
|
},
|
||||||
|
// 历史银行卡记录
|
||||||
|
historyBankChange(){
|
||||||
|
let info = this.historyBankInfo[this.bank_type] || {};
|
||||||
|
this.real_name = info.real_name || '';
|
||||||
|
this.bank_name = info.bank_name || '';
|
||||||
|
this.bank_code = info.bank_code || '';
|
||||||
|
this.bank_address = info.bank_address || '';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
// #ifdef MP
|
// #ifdef MP
|
||||||
// 分享给好友
|
// 分享给好友
|
||||||
|
|
@ -452,225 +557,260 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
page {
|
.bank-list{
|
||||||
background-color: #F5F5F5 !important;
|
padding-top: 30rpx!important;
|
||||||
}
|
.bank-tabs{
|
||||||
.mt25{
|
display: inline-flex;
|
||||||
margin-top: 25rpx;
|
flex-direction: row;
|
||||||
}
|
align-items: center;
|
||||||
.cash-withdrawal .nav {
|
justify-content: space-between;
|
||||||
height: 130rpx;
|
flex-wrap: nowrap;
|
||||||
padding: 0 30rpx;
|
width: 100%;
|
||||||
font-size: 30rpx;
|
background: #f9f9f9;
|
||||||
margin-bottom: 20rpx;
|
border-radius: 15rpx;
|
||||||
background-color: #fff;
|
.bank-tab{
|
||||||
}
|
width: 50%;
|
||||||
.b-color{background-color: var(--view-theme);}
|
text-align: center;
|
||||||
.cash-withdrawal .nav .input {
|
height: 80rpx;
|
||||||
width: 505rpx;
|
line-height: 80rpx;
|
||||||
.more-content{
|
font-size: 28rpx;
|
||||||
display: flex;
|
font-weight: bold
|
||||||
align-items: center;
|
}
|
||||||
.more-content-left{
|
.bank-tab-active{
|
||||||
width: 90%;
|
position: relative;
|
||||||
.type-icon{
|
}
|
||||||
display: inline-block;
|
.bank-tab-active{
|
||||||
width: 56rpx;
|
color: #87171c;
|
||||||
height: 56rpx;
|
}
|
||||||
text-align: center;
|
.bank-tab-active:after{
|
||||||
line-height: 56rpx;
|
content: "";
|
||||||
background-color: #FE960F;
|
position: absolute;
|
||||||
margin-right: 20rpx;
|
bottom: 8rpx;
|
||||||
border-radius: 50%;
|
left: calc((100% - 100rpx) / 2 );
|
||||||
.bankicon{
|
background: #87171c;
|
||||||
font-size: 36rpx;
|
width: 100rpx;
|
||||||
color: #FFFFFF;
|
height: 6rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
.moreicon{
|
|
||||||
width: 10%;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.cash-withdrawal .nav .item {
|
|
||||||
font-size: 26rpx;
|
|
||||||
flex: 1;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cash-withdrawal .nav .item~.item {
|
|
||||||
border-left: 1px solid #f0f0f0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cash-withdrawal .nav .item .iconfont {
|
|
||||||
width: 40rpx;
|
|
||||||
height: 40rpx;
|
|
||||||
border-radius: 50%;
|
|
||||||
border: 2rpx solid #e93323;
|
|
||||||
text-align: center;
|
|
||||||
line-height: 37rpx;
|
|
||||||
margin: 0 auto 6rpx auto;
|
|
||||||
font-size: 22rpx;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cash-withdrawal .nav .item .iconfont.on {
|
|
||||||
background-color: #e93323;
|
|
||||||
color: #fff;
|
|
||||||
border-color: #e93323;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cash-withdrawal .nav .item .line {
|
|
||||||
width: 2rpx;
|
|
||||||
height: 20rpx;
|
|
||||||
margin: 0 auto;
|
|
||||||
transition: height 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cash-withdrawal .nav .item .line.on {
|
|
||||||
height: 39rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cash-withdrawal .wrapper .list {
|
|
||||||
padding: 0 30rpx;
|
|
||||||
background-color: #fff;
|
|
||||||
}
|
|
||||||
.cash-withdrawal .wrapper .list .item {
|
|
||||||
border-bottom: 1px solid #eee;
|
|
||||||
height: 107rpx;
|
|
||||||
font-size: 30rpx;
|
|
||||||
color: #333;
|
|
||||||
|
|
||||||
&.uploadItem {
|
|
||||||
border-bottom: none;
|
|
||||||
height: auto;
|
|
||||||
|
|
||||||
.name {
|
|
||||||
height: 107rpx;
|
|
||||||
;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.picture {
|
|
||||||
width: 70px;
|
|
||||||
height: 70px;
|
|
||||||
margin: 0 0 17px 0;
|
|
||||||
position: relative;
|
|
||||||
font-size: 11px;
|
|
||||||
color: #bbb;
|
|
||||||
border: 0.5px solid #ddd;
|
|
||||||
box-sizing: border-box;
|
|
||||||
margin-top: 40rpx;
|
|
||||||
|
|
||||||
uni-image,image {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
border-radius: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-guanbi1 {
|
|
||||||
font-size: 22px;
|
|
||||||
position: absolute;
|
|
||||||
top: -10px;
|
|
||||||
right: -10px;
|
|
||||||
color: #fc4141;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.cash-withdrawal .wrapper .list .item .name {
|
|
||||||
width: 130rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cash-withdrawal .wrapper .list .item .input {
|
|
||||||
width: 505rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cash-withdrawal .wrapper .list .item .input .placeholder {
|
|
||||||
color: #bbb;
|
|
||||||
}
|
|
||||||
.cash-withdrawal .placeholder1 {
|
|
||||||
font-size: 46rpx;
|
|
||||||
}
|
|
||||||
.cash-withdrawal .wrapper .list .tip {
|
|
||||||
font-size: 26rpx;
|
|
||||||
color: #999;
|
|
||||||
margin-bottom: 25rpx;
|
|
||||||
}
|
|
||||||
.cash-withdrawal .wrapper .list .btn-submit{
|
|
||||||
background-color: #F5F5F5;
|
|
||||||
margin: 0 -30rpx;
|
|
||||||
padding: 64rpx 30rpx;
|
|
||||||
}
|
|
||||||
.cash-withdrawal .wrapper .list .bnt {
|
|
||||||
font-size: 32rpx;
|
|
||||||
color: #fff;
|
|
||||||
width: 690rpx;
|
|
||||||
height: 90rpx;
|
|
||||||
text-align: center;
|
|
||||||
border-radius: 50rpx;
|
|
||||||
line-height: 90rpx;
|
|
||||||
/deep/ &.disabled {
|
|
||||||
background: #E3E3E3!important;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.cash-withdrawal .wrapper .list .tip2 {
|
}
|
||||||
font-size: 26rpx;
|
|
||||||
color: #999;
|
|
||||||
text-align: center;
|
|
||||||
margin: 44rpx 0 20rpx 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cash-withdrawal .wrapper .list .value {
|
|
||||||
height: 135rpx;
|
|
||||||
line-height: 135rpx;
|
|
||||||
border-bottom: 1px solid #eee;
|
|
||||||
width: 690rpx;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cash-withdrawal .wrapper .list .value input {
|
|
||||||
font-size: 80rpx;
|
page {
|
||||||
color: #282828;
|
background-color: #F5F5F5 !important;
|
||||||
height: 135rpx;
|
}
|
||||||
text-align: center;
|
.mt25 {
|
||||||
}
|
margin-top: 25rpx;
|
||||||
.cash-withdrawal .wrapper .list .value .placeholder2 {
|
}
|
||||||
color: #bbb;
|
.cash-withdrawal .nav {
|
||||||
}
|
height: 130rpx;
|
||||||
.price {
|
padding: 0 30rpx;
|
||||||
color: var(--view-priceColor);
|
font-size: 30rpx;
|
||||||
}
|
margin-bottom: 20rpx;
|
||||||
.Bank {
|
background-color: #fff;
|
||||||
display: block;
|
}
|
||||||
width: 100%;
|
.b-color {
|
||||||
text-overflow: ellipsis;
|
background-color: var(--view-theme);
|
||||||
overflow: hidden;
|
}
|
||||||
white-space: nowrap;
|
.cash-withdrawal .nav .input {
|
||||||
}
|
width: 505rpx;
|
||||||
.auto_arrival{
|
|
||||||
text-align: center;
|
.more-content {
|
||||||
padding: 20rpx 0 0 0;
|
display: flex;
|
||||||
.input{
|
align-items: center;
|
||||||
width: 100%;
|
|
||||||
border-bottom: 1px solid #eee;
|
.more-content-left {
|
||||||
margin-top: 10rpx;
|
width: 90%;
|
||||||
color: #999;
|
|
||||||
height: 120rpx;
|
.type-icon {
|
||||||
/deep/uni-input,input{
|
display: inline-block;
|
||||||
height: 120rpx;
|
width: 56rpx;
|
||||||
font-size: 40rpx;
|
height: 56rpx;
|
||||||
}
|
text-align: center;
|
||||||
}
|
line-height: 56rpx;
|
||||||
}
|
background-color: #FE960F;
|
||||||
uni-toast.uni-mask{
|
margin-right: 20rpx;
|
||||||
background-color: rgba(0,0,0,0.5) !important;
|
border-radius: 50%;
|
||||||
}
|
|
||||||
|
.bankicon {
|
||||||
|
font-size: 36rpx;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.moreicon {
|
||||||
|
width: 10%;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.cash-withdrawal .nav .item {
|
||||||
|
font-size: 26rpx;
|
||||||
|
flex: 1;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.cash-withdrawal .nav .item ~ .item {
|
||||||
|
border-left: 1px solid #f0f0f0;
|
||||||
|
}
|
||||||
|
.cash-withdrawal .nav .item .iconfont {
|
||||||
|
width: 40rpx;
|
||||||
|
height: 40rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 2rpx solid #e93323;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 37rpx;
|
||||||
|
margin: 0 auto 6rpx auto;
|
||||||
|
font-size: 22rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
.cash-withdrawal .nav .item .iconfont.on {
|
||||||
|
background-color: #e93323;
|
||||||
|
color: #fff;
|
||||||
|
border-color: #e93323;
|
||||||
|
}
|
||||||
|
.cash-withdrawal .nav .item .line {
|
||||||
|
width: 2rpx;
|
||||||
|
height: 20rpx;
|
||||||
|
margin: 0 auto;
|
||||||
|
transition: height 0.3s;
|
||||||
|
}
|
||||||
|
.cash-withdrawal .nav .item .line.on {
|
||||||
|
height: 39rpx;
|
||||||
|
}
|
||||||
|
.cash-withdrawal .wrapper .list {
|
||||||
|
padding: 0 30rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
.cash-withdrawal .wrapper .list .item {
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
height: 107rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: #333;
|
||||||
|
|
||||||
|
&.uploadItem {
|
||||||
|
border-bottom: none;
|
||||||
|
height: auto;
|
||||||
|
|
||||||
|
.name {
|
||||||
|
height: 107rpx;;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.picture {
|
||||||
|
width: 70px;
|
||||||
|
height: 70px;
|
||||||
|
margin: 0 0 17px 0;
|
||||||
|
position: relative;
|
||||||
|
font-size: 11px;
|
||||||
|
color: #bbb;
|
||||||
|
border: 0.5px solid #ddd;
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin-top: 40rpx;
|
||||||
|
|
||||||
|
uni-image, image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border-radius: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-guanbi1 {
|
||||||
|
font-size: 22px;
|
||||||
|
position: absolute;
|
||||||
|
top: -10px;
|
||||||
|
right: -10px;
|
||||||
|
color: #fc4141;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.cash-withdrawal .wrapper .list .item .name {
|
||||||
|
width: 130rpx;
|
||||||
|
}
|
||||||
|
.cash-withdrawal .wrapper .list .item .input {
|
||||||
|
width: 505rpx;
|
||||||
|
}
|
||||||
|
.cash-withdrawal .wrapper .list .item .input .placeholder {
|
||||||
|
color: #bbb;
|
||||||
|
}
|
||||||
|
.cash-withdrawal .placeholder1 {
|
||||||
|
font-size: 46rpx;
|
||||||
|
}
|
||||||
|
.cash-withdrawal .wrapper .list .tip {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #999;
|
||||||
|
margin-bottom: 25rpx;
|
||||||
|
}
|
||||||
|
.cash-withdrawal .wrapper .list .btn-submit {
|
||||||
|
background-color: #F5F5F5;
|
||||||
|
margin: 0 -30rpx;
|
||||||
|
padding: 64rpx 30rpx;
|
||||||
|
}
|
||||||
|
.cash-withdrawal .wrapper .list .bnt {
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #fff;
|
||||||
|
width: 690rpx;
|
||||||
|
height: 90rpx;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 50rpx;
|
||||||
|
line-height: 90rpx;
|
||||||
|
|
||||||
|
/deep/ &.disabled {
|
||||||
|
background: #E3E3E3 !important;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.cash-withdrawal .wrapper .list .tip2 {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #999;
|
||||||
|
text-align: center;
|
||||||
|
margin: 44rpx 0 20rpx 0;
|
||||||
|
}
|
||||||
|
.cash-withdrawal .wrapper .list .value {
|
||||||
|
height: 135rpx;
|
||||||
|
line-height: 135rpx;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
width: 690rpx;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
.cash-withdrawal .wrapper .list .value input {
|
||||||
|
font-size: 80rpx;
|
||||||
|
color: #282828;
|
||||||
|
height: 135rpx;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.cash-withdrawal .wrapper .list .value .placeholder2 {
|
||||||
|
color: #bbb;
|
||||||
|
}
|
||||||
|
.price {
|
||||||
|
color: var(--view-priceColor);
|
||||||
|
}
|
||||||
|
.Bank {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.auto_arrival {
|
||||||
|
text-align: center;
|
||||||
|
padding: 20rpx 0 0 0;
|
||||||
|
|
||||||
|
.input {
|
||||||
|
width: 100%;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
color: #999;
|
||||||
|
height: 120rpx;
|
||||||
|
|
||||||
|
/deep/ uni-input, input {
|
||||||
|
height: 120rpx;
|
||||||
|
font-size: 40rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
uni-toast.uni-mask {
|
||||||
|
background-color: rgba(0, 0, 0, 0.5) !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -982,7 +982,9 @@ export default {
|
||||||
url: `/pages/annex/web_view/index?url=${url}`
|
url: `/pages/annex/web_view/index?url=${url}`
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (['/pages/goods_cate/goods_cate','/pages/plant_grass/index','/pages/order_addcart/order_addcart','/pages/user/index'
|
if (['/pages/goods_cate/goods_cate',
|
||||||
|
// '/pages/plant_grass/index',
|
||||||
|
'/pages/order_addcart/order_addcart','/pages/user/index'
|
||||||
]
|
]
|
||||||
.indexOf(url) == -1) {
|
.indexOf(url) == -1) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue