You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
3.4 KiB
121 lines
3.4 KiB
<template>
|
|
<view>
|
|
<view v-if="merchantList == ''" class="mart60 fotct font14 fcor666">
|
|
<image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image>
|
|
</view>
|
|
<view class="width94 paddbotm10 backcorfff mart20" v-for="(item,indexs) in merchantList" :key="indexs"
|
|
@click="jumpBindMerchants(2,item.id)">
|
|
<view class="font18 font306adb paddtop10 fontwig6 padleft15 alijusstart">
|
|
<view class="width80p">{{item.receiverName}}</view>
|
|
<view class="statucs font14" v-if="item.status == 1 && item.auditStatus == 2">正常</view>
|
|
<view class="otstatucs font14" v-if="item.status == 1 && item.auditStatus == 4">审核中</view>
|
|
<view class="otstatucs font14" v-if="item.status == 2 && item.auditStatus == 1">审核中</view>
|
|
<view class="otstatucs font14" v-if="item.status == 2 && item.auditStatus == 3">审核驳回</view>
|
|
<view class="otstatucs font14" v-if="item.status == 1 && item.auditStatus == 5">审核驳回</view>
|
|
</view>
|
|
<view class="mart10 fcor666 padleft15 font14">绑定时间:
|
|
{{item.createTime | timeFormat('yyyy-mm-dd')}}
|
|
{{item.createTime | timeFormat('hh:mm')}}
|
|
</view>
|
|
<view class="height45 width100 paddbotm10" v-if="item.status == 1 && item.auditStatus == 2 && platformType == 1">
|
|
<button class="btns mart10 margle10" @click.stop="jumpBindMerchants(3,item.id)">解除绑定</button>
|
|
</view>
|
|
</view>
|
|
<image src="../../../static/img/addser.png" mode="widthFix" class="xfimg" @click="jumpBindMerchants(1,'')">
|
|
</image>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
getLedgerReceiverListByMer
|
|
} from '../../../Utils/Api.js';
|
|
export default {
|
|
data() {
|
|
return {
|
|
merchantList: [], //商户列表
|
|
merLedgerId: '', //开通分账ID
|
|
merId: '', //商户id
|
|
platformType: '' //渠道ID
|
|
}
|
|
},
|
|
onLoad(options) {
|
|
this.merId = options.merId;
|
|
this.merLedgerId = options.id;
|
|
this.platformType = options.platformType;
|
|
},
|
|
onShow() {
|
|
this.getLedgerReceiverListByMer();
|
|
},
|
|
methods: {
|
|
//查询开通分账商量列表
|
|
getLedgerReceiverListByMer() {
|
|
let datas = {
|
|
merId: this.merId,
|
|
platformType: this.platformType
|
|
}
|
|
getLedgerReceiverListByMer(datas).then(res => {
|
|
if (res.return_code == '000000' && res.return_data != null) {
|
|
this.merchantList = res.return_data;
|
|
}
|
|
})
|
|
},
|
|
//跳转绑定商户
|
|
jumpBindMerchants(item, item1) {
|
|
uni.navigateTo({
|
|
url: '/pages/index/bindDividedMerchant/bindDividedMerchant?id=' + this.merLedgerId +
|
|
'&typeid=' + item + '&ledgerReceiverId=' + item1 + '&platformType=' + this.platformType
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
page {
|
|
background-color: #f8f9f9;
|
|
}
|
|
|
|
.borbtom {
|
|
border-bottom: 3px solid #089bf5;
|
|
}
|
|
|
|
.font306adb {
|
|
color: #306adb;
|
|
}
|
|
|
|
.xfimg {
|
|
width: 100rpx;
|
|
bottom: 60rpx;
|
|
position: fixed;
|
|
right: 40rpx;
|
|
}
|
|
|
|
//正常状态
|
|
.statucs {
|
|
background-color: #e9f9e5;
|
|
color: #84b878;
|
|
text-align: center;
|
|
padding: 2px 5px;
|
|
}
|
|
|
|
//其他状态
|
|
.otstatucs {
|
|
background-color: #fbeee4;
|
|
color: #db8c73;
|
|
text-align: center;
|
|
padding: 2px 5px;
|
|
}
|
|
|
|
.btns {
|
|
width: 21%;
|
|
float: left;
|
|
height: 35px;
|
|
line-height: 35px;
|
|
background-color: #0083f5;
|
|
color: #FFFFFF;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
padding: 0px;
|
|
}
|
|
</style> |