vip_index.wxml 14.4 KB
<!--pages/vip/vip_index/vip_index.wxml-->
<view class='page {{mask||back_shop?"active":""}}'>
        <view class='vip_one {{user.user.is_vip==1?"":"active"}}'>
                <!-- <image src='../../imgs/vip_index.png' class='vip_one_image'></image> -->
                <view class='banner_top'>
                        <view class='iconfont icon-fanhui' catchtap='get_my'></view>
                        <view class='hello'>会员中心</view>
                        <view class='charge_code' catchtap="cancel_mask">省钱计算器</view>
                </view>
                <view class='vip_one_center'>
                        <view class='vip_box {{user.user.is_vip==1?"":"active"}}'>
                                <view class='vip_avatar'>
                                        <image src='{{user.user.avatar}}'></image>
                                </view>
                                <view class='vip_name'>
                                        <view class='vip_name_one'>{{user.user.user_nickname}}</view>
                                        <view>
                                                <view class='vip_name_two' wx:if='{{user.user.is_vip==1}}'>HIGO会员</view>
                                                <view class='vip_name_two' wx:else>普通会员</view>
                                        </view>
                                </view>
                                <view class='vipvipvip'>
                                        <view>
                                                <text  wx:if='{{user.user.is_vip==1}}'>{{user.vip_expire_time}}天</text>
                                                <text  wx:else>尚未开通</text>
                                        </view>
                                        <view class='vip_time'>会员有效期</view>
                                </view>
                        </view>
                        <view class='vip_line'></view>
                        <view class='vip_upgrade'>
                                <text>升级超级会员\t\t每单返{{user.cashback}}%现金\t\t更享{{user.slide.length}}大特权</text>
                        </view>
                </view>
               
        </view>
       <view class='bigbig {{user.user.is_vip==1?"":"active"}}'>
                  <view class='vip_one-bottom'>
                        <view class='vip_one_bottom_auto'>
                                <image src='{{imgUrl}}vip_left.png'></image>
                                <text>会员特权</text>
                                <image src='{{imgUrl}}vip_right.png'></image>
                        </view>
                </view>
        <view class='vip_two'>
                <view class='vip_two_one' bindtap='show_back_shop' data-index='{{index}}' wx:for-index='index' wx:for='{{user.slide}}' wx:key='{{item.id}}'>
                        <view class='vip_two_one_icon'>
                                <image src='{{item.icon}}'></image>
                        </view>
                        <view class='vip_two_one_font'>{{item.title}}</view>
                </view>
        </view>
       </view>
        <view class='vip_three'>
                <view class='vip_three_one'>
                        <view class='vip_three_one_left'>开通SVIP超级</view>
                        <view class='vip_three_one_right' bindtap='jump_detail_vip'>
                                <view class='wenhao'>
                                        <image src='{{imgUrl}}wenhao.png'></image>
                                </view>
                                <view class='wenhao_right'>尊享会员说明</view>
                        </view>
                </view>
                <view class='vip_three_two'>
                        <view class='vip_three_two_item {{id==item.id?"active":""}}' wx:for='{{user.vips}}' wx:key='{{item.id}}' wx:for-index='index' bindtap='change_vip_id' data-id='{{item.id}}'>
                                <view class='trilateral' wx:if='{{id==item.id}}'>
                                        <view class='iconfont icon-duigou'></view>
                                </view>
                                <view class='grade_vip_name'>{{item.title}}</view>
                                <view class='grade_vip_count'>{{item.remark}}</view>
                                <view class='grade_vip_price'>
                                        <text>¥</text> {{item.sale_price}}
                                </view>
                        </view>
                </view>
        </view>
        <view class='vip_four' bindtap='pay_vip'>升级尊享会员,每单返{{user.cashback}}%现金</view>
</view>
<!-- 省钱计算器-->
<view class='vip_mask' wx:if='{{mask}}'>
        <view class='vip_mask_diceng'>
                <image src='{{imgUrl}}queen_crown.png' class='queen_crown'></image>
                <view class='iconfont icon-quxiao cancel_mask' bindtap='opposite_mask'></view>
                <view class='vip_mask_one'>
                        <view class='vip_mask_one_one'>会员有效期:{{user.vip_expire_time}}天</view>
                        <view class='vip_mask_one_two'>会员期间曾为您节省</view>
                        <view class='vip_mask_one_three'>
                                <text>¥</text> {{user.sheng_price}}
                        </view>
                </view>
                <view class='vip_mask_two'>
                        <view class='vip_mask_two_item'>
                                <view class='vip_mask_two_item_left'>
                                        <view class='back_price'>购物返现</view>
                                        <view class='back_price_content'>单单返现{{user.cashback}}%无上限</view>
                                </view>
                                <view class='vip_mask_two_item_right'>¥{{user. cashback_price}}</view>
                        </view>
                        <view class='vip_mask_two_item'>
                                <view class='vip_mask_two_item_left'>
                                        <view class='back_price'>会员专享红包</view>
                                        <view class='back_price_content'>各种优惠享不停</view>
                                </view>
                                <view class='vip_mask_two_item_right'>¥0.00</view>
                        </view>
                        <view class='vip_mask_two_item'>
                                <view class='vip_mask_two_item_left'>
                                        <view class='back_price'>商品会员价</view>
                                        <view class='back_price_content'>优质商品专属优惠</view>
                                </view>
                                <view class='vip_mask_two_item_right'>¥{{user.diff_price}}</view>
                        </view>
                </view>
                <view class='vip_mask_three' bindtap='becomeMonthVip'>成为月度会员,每单返{{user.cashback}}%现金</view>
        </view>
</view>
<!-- 购物返现弹框 -->
<view wx:if='{{back_shop}}'>
        <view class='back_shop'>
                <view class='swiper_box'>
                        <swiper previous-margin='80rpx' next-margin='40rpx' circular='true' display-multiple-items='1' current='{{current}}' class='swiper_banner_box' bindchange='bindChange'>
                                <block wx:for='{{slide}}' wx:key='{{item.id}}' wx:for-index='index'>
                                        <swiper-item>
                                                <view class="img_box {{current == index ? 'active': ''}}">
                                                        <image src='{{item.image}}' class="slide-image {{current == index ? 'active': ''}}"></image>
                                                </view>
                                        </swiper-item>
                                </block>
                        </swiper>
                        <view class="dots">
                                <block wx:for="{{slide}}" wx:key="item.id" wx:for-index='index'>
                                        <view class="dot {{current == index ? ' active' : ''}}"></view>
                                </block>
                        </view>
                </view>
                <view class='exit_back_shop' bindtap='hide_back_shop'>退出</view>
        </view>
</view>
<!-- 专享客服弹框-->
<view wx:if='{{customer_service}}'>
        <view class='back_shop'>
                <view class='swiper_box'>
                        <swiper previous-margin='40rpx' next-margin='60rpx' circular='true' display-multiple-items='1' current='{{current}}' class='swiper_banner_box' bindchange='bindChange'>
                                <swiper-item wx:for='{{slide}}' wx:key='{{item.id}}' wx:for-index='index' class="swiper-item">
                                        <view class="img_box {{current == index ? 'active': ''}}">
                                                <image src='{{item.image}}' class="slide-image {{current == index ? 'active': ''}}"></image>
                                                <view class="slide_font {{current == index ? 'active': ''}}">
                                                        <text>尊享会员</text> 每一单都可以享受5%现金返现,订单签收后,返现金额将直接存入你的余额账户,返利金额无上限。这里的字符数将控制在65字以内。
                                                </view>
                                                <view class="slide_fonts  {{current == index ? 'active': ''}}">
                                                        <text class='slide_fonts_text'><text>温馨提示</text>\n01\t尊享会员返现金额为订单实付金额的5%\n02\t返现金额不可提现,可用于下次消费</text>
                                                </view>
                                        </view>
                                </swiper-item>
                        </swiper>
                        <view class="dots">
                                <block wx:for="{{slide}}" wx:key="item.id" wx:for-index='index'>
                                        <view class="dot{{current == index ? ' active' : ''}}"></view>
                                </block>
                        </view>
                </view>
                <view class='exit_back_shop' bindtap='hide_customer_service'>退出</view>
        </view>
</view>
<!-- 无门槛券弹框-->
<view wx:if='{{coupons}}'>
        <view class='back_shop'>
                <view class='swiper_box'>
                        <swiper previous-margin='40rpx' next-margin='60rpx' circular='true' display-multiple-items='1' current='{{current}}' class='swiper_banner_box' bindchange='bindChange'>
                                <swiper-item wx:for='{{slide}}' wx:key='{{item.id}}' wx:for-index='index' class="swiper-item">
                                        <view class="img_box {{current == index ? 'active': ''}}">
                                                <image src='{{item.image}}' class="slide-image {{current == index ? 'active': ''}}"></image>
                                                <view class="slide_font {{current == index ? 'active': ''}}">
                                                        <text>尊享会员</text> 每一单都可以享受5%现金返现,订单签收后,返现金额将直接存入你的余额账户,返利金额无上限。这里的字符数将控制在65字以内。
                                                </view>
                                                <view class="slide_fonts  {{current == index ? 'active': ''}}">
                                                        <text class='slide_fonts_text'><text>温馨提示</text>\n01\t尊享会员返现金额为订单实付金额的5%\n02\t返现金额不可提现,可用于下次消费</text>
                                                </view>
                                        </view>
                                </swiper-item>
                        </swiper>
                        <view class="dots">
                                <block wx:for="{{slide}}" wx:key="item.id" wx:for-index='index'>
                                        <view class="dot{{current == index ? ' active' : ''}}"></view>
                                </block>
                        </view>
                </view>
                <view class='exit_back_shop' bindtap='hide_coupons'>退出</view>
        </view>
</view>
<!-- 无门槛券弹框-->
<view wx:if='{{more}}'>
        <view class='back_shop'>
                <view class='swiper_box'>
                        <swiper previous-margin='40rpx' next-margin='60rpx' circular='true' display-multiple-items='1' current='{{current}}' class='swiper_banner_box' bindchange='bindChange'>
                                <swiper-item wx:for='{{slide}}' wx:key='{{item.id}}' wx:for-index='index' class="swiper-item">
                                        <view class="img_box {{current == index ? 'active': ''}}">
                                                <image src='{{item.image}}' class="slide-image {{current == index ? 'active': ''}}"></image>
                                                <view class="slide_font {{current == index ? 'active': ''}}">
                                                        <text>尊享会员</text> 每一单都可以享受5%现金返现,订单签收后,返现金额将直接存入你的余额账户,返利金额无上限。这里的字符数将控制在65字以内。
                                                </view>
                                                <view class="slide_fonts  {{current == index ? 'active': ''}}">
                                                        <text class='slide_fonts_text'><text>温馨提示</text>\n01\t尊享会员返现金额为订单实付金额的5%\n02\t返现金额不可提现,可用于下次消费</text>
                                                </view>
                                        </view>
                                </swiper-item>
                        </swiper>
                        <view class="dots">
                                <block wx:for="{{slide}}" wx:key="item.id" wx:for-index='index'>
                                        <view class="dot{{current == index ? ' active' : ''}}"></view>
                                </block>
                        </view>
                </view>
                <view class='exit_back_shop' bindtap='hide_more'>退出</view>
        </view>
</view>