zhoux 2 лет назад
Родитель
Сommit
998111a2e6

+ 1 - 1
package-base-select/pages/select-goods/select-goods.wxml

@@ -284,7 +284,7 @@
 
 <van-sidebar activeKey="{{sideKey}}" bindchange="changeSidebar" custom-class="{{active == 0 ? 'left-class' : 'right-class'}}">
   <view wx:if="{{active != 1}}" class="{{controlFlags.choosewhFlag?'addsidebar':''}}" style=" height:calc({{windowHeight+'px'}} - {{active == 1 ? '270rpx' :'400rpx' }});overflow: scroll;">
-    <van-sidebar-item wx:key="index" custom-class="{{sideKey - 1 == index? 'sidebar-item-before': (sideKey + 1 == index?'sidebar-item-next':'sidebar-item')}}" title="{{item.catName}}" data-id="{{item.catId}}" wx:for="{{typeList}}" />
+    <van-sidebar-item class="sidebar" wx:key="index" custom-class="{{sideKey - 1 == index? 'sidebar-item-before': (sideKey + 1 == index?'sidebar-item-next':'sidebar-item')}}" title="{{item.catName}}" data-id="{{item.catId}}" wx:for="{{typeList}}" />
   </view>
 </van-sidebar>
 

+ 5 - 2
package-base-select/pages/select-goods/select-goods.wxss

@@ -46,8 +46,7 @@ page{
   border-radius: 16rpx !important;
 }
 
-.van-sidebar-item--selected {
-  border-color: #3E69F6 !important;
+.sidebar .van-sidebar-item--selected {
   color: #333333 !important;
   font-weight: 600 !important;
 }
@@ -115,9 +114,13 @@ page{
 
 .selected-product-color-01{
   background-color:#FFFFFF;
+  color: #333333;
+  font-weight: 600;
+
 }
 .selected-product-color-02{
   background-color:#FFFFFF4D;
+  color: #333333;
 }
 .goods-selected-class{
   /* padding-top: 98rpx; */

+ 3 - 0
pages/shopping/shopping.wxss

@@ -107,9 +107,12 @@ page{
 
 .selected-product-color-01{
   background-color:#FFFFFF;
+  color: #333333;
+  font-weight: 600;
 }
 .selected-product-color-02{
   background-color:#FFFFFF4D;
+  color: #333333;
 }
 .goods-selected-class{
   /* padding-top: 98rpx; */