Commit fd8aedab01503c37f637c5908cf3120dc0897213

Authored by taiyuan
1 parent cc562fd8

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

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