修改入驻功能

This commit is contained in:
weipengfei 2024-03-04 16:33:20 +08:00
parent fb0e6a33c6
commit ea41437511
2 changed files with 131 additions and 4 deletions

View File

@ -202,6 +202,58 @@
</view>
</view>
</view>
<view class="item" v-if="nature_business==1">
<view class="acea-row row-middle">
<text class="item-name">对公账号</text>
<input type="number" placeholder="请输入对公账号" v-model="merchantData.bank_code"
@input="validateBtn" placeholder-class='placeholder' />
</view>
</view>
<view class="item" v-else>
<view class="acea-row row-middle">
<text class="item-name">银行卡号</text>
<input type="number" placeholder="请输入银行卡号" v-model="merchantData.bank_code"
@input="validateBtn" placeholder-class='placeholder' />
</view>
</view>
<view class="item">
<view class="acea-row row-middle">
<text class="item-name">开户银行</text>
<input type="text" maxlength="30" placeholder="请输入开户银行名称" v-model="merchantData.bank_username"
@input="validateBtn" placeholder-class='placeholder' />
</view>
</view>
<view class="item">
<view class="acea-row row-middle">
<text class="item-name">开户网点</text>
<input type="text" placeholder="请输入开户网点" v-model="merchantData.bank_opening" @input="validateBtn"
placeholder-class='placeholder' />
</view>
</view>
<view class="item" v-if="nature_business==2">
<view class="acea-row row-middle">
<text class="item-name">持卡人</text>
<input type="text" placeholder="请输入持卡人姓名" v-model="merchantData.bank_card_username"
@input="validateBtn" placeholder-class='placeholder' />
</view>
</view>
<view class="item no-border" v-if="nature_business==2">
<view class='acea-row row-middle'>
<text class="item-title" style="margin-right: 20rpx;">请上传银行卡正面照片</text>
<text class="item-desc">(图片格式支持JPGPNGJPEG)</text>
<view class="upload">
<view v-if="bank_front" class='pictrue' @click='uploadpicBack'>
<image :src='bank_front'></image>
</view>
<view v-else class='pictrue acea-row row-center-wrapper row-column' @click='uploadpicBack'>
<text class='iconfont icon-icon25201'></text>
<view>上传图片</view>
</view>
</view>
</view>
</view>
<view class="item">
<view class="acea-row row-middle">
<text class="item-name">联系电话</text>
@ -392,6 +444,7 @@ import { Toast } from '../../../libs/uniApi';
invitation_code: '',
},
business_license: '',//
bank_front: '', //
validate: false,
successful: false,
keyCode: "",
@ -817,6 +870,12 @@ import { Toast } from '../../../libs/uniApi';
that.$set(that, 'pics', that.pics);
});
},
uploadpicBack: function() {
let that = this;
that.$util.uploadImageOne('upload/image', function(res) {
that.bank_front = res.data.path;
});
},
/**
* 上传图片识别文字
*
@ -957,7 +1016,15 @@ import { Toast } from '../../../libs/uniApi';
street_id: this.street_id,
village_id: this.village_id,
is_nmsc: this.isnum,
images: [this.business_license, ...that.pics]
images: [this.business_license, ...that.pics],
financial_bank:{
//
bank_code: this.merchantData.bank_code,
bank: this.merchantData.bank_username,
bank_branch: this.merchantData.bank_opening,
name: this.nature_business == 1 ? that.merchantData.company_name : this.merchantData.bank_card_username,
bank_front: [this.bank_front]
}
}
that.validate = false;
if (that.mer_i_id) {
@ -1231,7 +1298,7 @@ import { Toast } from '../../../libs/uniApi';
.merchantsSettled {
background-image: linear-gradient(var(--view-bntColor21) 0%, var(--view-bntColor22) 100%);
min-height: 2600rpx;
min-height: 3200rpx;
position: relative;
}

View File

@ -101,6 +101,51 @@
</view>
</view>
</view>
<view class="item">
<view class="acea-row row-middle">
<text class="item-name">银行卡号</text>
<input type="number" placeholder="请输入银行卡号" v-model="merchantData.bank_code"
@input="validateBtn" placeholder-class='placeholder' />
</view>
</view>
<view class="item">
<view class="acea-row row-middle">
<text class="item-name">开户银行</text>
<input type="text" maxlength="30" placeholder="请输入开户银行名称" v-model="merchantData.bank_username"
@input="validateBtn" placeholder-class='placeholder' />
</view>
</view>
<view class="item">
<view class="acea-row row-middle">
<text class="item-name">开户网点</text>
<input type="text" placeholder="请输入开户网点" v-model="merchantData.bank_opening" @input="validateBtn"
placeholder-class='placeholder' />
</view>
</view>
<view class="item">
<view class="acea-row row-middle">
<text class="item-name">持卡人</text>
<input type="text" placeholder="请输入持卡人姓名" v-model="merchantData.bank_card_username"
@input="validateBtn" placeholder-class='placeholder' />
</view>
</view>
<view class="item no-border">
<view class='acea-row row-middle'>
<text class="item-title" style="margin-right: 20rpx;">请上传银行卡正面照片</text>
<text class="item-desc">(图片格式支持JPGPNGJPEG)</text>
<view class="upload">
<view v-if="bank_front" class='pictrue' @click='uploadpicBack'>
<image :src='bank_front'></image>
</view>
<view v-else class='pictrue acea-row row-center-wrapper row-column' @click='uploadpicBack'>
<text class='iconfont icon-icon25201'></text>
<view>上传图片</view>
</view>
</view>
</view>
</view>
<view class="item">
<view class="acea-row row-middle">
<text class="item-name">联系电话</text>
@ -316,6 +361,7 @@
index1: 0,
index2: [0, 0, 0],
mer_classification: "",
bank_front: "",
nature_business: 0,
array: [{
category_name: '',
@ -740,6 +786,12 @@
that.$set(that, 'pics', that.pics);
});
},
uploadpicBack: function() {
let that = this;
that.$util.uploadImageOne('upload/image', function(res) {
that.bank_front = res.data.path;
});
},
/**
* 上传图片识别文字
*
@ -881,7 +933,15 @@
street_id: this.street_id,
village_id: this.village_id,
// is_nmsc: this.isnum,
images: [this.business_license, ...that.pics]
images: [this.business_license, ...that.pics],
financial_bank:{
//
bank_code: this.merchantData.bank_code,
bank: this.merchantData.bank_username,
bank_branch: this.merchantData.bank_opening,
name: this.merchantData.bank_card_username,
bank_front: [this.bank_front]
}
}
that.validate = false;
if (that.mer_i_id) {
@ -1091,7 +1151,7 @@
.merchantsSettled {
background-image: linear-gradient(#ff5a32 644rpx, var(--view-bntColor22) 100%);
min-height: 1800rpx;
min-height: 2300rpx;
position: relative;
}