Commit e5260791 by 高淑倩

会员码授权

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