|
|
|
@ -1,5 +1,15 @@ |
|
|
|
|
<template> |
|
|
|
|
<view> |
|
|
|
|
|
|
|
|
|
<!-- tabs栏 --> |
|
|
|
|
<view class=" mart10 marb20 alijus"> |
|
|
|
|
<view class="font16 fcor333 paddtop5 paddbotm5 margle20 marRight40" v-for="(item,index) in platformList" |
|
|
|
|
@click="switchid(item)" :class="[platformType == item.codeValue ? 'fcor089 borbtom fontwig6' : '']" |
|
|
|
|
:key="index"> |
|
|
|
|
{{item.codeName}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="width100 line1"></view> |
|
|
|
|
<!-- <view class="width100 line10" v-if="merLedgerApply !=null && merLedgerApply !=''"></view> --> |
|
|
|
|
<view class="width100 height100p" style="background-color: #eb6a53;" |
|
|
|
|
v-if="merLedgerApply !=null && merLedgerApply !='' && merLedgerApply.status != 1 && merLedgerApply.status != 4"> |
|
|
|
@ -15,7 +25,7 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="username"> |
|
|
|
|
<view class="username" v-if="platformType == 1"> |
|
|
|
|
<view class="namecont">最低分账比例</view> |
|
|
|
|
<input placeholder="请输入最低分账比例" v-model="splitLowestRatio" type="digit" |
|
|
|
|
style="width: 70%;padding-right:10px;text-align: right;" |
|
|
|
@ -40,7 +50,10 @@ |
|
|
|
|
@click="upload()"></image> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="btn" @click="submitbtn()" v-if="merLedgerApply == null || merLedgerApply.status == 3 || merLedgerApply.status == 4">提交审核</view> |
|
|
|
|
<view class="btn" @click="submitbtn()" |
|
|
|
|
v-if="merLedgerApply == '' || merLedgerApply.status == 3 || merLedgerApply.status == 4">提交审核</view> |
|
|
|
|
<view class="btn" @click="bindMerchants()" v-if="merLedgerApply != '' && merLedgerApply.status == 1">分账接收方 |
|
|
|
|
</view> |
|
|
|
|
<view class="height60"></view> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
@ -49,9 +62,10 @@ |
|
|
|
|
import { |
|
|
|
|
getMerLedgerApply, |
|
|
|
|
merLedgerApply |
|
|
|
|
} from '../../../Utils/Api.js' |
|
|
|
|
} from '../../../Utils/Api.js'; |
|
|
|
|
let app = getApp(); |
|
|
|
|
export default { |
|
|
|
|
|
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
splitLowestRatio: '', //最低费率 |
|
|
|
@ -59,7 +73,18 @@ |
|
|
|
|
imgUrls: app.globalData.imgUrl, //图片查看 |
|
|
|
|
reqUrl: app.globalData.url, //请求地址 |
|
|
|
|
merId: '', //商户id |
|
|
|
|
merLedgerApply: '' //是否开通分账数据 |
|
|
|
|
merLedgerApply: '', //是否开通分账数据 |
|
|
|
|
platformList: [{ |
|
|
|
|
id: 1, |
|
|
|
|
codeValue: 1, |
|
|
|
|
codeName: '拉卡拉' |
|
|
|
|
}, { |
|
|
|
|
id: 2, |
|
|
|
|
codeValue: 5, |
|
|
|
|
codeName: '随行付' |
|
|
|
|
}], |
|
|
|
|
platformType: '1', // 渠道ID |
|
|
|
|
platformName: '拉卡拉', //渠道名称 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLoad(options) { |
|
|
|
@ -71,7 +96,7 @@ |
|
|
|
|
getMerLedgerApply() { |
|
|
|
|
let datas = { |
|
|
|
|
merId: this.merId, |
|
|
|
|
platformType: 1 |
|
|
|
|
platformType: this.platformType |
|
|
|
|
} |
|
|
|
|
getMerLedgerApply(datas).then(res => { |
|
|
|
|
if (res.return_code == '000000' && res.return_data != null) { |
|
|
|
@ -79,10 +104,18 @@ |
|
|
|
|
this.splitLowestRatio = res.return_data.splitLowestRatio; |
|
|
|
|
this.powerofattorney = res.return_data.splitEntrustFilePath; |
|
|
|
|
} else { |
|
|
|
|
this.merLedgerApply = null; |
|
|
|
|
this.merLedgerApply = ''; |
|
|
|
|
this.splitLowestRatio = ''; |
|
|
|
|
this.powerofattorney = ''; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//切换id |
|
|
|
|
switchid(item) { |
|
|
|
|
this.platformType = item.codeValue; |
|
|
|
|
this.platformName = item.platformName; |
|
|
|
|
this.getMerLedgerApply(); |
|
|
|
|
}, |
|
|
|
|
//item 放大图片 |
|
|
|
|
perImage(item) { |
|
|
|
|
uni.previewImage({ |
|
|
|
@ -160,7 +193,7 @@ |
|
|
|
|
}, |
|
|
|
|
//提交审核 |
|
|
|
|
submitbtn() { |
|
|
|
|
if (!this.splitLowestRatio) { |
|
|
|
|
if (!this.splitLowestRatio && this.platformType == 1) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '请输入最低分账比例', |
|
|
|
|
icon: "none", |
|
|
|
@ -176,6 +209,9 @@ |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (this.platformType == 1) { |
|
|
|
|
this.splitLowestRatio = ''; |
|
|
|
|
} |
|
|
|
|
uni.showModal({ |
|
|
|
|
title: '提交审核', |
|
|
|
|
content: '确认信息是否正确。', |
|
|
|
@ -186,7 +222,7 @@ |
|
|
|
|
}) |
|
|
|
|
let datas = { |
|
|
|
|
"merId": this.merId, |
|
|
|
|
"platformType": 1, |
|
|
|
|
"platformType": this.platformType, |
|
|
|
|
"splitLowestRatio": this.splitLowestRatio, |
|
|
|
|
"splitEntrustFilePath": this.powerofattorney |
|
|
|
|
} |
|
|
|
@ -216,7 +252,15 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//绑定商户 |
|
|
|
|
bindMerchants() { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/index/bindMerchants/bindMerchants?id=' + this.merLedgerApply.id + |
|
|
|
|
'&merId=' + this.merId + '&platformType=' + this.platformType |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
@ -245,6 +289,10 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.borbtom { |
|
|
|
|
border-bottom: 3px solid #089bf5; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.btn { |
|
|
|
|
color: #FFFFFF; |
|
|
|
|
background-color: #0083f5; |
|
|
|
@ -256,7 +304,7 @@ |
|
|
|
|
justify-content: center; |
|
|
|
|
align-items: center; |
|
|
|
|
border-radius: 10rpx; |
|
|
|
|
font-size: 40rpx; |
|
|
|
|
font-size: 36rpx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.notes { |
|
|
|
|