Commit 51868f39c61637e69d294ec14e75d8dba7211bd4

Authored by 后端开发-许程
1 parent 6baaabee

商城首页 及推荐商品修改

components/goods_list/goods_list.wxml
... ... @@ -8,7 +8,7 @@
8 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 9 <view class="bottom">
10 10 <!-- 商品名称 -->
11   - <view class="goods_name ellipsis-2 fs24">{{item.goods_name}}</view>
  11 + <view class="goods_name ellipsis-2 fs28">{{item.goods_name}}</view>
12 12 <!-- 商品价格 -->
13 13 <view class="money flex">
14 14 <!-- 办卡价 -->
... ...
components/goods_list/goods_list.wxss
... ... @@ -37,19 +37,24 @@ color: #b9b9b9;
37 37 -webkit-line-clamp: 2;
38 38 }
39 39 .goods_name{
40   - height: 62rpx;
  40 + height: 62rpx;
41 41 margin-top: 6rpx;
42   - line-height: 30rpx
  42 + line-height: 30rpx;
  43 +
  44 +
43 45 }
44 46 .hang {
45 47 width: 100%;
46 48 margin: auto;
47 49 padding-left: 21rpx;
48 50 }
  51 +.fs28{
  52 + font-size: 28rpx;
  53 +}
49 54  
50 55 .hang .collect {
51 56 width: 347rpx;
52   - height: 571rpx;
  57 + height: 495rpx;
53 58 border-radius: 25rpx;
54 59 border: 1rpx solid rgb(214, 214, 214);
55 60 overflow: hidden;
... ... @@ -67,7 +72,7 @@ color: #b9b9b9;
67 72 }
68 73  
69 74 .collect .money {
70   - margin-top: 60rpx;
  75 + margin-top: 30rpx;
71 76 margin-bottom: 18rpx;
72 77 line-height: 28rpx;
73 78 align-items: baseline;
... ...
pages/index/index/index.js
... ... @@ -116,6 +116,7 @@ Page({
116 116 }).then(res => {
117 117 if(res.data.data) {
118 118 var gd_category = res.data.data.pageData;
  119 +
119 120 th.setData({gd_category: gd_category});
120 121 }
121 122 })
... ...
pages/index/index/index.wxml
... ... @@ -102,7 +102,7 @@
102 102 <view wx:for="{{gd_category}}"
103 103 bindtap="go_cate2" data-cid="{{item.id}}" data-pid="0">
104 104 <view class="circle xc-class-frame t-c">
105   - <image class="xc-class-img" src="{{url+item.icon}}" binderror="bind_bnerr_icon"
  105 + <image class="xc-class-img" src="{{item.icoimg==null||item.icoimg==''?url+item.icon:item.icoimg}}" binderror="bind_bnerr_icon"
106 106 data-err="gd_category[{{index}}].icon"></image>
107 107 <view class="fs24">{{item.name}}</view>
108 108 </view>
... ...
pages/index/index/index.wxss
... ... @@ -74,7 +74,7 @@ left: 10%;
74 74  
75 75 .slide-image{
76 76 width: 100%;
77   - height: 380rpx;
  77 + height: 100%;
78 78 display: inline-block;
79 79 overflow: hidden;
80 80 border-radius: 14rpx;
... ... @@ -338,7 +338,7 @@ line-height: 25rpx;
338 338 width: 95%;
339 339 margin: auto;
340 340 border-radius: 10rpx;
341   -
  341 +height: 380rpx;
342 342 }
343 343 .xc-hook{
344 344 width: 52rpx;
... ...