|
@@ -27,7 +27,7 @@
|
|
|
</view>
|
|
|
<view class="flex row noborder">
|
|
|
<view class="left-text">联系电话</view>
|
|
|
- <u--input placeholder="请输入联系电话" inputAlign='right' border="none" v-model="dataDetails.driverPhone">
|
|
|
+ <u--input maxlength='11' placeholder="请输入联系电话" inputAlign='right' border="none" v-model="dataDetails.driverPhone">
|
|
|
</u--input>
|
|
|
</view>
|
|
|
<view class="flex row noborder" v-if="dataDetails.driverPhone!=userInfo.phone">
|
|
@@ -48,6 +48,10 @@
|
|
|
</view>
|
|
|
<view v-if="dataDetails.cardAddressUrl" @click.stop="uploadImg(1,1)"
|
|
|
class="preview-card-img picture">
|
|
|
+ <view @click.stop="delCard(1)">
|
|
|
+ <image class='del-card' src="@/static/images/common/quxiao@2x.png">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
<image class="" :src="dataDetails.cardAddressUrl" mode="aspectFit" style=""></image>
|
|
|
</view>
|
|
|
|
|
@@ -58,6 +62,10 @@
|
|
|
</view>
|
|
|
<view v-if="dataDetails.cardBackAddressUrl" @click.stop="uploadImg(2,2)"
|
|
|
class="preview-card-img picture">
|
|
|
+ <view @click.stop="delCard(2)">
|
|
|
+ <image class='del-card' src="@/static/images/common/quxiao@2x.png">
|
|
|
+ </image>
|
|
|
+ </view>
|
|
|
<image class="" :src="dataDetails.cardBackAddressUrl" mode="aspectFit" style=""></image>
|
|
|
</view>
|
|
|
<view class="flex row">
|
|
@@ -368,6 +376,17 @@
|
|
|
this.imgTypeSelect()
|
|
|
|
|
|
},
|
|
|
+ delCard(type) {
|
|
|
+ var _this=this
|
|
|
+ switch (type) {
|
|
|
+ case 1:
|
|
|
+ _this.dataDetails.cardAddressUrl = ""
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ _this.dataDetails.cardBackAddressUrl = ""
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ },
|
|
|
// 上传图片
|
|
|
imgTypeSelect() {
|
|
|
// console.log(val)
|
|
@@ -548,44 +567,6 @@
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
- for (let i = 0; i < this.dataDetails.hyDriverPayeeInfoList.length; i++) {
|
|
|
- let _item = this.dataDetails.hyDriverPayeeInfoList[i]
|
|
|
- if (uni.$u.test.isEmpty(_item.payeeAddressUrl)) {
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'error',
|
|
|
- message: "银行卡不能为空!",
|
|
|
- })
|
|
|
- return true
|
|
|
- }
|
|
|
- if (uni.$u.test.isEmpty(_item.bankCard)) {
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'error',
|
|
|
- message: "银行卡号码不能为空!",
|
|
|
- })
|
|
|
- return true
|
|
|
- }
|
|
|
- if (uni.$u.test.isEmpty(_item.bankDeposit)) {
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'error',
|
|
|
- message: "开户行不能为空!",
|
|
|
- })
|
|
|
- return true
|
|
|
- }
|
|
|
- if (uni.$u.test.isEmpty(_item.bankDepositBranch)) {
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'error',
|
|
|
- message: "开户支行不能为空!",
|
|
|
- })
|
|
|
- return true
|
|
|
- }
|
|
|
- if (uni.$u.test.isEmpty(_item.payeeName)) {
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'error',
|
|
|
- message: "收款人姓名不能为空!",
|
|
|
- })
|
|
|
- return true
|
|
|
- }
|
|
|
- }
|
|
|
return false
|
|
|
}
|
|
|
},
|