98 lines
5.3 KiB
Plaintext
98 lines
5.3 KiB
Plaintext
<!-- 头部 -->
|
|
<nav-bar isBack="{{isBack}}" pageTitle="{{pageTitle}}" system="{{system}}"></nav-bar>
|
|
<!-- user/upgradeCart/upgradeCart.wxml -->
|
|
<view class="upgradeCart">
|
|
<view class="upgradeCart-cen mt20">
|
|
<view class="cart-list">
|
|
<swiper class="card-swiper square-dot" duration="500" bindchange="cardSwiper" current="{{cardCur}}">
|
|
<swiper-item wx:for="{{swiperList}}" wx:key class="{{cardCur==index?'cur':''}}">
|
|
<view class="swiper-item dis-flex">
|
|
<view class="swiper-bac flex1">
|
|
<image src="{{item.src_buy}}" />
|
|
</view>
|
|
<view class="swiper-cart-bac flex1 flex-con3">
|
|
<view class="swiper-cart-all">
|
|
<view class="dis-flex">
|
|
<view class="flex1 logo flex-con2">
|
|
<image mode="widthFix" src="/static/img/logo-fff.png" />
|
|
</view>
|
|
<view class="cart-name">
|
|
{{item.title}}
|
|
<span wx:if="{{cardType == 1}}">
|
|
({{item.discount/10}}折)
|
|
</span>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{openType == 0 && cardType == 1}}">
|
|
<view class="cart-discount mt50">
|
|
<span class="cart-discount-i">¥</span>
|
|
<span class="cart-discount-mon">{{item.money}}</span>
|
|
</view>
|
|
<view class="cart-tips">
|
|
仅充值{{item.recharge_money}}元,即可升级成为{{item.title}}会员
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{openType == 1 && cardType == 1 }}">
|
|
<view class="cart-discount mt50">
|
|
<span class="cart-discount-i">¥</span>
|
|
<span class="cart-discount-mon">{{item.money}}</span>
|
|
</view>
|
|
<view class="cart-tips">
|
|
{{item.info}}
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{openType == 1 && cardType == 2 }}">
|
|
<view class="cart-discount mt50">
|
|
<span class="cart-discount-i">面值( 元 )</span>
|
|
<span class="cart-discount-mon">
|
|
{{item.money+item.give_money}}
|
|
</span>
|
|
</view>
|
|
<view class="cart-tips">{{item.info}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</swiper-item>
|
|
</swiper>
|
|
<!-- 重置小圆点的样式 -->
|
|
<view class="dots">
|
|
<scroll-view scroll-x class="scroll-dots" scroll-left="{{cardCur*40}}">
|
|
<view wx:for="{{swiperList}}" wx:key="{{index}}" class="scroll-dots-d" data-index="{{index}}" catchtap="tabSwiper">
|
|
<view class="dot {{index == cardCur ? ' active' : ''}}">
|
|
{{item.title}}
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
<view class="clear"></view>
|
|
</view>
|
|
<view class="exprecharge pd30">
|
|
<view class="flex-con2">
|
|
<image class="ts-green" src="/static/img/icon/ts-green.png" />
|
|
<view class="ts-p ml10">充值说明</view>
|
|
</view>
|
|
<view class="mt30">
|
|
<view class="ts-p1">1.伊莎洗衣会员卡是你尊贵身份的象征</view>
|
|
<view class="ts-p1">2.伊莎洗衣会员可享受更多的增值服务</view>
|
|
<view wx:if="{{cardType == 1}}" class="ts-p1">
|
|
3.首次充值即可长期享受{{swiperList[cardCur].discount/10}}折优惠
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<button wx:if="{{openType == 0}}" class="cart-btn dis-flex" type="primary" hover-class="none" bind:tap="cardUpgrade">
|
|
<view class="flex1 cart-btn-p">
|
|
¥{{swiperList[cardCur].recharge_money}}元
|
|
<span>¥{{swiperList[cardCur].money}}</span>
|
|
</view>
|
|
<view class="cart-btn-p1">现在升级</view>
|
|
</button>
|
|
<button wx:if="{{openType == 1}}" class="cart-btn dis-flex" type="primary" hover-class="none" bind:tap="cardUpgrade">
|
|
<view class="cart-btn-p1 flex1">仅需支付 {{swiperList[cardCur].money}} 元</view>
|
|
</button>
|
|
</view>
|
|
</view>
|
|
<!-- 加载动画 -->
|
|
<loading-prog isLoading="{{isLoading}}"></loading-prog>
|
|
<!-- toasta提示 -->
|
|
<i-toast id="toast" /> |