gjy 2 年 前
コミット
d99963d1db
4 ファイル変更26 行追加43 行削除
  1. 3 1
      config/index.js
  2. 1 1
      pages.json
  3. 2 2
      pages/goodSource/fk.vue
  4. 20 39
      pages/mine/editDriverCertification.vue

+ 3 - 1
config/index.js

@@ -1,6 +1,8 @@
 const dev = {
+	baseUrlNew: 'https://api.changyuntong56.com',
 	// baseUrlNew: 'https://apitest.eliangeyun.com',
-	baseUrlNew: 'http://192.168.110.9:8099',
+		
+	// baseUrlNew: 'http://192.168.110.9:8099',
 	// baseUrlNew: 'http://192.168.110.82:8999',
 	// baseUrlNew: 'http://192.168.1.119:8999',
 	h5Appid: 'wxb66b599f7f61b46f',

+ 1 - 1
pages.json

@@ -515,7 +515,7 @@
 		}, {
 			"path": "pages/goodSource/fk",
 			"style": {
-				"navigationBarTitleText": "反馈",
+				"navigationBarTitleText": "投诉",
 				"enablePullDownRefresh": false
 			}
 

+ 2 - 2
pages/goodSource/fk.vue

@@ -3,8 +3,8 @@
 		<view class="row1 flex flex-space-between">
 			<view>被投诉人</view>
 			<view class='flex'>
-				<image :src="dataDetails.driverPortrait" mode="widthFix"  style="width: 40rpx;height: 40rpx;" class="img_css"> </image>
-				<view>{{dataDetails.cargoOwnerName}}</view>
+				<image :src="dataDetails.cargoOwnerPortrait" mode="widthFix"  style="width: 40rpx;height: 40rpx;" class="img_css"> </image>
+				<view>{{dataDetails.cargoOwnerName?dataDetails.cargoOwnerName:dataDetails.cargoOwner}}</view>
 			</view>
 		</view>
 		<u-line class="line"></u-line>

+ 20 - 39
pages/mine/editDriverCertification.vue

@@ -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
 			}
 		},