C端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
3.5 KiB

  1. <navbar text="激活消费卡" home back background='#FD832D' color="white"></navbar>
  2. <view style="height:{{navigationBarHeight}} "></view>
  3. <view class="tab" bindtap="changeTabs">
  4. <view class="{{tabIndex == 0 ? 'tabItem active' : 'tabItem'}}" id="0">绑定并激活</view>
  5. <view class="{{tabIndex == 1 ? 'tabItem active' : 'tabItem'}}" id="1">转赠</view>
  6. </view>
  7. <form bindsubmit='searchCard' report-submit='true'>
  8. <view class="section">
  9. <input name='code' placeholder="请输入卡号卡密或扫描二维码" clearable value="{{code}}" />
  10. <button size="primarySize" style="background:#FD832D;color:#fff;" hover-class="opcaity" form-type="submit">查询</button>
  11. <image class="scan" src="../../assets/images/scan.png" bindtap="goScanCode"></image>
  12. </view>
  13. </form>
  14. <view wx:if="{{tabIndex == 0}}" class="comment">
  15. <text class="txt1">如何获取卡号卡密?</text>
  16. <text class="txt2">1.实体卡卡密可刮开卡背面涂层查看;</text>
  17. <text class="txt2">2.扫描实体卡二维码获取卡号;</text>
  18. <text class="txt3">3.自己购买的电子卡,可到“我的卡包”或短信查看详情;</text>
  19. </view>
  20. <view wx:if="{{tabIndex == 1}}" class="comment">
  21. <text class="txt2" style="font-size: 30rpx;">请先绑定消费卡再转赠</text>
  22. </view>
  23. <view wx:if="{{isSHowInfoCard}}" class="infoCard">
  24. <view class="name">卡名称:{{title}}</view>
  25. <view wx:if="{{remainAmount}}" class="name">卡余额:{{remainAmount}}</view>
  26. <!-- <view class="name">持卡人姓名:{{name}}</view> -->
  27. <view wx:if="{{!isChangePhone && phone}}" class="phone">
  28. 持卡人手机号:{{phone}}
  29. <!-- <text class="changePhone" bindtap="changePhone">更改</text> -->
  30. </view>
  31. <view wx:if="{{isChangePhone}}" class="phone">持卡人手机号:
  32. <input class="phoneInput" type="text" placeholder="请填写手机号" focus="true" bindinput="phoneInput" />
  33. <text class="confirmPhone" bindtap="confirmPhone">确定</text>
  34. <text class="cancelChangePhone" bindtap="cancelChangePhone">取消</text>
  35. </view>
  36. <!-- <view class="security">
  37. <text>支付安全设置:</text>
  38. <radio-group wx:if="{{tabIndex == 0}}" class="radioGroup" bindchange="securityChange">
  39. <label>
  40. <radio value="0" checked="true" />无验证
  41. </label>
  42. <label>
  43. <radio value="1" />密码验证
  44. </label>
  45. </radio-group>
  46. <radio-group wx:if="{{tabIndex == 1}}" class="radioGroup" bindchange="securityChange">
  47. <label>
  48. <radio value="0" checked="true" />无验证
  49. </label>
  50. </radio-group>
  51. </view> -->
  52. <view wx:if="{{pdwSwitch && tabIndex == 0}}" class="pwdBox">
  53. <view wx:if="{{!isShowPwd}}" style="margin-bottom: 0;">
  54. <input type="password" placeholder="请设置密码" placeholder-class="pwdBoxInside" focus="true" bindinput="pwdInput" value="{{password}}" />
  55. <image class=" eye" src="../../assets/images/password-show.png" bindtap="setPwdShow"></image>
  56. </view>
  57. <view wx:if="{{isShowPwd}}" style="margin-bottom: 0;">
  58. <input type="text" placeholder="请设置密码" placeholder-class="pwdBoxInside" value="{{password}}" bindinput="pwdInput" />
  59. <image class="eye" src="../../assets/images/password-close.png" bindtap="setPwdShow"></image>
  60. </view>
  61. </view>
  62. </view>
  63. <view class="btns">
  64. <!-- 绑定 -->
  65. <button wx:if="{{tabIndex == 0}}" type="primary" bindtap="submit">确认绑定</button>
  66. <!-- 转赠 -->
  67. <button wx:if="{{tabIndex == 1}}" type="primary" bindtap="goGive">去转赠</button>
  68. </view>