C端小程序
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

86 linhas
3.7 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}}" bindinput="codeInput" />
  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 class="name">
  32. 激活状态:
  33. <text wx:if="{{ownerUserId}}" style="color: #ff0000;">已激活</text>
  34. <text wx:else style="color: #1aad19;">未激活</text>
  35. </view>
  36. <view wx:if="{{isChangePhone}}" class="phone">持卡人手机号:
  37. <input class="phoneInput" type="text" placeholder="请填写手机号" focus="true" bindinput="phoneInput" />
  38. <text class="confirmPhone" bindtap="confirmPhone">确定</text>
  39. <text class="cancelChangePhone" bindtap="cancelChangePhone">取消</text>
  40. </view>
  41. <!-- <view class="security">
  42. <text>支付安全设置:</text>
  43. <radio-group wx:if="{{tabIndex == 0}}" class="radioGroup" bindchange="securityChange">
  44. <label>
  45. <radio value="0" checked="true" />无验证
  46. </label>
  47. <label>
  48. <radio value="1" />密码验证
  49. </label>
  50. </radio-group>
  51. <radio-group wx:if="{{tabIndex == 1}}" class="radioGroup" bindchange="securityChange">
  52. <label>
  53. <radio value="0" checked="true" />无验证
  54. </label>
  55. </radio-group>
  56. </view> -->
  57. <view wx:if="{{pdwSwitch && tabIndex == 0}}" class="pwdBox">
  58. <view wx:if="{{!isShowPwd}}" style="margin-bottom: 0;">
  59. <input type="password" placeholder="请设置密码" placeholder-class="pwdBoxInside" focus="true" bindinput="pwdInput" value="{{password}}" />
  60. <image class=" eye" src="../../assets/images/password-show.png" bindtap="setPwdShow"></image>
  61. </view>
  62. <view wx:if="{{isShowPwd}}" style="margin-bottom: 0;">
  63. <input type="text" placeholder="请设置密码" placeholder-class="pwdBoxInside" value="{{password}}" bindinput="pwdInput" />
  64. <image class="eye" src="../../assets/images/password-close.png" bindtap="setPwdShow"></image>
  65. </view>
  66. </view>
  67. </view>
  68. <view class="btns">
  69. <!-- 绑定 -->
  70. <button wx:if="{{tabIndex == 0}}" type="primary" bindtap="submit">确认绑定</button>
  71. <!-- 转赠 -->
  72. <button wx:if="{{tabIndex == 1}}" type="primary" bindtap="goGive">去转赠</button>
  73. </view>