Commit fd8aedab01503c37f637c5908cf3120dc0897213

Authored by taiyuan
1 parent cc562fd8

首页、商品详情页等界面优化

components/goods_list/goods_list.wxml
... ... @@ -23,7 +23,7 @@
23 23 <view class="fs35">{{item.prom_price}}</view>
24 24 </view>
25 25 </view>
26   - <view class="flex" style="line-height: 28rpx;">
  26 + <view class="flex">
27 27 <!-- 原价 -->
28 28 <view class="price flex xc-ash line_th">
29 29 <view class="fs22">¥</view>
... ... @@ -51,7 +51,7 @@
51 51 </view>
52 52 </view>
53 53 </view>
54   - <view class="flex" style="line-height: 28rpx;">
  54 + <view class="flex">
55 55 <!-- 原价 -->
56 56 <view class="price flex xc-ash line_th">
57 57 <view class="fs22">¥</view>
... ... @@ -67,7 +67,7 @@
67 67 <view class="fs35">{{filter.toFix(item.shop_price,2)}}</view>
68 68 </view>
69 69 </view>
70   - <view class="flex" style="line-height: 28rpx;">
  70 + <view class="flex">
71 71 <!-- 原价 -->
72 72 <view class="price flex xc-ash line_th">
73 73 <view class="fs22">¥</view>
... ... @@ -111,7 +111,7 @@
111 111 <view class="fs35">{{filter.toFix(item.shop_price,2)}}</view>
112 112 </view>
113 113 </view>
114   - <view class="flex" style="line-height: 28rpx;">
  114 + <view class="flex">
115 115 <!-- 原价 -->
116 116 <view class="price flex xc-ash line_th">
117 117 <view class="fs22">¥</view>
... ...
components/goods_list/goods_list.wxss
... ... @@ -86,33 +86,46 @@
86 86  
87 87 .goods_name {
88 88 height: 62rpx;
89   - margin-top: 6rpx;
  89 + /* margin-top: 6rpx; */
90 90 line-height: 30rpx;
91 91 }
92 92  
93 93 .hang {
94   - width: 100%;
95   - margin: auto;
96   - padding-left: 21rpx;
  94 + /* width: 100%; */
  95 + /* margin: auto;
  96 + padding-left: 21rpx; */
  97 + display: flex;
  98 + flex-wrap: wrap;
  99 + /* margin: 0 auto; */
  100 + padding: 0 20rpx;
  101 + box-sizing: border-box;
  102 + /* justify-content: space-evenly; */
97 103 }
98 104  
99 105 .hang .collect {
100   - width: 347rpx;
  106 + width: calc((100% - 20rpx) / 2);
101 107 /* height: 520rpx; */
102 108 border-radius: 25rpx;
103 109 border: 2rpx solid #ebedf0;
104 110 overflow: hidden;
105   - margin-right: 14rpx;
106   - margin-bottom: 5rpx;
  111 + box-sizing: border-box;
  112 + margin-top: 20rpx;
  113 + /* margin-right: 14rpx;
  114 + margin-bottom: 5rpx; */
  115 +}
  116 +
  117 +.hang .collect:nth-child(2n+1) {
  118 + margin-right: 20rpx;
107 119 }
108 120  
109 121 .collect .bottom {
110   - padding: 0rpx 20rpx 20rpx;
  122 + padding: 20rpx;
111 123 }
112 124  
113 125 .collect .sp {
114 126 width: 100%;
115 127 height: 340rpx;
  128 + display: block;
116 129 }
117 130  
118 131 .collect .money {
... ...
pages/cart/cart/cart.wxss
... ... @@ -104,7 +104,7 @@ radio {
104 104 .count {
105 105 display: flex;
106 106 bottom: 5rpx;
107   - border: 2rpx solid rgb(236, 236, 236);
  107 + /* border: 2rpx solid rgb(236, 236, 236); */
108 108 margin-bottom: 3rpx;
109 109 }
110 110  
... ... @@ -129,12 +129,23 @@ radio {
129 129 font-size: 32rpx;
130 130 }
131 131  
132   -.sub {
133   - border-right: 2rpx solid rgb(236, 236, 236);
  132 +.sub, .add, .count>input {
  133 + /* border-right: 1px solid #000; */
  134 + background-color: #f8f8f8;
  135 + border-radius: 8rpx;
  136 +}
  137 +.sub.active {
  138 + /* background-color: #ddd; */
  139 + color: #ccc;
  140 +}
  141 +.count>input {
  142 + margin: 0 10rpx;
  143 + line-height: normal;
134 144 }
135 145  
136 146 .add {
137   - border-left: 2rpx solid rgb(236, 236, 236);
  147 + /* background-color: #f8f8f8; */
  148 + /* border-left: 1px solid #000; */
138 149 }
139 150  
140 151 .pay-for {
... ...
pages/goods/goodsInfo/goodsInfo.wxss
... ... @@ -626,7 +626,7 @@ border-radius: 0 56rpx 55rpx 0;
626 626 /* position: fixed; */
627 627 display: flex;
628 628 height: 50rpx;
629   - border: 1rpx solid #000;
  629 + /* border: 1rpx solid #000; */
630 630 font-size: 28rpx;
631 631 right: 30rpx;
632 632 }
... ... @@ -643,16 +643,22 @@ border-radius: 0 56rpx 55rpx 0;
643 643 border-radius:30rpx;font-size: 24rpx;border: 1rpx solid #ccc; margin: 10rpx; height: 40rpx; line-height: 40rpx;
644 644 }
645 645 .spec_bt.act{background: #d60021;color: #fff;border: 1rpx solid #d60021;}
646   -.sub {
647   - border-right: 1px solid #000;
  646 +.sub, .add, .count>input {
  647 + /* border-right: 1px solid #000; */
  648 + background-color: #f8f8f8;
  649 + border-radius: 8rpx;
648 650 }
649 651 .sub.active {
650 652 /* background-color: #ddd; */
651 653 color: #ccc;
652 654 }
  655 +.count>input {
  656 + margin: 0 10rpx;
  657 +}
653 658  
654 659 .add {
655   - border-left: 1px solid #000;
  660 + /* background-color: #f8f8f8; */
  661 + /* border-left: 1px solid #000; */
656 662 }
657 663  
658 664 .spec-btn {
... ... @@ -2167,7 +2173,7 @@ padding-left:24rpx;
2167 2173  
2168 2174 .xc-linellae-frame{
2169 2175 width: 100%;
2170   - height: 80rpx;
  2176 + height: 70rpx;
2171 2177 background: #f2f2f2;
2172 2178 }
2173 2179 .xc-linellae-frame .xc-linellae{
... ...
pages/index/index/index.wxml
... ... @@ -90,25 +90,25 @@
90 90 </navigator>
91 91 </view> -->
92 92 <view class="venues_item">
93   - <navigator url="/packageA/pages/jfbuy/jfbuy">
  93 + <navigator url="/packageA/pages/jfbuy/jfbuy" hover-class="none">
94 94 <image src="{{url}}/miniapp/images/index/jifen.png"></image>
95 95 <view>积分购</view>
96 96 </navigator>
97 97 </view>
98 98 <view class="venues_item" wx:if="{{is_closecoupon!=1}}">
99   - <navigator url="/packageA/pages/quan_list/quan_list">
  99 + <navigator url="/packageA/pages/quan_list/quan_list" hover-class="none">
100 100 <image src="{{url}}/miniapp/images/index/youhui.png"></image>
101 101 <view>优惠券</view>
102 102 </navigator>
103 103 </view>
104 104 <view class="venues_item">
105   - <navigator url="/packageA/pages/checkin/checkin">
  105 + <navigator url="/packageA/pages/checkin/checkin" hover-class="none">
106 106 <image src="{{url}}/miniapp/images/index/qiandao.png"></image>
107 107 <view>签到</view>
108 108 </navigator>
109 109 </view>
110 110 <view class="venues_item">
111   - <navigator bindtap="go_url" data-url="/pages/goods/categoryList/categoryList">
  111 + <navigator bindtap="go_url" data-url="/pages/goods/categoryList/categoryList" hover-class="none">
112 112 <image src="{{url}}/miniapp/images/index/fenlei.png"></image>
113 113 <view>全部分类</view>
114 114 </navigator>
... ... @@ -122,14 +122,14 @@
122 122 <view class="circle xc-class-frame t-c">
123 123 <image class="xc-class-img" src="{{item.icoimg==null||item.icoimg==''?(item.image?url+item.image:url+'/miniapp/images/no_cate_def.png'):item.icoimg}}"
124 124 binderror="bind_bnerr_icon" data-err="gd_category[{{index}}].icon"></image>
125   - <view class="fs26 gonju ellipsis-1"><text>{{item.name}}</text></view>
  125 + <view class="fs24 gonju ellipsis-1"><text>{{item.name}}</text></view>
126 126 </view>
127 127 </view>
128 128 </view>
129 129 <!-- 轮播 -->
130 130 <block wx:if="{{swiperimage.length>0}}">
131 131 <!-- <swiper class="swiper" autoplay="true" interval="5000" circular="{{true}}" indicator-dots="{{true}}" indicator-active-color="rgb(255,255,255)" vertical> -->
132   - <swiper class="swiper" autoplay="true" interval="5000" circular="{{true}}" easing-function="easeInOutCubic">
  132 + <swiper class="swiper" indicator-dots indicator-active-color="#fff" autoplay="true" interval="3000" circular="{{true}}" easing-function="easeInOutCubic">
133 133 <!-- 活动轮播 -->
134 134 <block wx:for="{{swiperimage}}" wx:for-item="adver" wx:for-index="key">
135 135 <swiper-item>
... ... @@ -153,7 +153,7 @@
153 153 <image class="seckill-ttitle-img height" src="{{url}}/miniapp/images/seckill-ttitle.png"></image>
154 154 </view>
155 155 <view class="flex ai_c seckill-list">
156   - <text class="fs26 xc-marfin-right">查看全部</text>
  156 + <text class="fs24 xc-marfin-right">查看全部</text>
157 157 <image class="arrow-right" src="{{url}}/miniapp/images/icon-arrowdown.png"></image>
158 158 </view>
159 159 </view>
... ... @@ -169,7 +169,7 @@
169 169 <image wx:if="{{aitem.status==1}}" class="status_img" src="{{url}}/miniapp/images/miao/going.png"></image>
170 170 <image wx:if="{{aitem.status==2}}" class="status_img" src="{{url}}/miniapp/images/miao/mend.png"></image>
171 171 </view>
172   - <view class="ellipsis-1 mar-top10">{{aitem.title}}</view>
  172 + <view class="ellipsis-2 mar-top10" style="height: 70rpx;">{{aitem.title}}</view>
173 173 <!-- <view class="red-co mar-top10 is_seckill_height"> -->
174 174 <view class="co-red mar-top10">
175 175 <text class="fs20">¥</text>{{aitem.price}}
... ... @@ -202,7 +202,7 @@
202 202 </block>
203 203 </view>
204 204 <view class="flex ai_c seckill-list">
205   - <text class="fs26 xc-marfin-right">查看全部</text>
  205 + <text class="fs24 xc-marfin-right">查看全部</text>
206 206 <image class="arrow-right" src="{{url}}/miniapp/images/icon-arrowdown.png"></image>
207 207 </view>
208 208 </view>
... ...
pages/index/index/index.wxss
... ... @@ -86,7 +86,7 @@
86 86  
87 87 .s_prom {
88 88 width: 100%;
89   - height: 326rpx;
  89 + height: 346rpx;
90 90 }
91 91  
92 92 .s_proms {
... ... @@ -289,7 +289,7 @@
289 289 /* padding: 0 10rpx;
290 290 line-height: 33rpx; */
291 291 overflow: hidden;
292   - font-size: 32rpx;
  292 + font-size: 26rpx;
293 293 width: 200rpx;
294 294 }
295 295  
... ...
pages/team/team_show/team_show.wxss
... ... @@ -1334,7 +1334,7 @@ page {
1334 1334 /* position: fixed; */
1335 1335 display: flex;
1336 1336 height: 50rpx;
1337   - border: 1rpx solid #000;
  1337 + /* border: 1rpx solid #000; */
1338 1338 font-size: 28rpx;
1339 1339 /* right: 30rpx; */
1340 1340 /* justify-content: space-between; */
... ... @@ -1369,13 +1369,27 @@ page {
1369 1369 border: 1rpx solid #d60021;
1370 1370 }
1371 1371  
1372   -.sub {
  1372 +.sub, .add, .count>input {
  1373 + /* border-right: 1px solid #000; */
  1374 + background-color: #f8f8f8;
  1375 + border-radius: 8rpx;
  1376 +}
  1377 +.sub.active {
  1378 + /* background-color: #ddd; */
  1379 + color: #ccc;
  1380 +}
  1381 +.count>input {
  1382 + margin: 0 10rpx;
  1383 + line-height: normal;
  1384 +}
  1385 +
  1386 +/* .sub {
1373 1387 border-right: 1px solid #000;
1374 1388 }
1375 1389  
1376 1390 .add {
1377 1391 border-left: 1px solid #000;
1378   -}
  1392 +} */
1379 1393  
1380 1394 .spec-btn {
1381 1395 color: black;
... ...