Przeglądaj źródła

Merge branch 'gyj' of SH-Arbitrate/miniapp into dev

gaogaoyujie 2 lat temu
rodzic
commit
3e7df4eae5

+ 1
- 1
pages/index.vue Wyświetl plik

@@ -54,7 +54,7 @@
54 54
 		    <view class="badge">{{dataCount.caseApplyEvidence}}</view>
55 55
 		    <view class="cardMain">
56 56
 		    </view>
57
-		    <view class="cardMain">
57
+		    <view class="cardMain" style="margin-top: 75rpx;">
58 58
 		      <view class="imgTitle">待案件质证</view>
59 59
 		    </view>    
60 60
 		</view>

+ 12
- 2
pages/realName.vue Wyświetl plik

@@ -1,7 +1,10 @@
1 1
 <template>
2 2
 	<view class="page-body">
3 3
 		<view class="action-btn">
4
-		  <button @click="handleRegister()" class="register-btn cu-btn block bg-blue lg round">点击进行实名认证</button>
4
+		  <button @click="handleRegister()" class="register-btn cu-btn block bg-blue lg round">点击身份证实名认证</button>
5
+		</view>
6
+		<view class="action-btn">
7
+		  <button @click="handlePassport()" class="register-btn cu-btn block bg-blue lg round">点击护照实名注册</button>
5 8
 		</view>
6 9
 	</view>
7 10
 </template>
@@ -17,7 +20,8 @@
17 20
 	export default{
18 21
 		data(){
19 22
 			return{
20
-				eidToken: ""
23
+				eidToken: "",
24
+				vals:1
21 25
 			}
22 26
 		},
23 27
 		methods:{
@@ -58,6 +62,12 @@
58 62
 						})
59 63
 					},
60 64
 				});
65
+			},
66
+			// 点击护照注册
67
+			handlePassport(){
68
+				uni.navigateTo({
69
+					url: `/pages/register?valus=${this.vals}`
70
+				});
61 71
 			}
62 72
 		},
63 73
 		onLoad() {

+ 30
- 17
pages/register.vue Wyświetl plik

@@ -22,7 +22,7 @@
22 22
 			</view>
23 23
 			<view class="input-item flex align-center">
24 24
 				<uni-data-select
25
-						style="text-align: left;"
25
+						style="text-align: left;width: 200px;"
26 26
 						v-model="registerForm.idType"
27 27
 				       :localdata="certificate"
28 28
 					   @change="certificateValue"
@@ -30,7 +30,7 @@
30 30
 			</view>
31 31
 			<view class="input-item flex align-center">
32 32
 				<uni-data-select
33
-						style="text-align: left;"
33
+						style="text-align: left;width: 200px;"
34 34
 						v-model="registerForm.nationality"
35 35
 				       :localdata="nationality"
36 36
 				     ></uni-data-select>
@@ -116,21 +116,30 @@ import constant from '../utils/constant'
116 116
 				nationality: [
117 117
 					{ value: 0, text: "国内" },
118 118
 					{ value: 1, text: "国外" },
119
-				],
119
+				],
120
+				passportVal:{}
120 121
 			}
121 122
 		},
122 123
 		created() {
123 124
 			this.getCode()
124 125
 		},
125
-		onLoad(option) {
126
-			let {
127
-				params
128
-			} = option
129
-			// this.improvedetail = JSON.parse(improvedetail)
130
-			let paramsObj = JSON.parse(params);
131
-			this.registerForm.name = paramsObj.nickName;
132
-			this.registerForm.identityNo = paramsObj.idCard
133
-			this.registerForm.id = paramsObj.id
126
+		onLoad(option) {
127
+			this.sysType = uni.getStorageSync('sysType');
128
+			// this.passportVal = option;
129
+			if(option.valus==1){
130
+				this.registerForm.idType =1
131
+				this.registerForm.nationality =1
132
+			}else{
133
+				let {
134
+					params
135
+				} = option
136
+				// this.improvedetail = JSON.parse(improvedetail)
137
+				let paramsObj = JSON.parse(params);
138
+				this.registerForm.name = paramsObj.nickName;
139
+				this.registerForm.identityNo = paramsObj.idCard
140
+				this.registerForm.id = paramsObj.id
141
+			}
142
+			
134 143
 		},
135 144
 		methods: {
136 145
 			// 获取手机验证码
@@ -228,10 +237,7 @@ import constant from '../utils/constant'
228 237
 			certificateValue(e){
229 238
 				this.registerForm.idType = e
230 239
 			}
231
-		},
232
-		onLoad(){
233
-			this.sysType = uni.getStorageSync('sysType');
234
-		}
240
+		},
235 241
 	}
236 242
 </script>
237 243
 
@@ -244,7 +250,14 @@ import constant from '../utils/constant'
244 250
 	}
245 251
 	::v-deep .uni-icons[data-v-a2e81f6e]{
246 252
 		display: none;
247
-	}
253
+	}
254
+	.uni-icons{
255
+		display: none;
256
+	}
257
+	// ::v-deep .uni-select{
258
+	// 	border: none;
259
+	// 	width: 200%;
260
+	// }
248 261
 	.normal-login-container {
249 262
 		width: 100%;
250 263
 		background-color: #ffffff;

+ 2
- 2
uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue Wyświetl plik

@@ -348,7 +348,7 @@
348 348
 
349 349
 	.uni-select {
350 350
 		font-size: 14px;
351
-		border: 1px solid $uni-border-3;
351
+		// border: 1px solid $uni-border-3;
352 352
 		box-sizing: border-box;
353 353
 		border-radius: 4px;
354 354
 		padding: 0 5px;
@@ -360,7 +360,7 @@
360 360
 		/* #endif */
361 361
 		flex-direction: row;
362 362
 		align-items: center;
363
-		border-bottom: solid 1px $uni-border-3;
363
+		// border-bottom: solid 1px $uni-border-3;
364 364
 		width: 100%;
365 365
 		flex: 1;
366 366
 		height: 35px;