- <navbar text="绑定消费卡" home back background='#FD832D' color="white"></navbar>
-
- <view style="height:{{navigationBarHeight}} "></view>
-
- <view class="tab" bindtap="changeTabs">
- <view class="{{tabIndex == 0 ? 'tabItem active' : 'tabItem'}}" id="0">绑定</view>
- <view class="{{tabIndex == 1 ? 'tabItem active' : 'tabItem'}}" id="1">转赠</view>
- </view>
-
- <form wx:if="{{tabIndex == 0}}" bindsubmit='searchCard' report-submit='true'>
- <view class="section">
- <input name='code' placeholder="请输入兑换码" clearable value="{{code}}" bindinput="codeInput" />
- <button size="primarySize" style="background:#FD832D;color:#fff;" hover-class="opcaity" form-type="submit">查询</button>
- <!-- <image class="scan" src="../../assets/images/scan.png" bindtap="goScanCode"></image> -->
- </view>
- </form>
-
- <form wx:if="{{tabIndex == 1}}" bindsubmit='searchCard' report-submit='true'>
- <view class="section">
- <input name='code' placeholder="请输入卡号卡密或扫描二维码" clearable value="{{code}}" bindinput="codeInput" />
- <button size="primarySize" style="background:#FD832D;color:#fff;" hover-class="opcaity" form-type="submit">查询</button>
- <image class="scan" src="../../assets/images/scan.png" bindtap="goScanCode"></image>
- </view>
- </form>
-
- <view wx:if="{{tabIndex == 0}}" class="comment">
- <text class="txt1">如何获取兑换码?</text>
- <text class="txt2">1.实体卡卡密可刮开卡背面涂层查看;</text>
- <!-- <text class="txt2">2.扫描实体卡二维码获取卡号;</text> -->
- <text class="txt3">2.绑定成功的电子卡,可到“我的卡包”或短信查看详情;</text>
- </view>
-
- <view wx:if="{{tabIndex == 1}}" class="comment">
- <text class="txt2" style="font-size: 30rpx;">请先绑定消费卡再转赠</text>
- </view>
-
- <view wx:if="{{isSHowInfoCard}}" class="infoCard">
- <view class="name">卡名称:{{title}}</view>
- <view wx:if="{{remainAmount}}" class="name">卡余额:{{remainAmount}}</view>
- <!-- <view class="name">持卡人姓名:{{name}}</view> -->
- <view wx:if="{{!isChangePhone && hidePhone}}" class="phone">
- 持卡人手机号:{{hidePhone}}
- <!-- <text class="changePhone" bindtap="changePhone">更改</text> -->
- </view>
-
- <view class="name">
- 绑定状态:
- <text wx:if="{{ownerUserId}}" style="color: #ff0000;">已绑定</text>
- <text wx:else style="color: #1aad19;">未绑定</text>
- </view>
-
- <view wx:if="{{isChangePhone}}" class="phone">持卡人手机号:
- <input class="phoneInput" type="text" placeholder="请填写手机号" focus="true" bindinput="phoneInput" />
- <text class="confirmPhone" bindtap="confirmPhone">确定</text>
- <text class="cancelChangePhone" bindtap="cancelChangePhone">取消</text>
- </view>
-
- <view wx:if="{{tabIndex == 0}}" class="security">
- <text>支付安全设置:</text>
- <radio-group class="radioGroup" bindchange="securityChange">
- <label>
- <radio value="0" checked="true" />无验证
- </label>
- <label>
- <radio value="1" />设置支付密码
- </label>
- </radio-group>
- </view>
-
- <view wx:if="{{pdwSwitch && tabIndex == 0}}" class="pwdBox">
- <view wx:if="{{!isShowPwd}}" style="margin-bottom: 0;">
- <input type="password" placeholder="请设置密码" placeholder-class="pwdBoxInside" focus="true" bindinput="pwdInput" value="{{password}}" />
- <image class=" eye" src="../../assets/images/password-show.png" bindtap="setPwdShow"></image>
- </view>
-
- <view wx:if="{{isShowPwd}}" style="margin-bottom: 0;">
- <input type="text" placeholder="请设置密码" placeholder-class="pwdBoxInside" value="{{password}}" bindinput="pwdInput" />
- <image class="eye" src="../../assets/images/password-close.png" bindtap="setPwdShow"></image>
- </view>
- </view>
- </view>
-
- <view class="btns">
- <!-- 绑定 -->
- <button wx:if="{{tabIndex == 0}}" type="primary" bindtap="submit">确认绑定</button>
- <!-- 转赠 -->
- <button wx:if="{{tabIndex == 1}}" type="primary" bindtap="goGive">去转赠</button>
- </view>
|