Commit e5260791 by 高淑倩

会员码授权

parent be89f34a
...@@ -20,13 +20,13 @@ ...@@ -20,13 +20,13 @@
</block> </block>
</scroll-view> </scroll-view>
<!-- showQrcode 2 购物车 1 会员码 0 隐藏 --> <!-- showQrcode 2 购物车 1 会员码 0 隐藏 -->
<view class="scroll-view-right" bindtap="handelToVipCode" wx:if="{{categoryType.showQrcode == 1}}"> <view class="scroll-view-right" wx:if="{{categoryType.showQrcode == 1}}">
<button <button
wx:if="{{!currentHasUserInfo}}" wx:if="{{!currentHasUserInfo}}"
bindgetuserinfo="_getUserInfo" bindgetuserinfo="_getUserInfo"
data-jflag="false" data-jflag="false"
open-type='getUserInfo' open-type='getUserInfo'
class='btn btn-primary df' class='btn btn-primary btn-vip-code'
hover-class="btn-hover" hover-class="btn-hover"
style="height:100%" style="height:100%"
> >
...@@ -35,23 +35,38 @@ ...@@ -35,23 +35,38 @@
src="/assets/imgs/7_1_0/scancode.png" src="/assets/imgs/7_1_0/scancode.png"
mode="widthFix" mode="widthFix"
lazy-load="false" lazy-load="false"
binderror=""
bindload=""
/> />
<view
class="active vip-text"
selectable="false"
space="false"
decode="false"
>会员码
</view>
</button> </button>
<image <button
wx:if="{{currentHasUserInfo}}" wx:if="{{currentHasUserInfo}}"
class="right-img" class='btn btn-primary btn-vip-code'
src="/assets/imgs/7_1_0/scancode.png" hover-class="btn-hover"
mode="widthFix" style="height:100%"
lazy-load="false" bindtap="handelToVipCode"
binderror="" >
bindload="" <image
/> class="right-img"
src="/assets/imgs/7_1_0/scancode.png"
<text class="active vip-text" selectable="false" space="false" decode="false">会员码</text> mode="widthFix"
lazy-load="false"
/>
<view
class="active vip-text"
selectable="false"
space="false"
decode="false"
>会员码
</view>
</button>
</view> </view>
<view class="scroll-view-right" bindtap="handelToCart" wx:if="{{categoryType.showQrcode == 2}}"> <view class="scroll-view-right" wx:if="{{categoryType.showQrcode == 2}}">
<button <button
wx:if="{{!currentHasUserInfo}}" wx:if="{{!currentHasUserInfo}}"
bindgetuserinfo="_getUserInfo" bindgetuserinfo="_getUserInfo"
...@@ -60,16 +75,28 @@ ...@@ -60,16 +75,28 @@
class='btn btn-primary df' class='btn btn-primary df'
hover-class="btn-hover" hover-class="btn-hover"
style="height:100%" style="height:100%"
/> >
<image <image
class="right-img"
src="/assets/imgs/7_1_0/08_22/cart_point.png"
mode="widthFix"
lazy-load="false"
/>
</button>
<button
wx:if="{{currentHasUserInfo}}" wx:if="{{currentHasUserInfo}}"
class="right-img" class='btn btn-primary df'
src="/assets/imgs/7_1_0/08_22/cart_point.png" hover-class="btn-hover"
mode="widthFix" style="height:100%"
lazy-load="false" bindtap="handelToCart"
binderror="" >
bindload="" <image
/> class="right-img"
src="/assets/imgs/7_1_0/08_22/cart_point.png"
mode="widthFix"
lazy-load="false"
/>
</button>
</view> </view>
</view> </view>
/* component/tabSort/tabSort.wxss */ /* component/tabSort/tabSort.wxss */
.tab-sort { .tab-sort {
display: flex; display: flex;
white-space: nowrap; white-space: nowrap;
box-sizing: border-box; box-sizing: border-box;
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
} }
.scroll-view_H { .scroll-view_H {
width: 80%; width: 80%;
} }
.scroll-view-item { .scroll-view-item {
display: inline-block; display: inline-block;
width: 100rpx; width: 100rpx;
font-size: 25rpx; font-size: 25rpx;
text-align: center; text-align: center;
font-family: PingFangSC-Medium; font-family: PingFangSC-Medium;
} }
.scroll-view-right { .scroll-view-right {
width: 18%; width: 18%;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
box-shadow: -15px 0px 15px -15px rgb(168, 165, 165); box-shadow: -15px 0px 15px -15px rgb(168, 165, 165);
} }
.active { .active {
color: #C09A74; color: #c09a74;
} }
.right-img { .right-img {
width: 30rpx; width: 30rpx;
height: 30rpx; height: 30rpx;
} }
.vip-text { .vip-text {
font-size: 22rpx; font-size: 22rpx;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
padding-left: 8rpx; padding-left: 8rpx;
box-sizing: border-box; box-sizing: border-box;
} }
\ No newline at end of file .btn-vip-code {
display: flex;
align-items: center;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment