1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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
116
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
<template>
<view>
<view class="content">
<view class="flex">
<view class="search_view flex">
<i class="search_icon"></i>
<input type="text" class="search_input">
</view>
<text class="login_btn">登录</text>
</view>
<view class="flex tab_bar">
<text :class="{act: tabIndex === 1}" @click="changeTab(1)">首页</text>
<text :class="{act: tabIndex === 2}" @click="changeTab(2)">精彩活动</text>
<text :class="{act: tabIndex === 3}" @click="changeTab(3)">谛宝白条</text>
<text :class="{act: tabIndex === 4}" @click="changeTab(4)">采购分期</text>
</view>
</view>
<view class="backimg">
<view class="main_content">
<view class="part_one">
<view>
<text class="text">白条商品</text>
<i></i>
<text class="text">信用支付 帐期无忧</text>
</view>
<view class="flex classbox">
<view class="class_item">
<image src="https://dbc-static.oss-cn-beijing.aliyuncs.com/credit_shop/20190723/goods/5d367110e1741.jpeg?x-oss-process=image/resize,m_lfit,w_750,h_750/auto-orient,0/quality,Q_85/format,jpg"></image>
<text class="class_name">分类名称</text>
</view>
</view>
</view>
<view class="part_two">
<image class="portrait" src="https://dbc-static.oss-cn-beijing.aliyuncs.com/credit_shop/20190723/goods/5d367110e1741.jpeg?x-oss-process=image/resize,m_lfit,w_750,h_750/auto-orient,0/quality,Q_85/format,jpg"></image>
<text class="user_name">Hi, 谛宝多多</text>
<text class="go_credit"><text>我的白条</text><i class="go_credit_icon"></i></text>
</view>
<view class="part_three">
<view class="part_three_top">
<view>
<p>谛宝多多 帐期无忧</p>
<p>最高可享12期免息</p>
</view>
<text class="go_detail">查看详情<i class="go_credit_icon"></i></text>
</view>
<view class="part_three_bottom">
<view class="hot_goods">
<image src="/static/index/28x28icon_sousuo@3x.png"></image>
<p>DBC核磁</p>
<text>9个月账期</text>
</view>
</view>
</view>
<view class="part_four">
<p>白条精品 猜你需要</p>
<view class="needs_tabs">
<text class="tabs_item_first"><text>a</text></text>
<text class="tabs_item"><text>a</text></text>
<text class="tabs_item_last"><text>a</text></text>
</view>
<view>
<view class="goods_info">
<image src="https://dbc-static.oss-cn-beijing.aliyuncs.com/credit_shop/20190723/goods/5d367110e1741.jpeg?x-oss-process=image/resize,m_lfit,w_750,h_750/auto-orient,0/quality,Q_85/format,jpg"></image>
<text class="goods_name">xxxxxxxx</text>
<view class="goods_tag">
<text>限时免息</text>
<text>9个月账期</text>
</view>
<text class="goods_des">套餐包含:激光体厚尺1台,内窥镜仪器1台,输液泵一大萨达大多</text>
<view class="price_view">
<text>¥1000</text>
<i></i>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
tabIndex: 1, // 1:首页 2:精彩活动 3:谛宝白条 4:采购分期
}
},
onLoad() {
},
methods: {
changeTab(index) {
this.tabIndex = index;
}
}
};
</script>
<style lang="less">
.flex {
display: flex;
}
.content {
height: 180rpx;
background: #fff;
justify-content: space-between;
padding: 24rpx;
box-sizing: border-box;
}
.search_view {
width: 380rpx;
height: 60rpx;
background: #F5F5F5;
border-radius: 30rpx;
}
.search_icon {
display: inline-block;
width: 56rpx;
height: 56rpx;
background: url(/static/index/28x28icon_sousuo@3x.png) no-repeat;
background-size: 100% 100%;
}
.search_input {
height: 60rpx;
}
.login_btn {
width: 92rpx;
height: 60rpx;
line-height: 60rpx;
background: #FFCD00;
border-radius: 16rpx;
color: #212121;
font-size: 28rpx;
text-align: center;
}
.tab_bar {
padding: 0 24rpx;
justify-content: space-between;
margin-top: 34rpx;
}
.tab_bar text {
font-size: 28rpx;
color: #212121;
line-height: 40rpx;
}
.tab_bar .act {
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
font-size: 32rpx;
position: relative;
}
.tab_bar .act:after {
position: absolute;
width: 60rpx;
height: 4rpx;
background: #FFCD00;
border-radius: 0 2rpx 2rpx 2rpx;
content: '';
left: 50%;
margin-left: -30rpx;
top: 48rpx;
}
.backimg {
height: 678rpx;
background: red;
padding-top: 0.5px;
}
.main_content {
width: 93.6%;
margin: 308rpx auto 0;
}
.part_one {
padding: 36rpx 40rpx 0;
border-radius: 16rpx;
background: #fff;
}
.part_one .text:nth-of-type(1) {
font-size: 36rpx;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
line-height: 50rpx;
vertical-align: middle;
}
.part_one .text:nth-of-type(2) {
color: #7c7c7c;
font-size:24rpx;
font-family:PingFangSC-Regular,PingFang SC;
font-weight:400;
line-height: 34rpx;
vertical-align: middle;
}
.part_one i {
display: inline-block;
width: 2rpx;
height: 20rpx;
background: #979797;
margin: 0 12rpx;
vertical-align: middle;
}
.classbox {
justify-content: space-between;
flex-wrap: wrap;
margin-top: 22rpx;
box-shadow:0px 4px 16px 0px rgba(0,0,0,0.03);
}
.classbox image {
display: block;
width: 100rpx;
height: 96rpx;
border-radius: 50%;
}
.classbox .class_name {
font-size: 22rpx;
line-height: 32rpx;
}
.part_two {
box-shadow:0px 4px 10px 0px rgba(0,0,0,0.05);
border-radius:16rpx;
padding: 26rpx;
background: #fff;
margin-top: 20rpx;
}
.part_two .portrait {
width: 80rpx;
height: 80rpx;
border-radius: 50%;
vertical-align: middle;
}
.part_two .user_name {
font-size: 32rpx;
font-weight: 600;
vertical-align: middle;
margin: 0 200rpx 0 16rpx;
}
.go_credit {
display: inline-block;
width: 160rpx;
height: 56rpx;
border-radius: 28rpx;
background: #D6C453;
color: #fff;
text-align: center;
line-height: 56rpx;
font-size: 26rpx;
vertical-align: middle;
padding-left: 10rpx;
}
.go_credit_icon {
display: inline-block;
width: 32rpx;
height: 32rpx;
background: url(/static/common/icon_next_small%20heise@2x.png) no-repeat;
background-size: 100% 100%;
position: relative;
top: 6rpx;
}
.part_three {
height: 522rpx;
border-radius:16rpx;
padding: 0 22rpx;
background: red;
box-shadow:0px 12rpx 20rpx 0px rgba(0,0,0,0.05);
margin-top: 20rpx;
padding-top: 0.5px;
.part_three_top {
display: flex;
justify-content: space-between;
margin-top: 32rpx;
align-items: center;
p:nth-of-type(1) {
color: #2E344C;
font-size: 36rpx;
font-family:AlibabaPuHuiTiB;
line-height: 50rpx;
font-weight: bold;
}
p:nth-of-type(2) {
font-size: 32rpx;
line-height: 44rpx;
color: #2E344C;
}
.go_detail {
background:rgba(0,0,0,0.5);
width: 148rpx;
height: 46rpx;
border-radius: 23rpx;
color: #fff;
font-size: 24rpx;
line-height: 46rpx;
text-align: center;
padding-left: 10rpx;
}
}
.part_three_bottom {
display: flex;
justify-content: space-between;
.hot_goods {
width: 212rpx;
height: 332rpx;
background: #fff;
border-radius: 16rpx;
margin-top: 44rpx;
text-align: center;
image {
width: 212rpx;
height: 212rpx;
}
}
p {
font-size: 26rpx;
line-height: 36rpx;
width: 80%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin: 8rpx auto 0;
}
text {
border: 1px solid #C7B64E;
height: 36rpx;
line-height: 36rpx;
border-radius: 18rpx;
padding: 0 12rpx;
font-size: 22rpx;
color: #C7B64E;
position: relative;
top: -10rpx;
}
}
}
.part_four {
margin-top: 40rpx;
> p {
font-size: 32rpx;
height: 44rpx;
line-height: 44rpx;
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
margin-bottom: 24rpx;
}
.needs_tabs {
height: 64rpx;
overflow: auto;
margin-bottom: 20rpx;
display: flex;
> text {
height: 64rpx;
line-height: 64rpx;
text-align: center;
background: #ECECEC;
display: inline-block;
width: 220rpx;
margin-right: 20rpx;
position: relative;
text {
display: block;
transform: skew(30deg);
}
}
.tabs_item_first {
border-radius: 32rpx 16rpx 16rpx 32rpx;
transform: skew(-30deg);
}
.tabs_item_first:after {
position: absolute;
left: 0;
top: 0;
content: '';
height: 64rpx;
width: 64rpx;
border-radius: 32rpx 0 0 32rpx;
background: #ECECEC;
transform: skew(30deg);
}
.tabs_item {
border-radius: 16rpx;
transform: skew(-30deg);
}
.tabs_item_last {
border-radius: 16rpx 32rpx 32rpx 16rpx;
transform: skew(-30deg);
}
}
.goods_info {
width: 346rpx;
height: 600rpx;
padding: 32rpx;
box-sizing: border-box;
image {
width: 280rpx;
height: 280rpx;
}
.goods_name {
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 26rpx;
color: #212121;
line-height: 38rpx;
display: block;
}
.goods_tag {
display: block;
text {
display: inline-block;
vertical-align: middle;
border: 1px solid #C7B64E;
color: #C7B64E;
height: 36rpx;
line-height: 36rpx;
padding: 0 12rpx;
border-radius: 18rpx;
font-size: 22rpx;
margin-right: 8rpx;
}
}
.goods_des {
height: 64rpx;
font-size: 22rpx;
line-height: 32rpx;
color: #7C7C7C;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 12rpx;
}
.price_view {
display: flex;
justify-content: space-between;
align-items: center;
height: 56rpx;
margin-top: 10rpx;
text {
font-family:PingFangSC-Medium,PingFang SC;
font-weight:500;
color: #000;
font-size: 32rpx;
line-height: 44rpx;
}
i {
display: inline-block;
width: 56rpx;
height: 56rpx;
background: url(/static/common/icon_gouwuche@2x.png) no-repeat;
background-size: 100% 100%;
}
}
}
}
</style>