Commit c8cf1f01d7833acd13592babd7d31298cb4e2e93
1 parent
c33c9d8e
组件我的收藏
Showing
3 changed files
with
172 additions
and
0 deletions
components/goods_list/goods_list.json
0 → 100644
components/goods_list/goods_list.wxml
0 → 100644
1 | + <!-- 商品列表 --> | ||
2 | + <wxs module="filter" src="../../utils/filter.wxs"></wxs> | ||
3 | + <view class="collects"> | ||
4 | + <view class="hang "> | ||
5 | + <!-- 商品详情 --> | ||
6 | + <view class="collect ib" wx:for="{{recommend}}" bindtap="go_url" data-url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}"> | ||
7 | + <!-- 商品图片 --> | ||
8 | + <image class="sp" src="{{url+item.original_img}}" mode="scaleToFill" binderror="bind_bnerr_xc" data-url="{{item.original_img}}" data-errorimg="recommend[{{index}}].original_img"></image> | ||
9 | + <view class="bottom"> | ||
10 | + <!-- 商品名称 --> | ||
11 | + <view class="goods_name ellipsis-2 fs24">{{item.goods_name}}</view> | ||
12 | + <!-- 商品价格 --> | ||
13 | + <view class="money flex"> | ||
14 | + <!-- 办卡价 --> | ||
15 | + <view class="flex xc-wc"> | ||
16 | + <view class="fs24">¥</view> | ||
17 | + <view class="fs35">{{filter.toFix(item.shop_price,2)}}</view> | ||
18 | + </view> | ||
19 | + <!-- 原价 --> | ||
20 | + <view class="price flex xc-ash"> | ||
21 | + <view class="fs22">¥</view> | ||
22 | + <view class="fs22">{{item.market_price}}</view> | ||
23 | + </view> | ||
24 | + </view> | ||
25 | + </view> | ||
26 | + </view> | ||
27 | + </view> | ||
28 | + <view class="nothing flex-center" wx:if="{{is_no_more==0}}"> | ||
29 | + <view class="Foil"></view> | ||
30 | + <view class="no_content fs24">没有更多内容了</view> | ||
31 | + <view class="Foil"></view> | ||
32 | + </view> | ||
33 | + </view> | ||
34 | + | ||
35 | + | ||
36 | + | ||
0 | \ No newline at end of file | 37 | \ No newline at end of file |
components/goods_list/goods_list.wxss
0 → 100644
1 | +.collects { | ||
2 | + margin-top: 40rpx; | ||
3 | +} | ||
4 | +.ib{ | ||
5 | + display: inline-block; | ||
6 | +} | ||
7 | +.fs24{ | ||
8 | + font-size: 24rpx; | ||
9 | +} | ||
10 | +.flex-center{ | ||
11 | +display:flex; | ||
12 | +justify-content:center; | ||
13 | +align-items:center; | ||
14 | +} | ||
15 | +.xc-wc{ | ||
16 | + color: #d60021; | ||
17 | + | ||
18 | +} | ||
19 | +.fs22{ | ||
20 | + font-size: 22rpx; | ||
21 | +} | ||
22 | +.xc-ash{ | ||
23 | +color: #b9b9b9; | ||
24 | +} | ||
25 | +.choice_box .choice_list .choice_footer .price { | ||
26 | + color: #f23030; height: 10px | ||
27 | +} | ||
28 | +.fs35{ | ||
29 | + font-size:35rpx; | ||
30 | +} | ||
31 | +.flex{display: flex} | ||
32 | +.ellipsis-2 { | ||
33 | + overflow: hidden; | ||
34 | + text-overflow: ellipsis; | ||
35 | + display: -webkit-box; | ||
36 | + -webkit-box-orient: vertical; | ||
37 | + -webkit-line-clamp: 2; | ||
38 | +} | ||
39 | +.goods_name{ | ||
40 | + height: 62rpx; | ||
41 | + margin-top: 6rpx; | ||
42 | + line-height: 30rpx | ||
43 | +} | ||
44 | +.hang { | ||
45 | + width: 100%; | ||
46 | + margin: auto; | ||
47 | + padding-left: 21rpx; | ||
48 | +} | ||
49 | + | ||
50 | +.hang .collect { | ||
51 | + width: 347rpx; | ||
52 | + height: 571rpx; | ||
53 | + border-radius: 25rpx; | ||
54 | + border: 1rpx solid rgb(214, 214, 214); | ||
55 | + overflow: hidden; | ||
56 | + margin-right: 14rpx; | ||
57 | + margin-bottom: 5rpx; | ||
58 | +} | ||
59 | + | ||
60 | +.collect .bottom { | ||
61 | + padding: 0rpx 20rpx; | ||
62 | +} | ||
63 | + | ||
64 | +.collect .sp { | ||
65 | + width: 100%; | ||
66 | + height: 326rpx; | ||
67 | +} | ||
68 | + | ||
69 | +.collect .money { | ||
70 | + margin-top: 60rpx; | ||
71 | + margin-bottom: 18rpx; | ||
72 | + line-height: 28rpx; | ||
73 | + align-items: baseline; | ||
74 | +} | ||
75 | +.collect .money view{ | ||
76 | + line-height: 28rpx; | ||
77 | +} | ||
78 | +.collect .money .flex { | ||
79 | + font-weight: bold; | ||
80 | +} | ||
81 | +.collect .money .flex .fs24{ | ||
82 | + padding-top: 5rpx; | ||
83 | +} | ||
84 | +.collect .Discount { | ||
85 | + width: 156rpx; | ||
86 | + height: 28rpx; | ||
87 | + border-radius: 20rpx; | ||
88 | + background-color: rgb(56, 56, 56); | ||
89 | + font-size: 18rpx; | ||
90 | + color: rgb(255, 255, 255); | ||
91 | +} | ||
92 | + | ||
93 | +.collect .Discount image { | ||
94 | + height: 18rpx; | ||
95 | + width: 18rpx; | ||
96 | + line-height: 28rpx; | ||
97 | + margin-right: 3rpx; | ||
98 | +} | ||
99 | + | ||
100 | +.collect.ml20 { | ||
101 | + margin-left: 13rpx; | ||
102 | +} | ||
103 | + | ||
104 | +.fs24.dollar { | ||
105 | + padding: 0rpx; | ||
106 | +} | ||
107 | + | ||
108 | +.money .price { | ||
109 | + margin-left: 12rpx; | ||
110 | + text-decoration: line-through; | ||
111 | + line-height: 23rpx; | ||
112 | +} | ||
113 | + | ||
114 | +.province { | ||
115 | + line-height: 26rpx; | ||
116 | +} | ||
117 | + | ||
118 | +.nothing { | ||
119 | + height: 75rpx; | ||
120 | + width: 100%; | ||
121 | +} | ||
122 | + | ||
123 | +.nothing .no_content { | ||
124 | + margin: 0rpx 11rpx; | ||
125 | + color: rgb(138, 138, 138); | ||
126 | +} | ||
127 | + | ||
128 | +.nothing .Foil { | ||
129 | + width: 80rpx; | ||
130 | + height: 2rpx; | ||
131 | + background-color: rgb(138, 138, 138); | ||
132 | +} | ||
0 | \ No newline at end of file | 133 | \ No newline at end of file |