Blame view

lvdao-miniapp/pages/serve/jiDed.vue 4.28 KB
e5b57447   杨鑫   '分包问卷'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  <template>
  	<view class="page">
  		<view class="msglist">
  			<view class="form-item">
  				<view class="label">问题</view>
  				<text>{{record.warrantyIssue || record.complaintType}}</text>
  			</view>
  			<view class="form-item">
  				<view class="label">申请时间</view>
  				<text>{{record.applicationTime}}</text>
  			</view>
  			<view class="form-item">
  				<view class="label">类型</view>
  				<text>{{record.deviceType || record.problemDescription}}</text>
  			</view>
  			<view class="form-item">
  				<view class="label">备注信息</view>
  				<text>{{record.memo || record.remark}}</text>
  			</view>
8c0a2463   杨鑫   '最新'
20
21
22
23
  			<view  style="padding: 5px 0;line-height: 36px;">
  				<view >评价信息</view>
  			</view>
  			<view style="padding: 10px 0;	border-bottom: #eee solid 1rpx;">{{record.estimate || '无'}}</view>
45318813   杨鑫   '最新版本'
24
25
26
27
  				<view style="padding: 5px 0;line-height: 36px;">现场照片</view>
  			<view class="imgList">
  				<u-image width="48%" height="280" border-radius="10" :src="$img+item" v-for="(item,index) in this.record.onSitePhoto"></u-image>
  			</view>
e5b57447   杨鑫   '分包问卷'
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
  		</view>
  		
  
  	</view>
  </template>
  
  <script>
  	export default {
  		data() {
  			return {
  				record:{},
  			}
  		},
  		 onLoad(options) {
  		    const item = JSON.parse(decodeURIComponent(options.item));
  		    console.log('Received item:', item);
  			this.record = item
45318813   杨鑫   '最新版本'
45
46
47
  			if(typeof this.record.onSitePhoto == 'string'){
  				this.record.onSitePhoto = 	this.record.onSitePhoto.split(',')
  			}
e5b57447   杨鑫   '分包问卷'
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
  		  },
  		methods: {
  			
  		}
  	}
  </script>
  
  <style scoped lang="scss">
  	.page{
  		position: absolute;
  		left: 0;
  		top: 0;
  		width: 100%;
  		height: 100%;
  		padding: 0 24rpx;
  	}
  	/* 记录列表 */
  	.record-list{
  		margin-top: 20rpx;
  		.good-item {
  			width: 100%;
  			display: flex;
  			background-color: #fff;
  			padding: 16rpx;
  			border-radius: 14rpx;
  			margin-bottom: 26rpx;
  			.img {
  				width: 200rpx;
  				height: 200rpx;
  			}
  			.info {
  				width: calc(100% - 220rpx);
  				margin-left: 20rpx;
  				.title {
  					width: 100%;
  					font-size: 28rpx;
  					line-height: 44rpx;
  					font-weight: 700;
  					white-space: nowrap;
  					overflow : hidden;
  					text-overflow: ellipsis;
  					margin-bottom: 20rpx;
  				}
  				.info-item {
  					display: flex;
  					line-height: 30rpx;
  					font-size: 26rpx;
  					color: #717981;
  					text {
  						white-space: nowrap;
  						overflow : hidden;
  						text-overflow: ellipsis;
  						margin-left: 10rpx;
  						span {
  							font-size: 30rpx;
  							color: #000;
  							font-weight: 700;
  						}
  					}
  					.u-tag {
  						margin: 0 6rpx;
  						border: unset;
  					}
  				}
  			}
  		}
  	}
  	.msglist{
45318813   杨鑫   '最新版本'
116
  		padding: 0 30rpx 20rpx 30rpx;
e5b57447   杨鑫   '分包问卷'
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
  		background-color: #Fff;
  		border-radius: 14rpx;
  		margin-bottom: 20rpx;
  		.form-item {
  			display: flex;
  			flex-direction: row;
  			align-items: center;
  			justify-content: space-between;
  			line-height: 70rpx;
  			border-bottom: #eee solid 1rpx;
  			padding: 10rpx 0;
  			&[label-top] {
  				flex-direction: column;
  				justify-content: flex-start;
  				align-items: flex-start;
  			}
  			text {
  				font-size: 24rpx;
  				color: #3D3D3D;
  			}
  			.img {
  				padding-bottom: 18rpx;
  			}
  			.deom-box {
  				width: 100%;
  				display: flex !important;
  				margin: 0 -20rpx;
  				background-color: #FFFFFF;
  				border-radius: 9px;
  				// margin-top: 9px;
  				width: 100%;
  				// .u-upload {
  				// .u-add-wrap {
  				// 	width: 304rpx !important;
  				// 	height: 182rpx !important;
  				// }
  				// }
  				// .u-upload {
  				// 	height: 88px;
  				// 	width: 155px;
  				// 	background: url(/static/images/uploadID1.png);
  				// 	background-size:134rpx 188rpx;
  				// 	background-repeat:no-repeat;
  				// }
  				.img-deom {
  					flex: 1;
  					display: flex;
  					flex-direction: column;
  					align-items: center;
  					padding: 20rpx;
  					text {
  						margin-top: 18rpx;
  					}
  				}
  			}
  		}
  		:last-child {
  			border-bottom: unset;
  		}
  	}
  	.footbtn{
  		position: fixed;
  		bottom: 0;
  		left: 0;
  		z-index: 10;
  		height:180rpx;
  		width: 100%;
  		border-radius: 26rpx 26rpx 0 0;
  		background-color: #fff;
  		.info-total {
  			display: flex;
  			flex-direction: row;
  			align-items: center;
  			justify-content: space-between;
  			margin: 24rpx 50rpx;
  			font-weight: 700;
  			font-size: 24rpx;
  			span {
  				color: #0FBB59;
  				font-size: 32rpx
  			}
  		}
  		.footer-btn {
  			display: flex;
  			.u-btn {
  				width: 40%;
  			}
  		}
  	}
45318813   杨鑫   '最新版本'
206
207
208
209
210
  	.imgList{
  		width: 100%;
  		display: flex;
  		justify-content: space-between;
  	}
e5b57447   杨鑫   '分包问卷'
211
  </style>