浏览代码

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

gaogaoyujie 2 年前
父节点
当前提交
3e7df4eae5
共有 4 个文件被更改,包括 45 次插入22 次删除
  1. 1
    1
      pages/index.vue
  2. 12
    2
      pages/realName.vue
  3. 30
    17
      pages/register.vue
  4. 2
    2
      uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue

+ 1
- 1
pages/index.vue 查看文件

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

+ 12
- 2
pages/realName.vue 查看文件

1
 <template>
1
 <template>
2
 	<view class="page-body">
2
 	<view class="page-body">
3
 		<view class="action-btn">
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
 		</view>
8
 		</view>
6
 	</view>
9
 	</view>
7
 </template>
10
 </template>
17
 	export default{
20
 	export default{
18
 		data(){
21
 		data(){
19
 			return{
22
 			return{
20
-				eidToken: ""
23
+				eidToken: "",
24
+				vals:1
21
 			}
25
 			}
22
 		},
26
 		},
23
 		methods:{
27
 		methods:{
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
 		onLoad() {
73
 		onLoad() {

+ 30
- 17
pages/register.vue 查看文件

22
 			</view>
22
 			</view>
23
 			<view class="input-item flex align-center">
23
 			<view class="input-item flex align-center">
24
 				<uni-data-select
24
 				<uni-data-select
25
-						style="text-align: left;"
25
+						style="text-align: left;width: 200px;"
26
 						v-model="registerForm.idType"
26
 						v-model="registerForm.idType"
27
 				       :localdata="certificate"
27
 				       :localdata="certificate"
28
 					   @change="certificateValue"
28
 					   @change="certificateValue"
30
 			</view>
30
 			</view>
31
 			<view class="input-item flex align-center">
31
 			<view class="input-item flex align-center">
32
 				<uni-data-select
32
 				<uni-data-select
33
-						style="text-align: left;"
33
+						style="text-align: left;width: 200px;"
34
 						v-model="registerForm.nationality"
34
 						v-model="registerForm.nationality"
35
 				       :localdata="nationality"
35
 				       :localdata="nationality"
36
 				     ></uni-data-select>
36
 				     ></uni-data-select>
116
 				nationality: [
116
 				nationality: [
117
 					{ value: 0, text: "国内" },
117
 					{ value: 0, text: "国内" },
118
 					{ value: 1, text: "国外" },
118
 					{ value: 1, text: "国外" },
119
-				],
119
+				],
120
+				passportVal:{}
120
 			}
121
 			}
121
 		},
122
 		},
122
 		created() {
123
 		created() {
123
 			this.getCode()
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
 		methods: {
144
 		methods: {
136
 			// 获取手机验证码
145
 			// 获取手机验证码
228
 			certificateValue(e){
237
 			certificateValue(e){
229
 				this.registerForm.idType = e
238
 				this.registerForm.idType = e
230
 			}
239
 			}
231
-		},
232
-		onLoad(){
233
-			this.sysType = uni.getStorageSync('sysType');
234
-		}
240
+		},
235
 	}
241
 	}
236
 </script>
242
 </script>
237
 
243
 
244
 	}
250
 	}
245
 	::v-deep .uni-icons[data-v-a2e81f6e]{
251
 	::v-deep .uni-icons[data-v-a2e81f6e]{
246
 		display: none;
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
 	.normal-login-container {
261
 	.normal-login-container {
249
 		width: 100%;
262
 		width: 100%;
250
 		background-color: #ffffff;
263
 		background-color: #ffffff;

+ 2
- 2
uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue 查看文件

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