|
@@ -2,44 +2,23 @@
|
2
|
2
|
<div class="mine">
|
3
|
3
|
<div class="left">
|
4
|
4
|
<div class="user-info">
|
5
|
|
- <div class="user-img">
|
6
|
|
- <img :src="userInfo.avatar_url"
|
7
|
|
- alt />
|
8
|
|
- </div>
|
|
5
|
+ <div class="user-img"><img :src="userInfo.avatar_url"
|
|
6
|
+ alt=""></div>
|
9
|
7
|
<div class="user-span">
|
10
|
|
- <div class="name">
|
11
|
|
- 昵称:
|
12
|
|
- <span>{{userInfo.nickname}}</span>
|
13
|
|
- </div>
|
14
|
|
- <div class="sex">
|
15
|
|
- 性别:
|
16
|
|
- <span>{{userInfo.sex==1?'男':'女'}}</span>
|
17
|
|
- </div>
|
18
|
|
- <div class="age">
|
19
|
|
- 肤龄:
|
20
|
|
- <span>{{userInfo.age||'--'}}</span>
|
21
|
|
- </div>
|
22
|
|
- <div class="skin-type">
|
23
|
|
- 肤质:
|
24
|
|
- <span>{{userInfo.skin}}</span>
|
|
8
|
+ <div class="info">
|
|
9
|
+ <div class="name"><span>{{userInfo.nickname}}</span></div>
|
|
10
|
+ <div class="sex"><img :src="gender"
|
|
11
|
+ alt=""></div>
|
|
12
|
+ <div class="age"><span>{{userInfo.skin_age}}</span><span>肤龄</span></div>
|
25
|
13
|
</div>
|
|
14
|
+ <div class="skin-type">肤质:<span>{{userInfo.skin_type}}</span></div>
|
|
15
|
+ <div class="skin-color">肤色:<span>{{userInfo.skin_color}}</span></div>
|
|
16
|
+ <div class="skin-color">上传报告时间:<span>{{userInfo.check_time}}</span></div>
|
26
|
17
|
</div>
|
27
|
18
|
</div>
|
28
|
19
|
|
29
|
20
|
<div class="personage-data">
|
30
|
21
|
<div class="myDataList">
|
31
|
|
- 肌肤得分:
|
32
|
|
- <span class="bigSixe">{{userInfo.scorec}}分</span>
|
33
|
|
- </div>
|
34
|
|
- <div class="myDataList">
|
35
|
|
- 皮肤状态:
|
36
|
|
- <span>{{userInfo.skin_status}}</span>
|
37
|
|
- </div>
|
38
|
|
- <div class="myDataList">
|
39
|
|
- 上传检测时间:
|
40
|
|
- <span>{{userInfo.check_time}}</span>
|
41
|
|
- </div>
|
42
|
|
- <div class="myDataList">
|
43
|
22
|
出生日期:
|
44
|
23
|
<span>{{userInfo.birthday}}</span>
|
45
|
24
|
</div>
|
|
@@ -75,6 +54,10 @@
|
75
|
54
|
积分:
|
76
|
55
|
<span>{{userInfo.coin}}</span>
|
77
|
56
|
</div>
|
|
57
|
+ <div class="myDataList">
|
|
58
|
+ 备注:
|
|
59
|
+ <span>{{remarks | ellipsis(20)}}</span>
|
|
60
|
+ </div>
|
78
|
61
|
</div>
|
79
|
62
|
</div>
|
80
|
63
|
<div class="right">
|
|
@@ -82,15 +65,21 @@
|
82
|
65
|
<div class="right-top-data">
|
83
|
66
|
<div class="lable">
|
84
|
67
|
<div class="lable-title">面诊标签</div>
|
85
|
|
- <div class="lable-list">
|
86
|
|
- <div v-for="(item,index) in lableList"
|
87
|
|
- :key="index"
|
88
|
|
- class="lable-info">{{item.text}}</div>
|
|
68
|
+ <div class="problem">
|
|
69
|
+ <div class="problem-title">问题标签</div>
|
|
70
|
+ <div class="problem-lable">
|
|
71
|
+ <div class="lable-text problem-text">{{problem}}</div>
|
|
72
|
+ </div>
|
|
73
|
+ </div>
|
|
74
|
+ <div class="problem">
|
|
75
|
+ <div class="problem-title">面部标签</div>
|
|
76
|
+ <div class="problem-lable">
|
|
77
|
+ <div class="lable-text"
|
|
78
|
+ v-for="item,index in lableList"
|
|
79
|
+ :key="index"
|
|
80
|
+ :style="{background:item.bgcolor,borderColor:item.bdcolor}">{{item.text}}</div>
|
|
81
|
+ </div>
|
89
|
82
|
</div>
|
90
|
|
- </div>
|
91
|
|
- <div class="ps">
|
92
|
|
- <div class="ps-title">备注</div>
|
93
|
|
- <div class="ps-text">{{remarks | ellipsis(20)}}</div>
|
94
|
83
|
</div>
|
95
|
84
|
</div>
|
96
|
85
|
<div class="right-top-list">
|
|
@@ -120,40 +109,43 @@
|
120
|
109
|
<div class="tab">
|
121
|
110
|
<div class="tab-title">执行方案</div>
|
122
|
111
|
</div>
|
123
|
|
- <div class="programme-list">
|
124
|
|
- <div :class="['programme-info',item.onSelect?'programme-active':'']"
|
125
|
|
- v-for="(item,index) in programmeList"
|
126
|
|
- :key="index"
|
127
|
|
- @click="onOperation(index)">
|
128
|
|
- <div class="programme-left">
|
129
|
|
- <div class="programme-img">
|
130
|
|
- <img src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/pad_clerk/home/make.png"
|
131
|
|
- alt />
|
132
|
|
- </div>
|
133
|
|
- <div class="programme-tips">
|
134
|
|
- <div class="tips-title">{{'【清洁补水】华熙智慧…'|ellipsis(9)}}</div>
|
135
|
|
- <div class="tips-title">{{'美白、祛痘、抗皱'|ellipsis(9)}}</div>
|
136
|
|
- <div class="tips-title">
|
137
|
|
- 仪器:
|
138
|
|
- <span>{{'无创水光'|ellipsis(9)}}</span>
|
139
|
|
- </div>
|
140
|
|
- </div>
|
|
112
|
+ <div class="programmeList"
|
|
113
|
+ v-if="programmeList.length>0">
|
|
114
|
+ <div class="programmeWeek">
|
|
115
|
+ <div class="programmeItem"
|
|
116
|
+ v-for="item,index in programmeList"
|
|
117
|
+ :key="index">
|
|
118
|
+ <div :class="selectWeek==index?'weekItemSelect':'weekItem'"
|
|
119
|
+ @click="weekSelect(index)">{{item.name}}</div>
|
|
120
|
+ <div class="weekLine"
|
|
121
|
+ v-if="index==3?false:true"></div>
|
141
|
122
|
</div>
|
142
|
|
- <div class="programme-right">
|
143
|
|
- <div class="frequency">
|
144
|
|
- 执行频率:
|
145
|
|
- <span>一周一次</span>
|
|
123
|
+ </div>
|
|
124
|
+ <div class="doTime">{{programmeList[selectWeek].time}}</div>
|
|
125
|
+ <div class="weekDetails"
|
|
126
|
+ v-if="programmeList.length>0">
|
|
127
|
+ <div class="contentItem"
|
|
128
|
+ v-for="item,index1 in programmeList[selectWeek].list"
|
|
129
|
+ :key="index1">
|
|
130
|
+ <div class="itemTitle">
|
|
131
|
+ <div>{{item.name}}</div>
|
|
132
|
+ <div>{{item.classify_name}}</div>
|
|
133
|
+ <!-- <div>{{item.time}}</div> -->
|
146
|
134
|
</div>
|
147
|
|
- <div class="duration">
|
148
|
|
- 持续时长:
|
149
|
|
- <span>28天</span>
|
|
135
|
+ <div class="itemContent"
|
|
136
|
+ v-for="items,index2 in item.list"
|
|
137
|
+ :key="index2">
|
|
138
|
+ <img class="itemContent-img"
|
|
139
|
+ :src="items.cover_url" />
|
|
140
|
+ <div class="itemContent-right">
|
|
141
|
+ <div class="right-content">
|
|
142
|
+ <div class="right-name">{{items.name |ellipsis(14)}}</div>
|
|
143
|
+ <div class="right-price">{{items.price |doubleNum(2)}}</div>
|
|
144
|
+ </div>
|
|
145
|
+ <div class="right-project">{{items.product_name}}</div>
|
|
146
|
+ </div>
|
150
|
147
|
</div>
|
151
|
148
|
</div>
|
152
|
|
- <div class="operation"
|
153
|
|
- v-if="item.onSelect">
|
154
|
|
- <div class="edit">编辑</div>
|
155
|
|
- <div class="delete">删除</div>
|
156
|
|
- </div>
|
157
|
149
|
</div>
|
158
|
150
|
</div>
|
159
|
151
|
</div>
|
|
@@ -176,8 +168,10 @@ export default {
|
176
|
168
|
age: "23",
|
177
|
169
|
skinType: "中性皮肤"
|
178
|
170
|
},
|
|
171
|
+ problem: "",
|
179
|
172
|
//面部标签
|
180
|
|
- lableList: [],
|
|
173
|
+ lableList: [
|
|
174
|
+ ],
|
181
|
175
|
//执行方案
|
182
|
176
|
programmeList: [],
|
183
|
177
|
|
|
@@ -186,7 +180,7 @@ export default {
|
186
|
180
|
projectList: [],
|
187
|
181
|
|
188
|
182
|
order_total: {},
|
189
|
|
-
|
|
183
|
+ selectWeek: 0,
|
190
|
184
|
timesInfo: "",
|
191
|
185
|
projectInfo: "",
|
192
|
186
|
weekInfo: "",
|
|
@@ -195,7 +189,14 @@ export default {
|
195
|
189
|
isPupop: false
|
196
|
190
|
};
|
197
|
191
|
},
|
198
|
|
- computed: {},
|
|
192
|
+ computed: {
|
|
193
|
+ gender () {
|
|
194
|
+ // 性别,1男,2女,0保密
|
|
195
|
+ return this.userInfo.sex == 1 ?
|
|
196
|
+ 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20220610/male.png' :
|
|
197
|
+ 'https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20220610/female.png'
|
|
198
|
+ }
|
|
199
|
+ },
|
199
|
200
|
watch: {},
|
200
|
201
|
|
201
|
202
|
methods: {
|
|
@@ -203,14 +204,56 @@ export default {
|
203
|
204
|
api.getPadUserInfo({ id: this.id }).then(res => {
|
204
|
205
|
this.userInfo = res.data.user;
|
205
|
206
|
this.remarks = res.data.remark;
|
206
|
|
- this.lableList = res.data.tags;
|
|
207
|
+ this.problem = res.data.skin_name;
|
|
208
|
+ let _problem = []
|
|
209
|
+ res.data.face_names.forEach(item => {
|
|
210
|
+ let info = {}
|
|
211
|
+ info['text'] = item
|
|
212
|
+ _problem.push(info)
|
|
213
|
+ console.log(_problem, '_problem');
|
|
214
|
+ })
|
|
215
|
+ this.lableList = _problem
|
|
216
|
+ this.remarks = res.data.remark
|
|
217
|
+ this.randomColor();
|
207
|
218
|
this.order_total = res.data.order_total;
|
208
|
219
|
this.programmeList = res.data.scheme_list;
|
209
|
220
|
// this.programmeList = res.data.order_data.project_list;
|
210
|
221
|
// this.coupon_list = res.data.order_data.coupon_list;
|
211
|
222
|
});
|
212
|
223
|
},
|
213
|
|
-
|
|
224
|
+ randomColor (type) {
|
|
225
|
+ let arr = [
|
|
226
|
+ {
|
|
227
|
+ background: "rgba(244, 247, 255, 1)",
|
|
228
|
+ border: "rgba(85, 124, 255, 1)"
|
|
229
|
+ },
|
|
230
|
+ {
|
|
231
|
+ background: "rgba(245, 252, 245, 1)",
|
|
232
|
+ border: "rgba(66, 211, 81, 1)"
|
|
233
|
+ },
|
|
234
|
+ {
|
|
235
|
+ background: "rgba(254, 244, 237, 1)",
|
|
236
|
+ border: "rgba(250, 125, 34, 1)"
|
|
237
|
+ },
|
|
238
|
+ {
|
|
239
|
+ background: "rgba(249, 245, 255, 1)",
|
|
240
|
+ border: "rgba(136, 50, 255, 1)"
|
|
241
|
+ },
|
|
242
|
+ {
|
|
243
|
+ background: "rgba(255, 252, 245, 1)",
|
|
244
|
+ border: "rgba(204, 116, 42, 1)"
|
|
245
|
+ }
|
|
246
|
+ ];
|
|
247
|
+ this.lableList.forEach(res => {
|
|
248
|
+ let color = Math.floor(Math.random() * arr.length);
|
|
249
|
+ this.$set(res, "bgcolor", arr[color].background);
|
|
250
|
+ this.$set(res, "bdcolor", arr[color].border);
|
|
251
|
+ });
|
|
252
|
+ },
|
|
253
|
+ weekSelect (index) {
|
|
254
|
+ console.log("xxxx");
|
|
255
|
+ this.selectWeek = index;
|
|
256
|
+ },
|
214
|
257
|
onOperation (index) {
|
215
|
258
|
if (this.programmeList[index].onSelect) {
|
216
|
259
|
this.$set(
|
|
@@ -270,27 +313,47 @@ export default {
|
270
|
313
|
display: flex;
|
271
|
314
|
align-items: center;
|
272
|
315
|
.user-img {
|
273
|
|
- width: 98px;
|
|
316
|
+ width: 96px;
|
274
|
317
|
img {
|
275
|
318
|
width: 100%;
|
276
|
319
|
display: block;
|
|
320
|
+ border-radius: 6px;
|
277
|
321
|
}
|
278
|
322
|
}
|
279
|
323
|
.user-span {
|
280
|
324
|
margin-left: 12px;
|
281
|
|
- .sex {
|
282
|
|
- margin-top: 8px;
|
283
|
|
- }
|
284
|
|
- .age {
|
285
|
|
- margin-top: 8px;
|
286
|
|
- }
|
287
|
|
- .skin-type {
|
288
|
|
- margin-top: 8px;
|
289
|
|
- }
|
290
|
325
|
|
291
|
326
|
span {
|
292
|
327
|
color: #333333;
|
293
|
328
|
}
|
|
329
|
+ .info {
|
|
330
|
+ display: flex;
|
|
331
|
+ justify-content: space-between;
|
|
332
|
+
|
|
333
|
+ .name {
|
|
334
|
+ font-size: 16px;
|
|
335
|
+ }
|
|
336
|
+ .sex {
|
|
337
|
+ img {
|
|
338
|
+ width: 24px;
|
|
339
|
+ height: 24px;
|
|
340
|
+ }
|
|
341
|
+ }
|
|
342
|
+ .age {
|
|
343
|
+ margin-left: 13px;
|
|
344
|
+ span:nth-child(1) {
|
|
345
|
+ font-size: 22px;
|
|
346
|
+ }
|
|
347
|
+ span:nth-child(2) {
|
|
348
|
+ margin-left: 4px;
|
|
349
|
+ color: #999999;
|
|
350
|
+ }
|
|
351
|
+ }
|
|
352
|
+ }
|
|
353
|
+ div:nth-child(2),
|
|
354
|
+ div:nth-child(3) {
|
|
355
|
+ margin-bottom: 8px;
|
|
356
|
+ }
|
294
|
357
|
}
|
295
|
358
|
}
|
296
|
359
|
.personage-data {
|
|
@@ -368,6 +431,44 @@ export default {
|
368
|
431
|
line-height: 20px;
|
369
|
432
|
margin-bottom: 14px;
|
370
|
433
|
}
|
|
434
|
+ .problem {
|
|
435
|
+ display: flex;
|
|
436
|
+ .problem-title {
|
|
437
|
+ font-size: 13px;
|
|
438
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
439
|
+ font-weight: 400;
|
|
440
|
+ color: #333333;
|
|
441
|
+ line-height: 18px;
|
|
442
|
+ }
|
|
443
|
+ .problem-lable {
|
|
444
|
+ flex: 1;
|
|
445
|
+ overflow-y: hidden;
|
|
446
|
+ width: 100%;
|
|
447
|
+ height: 68px;
|
|
448
|
+ font-size: 12px;
|
|
449
|
+ font-family: PingFang-SC-Regular, PingFang-SC;
|
|
450
|
+ font-weight: 400;
|
|
451
|
+ color: #333333;
|
|
452
|
+ line-height: 17px;
|
|
453
|
+ display: flex;
|
|
454
|
+ flex-flow: column wrap;
|
|
455
|
+ list-style-type: none;
|
|
456
|
+ overflow-x: scroll;
|
|
457
|
+ align-items: baseline;
|
|
458
|
+
|
|
459
|
+ .lable-text {
|
|
460
|
+ margin-left: 10px;
|
|
461
|
+ margin-bottom: 10px;
|
|
462
|
+ border: 1px solid #42d351;
|
|
463
|
+ padding: 0 12px;
|
|
464
|
+ border-radius: 2px;
|
|
465
|
+ }
|
|
466
|
+ .problem-text {
|
|
467
|
+ background: rgba(244, 247, 255, 1);
|
|
468
|
+ border: 1px solid rgba(85, 124, 255, 1);
|
|
469
|
+ }
|
|
470
|
+ }
|
|
471
|
+ }
|
371
|
472
|
.lable-list {
|
372
|
473
|
width: 100%;
|
373
|
474
|
min-height: 105rpx;
|
|
@@ -420,16 +521,147 @@ export default {
|
420
|
521
|
}
|
421
|
522
|
.right-bottom {
|
422
|
523
|
margin-top: 18px;
|
|
524
|
+ width: 575px;
|
|
525
|
+ height: 286px;
|
423
|
526
|
background: #ffffff;
|
424
|
527
|
box-shadow: 0px 2px 4px 0px rgba(184, 191, 198, 0.2);
|
425
|
528
|
border-radius: 8px;
|
426
|
|
- padding: 16px 61px 12px 12px;
|
|
529
|
+ padding: 16px 12px 12px 12px;
|
427
|
530
|
.programme {
|
428
|
531
|
// margin-top: 20px;
|
429
|
532
|
width: 100%;
|
430
|
533
|
background: #ffffff;
|
431
|
534
|
border-radius: 8px;
|
|
535
|
+ .programmeList {
|
|
536
|
+ width: 550px;
|
|
537
|
+ .programmeWeek {
|
|
538
|
+ display: flex;
|
|
539
|
+ align-items: center;
|
|
540
|
+ }
|
|
541
|
+
|
|
542
|
+ .programmeItem {
|
|
543
|
+ margin-top: 20px;
|
|
544
|
+ flex: 1;
|
|
545
|
+ display: flex;
|
|
546
|
+ }
|
|
547
|
+ .weekItem {
|
|
548
|
+ text-align: center;
|
|
549
|
+ font-size: 13px;
|
|
550
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
551
|
+ font-weight: 400;
|
|
552
|
+ color: #999999;
|
|
553
|
+ flex: 1;
|
|
554
|
+ }
|
|
555
|
+
|
|
556
|
+ .weekItemSelect {
|
|
557
|
+ text-align: center;
|
|
558
|
+ font-size: 13px;
|
|
559
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
560
|
+ font-weight: 400;
|
|
561
|
+ color: #fa7d22;
|
|
562
|
+ flex: 1;
|
|
563
|
+ }
|
432
|
564
|
|
|
565
|
+ .weekLine {
|
|
566
|
+ width: 1px;
|
|
567
|
+ height: 12px;
|
|
568
|
+ background: #f0f0f0;
|
|
569
|
+ }
|
|
570
|
+ .doTime {
|
|
571
|
+ // margin-left: 20px;
|
|
572
|
+ line-height: 30px;
|
|
573
|
+ font-size: 12px;
|
|
574
|
+ font-weight: 500;
|
|
575
|
+ color: #333333;
|
|
576
|
+ }
|
|
577
|
+ .weekDetails {
|
|
578
|
+ height: 180px;
|
|
579
|
+ border-radius: 6px;
|
|
580
|
+ border: 1px solid #f5f5f5;
|
|
581
|
+ display: flex;
|
|
582
|
+ align-items: center;
|
|
583
|
+ overflow: scroll;
|
|
584
|
+ }
|
|
585
|
+
|
|
586
|
+ .contentItem {
|
|
587
|
+ margin-left: 10px;
|
|
588
|
+ width: 317px;
|
|
589
|
+ min-height: 211px;
|
|
590
|
+ border-right: 1px solid #f5f5f5;
|
|
591
|
+ // overflow-y: scroll;
|
|
592
|
+ }
|
|
593
|
+
|
|
594
|
+ .line-hor {
|
|
595
|
+ margin-top: 30px;
|
|
596
|
+ margin-left: 10px;
|
|
597
|
+ width: 1px;
|
|
598
|
+ height: 261px;
|
|
599
|
+ background: #f0f0f0;
|
|
600
|
+ }
|
|
601
|
+
|
|
602
|
+ .itemTitle {
|
|
603
|
+ display: flex;
|
|
604
|
+ padding-right: 10px;
|
|
605
|
+ justify-content: space-between;
|
|
606
|
+ width: 100%;
|
|
607
|
+ line-height: 20px;
|
|
608
|
+ font-size: 12px;
|
|
609
|
+ font-weight: 400;
|
|
610
|
+ color: #333333;
|
|
611
|
+ }
|
|
612
|
+
|
|
613
|
+ .itemContent {
|
|
614
|
+ width: 317px;
|
|
615
|
+ margin-top: 10px;
|
|
616
|
+ display: flex;
|
|
617
|
+ align-items: center;
|
|
618
|
+ height: 49px;
|
|
619
|
+ }
|
|
620
|
+
|
|
621
|
+ .itemContent-img {
|
|
622
|
+ width: 49px;
|
|
623
|
+ height: 49px;
|
|
624
|
+ background: #d8d8d8;
|
|
625
|
+ border-radius: 2px;
|
|
626
|
+ }
|
|
627
|
+
|
|
628
|
+ .itemContent-right {
|
|
629
|
+ margin-left: 10px;
|
|
630
|
+ display: flex;
|
|
631
|
+ flex-direction: column;
|
|
632
|
+ height: 49px;
|
|
633
|
+ flex: 1;
|
|
634
|
+ }
|
|
635
|
+
|
|
636
|
+ .right-content {
|
|
637
|
+ flex: 1;
|
|
638
|
+ display: flex;
|
|
639
|
+ }
|
|
640
|
+
|
|
641
|
+ .right-name {
|
|
642
|
+ font-size: 12px;
|
|
643
|
+ font-family: PingFangSC-Medium, PingFang SC;
|
|
644
|
+ font-weight: 500;
|
|
645
|
+ color: #333333;
|
|
646
|
+ flex: 1;
|
|
647
|
+ }
|
|
648
|
+
|
|
649
|
+ .right-price {
|
|
650
|
+ margin-right: 10px;
|
|
651
|
+ margin-left: 20px;
|
|
652
|
+ font-size: 12px;
|
|
653
|
+ font-family: OPPOSans-B, OPPOSans;
|
|
654
|
+ font-weight: normal;
|
|
655
|
+ color: #ff3007;
|
|
656
|
+ }
|
|
657
|
+
|
|
658
|
+ .right-project {
|
|
659
|
+ font-size: 12px;
|
|
660
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
661
|
+ font-weight: 400;
|
|
662
|
+ color: #ffc630;
|
|
663
|
+ }
|
|
664
|
+ }
|
433
|
665
|
.tab {
|
434
|
666
|
display: flex;
|
435
|
667
|
align-items: center;
|