Просмотр исходного кода

选择仲裁方式页面开发

Your Name 2 лет назад
Родитель
Сommit
0f2c6eb4fb

+ 6
- 0
pages.json Просмотреть файл

@@ -99,6 +99,12 @@
99 99
 			"style": {
100 100
 				"navigationBarTitleText": "确认证据"
101 101
 			}
102
+		},
103
+		{
104
+			"path": "pages/handlecase/component/chooseMethod",
105
+			"style": {
106
+				"navigationBarTitleText": "选择仲裁方式"
107
+			}
102 108
 		}
103 109
 	],
104 110
 	"tabBar": {

+ 239
- 0
pages/handlecase/component/chooseMethod.vue Просмотреть файл

@@ -0,0 +1,239 @@
1
+<template>
2
+	<view class="assignrbitrators">
3
+		<view class="from">
4
+			<uni-forms ref="form" :modelValue="formData" :rules="rules">
5
+				<view class="title">案件详情</view>
6
+				<view class="box">
7
+					<uni-forms-item label="案件编号:" name="taskname" label-width="120px" required>
8
+						<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.taskname"
9
+							placeholder="" />
10
+					</uni-forms-item>
11
+					<uni-forms-item label="申请人:" name="taskname" label-width="120px" required>
12
+						<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.taskname"
13
+							placeholder="" />
14
+					</uni-forms-item>
15
+					<uni-forms-item label="被申请人:" name="taskname" label-width="120px" required>
16
+						<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.taskname"
17
+							placeholder="" />
18
+					</uni-forms-item>
19
+					<uni-forms-item label="借款开始日期:" name="taskname" label-width="120px" required>
20
+						<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.taskname"
21
+							placeholder="" />
22
+					</uni-forms-item>
23
+					<uni-forms-item label="借款结束日期:" name="taskname" label-width="120px" required>
24
+						<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.taskname"
25
+							placeholder="" />
26
+					</uni-forms-item>
27
+					<uni-forms-item label="案件标的:" name="taskname" label-width="120px" required>
28
+						<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.taskname"
29
+							placeholder="" />
30
+					</uni-forms-item>
31
+					<uni-forms-item label="申请人主张欠本金:" name="taskname" label-width="120px" required>
32
+						<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.taskname"
33
+							placeholder="" />
34
+					</uni-forms-item>
35
+					<uni-forms-item label="申请人主张欠利息:" name="taskname" label-width="120px" required>
36
+						<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.taskname"
37
+							placeholder="" />
38
+					</uni-forms-item>
39
+					<uni-forms-item label="申请人主张违约金:" name="taskname" label-width="120px" required>
40
+						<uni-easyinput :inputBorder="false" :disabled='true' v-model="formData.taskname"
41
+							placeholder="" />
42
+					</uni-forms-item>
43
+					<uni-forms-item label="证据材料" name="headImage" required :disabled='true'>
44
+						<!-- <img-upload :limit='3' :value.sync="formData.headImage" ></img-upload> -->
45
+						<view  class="imagearea">
46
+							<image class="image" v-for="(item,index) in formData.headImage" :key="index" :src="formData.headImage[index].pics_small_url"
47
+								@click="getImgIndex(index)"></image>
48
+						</view>
49
+					</uni-forms-item>
50
+					<uni-forms-item label="是否指派仲裁员" label-width="120px" name="maintenancetype" required>
51
+						<uni-data-checkbox class='checkbox' :disabled='true' v-model="formData.maintenancetype"
52
+							:localdata="maintenancetypeArr" @change='maintenancetypeChange'></uni-data-checkbox>
53
+					</uni-forms-item>
54
+					<uni-forms-item label="选择仲裁方式" label-width="120px" name="arbitrationmethod" required>
55
+						<uni-data-checkbox class='checkbox' v-model="formData.arbitrationmethod"
56
+							:localdata="arbitrationmethodArr" @change='arbitrationmethod'></uni-data-checkbox>
57
+					</uni-forms-item>
58
+				</view>
59
+			</uni-forms>
60
+			<view>
61
+			</view>
62
+		</view>
63
+
64
+	</view>
65
+</template>
66
+
67
+<script>
68
+	import ImgUpload from '@/components/imgUpload.vue'
69
+	export default {
70
+		data() {
71
+			return {
72
+				formData: {
73
+					headImage: [{
74
+							index: 1,
75
+							pics_small_url: 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg'
76
+						},
77
+						{
78
+							index: 2,
79
+							pics_small_url: 'https://img1.baidu.com/it/u=1310564963,1641173348&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800'
80
+						},
81
+						{
82
+							index: 3,
83
+							pics_small_url: 'https://img1.baidu.com/it/u=1310564963,1641173348&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800'
84
+						},
85
+						{
86
+							index: 4,
87
+							pics_small_url: 'https://img1.baidu.com/it/u=1310564963,1641173348&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800'
88
+						}
89
+					]
90
+				},
91
+				rules: {},
92
+				maintenancetypeArr: [{
93
+					text: '是',
94
+					value: 0
95
+				}, {
96
+					text: '否',
97
+					value: 1
98
+				}, ],
99
+				arbitrationmethodArr: [{
100
+					text: '书面仲裁',
101
+					value: 0
102
+				}, {
103
+					text: '视频仲裁',
104
+					value: 1
105
+				}]
106
+			}
107
+		},
108
+		methods: {
109
+			maintenancetypeChange(val) {
110
+				console.log(val, "PPPPPPPPPPPPPPPPPP");
111
+			},
112
+			// 仲裁方式
113
+			arbitrationmethod(val) {
114
+				console.log(val, "仲裁方式");
115
+			},
116
+			getImgIndex(index) {
117
+				// console.log(index);
118
+				//准备一个装图片路径的  数组imgs
119
+				let imgs = this.formData.headImage.map(item => {
120
+					// console.log(item, 'item');
121
+					//只返回图片路径
122
+					return item.pics_small_url
123
+				})
124
+				// console.log(imgs);
125
+				//调用预览图片的方法
126
+				uni.previewImage({
127
+					urls: imgs,
128
+					current: index,
129
+					loop: true,
130
+				})
131
+			},
132
+		},
133
+		components: {
134
+			// 'img-upload': ImgUpload,
135
+		},
136
+	}
137
+</script>
138
+
139
+<style lang="scss">
140
+	.assignrbitrators {
141
+		// text-align: center;
142
+		padding: 20rpx;
143
+
144
+		.box {
145
+			background-color: #fff;
146
+			padding: 20rpx;
147
+			border-radius: 20rpx;
148
+			.imagearea {
149
+				display: flex;
150
+				flex-direction: row;
151
+				flex-wrap: wrap;
152
+				justify-content: space-evenly;
153
+				.image {
154
+					width: 40%;
155
+					height: 200rpx;
156
+					margin-top: 15rpx;
157
+				}
158
+			}
159
+
160
+		}
161
+
162
+		.flexd {
163
+			padding-top: 20rpx;
164
+
165
+			.btn {
166
+				width: 80%;
167
+				font-size: 26rpx;
168
+				border-radius: 60rpx;
169
+			}
170
+		}
171
+
172
+		.btn {
173
+			margin-top: 20rpx;
174
+		}
175
+
176
+		.select-picker {
177
+			display: flex;
178
+			box-sizing: border-box;
179
+			flex-direction: row;
180
+			align-items: center;
181
+			border: 1px solid #DCDFE6;
182
+			border-radius: 8rpx;
183
+			width: 100%;
184
+			height: 100%;
185
+			padding: 0 24rpx;
186
+			font-size: 28rpx;
187
+		}
188
+
189
+		.table-content {
190
+			background-color: #fff;
191
+			padding: 20rpx;
192
+			border-radius: 20rpx;
193
+
194
+			.none {
195
+				font-size: 24rpx;
196
+				height: 60rpx;
197
+				line-height: 60rpx;
198
+			}
199
+		}
200
+
201
+		.box {
202
+			/deep/.title {
203
+				font-size: 28rpx;
204
+				height: 60rpx;
205
+				line-height: 60rpx;
206
+			}
207
+		}
208
+
209
+		.htmltitle {
210
+			font-size: 30rpx;
211
+			height: 80rpx;
212
+			line-height: 80rpx;
213
+			display: flex;
214
+			justify-content: space-between;
215
+
216
+			.look {
217
+				color: #0D91F9;
218
+			}
219
+		}
220
+
221
+		.title {
222
+			font-size: 30rpx;
223
+			height: 80rpx;
224
+			line-height: 80rpx;
225
+		}
226
+
227
+		.adsTitle {
228
+			font-size: 30rpx;
229
+		}
230
+
231
+		.multiple {
232
+			width: 75%;
233
+			height: 72rpx;
234
+			line-height: 72rpx;
235
+			font-size: 24rpx;
236
+			// @include text-overflow($width: 100%)
237
+		}
238
+	}
239
+</style>

+ 7
- 0
pages/handlecase/component/list.vue Просмотреть файл

@@ -44,6 +44,7 @@
44 44
 			<button class="btnItem" type="primary" size="mini" @tap="uploadEvidence">上传证据</button>
45 45
 			<button class="btnItem" type="primary" size="mini" @tap="confirmationEvidence">确认证据</button>
46 46
 			<button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators">是否指派仲裁员</button>
47
+			<button class="btnItem" type="primary" size="mini" @tap="chooseMethod">选择仲裁方式</button>
47 48
 		</view>
48 49
 	</view>
49 50
 </template>
@@ -72,6 +73,12 @@
72 73
 				uni.navigateTo({
73 74
 					url:'/pages/handlecase/component/confirmationEvidence'
74 75
 				})
76
+			},
77
+			// 选择仲裁方式
78
+			chooseMethod(){
79
+				uni.navigateTo({
80
+					url:'/pages/handlecase/component/chooseMethod'
81
+				})
75 82
 			}
76 83
 		}
77 84
 	}

+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js.map
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-list/components/uni-list-item/uni-list-item.js.map
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 1
- 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-list/components/uni-list/uni-list.js.map
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 4
- 1
unpackage/dist/dev/mp-weixin/app.json Просмотреть файл

@@ -16,7 +16,10 @@
16 16
     "pages/common/textview/index",
17 17
     "pages/certification/index",
18 18
     "pages/handlecase/index",
19
-    "pages/handlecase/component/assignrbitrators"
19
+    "pages/handlecase/component/assignrbitrators",
20
+    "pages/handlecase/component/uploadEvidence",
21
+    "pages/handlecase/component/confirmationEvidence",
22
+    "pages/handlecase/component/chooseMethod"
20 23
   ],
21 24
   "subPackages": [],
22 25
   "window": {

+ 2
- 2
unpackage/dist/dev/mp-weixin/project.config.json Просмотреть файл

@@ -18,9 +18,9 @@
18 18
     }
19 19
   },
20 20
   "compileType": "miniprogram",
21
-  "libVersion": "3.0.1",
21
+  "libVersion": "3.0.2",
22 22
   "appid": "wx6d65ec24cf6b13af",
23
-  "projectname": "若依移动端",
23
+  "projectname": "智慧仲裁",
24 24
   "condition": {},
25 25
   "editorSetting": {
26 26
     "tabIndent": "insertSpaces",