Ver Fonte

前端 小程序 sdy

zhongtianhaoyuan há 3 anos atrás
pai
commit
02737d0b58

+ 1 - 1
config/index.js

@@ -1,7 +1,7 @@
 const dev = {
 	// baseUrl: 'http://192.168.1.120:8090/',
 	baseUrl: 'https://www.zthymaoyi.com',
-	baseUrlNew: 'http://192.168.1.112:8090/',
+	baseUrlNew: 'http://192.168.1.120:8090/',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false
 }

+ 0 - 4
pageA/product/detail.vue

@@ -250,8 +250,6 @@
 				},
 				reason:"",
 				price:undefined,
-				
-
 			};
 		},
 		onShow() {
@@ -318,12 +316,10 @@
 						success: (res) => {
 							console.log('调用成功!')	
 						},
-					
 						// 失败回调
 						fail: (res) => {
 							console.log('调用失败!')
 						}
-						
 					  });
 				}
 				

+ 10 - 6
pageD/identity/driverIdentityLook.vue

@@ -1,15 +1,19 @@
 <template>
 	<view class="center">
 		<view>
-			<view style="margin: 0 auto;" v-if="idup != ''">
+			<view  class="fujians" v-if="idup != ''">
+				<view class="c-row b-b">
+					<text class="picturebiaoti">身份证正面</text>			
+				</view>
 				<image v-bind:src="idup" class="picture"></image>
 			</view>
-			<view style="margin: 0 auto;" v-if="idlow != ''">
+			<view  class="fujians" v-if="idlow != ''">
+				<view class="c-row b-b">
+					<text class="picturebiaoti">身份证反面</text>			
+				</view>
 				<image v-bind:src="idlow" class="picture"></image>
-			</view>	
-			<view class="personalcss">
-				
-			
+			</view>
+			<view class="personalcss">	
 			<view class="c-row b-b">
 				<text class="tit">姓名</text>
 				<view class="con-list">

+ 1 - 1
pages/attestation/indexThree.vue

@@ -124,7 +124,7 @@
 						pageSize: 10,
 						currentPage: 1,
 						commonId: this.userInfo.id,
-						flag: 0
+						pcFlag: 0
 					}, 'application/json;charset=UTF-8').then(res => {
 						console.log("成功连接")
 						this.drivers = res.data.data.records

+ 65 - 3
pages/attestation/indexTwo.vue

@@ -27,9 +27,12 @@
 			</view>
 			<hr style="margin: 10px 0;">
 			<view class="flex">
-				<view class="yuan">
-					<image src="../../static/img/authentication/selected(2).png"
-						style="width: 16px;height: 16px;top: 3px;">设为默认</image>
+				<view class="yuan flex">
+					<view v-bind:class="defaults1" @click="select(item)" v-if="item.basis == 'false'">√</view>
+					<view v-bind:class="defaults2" @click="select(item)" v-if="item.basis == 'true'">√</view>
+					<text @click="select(item)">设为默认</text>
+					<!-- <image src="../../static/img/authentication/selected(2).png"
+						style="width: 16px;height: 16px;top: 3px;">设为默认</image> -->
 				</view>
 				<view class='but' @click="open(item)">更换手机号</view>
 				<view class='but' @click="companyEdit(item)">修改</view>
@@ -99,6 +102,7 @@
 				verifyCode: "",
 				loadStatus: 'loading', //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
 				id:"",
+				defaults:"default1",
 			}
 		},
 		computed: {
@@ -108,6 +112,36 @@
 			this.getList()
 		},
 		methods: {
+			select(item){
+				
+				if(item.basis == "false"){
+					this.defaults = "default2"
+				}else if(item.basis == "true"){
+					this.defaults = "default1"
+				}
+				this.identityAuthenticationInfo.commonId= this.userInfo.id
+				this.identityAuthenticationInfo.defaultFlag = 1
+				return
+				this.$api.doRequest('post', '/identityAuthenticationInfo/api/setDefault',this.identityAuthenticationInfo, 'application/json;charset=UTF-8').then(res => {
+						console.log("成功连接")
+						this.businessman = res.data.data.records
+						for(var i = 0 ; i < this.businessman.length ; i++){
+							if(this.businessman.defaultFlag == 1){
+								this.defaults = "default2"
+							}else{
+								this.defaults = "default1"
+							}
+						}
+					})
+					.catch(res => {
+						uni.showToast({
+							title: res.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					});
+				
+			},
 			nextstep() {
 				if (!this.price) {
 					this.$api.msg('请填写手机号')
@@ -137,6 +171,11 @@
 						commonId: this.userInfo.id
 					}, 'application/json;charset=UTF-8').then(res => {
 						console.log("成功连接")
+						
+						for(var i = 0 ; i < res.data.data.records.length ; i++){
+
+							res.data.data.records[i].basis = "false"
+						}
 						this.businessman = res.data.data.records
 					})
 					.catch(res => {
@@ -501,4 +540,27 @@
 	.btn2 {
 		color: #22C572;
 	}
+	.default1{
+		width: 16px;
+		height: 16px;
+		border: 1px solid #AFB3BF;
+		border-radius: 8px;
+		text-align: center;
+		line-height: 16px;
+		color: #FFFFFF;
+		margin-right: 3px ;
+		margin-top: 2px;
+	}
+	.default2{
+		width: 16px;
+		height: 16px;
+		border: 1px solid #AFB3BF;
+		border-radius: 8px;
+		text-align: center;
+		line-height: 16px;
+		color: #FFFFFF;
+		margin-right: 3px ;
+		margin-top: 2px;
+		background-color: #22C572;
+	}
 </style>