商户开通信用购

This commit is contained in:
THK3121 2023-07-10 13:38:39 +08:00
parent 24415dc4ad
commit 1231351d29
2 changed files with 43 additions and 5 deletions

View File

@ -1,9 +1,9 @@
{ {
"name" : "CRMEB", "name" : "惠农生活",
"appid" : "__UNI__3A527D1", "appid" : "__UNI__3A527D1",
"description" : "", "description" : "",
"versionName" : "1.0.15", "versionName" : "1.0.17",
"versionCode" : 138, "versionCode" : 140,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@ -128,7 +128,18 @@
</view> </view>
<view class="item_cell flex_a_c"> <view class="item_cell flex_a_c">
<view class="sub_title flex_a_c"><i class="iconfont icon-xinghao"></i>开启先货后款</view> <view class="sub_title flex_a_c"><i class="iconfont icon-xinghao"></i>开启先货后款</view>
<u-switch v-model="credit_buy" @change="change"></u-switch>
</view> </view>
<view class="item_cell flex_a_c">
<view class="sub_title flex_a_c"><i class="iconfont icon-xinghao"></i>先货后款结算周期</view>
<input type="number" v-model="settle_cycle" placeholder="请输入 /周期单位为:天">
</view>
<view class="remarks">*周期结算时间范围为:15~100 周期单位为:</view>
<view class="item_cell flex_a_c">
<view class="sub_title flex_a_c"><i class="iconfont icon-xinghao"></i>先货后款结算利率</view>
<input type="number" v-model="interest_rate" placeholder="请输入 /利率单位为: %">
</view>
<view class="remarks">*利率结算范围为:0.035 ~ 0.01 利率单位为:%</view>
<!-- <view class="item_cell"> <!-- <view class="item_cell">
<view class="if_btn flex_a_c_j_sb"> <view class="if_btn flex_a_c_j_sb">
<text class="sub_title">是否开启商户</text> <text class="sub_title">是否开启商户</text>
@ -227,7 +238,10 @@
overTimeShow: false, overTimeShow: false,
mer_address: '', mer_address: '',
id: '', id: '',
mer_certificate: '' mer_certificate: '',
credit_buy:0,//
interest_rate:'',//
settle_cycle:'',//
} }
}, },
onLoad(e) { onLoad(e) {
@ -261,6 +275,18 @@
this.servicePhone = res.data.service_phone this.servicePhone = res.data.service_phone
this.mer_address = res.data.mer_address this.mer_address = res.data.mer_address
this.merState = res.data.mer_state === 1 ? true : false this.merState = res.data.mer_state === 1 ? true : false
this.credit_buy = res.data.credit_buy
if( res.data.settle_cycle == 0){
this.settle_cycle=''
}else{
this.settle_cycle=res.data.settle_cycle
}
if( res.data.interest_rate == 0){
this.interest_rate=''
}else{
this.interest_rate=res.data.interest_rate
}
// console.log('res', res.data); // console.log('res', res.data);
}).catch(err => { }).catch(err => {
// console.log('err', err); // console.log('err', err);
@ -269,6 +295,10 @@
checkboxChange(val) { checkboxChange(val) {
this.delivery_way = val.detail.value this.delivery_way = val.detail.value
}, },
//
change(e){
console.log(e);
},
// //
sel(item, i) { sel(item, i) {
if (item.isCheck == false) { if (item.isCheck == false) {
@ -311,7 +341,10 @@
mer_state: this.merState ? '1' : '0', mer_state: this.merState ? '1' : '0',
type: '2', type: '2',
uploadedqualifications: '', uploadedqualifications: '',
id: this.id id: this.id,
credit_buy:this.credit_buy,
settle_cycle:this.settle_cycle,
interest_rate:this.interest_rate
} }
merchantUpdateAPI(data).then(res => { merchantUpdateAPI(data).then(res => {
Toast(res.message) Toast(res.message)
@ -557,6 +590,11 @@
font-size: 24.56rpx; font-size: 24.56rpx;
color: #CCCCCC; color: #CCCCCC;
} }
.remarks{
margin-left:20px ;
font-size: 24.56rpx;
color: #CCCCCC;
}
.long_lat { .long_lat {
margin: 31.58rpx 0; margin: 31.58rpx 0;