110 lines
6.4 KiB
Plaintext
110 lines
6.4 KiB
Plaintext
<!-- 头部 -->
|
|
<nav-bar isBack="{{isBack}}" pageTitle="{{pageTitle}}" system="{{system}}"></nav-bar>
|
|
<!-- user/recharge/recharge.wxml -->
|
|
<view class="recharge">
|
|
<view class="recharge_title">
|
|
<view class="recharge_title_img">
|
|
<image src="{{userInfo.avatar}}" />
|
|
<span class="ml20">{{userInfo.nickname}}</span>
|
|
</view>
|
|
</view>
|
|
<i-tabs current="{{ current_scroll }}" scroll bindchange="handleChangeScroll">
|
|
<i-tab key="1" title="会员卡"></i-tab>
|
|
<i-tab key="2" title="礼品卡"></i-tab>
|
|
<!-- <i-tab key="3" title="团体卡"></i-tab> -->
|
|
<i-tab key="4" title="卡充值"></i-tab>
|
|
</i-tabs>
|
|
<view wx:if="{{current_scroll != 4 && isCart}}">
|
|
<view wx:if="{{cardInfo.length > 0}}" class="recharge_bac mt20">
|
|
<view class="recharge_list">
|
|
<view class="recharge_list_title">选择需要充值的会员卡:</view>
|
|
<view class="recharge_title_cen">
|
|
<view class="recharge_list_row" wx:for="{{cardInfo}}" wx:key="{{index}}" data-id="{{item.id}}" data-cardid="{{item.card_id}}" bind:tap="selectCard">
|
|
<view class="rec_row_p">
|
|
<image src="{{item.logo}}" />
|
|
<span class="row_span1 ml10">{{item.title}}{{item.discount/10}}折</span>
|
|
<view class="row_span2 ml20">
|
|
余额:
|
|
<span>¥{{item.money}}</span>
|
|
</view>
|
|
<span wx:if="{{item.level > 0 && item.level < 4 && current_scroll == 1}}" class="row_span3 ml20" data-url="/user/upgradeCart/upgradeCart?type={{current_scroll}}&openType=0&is_upgrade=0&card_upgrade={{item.id}}&card_id={{item.card_id}}" catchtap="joinVip">
|
|
升级会员 >
|
|
</span>
|
|
</view>
|
|
<view class="rec_row_active">
|
|
<image src="{{id == item.id?'/static/img/icon/wxPay2.png':'/static/img/icon/wxPay1.png'}}" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="recharge_num pd30 mt50">
|
|
<view class="recharge_num_title">选择充值金额</view>
|
|
<view class="recharge_num_cen">
|
|
<view wx:for="{{rechargeList}}" wx:key="{{index}}" class="recharge_num_row flex-con3 fl {{ rechargeSelect == index ? 'recharge_num_active' : '' }}" data-index="{{index}}" bind:tap="selectRech">
|
|
<view>
|
|
<span wx:if="{{item.money > 0}}" class="rech-mon">{{item.money}}元</span>
|
|
<span wx:if="{{item.money > 0}}" class="rech-rem">
|
|
{{item.remarks}}
|
|
</span>
|
|
<input wx:else type="number" placeholder="自定义" bindinput="moneyInput"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="clear"></view>
|
|
</view>
|
|
<view class="recharge_sub" bind:tap="userRecharge">立即充值</view>
|
|
</view>
|
|
<view wx:elif="{{cardInfo.length <= 0 && current_scroll == 1}}" class="rech-nothing mt150">
|
|
<view class="rech-nothing-img">
|
|
<image src="/static/img/rech-nothing-icon.png" />
|
|
</view>
|
|
<view class="rech-nothing-tips mt50">您当前还不是伊莎洗衣会员哦~</view>
|
|
<view class="rech-nothing-p mt10">加入伊莎洗衣会员,可享会员折扣</view>
|
|
<button class="rech-nothing-btn mt30" type="primary" data-url="/user/upgradeCart/upgradeCart?type={{current_scroll}}&openType=1&is_upgrade=2" bind:tap="joinVip">
|
|
加入会员
|
|
</button>
|
|
</view>
|
|
<view wx:elif="{{cardInfo.length <= 0 && current_scroll == 2}}" class="rech-nothing mt150">
|
|
<view class="rech-nothing-img">
|
|
<image src="/static/img/rech-nothing-icon.png" />
|
|
</view>
|
|
<view class="rech-nothing-tips mt50">您暂时还没有礼卡哦~</view>
|
|
<view class="rech-nothing-p mt10">现在购买有超值优惠</view>
|
|
<button class="rech-nothing-btn mt30" type="primary" data-url="/user/upgradeCart/upgradeCart?type={{current_scroll}}&openType=1&is_upgrade=2" bind:tap="joinVip">
|
|
去看看
|
|
</button>
|
|
</view>
|
|
<view wx:elif="{{cardInfo.length <= 0 && current_scroll == 3}}" class="rech-nothing mt90">
|
|
<view class="rech-tit">团体卡会员</view>
|
|
<view class="rech-p1 mt10">机关团体单位洗衣专属定制</view>
|
|
<view class="rech-p2 mt50">更贴心的员工洗衣福利</view>
|
|
<view class="rech-p2 mt5">专业的服务品质</view>
|
|
<view class="rech-p2 mt5">免费上门取送</view>
|
|
<view class="rech-p2 mt5">更多优惠服务方案</view>
|
|
<view class="brand-tit mt90">服务品牌</view>
|
|
<image class="brand-img mt20" src="http://cdn.yishaxiyi.com/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20190904101132.png" bind:tap="bigImg" />
|
|
<button class="rech-nothing-btn mt40" type="primary" bind:tap="tel">电话咨询</button>
|
|
</view>
|
|
</view>
|
|
<view wx:elif="{{ current_scroll == 4}}" class="recharge_bac2 mt20">
|
|
<form bindsubmit="verifyRechargeCard" report-submit>
|
|
<view class="recharge-four-input mtb20">
|
|
<view class="recharge-four-input-tit">卡号:</view>
|
|
<view class="recharge-input">
|
|
<input type="number" name="card_num" value="{{formData}}" placeholder="请输入卡号" />
|
|
</view>
|
|
</view>
|
|
<view class="recharge-four-input mtb20">
|
|
<view class="recharge-four-input-tit">卡密码:</view>
|
|
<view class="recharge-input">
|
|
<input type="text" name="card_password" value="{{formData1}}" password placeholder="请输入充值卡密码" />
|
|
</view>
|
|
</view>
|
|
<button class="recharge_sub mt90" type="primary" form-type="submit">立即充值</button>
|
|
</form>
|
|
</view>
|
|
</view>
|
|
<!-- 加载动画 -->
|
|
<loading-prog isLoading="{{isLoading}}"></loading-prog>
|
|
<!-- toasta提示 -->
|
|
<i-toast id="toast" /> |