Kaynağa Gözat

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

hanchaobo 2 yıl önce
ebeveyn
işleme
64718de258

+ 3
- 1
manifest.json Dosyayı Görüntüle

@@ -49,7 +49,9 @@
49 49
 			"postcss": true
50 50
 		},
51 51
 		"optimization": {
52
-			"subPackages": true
52
+			"subPackages": {
53
+				"subPackages": true
54
+			}
53 55
 		},
54 56
 		"usingComponents": true,
55 57
 		"permission": {}

+ 440
- 270
pages/handlecase/component/newlyAddedCase.vue Dosyayı Görüntüle

@@ -3,14 +3,16 @@
3 3
 		<view class="assignrbitrators">
4 4
 			<uni-forms ref="form" :modelValue="formData" :rules="rules">
5 5
 				<uni-section title="案件信息" type="line" padding></uni-section>
6
+				<uni-forms-item label="案件压缩包:" name="headZip" label-width="120px">
7
+					<uni-file-picker ref="files" file-mediatype="all" return-type='object' v-model="fileListZip"
8
+						:auto-upload="false" @select="selectZip" :limit='1' />
9
+				</uni-forms-item>
6 10
 				<uni-forms-item label="申请人调解请求:" name="arbitratClaims" label-width="120px" required
7
-				:rules="[{required: true,errorMessage: '申请人调解请求不能为空'}]"
8
-				>
9
-					<uni-easyinput  v-model="formData.arbitratClaims" type="textarea" placeholder="请输入申请人调解请求" />
11
+					:rules="[{required: true,errorMessage: '申请人调解请求不能为空'}]">
12
+					<uni-easyinput v-model="formData.arbitratClaims" type="textarea" placeholder="请输入申请人调解请求" />
10 13
 				</uni-forms-item>
11 14
 				<uni-forms-item label="事实和理由:" name="facts" label-width="120px" required
12
-				:rules="[{required: true,errorMessage: '事实和理由不能为空'}]"
13
-				>
15
+					:rules="[{required: true,errorMessage: '事实和理由不能为空'}]">
14 16
 					<uni-easyinput v-model="formData.facts" type="textarea" placeholder="请输入事实和理由" />
15 17
 				</uni-forms-item>
16 18
 				<!-- <uni-forms-item label="案件标的:" name="caseSubjectAmount" label-width="120px" required
@@ -24,15 +26,16 @@
24 26
 					<uni-data-select :localdata="templateList" v-model="formData.templateId"></uni-data-select>
25 27
 				</uni-forms-item> -->
26 28
 				<uni-forms-item label="申请人案件证据资料上传:" name="headImage" label-width="120px">
27
-							<uni-file-picker ref="files" file-mediatype="all" return-type='object' v-model="fileList" :auto-upload="false" @select="select" :limit='1' />
29
+					<uni-file-picker ref="files" file-mediatype="all" return-type='object' v-model="fileList"
30
+						:auto-upload="false" @select="select" :limit='1' />
28 31
 				</uni-forms-item>
29
-				<uni-forms-item label="证据:"  label-width="120px" v-if="ids">
32
+				<uni-forms-item label="证据:" label-width="120px" v-if="ids">
30 33
 					<view class="" v-for="item in formData.caseAttachList">
31 34
 						<uni-link v-if="item.annexType==2" :href="baseUrl+item.annexPath" color="#007BFF"
32 35
 							:text="item.annexName"></uni-link>
33 36
 					</view>
34 37
 				</uni-forms-item>
35
-				<uni-forms-item label="调解申请书:"  label-width="120px"  v-if="ids">
38
+				<uni-forms-item label="调解申请书:" label-width="120px" v-if="ids">
36 39
 					<view class="" v-for="item in formData.caseAttachList">
37 40
 						<uni-link v-if="item.annexType==3" :href="baseUrl+item.annexPath" color="#007BFF"
38 41
 							:text="item.annexName"></uni-link>
@@ -40,222 +43,215 @@
40 43
 				</uni-forms-item>
41 44
 				<uni-section title="双方信息" type="line" padding></uni-section>
42 45
 				<uni-forms-item label="选择机构或自然人" label-width="120px" name="objectiJuris">
43
-					<uni-data-checkbox class='checkbox' 
44
-						:disabled="ids?true:false"
45
-						:localdata="objectiJurisArr"
46
-						v-model="formData.affiliate.organizeFlag"
47
-						@change='clearValidate'></uni-data-checkbox>
46
+					<uni-data-checkbox class='checkbox' :disabled="ids?true:false" :localdata="objectiJurisArr"
47
+						v-model="formData.affiliate.organizeFlag" @change='clearValidate'></uni-data-checkbox>
48 48
 				</uni-forms-item>
49
-				<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '申请人':'申请机构'" :rules="rulesappName" name="affiliate.applicationName" label-width="120px" required >
50
-					<uni-easyinput v-model="formData.affiliate.applicationName" :disabled="disabledApplicat" type="text" :placeholder="formData.affiliate.organizeFlag==0 ? '请输入申请人姓名':'请输入申请机构名称'"/>
49
+				<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '申请人':'申请机构'" :rules="rulesappName"
50
+					name="affiliate.applicationName" label-width="120px" required>
51
+					<uni-easyinput v-model="formData.affiliate.applicationName" :disabled="disabledApplicat" type="text"
52
+						:placeholder="formData.affiliate.organizeFlag==0 ? '请输入申请人姓名':'请输入申请机构名称'" />
51 53
 				</uni-forms-item>
52
-				<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '身份证号码':'机构代码'" name="affiliate.code" label-width="120px" required 
53
-				:rules="rulesappNo">
54
-					<uni-easyinput v-model="formData.affiliate.code" :disabled="disabledApplicat" type="text" :placeholder="formData.affiliate.organizeFlag==0 ? '请输入身份证号码':'请输入统一社会代码'" />
54
+				<uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '身份证号码':'机构代码'" name="affiliate.code"
55
+					label-width="120px" required :rules="rulesappNo">
56
+					<uni-easyinput v-model="formData.affiliate.code" :disabled="disabledApplicat" type="text"
57
+						:placeholder="formData.affiliate.organizeFlag==0 ? '请输入身份证号码':'请输入统一社会代码'" />
55 58
 				</uni-forms-item>
56
-				
57
-				<uni-forms-item label="申请人邮箱:" v-if="formData.affiliate.organizeFlag==0" name="affiliate.applicationEmail" label-width="120px" required
58
-				
59
-				>
60
-					<uni-easyinput v-model="formData.affiliate.applicationEmail"
61
-					:disabled="disabledApplicat"
62
-					 type="text" placeholder="请输入申请人邮箱" />
59
+
60
+				<uni-forms-item label="申请人邮箱:" v-if="formData.affiliate.organizeFlag==0"
61
+					name="affiliate.applicationEmail" label-width="120px" required>
62
+					<uni-easyinput v-model="formData.affiliate.applicationEmail" :disabled="disabledApplicat"
63
+						type="text" placeholder="请输入申请人邮箱" />
63 64
 				</uni-forms-item>
64
-				<uni-forms-item label="申请人电话:" v-if="formData.affiliate.organizeFlag==0" name="affiliate.applicationPhone" label-width="120px" required 
65
-				
66
-				>
67
-					<uni-easyinput v-model="formData.affiliate.applicationPhone" :disabled="disabledApplicat" type="text" placeholder="请输入申请人电话" />
65
+				<uni-forms-item label="申请人电话:" v-if="formData.affiliate.organizeFlag==0"
66
+					name="affiliate.applicationPhone" label-width="120px" required>
67
+					<uni-easyinput v-model="formData.affiliate.applicationPhone" :disabled="disabledApplicat"
68
+						type="text" placeholder="请输入申请人电话" />
68 69
 				</uni-forms-item>
69
-				<uni-forms-item label="法定代表人:" v-if="formData.affiliate.organizeFlag==1" name="affiliate.compLegalPerson" label-width="120px" required
70
-				
71
-				>
70
+				<uni-forms-item label="法定代表人:" v-if="formData.affiliate.organizeFlag==1"
71
+					name="affiliate.compLegalPerson" label-width="120px" required>
72 72
 					<uni-easyinput v-model="formData.affiliate.compLegalPerson" type="text" placeholder="请输入法定代表人" />
73 73
 				</uni-forms-item>
74 74
 				<uni-forms-item label="申请人住所:" name="affiliate.applicantHome" label-width="120px" required
75
-				:rules="[{required: true,errorMessage: '申请人住所不能为空'}]"
76
-				>
75
+					:rules="[{required: true,errorMessage: '申请人住所不能为空'}]">
77 76
 					<uni-easyinput v-model="formData.affiliate.applicantHome" type="text" placeholder="请输入申请人住所" />
78 77
 				</uni-forms-item>
79 78
 				<uni-forms-item label="申请人联系地址:" name="affiliate.applicantAddress" label-width="120px" required
80
-				:rules="[{required: true,errorMessage: '申请人联系地址不能为空'}]"
81
-				>
79
+					:rules="[{required: true,errorMessage: '申请人联系地址不能为空'}]">
82 80
 					<uni-easyinput v-model="formData.affiliate.applicantAddress" type="text" placeholder="请输入申请人联系地址" />
83 81
 				</uni-forms-item>
84
-				<uni-forms-item label="代理人联系电话:"  label-width="120px">
85
-					<uni-easyinput v-model="formData.affiliate.contactTelphoneAgent" :disabled="disabledVal" type="text" placeholder="请输入代理人联系电话" />
82
+				<uni-forms-item label="代理人联系电话:" label-width="120px">
83
+					<uni-easyinput v-model="formData.affiliate.contactTelphoneAgent" :disabled="disabledVal" type="text"
84
+						placeholder="请输入代理人联系电话" />
86 85
 				</uni-forms-item>
87
-				<uni-forms-item label="代理人姓名:" 	 label-width="120px">
88
-					<uni-easyinput v-model="formData.affiliate.nameAgent" :disabled="disabledVal" type="text" placeholder="请输入委托代理人姓名" />
86
+				<uni-forms-item label="代理人姓名:" label-width="120px">
87
+					<uni-easyinput v-model="formData.affiliate.nameAgent" :disabled="disabledVal" type="text"
88
+						placeholder="请输入委托代理人姓名" />
89 89
 				</uni-forms-item>
90
-				<uni-forms-item label="代理人邮箱:"  label-width="120px">
91
-					<uni-easyinput v-model="formData.affiliate.agentEmail" :disabled="disabledVal" type="text" placeholder="请输入代理人邮箱" />
90
+				<uni-forms-item label="代理人邮箱:" label-width="120px">
91
+					<uni-easyinput v-model="formData.affiliate.agentEmail" :disabled="disabledVal" type="text"
92
+						placeholder="请输入代理人邮箱" />
92 93
 				</uni-forms-item>
93 94
 				<uni-forms-item label="被申请人姓名:" name="affiliate.respondentName" label-width="120px" required
94
-				:rules="[{required: true,errorMessage: '被申请人姓名不能为空'}]"
95
-				>
95
+					:rules="[{required: true,errorMessage: '被申请人姓名不能为空'}]">
96 96
 					<uni-easyinput v-model="formData.affiliate.respondentName" type="text" placeholder="请输入被申请人姓名" />
97 97
 				</uni-forms-item>
98
-				<uni-forms-item label="被申请人联系电话:" name="affiliate.respondentPhone" label-width="120px" required
99
-				:rules="[
98
+				<uni-forms-item label="被申请人联系电话:" name="affiliate.respondentPhone" label-width="120px" required :rules="[
100 99
 					{required: true,errorMessage: '被申请人联系电话不能为空'},
101 100
 					{pattern:'^[1][3,4,5,6,7,8,9][0-9]{9}$',errorMessage:'被申请人联系电话格式不正确'}
102
-					]"
103
-				>
101
+					]">
104 102
 					<uni-easyinput v-model="formData.affiliate.respondentPhone" type="text" placeholder="请输入被申请人联系电话" />
105 103
 				</uni-forms-item>
106 104
 				<uni-forms-item label="被申请人身份证号:" name="affiliate.respondentIdentityNum" label-width="120px" required
107
-				:rules="[
105
+					:rules="[
108 106
 					{required: true,errorMessage: '被申请人身份证号不能为空'},
109 107
 					{pattern:'^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$',errorMessage:'被申请人身份证格式错误'}
110 108
 					
111
-					]"
112
-				>
113
-					<uni-easyinput v-model="formData.affiliate.respondentIdentityNum" @blur="handleBlur" type="text" placeholder="请输入被申请人身份证号" />
109
+					]">
110
+					<uni-easyinput v-model="formData.affiliate.respondentIdentityNum" @blur="handleBlur" type="text"
111
+						placeholder="请输入被申请人身份证号" />
114 112
 				</uni-forms-item>
115 113
 				<uni-forms-item label="被申请人性别" label-width="120px" required>
116
-					<uni-data-checkbox class='checkbox'
117
-						:disabled='true'
118
-						v-model="formData.affiliate.respondentSex"
114
+					<uni-data-checkbox class='checkbox' :disabled='true' v-model="formData.affiliate.respondentSex"
119 115
 						:localdata="respondentSexy"></uni-data-checkbox>
120 116
 				</uni-forms-item>
121 117
 				<uni-forms-item label="被申请人出生年月日" label-width="120px">
122
-					<uni-datetime-picker v-model="formData.affiliate.respondentBirth" :disabled='true' type="date" :clear-icon="false" />
118
+					<uni-datetime-picker v-model="formData.affiliate.respondentBirth" :disabled='true' type="date"
119
+						:clear-icon="false" />
123 120
 				</uni-forms-item>
124 121
 				<uni-forms-item label="被申请人住所:" name="affiliate.respondentHome" label-width="120px" required
125
-				:rules="[{required: true,errorMessage: '被申请人住所不能为空'}]"
126
-				>
122
+					:rules="[{required: true,errorMessage: '被申请人住所不能为空'}]">
127 123
 					<uni-easyinput v-model="formData.affiliate.respondentHome" type="text" placeholder="请输入被申请人住所" />
128 124
 				</uni-forms-item>
129
-				<uni-forms-item label="被申请人邮箱:" name="affiliate.respondentEmail" label-width="120px" required
130
-				:rules="[
125
+				<uni-forms-item label="被申请人邮箱:" name="affiliate.respondentEmail" label-width="120px" required :rules="[
131 126
 					{required: true,errorMessage: '被申请人邮箱不能为空'},
132 127
 					{pattern:'^\\S+?@\\S+?\\.\\S+?$',errorMessage:'邮箱格式不正确'}
133 128
 					
134
-					]"	
135
-				>
129
+					]">
136 130
 					<uni-easyinput v-model="formData.affiliate.respondentEmail" type="text" placeholder="请输入被申请人邮箱" />
137 131
 				</uni-forms-item>
138 132
 			</uni-forms>
139 133
 			<view class="determine" style="text-align: center;">
140
-				<button  class="mini-btn" 
141
-				type="primary" size="mini" 
142
-				@tap="submitReasont">确定</button>
143
-				<button style="margin-left:30rpx;" class="mini-btn" 
144
-				type="default" size="mini" 
145
-				@tap="cencalBut">取消</button>
134
+				<button class="mini-btn" type="primary" size="mini" @tap="submitReasont">确定</button>
135
+				<button style="margin-left:30rpx;" class="mini-btn" type="default" size="mini"
136
+					@tap="cencalBut">取消</button>
146 137
 			</view>
147 138
 		</view>
148
-	</view>
149
-</template>
150
-
139
+	</view>
140
+</template>
141
+
151 142
 <script>
152
-	import {getTemplate,getInfoByIdCard,caseApplicationInsert,updateComfire,caseApplicationSelectById,getUserInfo} from '../../../api/handlecase/index.js'
143
+	import {
144
+		getTemplate,
145
+		getInfoByIdCard,
146
+		caseApplicationInsert,
147
+		updateComfire,
148
+		caseApplicationSelectById,
149
+		getUserInfo
150
+	} from '../../../api/handlecase/index.js'
153 151
 	import {
154 152
 		getToken
155 153
 	} from '@/utils/auth'
156 154
 	import config from '@/config'
157 155
 	export default {
158 156
 		data() {
159
-				return {
160
-					baseUrl : config.baseUrlTJ,
161
-					formData:{
162
-						affiliate:{
163
-							organizeFlag: 0,
164
-							respondentSex: 0,
165
-						},
166
-						columnValueList: [],
167
-						caseAttachList: [],
157
+			return {
158
+				baseUrl: config.baseUrlTJ,
159
+				formZipData: {},
160
+				formData: {
161
+					affiliate: {
162
+						organizeFlag: 0,
163
+						respondentSex: 0,
168 164
 					},
169
-					getUserInfoList:{},
170
-					ids:null,
171
-					tempFilePaths: null,
172
-					templateList:[],
173
-					objectiJurisArr: [{
174
-						text: '自然人',
175
-						value: 0
176
-					}, {
177
-						text: '机构',
178
-						value: 1
179
-					}],
180
-					respondentSexy: [
181
-						{
182
-							text: '女',
183
-							value: 1
184
-						}, {
185
-							text: '男',
186
-							value: 0
187
-						}
188
-					],
189
-					disabledVal:false,
190
-					disabledApplicat:false,
191
-					fileList: {},
192
-					rules:{},
193
-					rulesappName: [
194
-						{  
195
-							required: true,    
196
-							errorMessage: '输入信息不能为空',    
197
-						},{
198
-							
199
-							validateFunction: (rule, value, data, callback) => {
200
-								//判断手机号格式时候正确
201
-								if (value.length<1) {
202
-									if(this.formData.affiliate.organizeFlag == 0){
203
-										callback('请输入申请人姓名')
204
-									}else{
205
-										callback('请输入机构名称')
206
-									}
207
-								}
208
-								return true
165
+					columnValueList: [],
166
+					caseAttachList: [],
167
+				},
168
+				getUserInfoList: {},
169
+				ids: null,
170
+				tempFilePaths: null,
171
+				tempFilePathsZip: null,
172
+				templateList: [],
173
+				objectiJurisArr: [{
174
+					text: '自然人',
175
+					value: 0
176
+				}, {
177
+					text: '机构',
178
+					value: 1
179
+				}],
180
+				respondentSexy: [{
181
+					text: '女',
182
+					value: 1
183
+				}, {
184
+					text: '男',
185
+					value: 0
186
+				}],
187
+				disabledVal: false,
188
+				disabledApplicat: false,
189
+				fileList: {},
190
+				fileListZip: {},
191
+				rules: {},
192
+				rulesappName: [{
193
+					required: true,
194
+					errorMessage: '输入信息不能为空',
195
+				}, {
196
+
197
+					validateFunction: (rule, value, data, callback) => {
198
+						//判断手机号格式时候正确
199
+						if (value.length < 1) {
200
+							if (this.formData.affiliate.organizeFlag == 0) {
201
+								callback('请输入申请人姓名')
202
+							} else {
203
+								callback('请输入机构名称')
209 204
 							}
210
-													
211 205
 						}
212
-					],
213
-					rulesappNo: [
214
-						{  
215
-							required: true,    
216
-							errorMessage:'输入信息不能为空',    
217
-						},{
218
-							
219
-							validateFunction: (rule, value, data, callback) => {
220
-								//判断手机号格
221
-								if(this.formData.affiliate.organizeFlag == 0){
222
-									let pNoReg = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
223
-									if(!pNoReg.test(value)){
224
-										callback('请输入正确的身份证号码')
225
-									}
226
-								}else{
227
-									if(!value){
228
-										callback('请输入正确的机构信息')
229
-									}
230
-								}
231
-								return true
206
+						return true
207
+					}
208
+
209
+				}],
210
+				rulesappNo: [{
211
+					required: true,
212
+					errorMessage: '输入信息不能为空',
213
+				}, {
214
+
215
+					validateFunction: (rule, value, data, callback) => {
216
+						//判断手机号格
217
+						if (this.formData.affiliate.organizeFlag == 0) {
218
+							let pNoReg =
219
+								/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
220
+							if (!pNoReg.test(value)) {
221
+								callback('请输入正确的身份证号码')
222
+							}
223
+						} else {
224
+							if (!value) {
225
+								callback('请输入正确的机构信息')
232 226
 							}
233
-													
234 227
 						}
235
-					]
236
-				}
237
-			
238
-			
228
+						return true
229
+					}
230
+
231
+				}]
232
+			}
233
+
234
+
239 235
 		},
240
-		methods:{
241
-			submitReasont(){
242
-				this.$refs.form.validate().then(res=>{
236
+		methods: {
237
+			submitReasont() {
238
+				this.$refs.form.validate().then(res => {
243 239
 					console.log(this.ids)
244
-						if(this.ids){
245
-							this.modifyData(this.formData)
246
-						}else{
247
-							this.insertFn(this.formData)
248
-						}
249
-						
250
-					}).catch(err =>{
251
-						
240
+					if (this.ids) {
241
+						this.modifyData(this.formData)
242
+					} else {
243
+						this.insertFn(this.formData)
244
+					}
245
+
246
+				}).catch(err => {
247
+
252 248
 				})
253 249
 			},
254 250
 			// 获取新增默认值
255
-			getUserInfoNumber(){
256
-				getUserInfo().then(res =>{
251
+			getUserInfoNumber() {
252
+				getUserInfo().then(res => {
257 253
 					this.getUserInfoList = res.data
258
-					if(this.formData.affiliate.organizeFlag == 0){
254
+					if (this.formData.affiliate.organizeFlag == 0) {
259 255
 						this.$set(this.formData.affiliate, 'applicationName', res.data.nickName)
260 256
 						this.$set(this.formData.affiliate, 'code', res.data.idCard)
261 257
 						this.$set(this.formData.affiliate, 'applicationEmail', res.data.email)
@@ -263,7 +259,7 @@
263 259
 						// this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName)
264 260
 						this.disabledVal = false
265 261
 						this.disabledApplicat = true
266
-					}else if(this.formData.affiliate.organizeFlag == 1){
262
+					} else if (this.formData.affiliate.organizeFlag == 1) {
267 263
 						console.log(this.formData.affiliate.organizeFlag)
268 264
 						this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName)
269 265
 						this.$set(this.formData.affiliate, 'agentEmail', res.data.email)
@@ -271,132 +267,300 @@
271 267
 						this.disabledVal = true
272 268
 						this.disabledApplicat = false
273 269
 					}
274
-					
270
+
275 271
 				})
276 272
 			},
277
-			clearValidate(val){
278
-				if(this.formData.affiliate.organizeFlag == 0){
273
+			clearValidate(val) {
274
+				if (this.formData.affiliate.organizeFlag == 0) {
279 275
 					this.$set(this.formData.affiliate, 'applicationName', this.getUserInfoList.nickName)
280 276
 					this.$set(this.formData.affiliate, 'code', this.getUserInfoList.idCard)
281 277
 					this.$set(this.formData.affiliate, 'applicationEmail', this.getUserInfoList.email)
282 278
 					this.$set(this.formData.affiliate, 'applicationPhone', this.getUserInfoList.phonenumber)
283
-					this.$set(this.formData.affiliate, 'nameAgent', null)
284
-					this.$set(this.formData.affiliate, 'agentEmail', null)
285
-					this.$set(this.formData.affiliate, 'contactTelphoneAgent', null)
279
+					if (this.formZipData.affiliate) {
280
+						this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
281
+						this.$set(this.formData, 'facts', this.formZipData.facts);
282
+						this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate
283
+							.applicantHome);
284
+						this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate
285
+							.applicantAddress);
286
+						this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.formZipData
287
+							.affiliate.contactTelphoneAgent);
288
+						this.$set(this.formData.affiliate, 'nameAgent', this.formZipData.affiliate
289
+							.nameAgent);
290
+						this.$set(this.formData.affiliate, 'agentEmail', this.formZipData.affiliate
291
+							.agentEmail);
292
+						this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate
293
+							.respondentName);
294
+						this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate
295
+							.respondentPhone);
296
+						this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData
297
+							.affiliate.respondentIdentityNum);
298
+						this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData
299
+							.affiliate.respondentSex));
300
+						this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate
301
+							.respondentBirth);
302
+						this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate
303
+							.respondentHome);
304
+						this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate
305
+							.respondentEmail);
306
+						this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate
307
+							.compLegalPerson);
308
+					} else {
309
+						this.$set(this.formData.affiliate, 'nameAgent', null)
310
+						this.$set(this.formData.affiliate, 'agentEmail', null)
311
+						this.$set(this.formData.affiliate, 'contactTelphoneAgent', null)
312
+					}
286 313
 					this.disabledVal = false
287 314
 					this.disabledApplicat = true
288
-				}else if(this.formData.affiliate.organizeFlag == 1){
315
+				} else if (this.formData.affiliate.organizeFlag == 1) {
289 316
 					this.$set(this.formData.affiliate, 'nameAgent', this.getUserInfoList.nickName)
290 317
 					this.$set(this.formData.affiliate, 'agentEmail', this.getUserInfoList.email)
291 318
 					this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.getUserInfoList.phonenumber)
292
-					this.$set(this.formData.affiliate, 'applicationName', null)
293
-					this.$set(this.formData.affiliate, 'code', null)
294
-					this.$set(this.formData.affiliate, 'applicationEmail', null)
295
-					this.$set(this.formData.affiliate, 'applicationPhone', null)
319
+					if (this.formZipData.affiliate) {
320
+						this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
321
+						this.$set(this.formData, 'facts', this.formZipData.facts);
322
+						this.$set(this.formData.affiliate, 'applicationName', this.formZipData.affiliate
323
+							.applicationName);
324
+						this.$set(this.formData.affiliate, 'code', this.formZipData.affiliate.code);
325
+						this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate
326
+							.applicantHome);
327
+						this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate
328
+							.applicantAddress);
329
+						this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate
330
+							.compLegalPerson);
331
+						this.$set(this.formData.affiliate, 'applicationEmail', this.formZipData.affiliate
332
+							.applicationEmail);
333
+						this.$set(this.formData.affiliate, 'applicationPhone', this.formZipData.affiliate
334
+							.applicationPhone);
335
+						this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate
336
+							.respondentName);
337
+						this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate
338
+							.respondentPhone);
339
+						this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData
340
+							.affiliate.respondentIdentityNum);
341
+						this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData
342
+							.affiliate.respondentSex));
343
+						this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate
344
+							.respondentBirth);
345
+						this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate
346
+							.respondentHome);
347
+						this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate
348
+							.respondentEmail);
349
+					} else {
350
+						this.$set(this.formData.affiliate, 'applicationName', null)
351
+						this.$set(this.formData.affiliate, 'code', null)
352
+						this.$set(this.formData.affiliate, 'applicationEmail', null)
353
+						this.$set(this.formData.affiliate, 'applicationPhone', null)
354
+					}
296 355
 					this.disabledVal = true
297 356
 					this.disabledApplicat = false
298 357
 				}
299
-					// this.formData.affiliate.applicationName =null
300
-					// this.formData.affiliate.code =null
301
-				 this.$refs["form"].clearValidate()
358
+				// this.formData.affiliate.applicationName =null
359
+				// this.formData.affiliate.code =null
360
+				this.$refs["form"].clearValidate()
302 361
 			},
303 362
 			/** 获取裁决书模板 */
304 363
 			getTemplateFn(data) {
305
-			      getTemplate(data).then((res) => {
306
-			        //this.templateList = res.rows;
307
-					res.rows.forEach(item=>{
308
-						this.templateList.push({value:item.id,text:item.temName})
364
+				getTemplate(data).then((res) => {
365
+					//this.templateList = res.rows;
366
+					res.rows.forEach(item => {
367
+						this.templateList.push({
368
+							value: item.id,
369
+							text: item.temName
370
+						})
309 371
 					})
310
-			      });
372
+				});
373
+			},
374
+			/** 根据案件id获取对应信息 */
375
+			caseApplicationSelectByIdFn(data) {
376
+				caseApplicationSelectById(data).then(res => {
377
+					res.data.affiliate.respondentSex = Number(res.data.affiliate.respondentSex)
378
+					this.formData = res.data
379
+					console.log(this.formData)
380
+				})
311 381
 			},
312
-			 /** 根据案件id获取对应信息 */
313
-			 caseApplicationSelectByIdFn(data) {
314
-				  caseApplicationSelectById(data).then(res=>{
315
-					 res.data.affiliate.respondentSex = Number(res.data.affiliate.respondentSex)
316
-					 this.formData = res.data
317
-					 console.log( this.formData)
318
-				  })
319
-			 },
320 382
 			// 被申请人获取性别出生年月
321
-			handleBlur(){
383
+			handleBlur() {
322 384
 				let idCards = {
323
-				        idCard: this.formData.affiliate.respondentIdentityNum,
324
-				      };
325
-				getInfoByIdCard(idCards).then(res=>{
385
+					idCard: this.formData.affiliate.respondentIdentityNum,
386
+				};
387
+				getInfoByIdCard(idCards).then(res => {
326 388
 					this.formData.affiliate.respondentSex = Number(res.respondentSex);
327 389
 					this.formData.affiliate.respondentBirth = res.respondentBirth;
328 390
 				})
329 391
 			},
330 392
 			// 新增案件
331
-			    insertFn(data) {
332
-			      caseApplicationInsert(data).then((res) => {
333
-					  uni.showToast({
334
-					  	title: '新增成功',
335
-					  	icon: 'none',
336
-					  	duration: 1000
337
-					  })
338
-					  uni.navigateTo({
339
-						  url:'../index'
340
-					  })
341
-					  // this.$router.go(-1)
342
-			      });
393
+			insertFn(data) {
394
+				caseApplicationInsert(data).then((res) => {
395
+					uni.showToast({
396
+						title: '新增成功',
397
+						icon: 'none',
398
+						duration: 1000
399
+					})
400
+					uni.navigateTo({
401
+						url: '../index'
402
+					})
403
+					// this.$router.go(-1)
404
+				});
343 405
 			},
344 406
 			//修改案件
345
-				modifyData(data) {
346
-				      updateComfire(data).then((res) => {
347
-				        uni.showToast({
348
-				        	title: '修改成功',
349
-				        	icon: 'none',
350
-				        	duration: 1000
351
-				        })
352
-				        uni.navigateTo({
353
-				        	url:'../index'
354
-				        })
355
-				      });
356
-				},
357
-				// 文件上传
358
-				select(e) {
359
-					this.tempFilePaths = e.tempFilePaths;
360
-					// loading
361
-					uni.showLoading({
362
-						title: '上传中'
363
-					});
364
-					uni.uploadFile({
365
-						url: config.baseUrlTJ + "/common/upload",
366
-						filePath: this.tempFilePaths[0],
367
-						header: {
368
-							Authorization: getToken() || '',
369
-						},
370
-						formData: {
371
-							annexType: 2,
372
-							id: this.formData.id
373
-						},
374
-						name: 'file',
375
-						success: (res) => {
376
-							let result = JSON.parse(res.data)
377
-							 this.formData.caseAttachList.push({
378
-							        annexId: result.annexId,
379
-									annexName: result.fileName
380
-							  });
381
-							console.log(result.fileName)
382
-							uni.showToast({
383
-								title: '上传成功',
384
-								icon: 'none',
385
-								duration: 1000
386
-							})
387
-							uni.hideLoading();
388
-						},
389
-						fail: (err) => {
390
-							uni.showToast({
391
-								title: '上传失败',
392
-								icon: 'none',
393
-								duration: 1000
394
-							})
395
-							uni.hideLoading()
396
-						}
407
+			modifyData(data) {
408
+				updateComfire(data).then((res) => {
409
+					uni.showToast({
410
+						title: '修改成功',
411
+						icon: 'none',
412
+						duration: 1000
397 413
 					})
398
-				},
399
-			cencalBut(){
414
+					uni.navigateTo({
415
+						url: '../index'
416
+					})
417
+				});
418
+			},
419
+			// 压缩包上传
420
+			selectZip(e) {
421
+				if (e.tempFiles[0].extname != 'zip') {
422
+					uni.showToast({
423
+						title: '上传类型为zip',
424
+						icon: 'none',
425
+						duration: 1000
426
+					})
427
+					return
428
+				}
429
+				// loading
430
+				this.tempFilePathsZip = e.tempFilePaths;
431
+				uni.showLoading({
432
+					title: '上传中'
433
+				});
434
+				uni.uploadFile({
435
+					url: config.baseUrlTJ + "/caseApplication/userIdentify",
436
+					filePath: this.tempFilePathsZip[0],
437
+					header: {
438
+						Authorization: getToken() || '',
439
+					},
440
+					name: 'file',
441
+					success: (res) => {
442
+						let result = JSON.parse(res.data)
443
+						uni.showToast({
444
+							title: '上传成功',
445
+							icon: 'none',
446
+							duration: 1000
447
+						})
448
+						this.formZipData = result.data;
449
+						if (this.formData.affiliate.organizeFlag == 0) {
450
+							this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
451
+							this.$set(this.formData, 'facts', this.formZipData.facts);
452
+							this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate
453
+								.applicantHome);
454
+							this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate
455
+								.applicantAddress);
456
+							this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.formZipData
457
+								.affiliate.contactTelphoneAgent);
458
+							this.$set(this.formData.affiliate, 'nameAgent', this.formZipData.affiliate
459
+								.nameAgent);
460
+							this.$set(this.formData.affiliate, 'agentEmail', this.formZipData.affiliate
461
+								.agentEmail);
462
+							this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate
463
+								.respondentName);
464
+							this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate
465
+								.respondentPhone);
466
+							this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData
467
+								.affiliate.respondentIdentityNum);
468
+							this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData
469
+								.affiliate.respondentSex));
470
+							this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate
471
+								.respondentBirth);
472
+							this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate
473
+								.respondentHome);
474
+							this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate
475
+								.respondentEmail);
476
+							this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate
477
+								.compLegalPerson);
478
+						} else if (this.formData.affiliate.organizeFlag == 1) {
479
+							this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
480
+							this.$set(this.formData, 'facts', this.formZipData.facts);
481
+							this.$set(this.formData.affiliate, 'applicationName', this.formZipData.affiliate
482
+								.applicationName);
483
+							this.$set(this.formData.affiliate, 'code', this.formZipData.affiliate.code);
484
+							this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate
485
+								.applicantHome);
486
+							this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate
487
+								.applicantAddress);
488
+							this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate
489
+								.compLegalPerson);
490
+							this.$set(this.formData.affiliate, 'applicationEmail', this.formZipData.affiliate
491
+								.applicationEmail);
492
+							this.$set(this.formData.affiliate, 'applicationPhone', this.formZipData.affiliate
493
+								.applicationPhone);
494
+							this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate
495
+								.respondentName);
496
+							this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate
497
+								.respondentPhone);
498
+							this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData
499
+								.affiliate.respondentIdentityNum);
500
+							this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData
501
+								.affiliate.respondentSex));
502
+							this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate
503
+								.respondentBirth);
504
+							this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate
505
+								.respondentHome);
506
+							this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate
507
+								.respondentEmail);
508
+						}
509
+						uni.hideLoading();
510
+					},
511
+					fail: (err) => {
512
+						uni.showToast({
513
+							title: '上传失败',
514
+							icon: 'none',
515
+							duration: 1000
516
+						})
517
+						uni.hideLoading()
518
+					}
519
+				})
520
+			},
521
+			// 文件上传
522
+			select(e) {
523
+				this.tempFilePaths = e.tempFilePaths;
524
+				// loading
525
+				uni.showLoading({
526
+					title: '上传中'
527
+				});
528
+				uni.uploadFile({
529
+					url: config.baseUrlTJ + "/common/upload",
530
+					filePath: this.tempFilePaths[0],
531
+					header: {
532
+						Authorization: getToken() || '',
533
+					},
534
+					formData: {
535
+						annexType: 2,
536
+						id: this.formData.id
537
+					},
538
+					name: 'file',
539
+					success: (res) => {
540
+						let result = JSON.parse(res.data)
541
+						this.formData.caseAttachList.push({
542
+							annexId: result.annexId,
543
+							annexName: result.fileName
544
+						});
545
+						console.log(result.fileName)
546
+						uni.showToast({
547
+							title: '上传成功',
548
+							icon: 'none',
549
+							duration: 1000
550
+						})
551
+						uni.hideLoading();
552
+					},
553
+					fail: (err) => {
554
+						uni.showToast({
555
+							title: '上传失败',
556
+							icon: 'none',
557
+							duration: 1000
558
+						})
559
+						uni.hideLoading()
560
+					}
561
+				})
562
+			},
563
+			cencalBut() {
400 564
 				uni.navigateBack({
401 565
 					delta: 1
402 566
 				})
@@ -404,27 +568,33 @@
404 568
 		},
405 569
 		onLoad(data) {
406 570
 			this.ids = data.id
407
-			if(this.ids){
408
-				this.caseApplicationSelectByIdFn({id:data.id})
409
-				uni.setNavigationBarTitle({title:"案件修改"})
410
-			}else{
411
-				uni.setNavigationBarTitle({title:"案件新增"})
571
+			if (this.ids) {
572
+				this.caseApplicationSelectByIdFn({
573
+					id: data.id
574
+				})
575
+				uni.setNavigationBarTitle({
576
+					title: "案件修改"
577
+				})
578
+			} else {
579
+				uni.setNavigationBarTitle({
580
+					title: "案件新增"
581
+				})
412 582
 			}
413 583
 			this.getTemplateFn()
414
-			this.getUserInfoNumber()	
584
+			this.getUserInfoNumber()
415 585
 		},
416 586
 		onReady() {
417 587
 			this.$refs.form.setRules(this.rules)
418 588
 		}
419 589
 	}
420
-	
421
-</script>
422
-
590
+</script>
591
+
423 592
 <style lang="scss">
424 593
 	page {
425 594
 		background-color: #ffffff;
426 595
 	}
427
-	.assignrbitrators{
596
+
597
+	.assignrbitrators {
428 598
 		margin: 30rpx;
429
-	}
599
+	}
430 600
 </style>

+ 221
- 219
pages/login.vue Dosyayı Görüntüle

@@ -1,246 +1,248 @@
1
-<template>
2
-	<view class="normal-login-container">
3
-		<view class="logo-content align-center justify-center flex" v-if="logSyste==1">
4
-			<image style="width: 100rpx;height: 100rpx;" :src="globalConfig.appInfo.logo" mode="widthFix">
5
-			</image>
6
-			<text class="title">仲裁平台</text>
1
+<template>
2
+	<view class="normal-login-container">
3
+		<view class="logo-content align-center justify-center flex" v-if="logSyste==1">
4
+			<image style="width: 100rpx;height: 100rpx;" :src="globalConfig.appInfo.logo" mode="widthFix">
5
+			</image>
6
+			<text class="title">仲裁平台</text>
7 7
 		</view>
8 8
 		<view class="logo-content align-center justify-center flex" v-if="logSyste==2">
9
-			<image style="width: 100rpx;height: 100rpx;" src="../static/refree.png" mode="widthFix">
9
+			<image style="width: 100rpx;height: 100rpx;" src="https://txroom.xayunmei.com/refree.png" mode="widthFix">
10 10
 			</image>
11 11
 			<text class="title">调解平台</text>
12
-		</view>
13
-		<view class="login-form-content">
14
-			<view class="input-item flex align-center">
15
-				<view class="iconfont icon-user icon"></view>
16
-				<input v-model="loginForm.username" class="input" type="text" placeholder="请输入账号" maxlength="30" />
17
-			</view>
18
-			<view class="input-item flex align-center">
19
-				<view class="iconfont icon-password icon"></view>
20
-				<input v-model="loginForm.password" type="password" class="input" placeholder="请输入密码" maxlength="20" />
21
-			</view>
22
-			<view class="input-item flex align-center" style="width: 60%;margin: 0px;" v-if="captchaEnabled">
23
-				<view class="iconfont icon-code icon"></view>
24
-				<input v-model="loginForm.code" type="number" class="input" placeholder="请输入验证码" maxlength="4" />
25
-				<view class="login-code">
26
-					<image :src="codeUrl" @click="getCode" class="login-code-img"></image>
27
-				</view>
12
+		</view>
13
+		<view class="login-form-content">
14
+			<view class="input-item flex align-center">
15
+				<view class="iconfont icon-user icon"></view>
16
+				<input v-model="loginForm.username" class="input" type="text" placeholder="请输入账号" maxlength="30" />
17
+			</view>
18
+			<view class="input-item flex align-center">
19
+				<view class="iconfont icon-password icon"></view>
20
+				<input v-model="loginForm.password" type="password" class="input" placeholder="请输入密码" maxlength="20" />
21
+			</view>
22
+			<view class="input-item flex align-center" style="width: 60%;margin: 0px;" v-if="captchaEnabled">
23
+				<view class="iconfont icon-code icon"></view>
24
+				<input v-model="loginForm.code" type="number" class="input" placeholder="请输入验证码" maxlength="4" />
25
+				<view class="login-code">
26
+					<image :src="codeUrl" @click="getCode" class="login-code-img"></image>
27
+				</view>
28 28
 			</view>
29 29
 			<view class="ageen-read">
30 30
 				<checkbox-group @change="handleAgreeChange">
31
-					<checkbox value="agree"/>
31
+					<checkbox value="agree" />
32 32
 					<text class="agreen-text">阅读并同意</text>
33 33
 					<text @click="equityNotice" class="text-blue">《权益告知书》</text>
34 34
 				</checkbox-group>
35
-				
36
-			</view>
37
-			<view class="action-btn">
38
-				<button @click="handleLogin" class="login-btn cu-btn block bg-blue lg round">登录</button>
39
-			</view>
40
-			<view class="reg text-center" v-if="register">
41
-				<text class="text-grey1">没有账号?</text>
42
-				<text @click="handleUserRegister" class="text-blue">立即注册</text>
43
-			</view>
44
-			<!-- <view class="reg text-center" v-if="register">
45
-	    <text class="text-grey1">使用其他方式登录:</text>
46
-	    <text @click="handleUserRegister" class="text-blue"></text>
47
-	  </view> -->
48
-			<!-- <view class="xieyi text-center">
49
-        <text class="text-grey1">登录即代表同意</text>
50
-        <text @click="handleUserAgrement" class="text-blue">《用户协议》</text>
51
-        <text @click="handlePrivacy" class="text-blue">《隐私协议》</text>
52
-      </view> -->
53
-		</view>
54
-
55
-	</view>
56
-</template>
57
-
58
-<script>
59
-	import {
60
-		getCodeImg
61
-	} from '@/api/login'
62
-
63
-	export default {
64
-		data() {
65
-			return {
66
-				codeUrl: "",
35
+
36
+			</view>
37
+			<view class="action-btn">
38
+				<button @click="handleLogin" class="login-btn cu-btn block bg-blue lg round">登录</button>
39
+			</view>
40
+			<view class="reg text-center" v-if="register">
41
+				<text class="text-grey1">没有账号?</text>
42
+				<text @click="handleUserRegister" class="text-blue">立即注册</text>
43
+			</view>
44
+			<!-- <view class="reg text-center" v-if="register">
45
+	    <text class="text-grey1">使用其他方式登录:</text>
46
+	    <text @click="handleUserRegister" class="text-blue"></text>
47
+	  </view> -->
48
+			<!-- <view class="xieyi text-center">
49
+        <text class="text-grey1">登录即代表同意</text>
50
+        <text @click="handleUserAgrement" class="text-blue">《用户协议》</text>
51
+        <text @click="handlePrivacy" class="text-blue">《隐私协议》</text>
52
+      </view> -->
53
+		</view>
54
+
55
+	</view>
56
+</template>
57
+
58
+<script>
59
+	import {
60
+		getCodeImg
61
+	} from '@/api/login'
62
+
63
+	export default {
64
+		data() {
65
+			return {
66
+				codeUrl: "",
67 67
 				captchaEnabled: true,
68
-				logSyste:0,
69
-				// 用户注册开关
70
-				register: true,
71
-				globalConfig: getApp().globalData.config,
72
-				loginForm: {
73
-					username: "",
74
-					password: "",
75
-					code: "",
68
+				logSyste: 0,
69
+				// 用户注册开关
70
+				register: true,
71
+				globalConfig: getApp().globalData.config,
72
+				loginForm: {
73
+					username: "",
74
+					password: "",
75
+					code: "",
76 76
 					uuid: '',
77
-					
77
+
78 78
 				},
79
-				isSelectAgree:[]
80
-			}
81
-		},
82
-		created() {
83
-			this.getCode()
84
-		},
79
+				isSelectAgree: []
80
+			}
81
+		},
82
+		created() {
83
+			this.getCode()
84
+		},
85 85
 		methods: {
86
-			handleAgreeChange(e){
86
+			handleAgreeChange(e) {
87 87
 				this.isSelectAgree = e.detail.value
88
-			},
89
-			// 用户注册
90
-			handleUserRegister() {
91
-				this.$tab.redirectTo(`/pages/realName`)
88
+			},
89
+			// 用户注册
90
+			handleUserRegister() {
91
+				this.$tab.redirectTo(`/pages/realName`)
92 92
 			},
93 93
 			// 权益告知书
94
-			equityNotice(){
94
+			equityNotice() {
95 95
 				//this.$tab.redirectTo(`/pages/personalInfoCollection`)
96 96
 				this.$tab.navigateTo(`/pages/personalInfoCollection?title=权益告知书`)
97
-			},
98
-			// 隐私协议
99
-			handlePrivacy() {
100
-				let site = this.globalConfig.appInfo.agreements[0]
101
-				this.$tab.navigateTo(`/pages/common/webview/index?title=${site.title}&url=${site.url}`)
102
-			},
103
-			// 用户协议
104
-			handleUserAgrement() {
105
-				let site = this.globalConfig.appInfo.agreements[1]
106
-				this.$tab.navigateTo(`/pages/common/webview/index?title=${site.title}&url=${site.url}`)
107
-			},
108
-			// 获取图形验证码
109
-			getCode() {
110
-				getCodeImg().then(res => {
111
-					this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled
112
-					if (this.captchaEnabled) {
113
-						this.codeUrl = 'data:image/gif;base64,' + res.img
114
-						this.loginForm.uuid = res.uuid
115
-					}
116
-				})
117
-			},
118
-			// 登录方法
97
+			},
98
+			// 隐私协议
99
+			handlePrivacy() {
100
+				let site = this.globalConfig.appInfo.agreements[0]
101
+				this.$tab.navigateTo(`/pages/common/webview/index?title=${site.title}&url=${site.url}`)
102
+			},
103
+			// 用户协议
104
+			handleUserAgrement() {
105
+				let site = this.globalConfig.appInfo.agreements[1]
106
+				this.$tab.navigateTo(`/pages/common/webview/index?title=${site.title}&url=${site.url}`)
107
+			},
108
+			// 获取图形验证码
109
+			getCode() {
110
+				getCodeImg().then(res => {
111
+					this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled
112
+					if (this.captchaEnabled) {
113
+						this.codeUrl = 'data:image/gif;base64,' + res.img
114
+						this.loginForm.uuid = res.uuid
115
+					}
116
+				})
117
+			},
118
+			// 登录方法
119 119
 			async handleLogin() {
120
-				const sysType = uni.getStorageSync('sysType')
121
-				if (this.loginForm.username === "") {
122
-					this.$modal.msgError("请输入您的账号")
123
-				}else if(this.isSelectAgree.length < 1){
120
+				const sysType = uni.getStorageSync('sysType')
121
+				if (this.loginForm.username === "") {
122
+					this.$modal.msgError("请输入您的账号")
123
+				} else if (this.isSelectAgree.length < 1) {
124 124
 					this.$modal.msgError("请先阅读个人信息收集条款并同意")
125
-				} else if (this.loginForm.password === "") {
126
-					this.$modal.msgError("请输入您的密码")
127
-				} else if (this.loginForm.code === "" && this.captchaEnabled) {
128
-					this.$modal.msgError("请输入验证码")
129
-				} else {
130
-					this.$modal.loading("登录中,请耐心等待...")
131
-					this.pwdLogin()
132
-				}
133
-			},
134
-			// 密码登录
135
-			async pwdLogin() {
136
-				this.$store.dispatch('Login', this.loginForm).then(() => {
137
-					this.$modal.closeLoading()
138
-					this.loginSuccess()
139
-				}).catch(() => {
140
-					if (this.captchaEnabled) {
141
-						this.getCode()
142
-					}
143
-				})
144
-			},
145
-			// 登录成功后,处理函数
146
-			loginSuccess(result) {
147
-				// 设置用户信息
148
-				this.$store.dispatch('GetInfo').then(res => {
149
-					this.$tab.reLaunch('/pages/work/index')
150
-				})
125
+				} else if (this.loginForm.password === "") {
126
+					this.$modal.msgError("请输入您的密码")
127
+				} else if (this.loginForm.code === "" && this.captchaEnabled) {
128
+					this.$modal.msgError("请输入验证码")
129
+				} else {
130
+					this.$modal.loading("登录中,请耐心等待...")
131
+					this.pwdLogin()
132
+				}
133
+			},
134
+			// 密码登录
135
+			async pwdLogin() {
136
+				this.$store.dispatch('Login', this.loginForm).then(() => {
137
+					this.$modal.closeLoading()
138
+					this.loginSuccess()
139
+				}).catch(() => {
140
+					if (this.captchaEnabled) {
141
+						this.getCode()
142
+					}
143
+				})
151 144
 			},
152
-			onLoad(options){
153
-				 let vals = decodeURIComponent(options.values);
154
-				 this.logSyste = vals
145
+			// 登录成功后,处理函数
146
+			loginSuccess(result) {
147
+				// 设置用户信息
148
+				this.$store.dispatch('GetInfo').then(res => {
149
+					this.$tab.reLaunch('/pages/work/index')
150
+				})
151
+			},
152
+			onLoad(options) {
153
+				let vals = decodeURIComponent(options.values);
154
+				this.logSyste = vals
155
+			}
156
+
157
+		}
158
+	}
159
+</script>
160
+
161
+<style lang="scss">
162
+	page {
163
+		background-color: #ffffff;
164
+	}
165
+
166
+	.normal-login-container {
167
+		width: 100%;
168
+
169
+		.logo-content {
170
+			width: 100%;
171
+			font-size: 21px;
172
+			text-align: center;
173
+			padding-top: 15%;
174
+
175
+			image {
176
+				border-radius: 4px;
177
+			}
178
+
179
+			.title {
180
+				margin-left: 10px;
181
+			}
182
+		}
183
+
184
+		.login-form-content {
185
+			// text-align: center;
186
+			margin: 20px auto;
187
+			margin-top: 15%;
188
+			width: 80%;
189
+
190
+			.input-item {
191
+				margin: 20px auto;
192
+				background-color: #f5f6f7;
193
+				height: 45px;
194
+				border-radius: 20px;
195
+
196
+				.icon {
197
+					font-size: 38rpx;
198
+					margin-left: 10px;
199
+					color: #999;
200
+				}
201
+
202
+				.input {
203
+					width: 100%;
204
+					font-size: 14px;
205
+					line-height: 20px;
206
+					text-align: left;
207
+					padding-left: 15px;
208
+				}
209
+
210
+			}
211
+
212
+			.login-btn {
213
+				margin-top: 40px;
214
+				height: 45px;
215
+			}
216
+
217
+			.reg {
218
+				margin-top: 15px;
155 219
 			}
156
-			
157
-		}
158
-	}
159
-</script>
160
-
161
-<style lang="scss">
162
-	page {
163
-		background-color: #ffffff;
164
-	}
165
-
166
-	.normal-login-container {
167
-		width: 100%;
168
-
169
-		.logo-content {
170
-			width: 100%;
171
-			font-size: 21px;
172
-			text-align: center;
173
-			padding-top: 15%;
174
-
175
-			image {
176
-				border-radius: 4px;
177
-			}
178
-
179
-			.title {
180
-				margin-left: 10px;
181
-			}
182
-		}
183
-
184
-		.login-form-content {
185
-			// text-align: center;
186
-			margin: 20px auto;
187
-			margin-top: 15%;
188
-			width: 80%;
189
-
190
-			.input-item {
191
-				margin: 20px auto;
192
-				background-color: #f5f6f7;
193
-				height: 45px;
194
-				border-radius: 20px;
195
-
196
-				.icon {
197
-					font-size: 38rpx;
198
-					margin-left: 10px;
199
-					color: #999;
200
-				}
201
-
202
-				.input {
203
-					width: 100%;
204
-					font-size: 14px;
205
-					line-height: 20px;
206
-					text-align: left;
207
-					padding-left: 15px;
208
-				}
209
-
210
-			}
211
-
212
-			.login-btn {
213
-				margin-top: 40px;
214
-				height: 45px;
215
-			}
216
-
217
-			.reg {
218
-				margin-top: 15px;
219
-			}
220
-
221
-			.xieyi {
222
-				color: #333;
223
-				margin-top: 20px;
224
-			}
225
-
226
-			.login-code {
227
-				height: 38px;
228
-				float: right;
229
-
230
-				.login-code-img {
231
-					height: 38px;
232
-					position: absolute;
233
-					margin-left: 10px;
234
-					width: 200rpx;
235
-				}
220
+
221
+			.xieyi {
222
+				color: #333;
223
+				margin-top: 20px;
236 224
 			}
237
-			.ageen-read{
238
-				margin-top:65rpx;
239
-				.agreen-text{
240
-					padding-left:20rpx;
225
+
226
+			.login-code {
227
+				height: 38px;
228
+				float: right;
229
+
230
+				.login-code-img {
231
+					height: 38px;
232
+					position: absolute;
233
+					margin-left: 10px;
234
+					width: 200rpx;
235
+				}
236
+			}
237
+
238
+			.ageen-read {
239
+				margin-top: 65rpx;
240
+
241
+				.agreen-text {
242
+					padding-left: 20rpx;
241 243
 					color: #999;
242 244
 				}
243
-			}
244
-		}
245
-	}
245
+			}
246
+		}
247
+	}
246 248
 </style>

+ 306
- 307
pages/work/index.vue Dosyayı Görüntüle

@@ -1,17 +1,18 @@
1
-<template>
2
-	<view class="work-container">
3
-		<!-- 仲裁轮播图 -->
4
-		<uni-swiper-dot v-if="sysType==1" class="uni-swiper-dot-box" :info="data" :current="current" field="content">
5
-			<swiper class="swiper-box" :current="swiperDotIndex" @change="changeSwiper">
6
-				<swiper-item v-for="(item, index) in data" :key="index">
7
-					<view class="swiper-item" @click="clickBannerItem(item)">
8
-						<image :src="item.image" mode="aspectFill" :draggable="false" />
9
-					</view>
10
-				</swiper-item>
11
-			</swiper>
12
-		</uni-swiper-dot>
1
+<template>
2
+	<view class="work-container">
3
+		<!-- 仲裁轮播图 -->
4
+		<uni-swiper-dot v-if="sysType==1" class="uni-swiper-dot-box" :info="data" :current="current" field="content">
5
+			<swiper class="swiper-box" :current="swiperDotIndex" @change="changeSwiper">
6
+				<swiper-item v-for="(item, index) in data" :key="index">
7
+					<view class="swiper-item" @click="clickBannerItem(item)">
8
+						<image :src="item.image" mode="aspectFill" :draggable="false" />
9
+					</view>
10
+				</swiper-item>
11
+			</swiper>
12
+		</uni-swiper-dot>
13 13
 		<!-- 调解轮播图 -->
14
-		<uni-swiper-dot v-if="sysType==2" class="uni-swiper-dot-box" :info="refreesVal" :current="current" field="content">
14
+		<uni-swiper-dot v-if="sysType==2" class="uni-swiper-dot-box" :info="refreesVal" :current="current"
15
+			field="content">
15 16
 			<swiper class="swiper-box" :current="swiperDotIndex" @change="changeSwiper">
16 17
 				<swiper-item v-for="(item, index) in refreesVal" :key="index">
17 18
 					<view class="swiper-item" @click="clickBannerItem(item)">
@@ -19,310 +20,308 @@
19 20
 					</view>
20 21
 				</swiper-item>
21 22
 			</swiper>
22
-		</uni-swiper-dot>
23
-		<!-- 宫格组件 -->
24
-		<!-- <uni-section v-if="certificationStatus == '1'" class="uni-section" title="系统管理" type="line">
25
-			<template v-slot:right>
26
-				已认证
27
-			</template>
28
-		</uni-section>
29
-		<uni-section v-else class="uni-section" title="系统管理" type="line" @click="certification">
30
-			<template v-slot:right>
31
-				未认证
32
-			</template>
33
-		</uni-section> -->
34
-		<!-- <uni-section class="uni-section" title="系统管理" type="line"></uni-section> -->
35
-		<view class="grid-body">
36
-			<uni-grid :column="4" :showBorder="false">
37
-				<uni-grid-item>
38
-					<view class="grid-item-box" @tap="changeGrid(0)">
39
-						<uni-icons type="calendar-filled" size="30" color="#327DD7"></uni-icons>
23
+		</uni-swiper-dot>
24
+		<!-- 宫格组件 -->
25
+		<!-- <uni-section v-if="certificationStatus == '1'" class="uni-section" title="系统管理" type="line">
26
+			<template v-slot:right>
27
+				已认证
28
+			</template>
29
+		</uni-section>
30
+		<uni-section v-else class="uni-section" title="系统管理" type="line" @click="certification">
31
+			<template v-slot:right>
32
+				未认证
33
+			</template>
34
+		</uni-section> -->
35
+		<!-- <uni-section class="uni-section" title="系统管理" type="line"></uni-section> -->
36
+		<view class="grid-body">
37
+			<uni-grid :column="4" :showBorder="false">
38
+				<uni-grid-item>
39
+					<view class="grid-item-box" @tap="changeGrid(0)">
40
+						<uni-icons type="calendar-filled" size="30" color="#327DD7"></uni-icons>
40 41
 						<text class="text" v-if="sysType == 1">待办案件</text>
41
-						<text class="text" v-if="sysType == 2">我的申请</text>
42
-					</view>
43
-				</uni-grid-item>
44
-				<uni-grid-item v-if="sysType == 2 && checkPermi(['caseManagement:list:add'])">
45
-					<view class="grid-item-box" @tap="changeGrid(1)">
46
-						<uni-icons type="staff-filled" size="30" color="#327DD7"></uni-icons>
47
-						<text class="text">立案申请</text>
48
-					</view>
49
-				</uni-grid-item>
50
-				<!-- <uni-grid-item v-if="sysType == 2">
51
-					<view class="grid-item-box" @tap="changeGrid(2)">
52
-						<uni-icons type="color" size="30" color="#327DD7"></uni-icons>
53
-						<text class="text">线上调解</text>
54
-					</view>
55
-				</uni-grid-item>
56
-				<uni-grid-item v-if="sysType == 2">
57
-					<view class="grid-item-box" @tap="changeGrid(3)">
58
-						<uni-icons type="compose" size="30" color="#327DD7"></uni-icons>
59
-						<text class="text">我的申请</text>
60
-					</view>
61
-				</uni-grid-item> -->
62
-				<!-- <uni-grid-item>
63
-					<view class="grid-item-box" @tap="changeGrid(4)">
64
-						<uni-icons type="heart-filled" size="30" color="#327DD7"></uni-icons>
65
-						<text class="text">证据交换</text>
66
-					</view>
67
-				</uni-grid-item> -->
68
-				<uni-grid-item>
69
-					<view class="grid-item-box" @tap="changeGrid(5)">
70
-						<uni-icons type="bars" size="30" color="#327DD7"></uni-icons>
42
+						<text class="text" v-if="sysType == 2">我的申请</text>
43
+					</view>
44
+				</uni-grid-item>
45
+				<uni-grid-item v-if="sysType == 2 && checkPermi(['caseManagement:list:add'])">
46
+					<view class="grid-item-box" @tap="changeGrid(1)">
47
+						<uni-icons type="staff-filled" size="30" color="#327DD7"></uni-icons>
48
+						<text class="text">立案申请</text>
49
+					</view>
50
+				</uni-grid-item>
51
+				<!-- <uni-grid-item v-if="sysType == 2">
52
+					<view class="grid-item-box" @tap="changeGrid(2)">
53
+						<uni-icons type="color" size="30" color="#327DD7"></uni-icons>
54
+						<text class="text">线上调解</text>
55
+					</view>
56
+				</uni-grid-item>
57
+				<uni-grid-item v-if="sysType == 2">
58
+					<view class="grid-item-box" @tap="changeGrid(3)">
59
+						<uni-icons type="compose" size="30" color="#327DD7"></uni-icons>
60
+						<text class="text">我的申请</text>
61
+					</view>
62
+				</uni-grid-item> -->
63
+				<!-- <uni-grid-item>
64
+					<view class="grid-item-box" @tap="changeGrid(4)">
65
+						<uni-icons type="heart-filled" size="30" color="#327DD7"></uni-icons>
66
+						<text class="text">证据交换</text>
67
+					</view>
68
+				</uni-grid-item> -->
69
+				<uni-grid-item>
70
+					<view class="grid-item-box" @tap="changeGrid(5)">
71
+						<uni-icons type="bars" size="30" color="#327DD7"></uni-icons>
71 72
 						<text class="text" v-if="sysType == 1">视频审理</text>
72
-						<text class="text" v-if="sysType == 2">线上调解</text>
73
-					</view>
74
-				</uni-grid-item>
75
-				<!-- <uni-grid-item>
76
-					<view class="grid-item-box" @tap="changeGrid(6)">
77
-						<uni-icons type="email-filled" size="30" color="#327DD7"></uni-icons>
78
-						<text class="text">查询快递</text>
79
-					</view>
80
-				</uni-grid-item> -->
81
-				<!-- <uni-grid-item>
82
-					<view class="grid-item-box" @tap="changeGrid(7)">
83
-						<uni-icons type="compose" size="30" color="#327DD7"></uni-icons>
84
-						<text class="text">在线签字</text>
85
-					</view>
86
-				</uni-grid-item> -->
87
-				<!-- <uni-grid-item>
88
-					<view class="grid-item-box" @tap="changeGrid(8)">
89
-						<uni-icons type="wallet-filled" size="30" color="#327DD7"></uni-icons>
90
-						<text class="text">仲裁文书</text>
91
-					</view>
92
-				</uni-grid-item>
93
-				<uni-grid-item>
94
-					<view class="grid-item-box" @tap="changeGrid(9)">
95
-						<uni-icons type="wallet-filled" size="30" color="#327DD7"></uni-icons>
96
-						<text class="text">法规政策</text>
97
-					</view>
98
-				</uni-grid-item> -->
99
-			</uni-grid>
100
-		</view>
101
-	</view>
102
-</template>
103
-
104
-<script>
105
-	import {
106
-		startEid
107
-	} from '../../mp_ecard_sdk/main.js'
108
-	import {
109
-		getEidtoken,
110
-		sendEidtoken
111
-	} from "../../api/login.js"
112
-	export default {
113
-		data() {
114
-			return {
115
-				current: 0,
116
-				swiperDotIndex: 0,
117
-				data: [{
118
-						image: 'https://img.tukuppt.com/bg_grid/00/09/96/qWJxN1umma.jpg!/fh/350'
119
-					},
120
-					{
121
-						image: 'https://img.tukuppt.com/bg_grid/00/18/92/JBheZs7ZVK.jpg!/fh/350'
122
-					},
123
-					{
124
-						image: 'https://img.tukuppt.com/bg_grid/00/81/07/DGEl4suqeV.jpg!/fh/350'
125
-					}
126
-				],
127
-				refreesVal :[
73
+						<text class="text" v-if="sysType == 2">线上调解</text>
74
+					</view>
75
+				</uni-grid-item>
76
+				<!-- <uni-grid-item>
77
+					<view class="grid-item-box" @tap="changeGrid(6)">
78
+						<uni-icons type="email-filled" size="30" color="#327DD7"></uni-icons>
79
+						<text class="text">查询快递</text>
80
+					</view>
81
+				</uni-grid-item> -->
82
+				<!-- <uni-grid-item>
83
+					<view class="grid-item-box" @tap="changeGrid(7)">
84
+						<uni-icons type="compose" size="30" color="#327DD7"></uni-icons>
85
+						<text class="text">在线签字</text>
86
+					</view>
87
+				</uni-grid-item> -->
88
+				<!-- <uni-grid-item>
89
+					<view class="grid-item-box" @tap="changeGrid(8)">
90
+						<uni-icons type="wallet-filled" size="30" color="#327DD7"></uni-icons>
91
+						<text class="text">仲裁文书</text>
92
+					</view>
93
+				</uni-grid-item>
94
+				<uni-grid-item>
95
+					<view class="grid-item-box" @tap="changeGrid(9)">
96
+						<uni-icons type="wallet-filled" size="30" color="#327DD7"></uni-icons>
97
+						<text class="text">法规政策</text>
98
+					</view>
99
+				</uni-grid-item> -->
100
+			</uni-grid>
101
+		</view>
102
+	</view>
103
+</template>
104
+
105
+<script>
106
+	import {
107
+		startEid
108
+	} from '../../mp_ecard_sdk/main.js'
109
+	import {
110
+		getEidtoken,
111
+		sendEidtoken
112
+	} from "../../api/login.js"
113
+	export default {
114
+		data() {
115
+			return {
116
+				current: 0,
117
+				swiperDotIndex: 0,
118
+				data: [{
119
+						image: 'https://img.tukuppt.com/bg_grid/00/09/96/qWJxN1umma.jpg!/fh/350'
120
+					},
128 121
 					{
129
-					image:'../../static/tiaojie1.png'
130
-					},{
131
-						image:'../../static/tiaojie2.png'
132
-					},{
133
-						image:'../../static/tiaojie4.png'
122
+						image: 'https://img.tukuppt.com/bg_grid/00/18/92/JBheZs7ZVK.jpg!/fh/350'
123
+					},
124
+					{
125
+						image: 'https://img.tukuppt.com/bg_grid/00/81/07/DGEl4suqeV.jpg!/fh/350'
134 126
 					}
135
-				],
136
-				certificationStatus: "",
127
+				],
128
+				refreesVal: [{
129
+					image: 'https://txroom.xayunmei.com/tiaojie1.png'
130
+				}, {
131
+					image: 'https://txroom.xayunmei.com/tiaojie2.png'
132
+				}, {
133
+					image: 'https://txroom.xayunmei.com/tiaojie4.png'
134
+				}],
135
+				certificationStatus: "",
137 136
 				eidToken: "",
138
-				sysType:null
139
-			}
140
-		},
141
-		methods: {
142
-			clickBannerItem(item) {
143
-				console.info(item)
144
-			},
145
-			changeSwiper(e) {
146
-				this.current = e.detail.current
147
-			},
148
-			changeGrid(e) {
149
-				// this.$modal.showToast('模块建设中~')
150
-				// if (this.certificationStatus == "0") {
151
-				// 	uni.showToast({
152
-				// 		title: '请先完成实名认证',
153
-				// 		icon: 'none',
154
-				// 		duration: 1000
155
-				// 	})
156
-				// 	return
157
-				// }
158
-				switch (e) {
159
-					case 0:
160
-						uni.navigateTo({
161
-							url: ('/pages/handlecase/index')
162
-						})
163
-						break;
164
-					case 5:
165
-						uni.navigateTo({
166
-							url: ('/pages/im/index')
167
-						})
168
-						break;
169
-					case 6:
170
-						uni.navigateTo({
171
-							url: ('/pages/expressDelivery/index')
172
-						})
173
-						break;
174
-					case 7:
175
-						uni.navigateTo({
176
-							url: ('/pages/signature/index')
177
-						})
137
+				sysType: null
138
+			}
139
+		},
140
+		methods: {
141
+			clickBannerItem(item) {
142
+				console.info(item)
143
+			},
144
+			changeSwiper(e) {
145
+				this.current = e.detail.current
146
+			},
147
+			changeGrid(e) {
148
+				// this.$modal.showToast('模块建设中~')
149
+				// if (this.certificationStatus == "0") {
150
+				// 	uni.showToast({
151
+				// 		title: '请先完成实名认证',
152
+				// 		icon: 'none',
153
+				// 		duration: 1000
154
+				// 	})
155
+				// 	return
156
+				// }
157
+				switch (e) {
158
+					case 0:
159
+						uni.navigateTo({
160
+							url: ('/pages/handlecase/index')
161
+						})
162
+						break;
163
+					case 5:
164
+						uni.navigateTo({
165
+							url: ('/pages/im/index')
166
+						})
167
+						break;
168
+					case 6:
169
+						uni.navigateTo({
170
+							url: ('/pages/expressDelivery/index')
171
+						})
172
+						break;
173
+					case 7:
174
+						uni.navigateTo({
175
+							url: ('/pages/signature/index')
176
+						})
178 177
 						break;
179 178
 					case 1:
180 179
 						uni.navigateTo({
181 180
 							url: (`/pages/handlecase/component/newlyAddedCase?title=新增案件`)
182 181
 						})
183
-						break;
184
-					default:
185
-						break;
186
-				}
187
-			},
188
-			// 获取eidtoken
189
-			getEidtokenFn() {
190
-				getEidtoken({}).then(res => {
191
-					console.log(res.data.EidToken, "kkkkkkkkk");
192
-					this.eidToken = res.data.EidToken
193
-				})
194
-			},
195
-			// 点击实名认证
196
-			certification() {
197
-				let that = this
198
-				// uni.navigateTo({
199
-				// 	url: ('/mp_ecard_sdk/index/index')
200
-				// })
201
-				startEid({
202
-					data: {
203
-						token: this.eidToken,
204
-					},
205
-					verifyDoneCallback(res) {
206
-						const {
207
-							token,
208
-							verifyDone
209
-						} = res;
210
-						console.log('收到核身完成的res:', res);
211
-						console.log('核身的token是:', token);
212
-						console.log('是否完成核身:', verifyDone);
213
-						sendEidtoken({
214
-							"eidToken": token
215
-						}).then(res => {
216
-							that.certificationStatus = '1'
217
-						})
218
-					},
219
-				});
220
-			}
221
-		},
182
+						break;
183
+					default:
184
+						break;
185
+				}
186
+			},
187
+			// 获取eidtoken
188
+			getEidtokenFn() {
189
+				getEidtoken({}).then(res => {
190
+					console.log(res.data.EidToken, "kkkkkkkkk");
191
+					this.eidToken = res.data.EidToken
192
+				})
193
+			},
194
+			// 点击实名认证
195
+			certification() {
196
+				let that = this
197
+				// uni.navigateTo({
198
+				// 	url: ('/mp_ecard_sdk/index/index')
199
+				// })
200
+				startEid({
201
+					data: {
202
+						token: this.eidToken,
203
+					},
204
+					verifyDoneCallback(res) {
205
+						const {
206
+							token,
207
+							verifyDone
208
+						} = res;
209
+						console.log('收到核身完成的res:', res);
210
+						console.log('核身的token是:', token);
211
+						console.log('是否完成核身:', verifyDone);
212
+						sendEidtoken({
213
+							"eidToken": token
214
+						}).then(res => {
215
+							that.certificationStatus = '1'
216
+						})
217
+					},
218
+				});
219
+			}
220
+		},
222 221
 		onLoad() {
223 222
 			this.sysType = uni.getStorageSync('sysType');
224
-			console.log(this.sysType)
225
-			// sendEidtoken({
226
-			// 	"eidToken": 'C0339AE1-7B30-4DB9-B1E4-35A10F45249B'
227
-			// }).then(res => {
228
-			// 	// that.certificationStatus = '已认证'
229
-			// })
230
-			this.getEidtokenFn()
231
-			// this.certificationStatus = uni.getStorageSync('certificationStatus')
232
-		},
233
-	}
234
-</script>
235
-
236
-<style lang="scss">
237
-	/* #ifndef APP-NVUE */
238
-	page {
239
-		display: flex;
240
-		flex-direction: column;
241
-		box-sizing: border-box;
242
-		background-color: #fff;
243
-		min-height: 100%;
244
-		height: auto;
245
-	}
246
-
247
-	view {
248
-		font-size: 14px;
249
-		line-height: inherit;
250
-	}
251
-
252
-	/* #endif */
253
-
254
-	.text {
255
-		text-align: center;
256
-		font-size: 26rpx;
257
-		margin-top: 10rpx;
258
-	}
259
-
260
-	.grid-item-box {
261
-		flex: 1;
262
-		/* #ifndef APP-NVUE */
263
-		display: flex;
264
-		/* #endif */
265
-		flex-direction: column;
266
-		align-items: center;
267
-		justify-content: center;
268
-		padding: 15px 0;
269
-	}
270
-
271
-	.uni-margin-wrap {
272
-		width: 690rpx;
273
-		width: 100%;
274
-		;
275
-	}
276
-
277
-	.swiper {
278
-		height: 300rpx;
279
-	}
280
-
281
-	.swiper-box {
282
-		height: 150px;
283
-	}
284
-
285
-	.swiper-item {
286
-		/* #ifndef APP-NVUE */
287
-		display: flex;
288
-		/* #endif */
289
-		flex-direction: column;
290
-		justify-content: center;
291
-		align-items: center;
292
-		color: #fff;
293
-		height: 300rpx;
294
-		line-height: 300rpx;
295
-	}
296
-
297
-	.grid-body {
298
-		// background-image: url('https://img.tukuppt.com/bg_grid/00/18/52/aEicoC2qMI.jpg!/fh/350');
299
-		background-repeat: no-repeat;
300
-		background-size: cover;
301
-		height: 900rpx;
302
-		// color: #fff;
303
-		opacity: 0.9;
304
-	}
305
-
306
-	.uni-section {
307
-		background-color: #b90404 !important;
308
-		color: #fff;
309
-	}
310
-
311
-	/deep/ .uni-section__content-title {
312
-		color: #fff !important;
313
-	}
314
-
315
-	@media screen and (min-width: 500px) {
316
-		.uni-swiper-dot-box {
317
-			width: 400px;
318
-			/* #ifndef APP-NVUE */
319
-			margin: 0 auto;
320
-			/* #endif */
321
-			margin-top: 8px;
322
-		}
323
-
324
-		.image {
325
-			width: 100%;
326
-		}
327
-	}
223
+			console.log(this.sysType)
224
+			// sendEidtoken({
225
+			// 	"eidToken": 'C0339AE1-7B30-4DB9-B1E4-35A10F45249B'
226
+			// }).then(res => {
227
+			// 	// that.certificationStatus = '已认证'
228
+			// })
229
+			this.getEidtokenFn()
230
+			// this.certificationStatus = uni.getStorageSync('certificationStatus')
231
+		},
232
+	}
233
+</script>
234
+
235
+<style lang="scss">
236
+	/* #ifndef APP-NVUE */
237
+	page {
238
+		display: flex;
239
+		flex-direction: column;
240
+		box-sizing: border-box;
241
+		background-color: #fff;
242
+		min-height: 100%;
243
+		height: auto;
244
+	}
245
+
246
+	view {
247
+		font-size: 14px;
248
+		line-height: inherit;
249
+	}
250
+
251
+	/* #endif */
252
+
253
+	.text {
254
+		text-align: center;
255
+		font-size: 26rpx;
256
+		margin-top: 10rpx;
257
+	}
258
+
259
+	.grid-item-box {
260
+		flex: 1;
261
+		/* #ifndef APP-NVUE */
262
+		display: flex;
263
+		/* #endif */
264
+		flex-direction: column;
265
+		align-items: center;
266
+		justify-content: center;
267
+		padding: 15px 0;
268
+	}
269
+
270
+	.uni-margin-wrap {
271
+		width: 690rpx;
272
+		width: 100%;
273
+		;
274
+	}
275
+
276
+	.swiper {
277
+		height: 300rpx;
278
+	}
279
+
280
+	.swiper-box {
281
+		height: 150px;
282
+	}
283
+
284
+	.swiper-item {
285
+		/* #ifndef APP-NVUE */
286
+		display: flex;
287
+		/* #endif */
288
+		flex-direction: column;
289
+		justify-content: center;
290
+		align-items: center;
291
+		color: #fff;
292
+		height: 300rpx;
293
+		line-height: 300rpx;
294
+	}
295
+
296
+	.grid-body {
297
+		// background-image: url('https://img.tukuppt.com/bg_grid/00/18/52/aEicoC2qMI.jpg!/fh/350');
298
+		background-repeat: no-repeat;
299
+		background-size: cover;
300
+		height: 900rpx;
301
+		// color: #fff;
302
+		opacity: 0.9;
303
+	}
304
+
305
+	.uni-section {
306
+		background-color: #b90404 !important;
307
+		color: #fff;
308
+	}
309
+
310
+	/deep/ .uni-section__content-title {
311
+		color: #fff !important;
312
+	}
313
+
314
+	@media screen and (min-width: 500px) {
315
+		.uni-swiper-dot-box {
316
+			width: 400px;
317
+			/* #ifndef APP-NVUE */
318
+			margin: 0 auto;
319
+			/* #endif */
320
+			margin-top: 8px;
321
+		}
322
+
323
+		.image {
324
+			width: 100%;
325
+		}
326
+	}
328 327
 </style>

BIN
static/refree.png Dosyayı Görüntüle


BIN
static/tiaojie1.png Dosyayı Görüntüle


BIN
static/tiaojie2.png Dosyayı Görüntüle


BIN
static/tiaojie3.jpg Dosyayı Görüntüle


BIN
static/tiaojie4.png Dosyayı Görüntüle


BIN
static/weixin.png Dosyayı Görüntüle


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
Dosya farkı çok büyük olduğundan ihmal edildi
Dosyayı Görüntüle


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map
Dosya farkı çok büyük olduğundan ihmal edildi
Dosyayı Görüntüle


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
Dosya farkı çok büyük olduğundan ihmal edildi
Dosyayı Görüntüle


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js.map
Dosya farkı çok büyük olduğundan ihmal edildi
Dosyayı Görüntüle


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-list/components/uni-list-item/uni-list-item.js.map
Dosya farkı çok büyük olduğundan ihmal edildi
Dosyayı Görüntüle


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-list/components/uni-list/uni-list.js.map
Dosya farkı çok büyük olduğundan ihmal edildi
Dosyayı Görüntüle


+ 29
- 29
unpackage/dist/dev/mp-weixin/project.config.json Dosyayı Görüntüle

@@ -1,30 +1,30 @@
1
-{
2
-  "description": "项目配置文件。",
3
-  "packOptions": {
4
-    "ignore": [],
5
-    "include": []
6
-  },
7
-  "setting": {
8
-    "urlCheck": false,
9
-    "es6": false,
10
-    "postcss": true,
11
-    "minified": true,
12
-    "newFeature": true,
13
-    "bigPackageSizeSupport": true,
14
-    "babelSetting": {
15
-      "ignore": [],
16
-      "disablePlugins": [],
17
-      "outputPath": ""
18
-    },
19
-    "condition": false
20
-  },
21
-  "compileType": "miniprogram",
22
-  "libVersion": "3.1.1",
23
-  "appid": "wx91cb8459dca561b4",
24
-  "projectname": "智慧仲裁",
25
-  "condition": {},
26
-  "editorSetting": {
27
-    "tabIndent": "insertSpaces",
28
-    "tabSize": 2
29
-  }
1
+{
2
+  "description": "项目配置文件。",
3
+  "packOptions": {
4
+    "ignore": [],
5
+    "include": []
6
+  },
7
+  "setting": {
8
+    "urlCheck": false,
9
+    "es6": false,
10
+    "postcss": true,
11
+    "minified": true,
12
+    "newFeature": true,
13
+    "bigPackageSizeSupport": true,
14
+    "babelSetting": {
15
+      "ignore": [],
16
+      "disablePlugins": [],
17
+      "outputPath": ""
18
+    },
19
+    "condition": false
20
+  },
21
+  "compileType": "miniprogram",
22
+  "libVersion": "3.1.1",
23
+  "appid": "wx91cb8459dca561b4",
24
+  "projectname": "智慧仲裁",
25
+  "condition": {},
26
+  "editorSetting": {
27
+    "tabIndent": "insertSpaces",
28
+    "tabSize": 2
29
+  }
30 30
 }

+ 7
- 7
unpackage/dist/dev/mp-weixin/project.private.config.json Dosyayı Görüntüle

@@ -1,8 +1,8 @@
1
-{
2
-  "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
3
-  "projectname": "miniapp",
4
-  "setting": {
5
-    "compileHotReLoad": true,
6
-    "urlCheck": false
7
-  }
1
+{
2
+  "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
3
+  "projectname": "miniapp",
4
+  "setting": {
5
+    "compileHotReLoad": true,
6
+    "urlCheck": false
7
+  }
8 8
 }