C端小程序
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

54 řádky
2.2 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='exchange' 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 class="infoCard">
  15. <view class="name">持卡人姓名:{{name}}</view>
  16. <view wx:if="{{!isChangePhone}}" class="phone">持卡人手机号:{{phone}} <text class="changePhone" bindtap="changePhone">更改</text></view>
  17. <view wx:if="{{isChangePhone}}" class="phone">持卡人手机号:
  18. <input class="phoneInput" type="text" placeholder="请填写手机号" focus="true" bindinput="phoneInput" />
  19. <text class="confirmPhone" bindtap="confirmPhone">确定</text>
  20. <text class="cancelChangePhone" bindtap="cancelChangePhone">取消</text>
  21. </view>
  22. <view class="security">
  23. <text>支付安全设置:</text>
  24. <radio-group wx:if="{{tabIndex == 0}}" class="radioGroup" bindchange="securityChange">
  25. <label>
  26. <radio value="0" checked="true" />无验证
  27. </label>
  28. <label>
  29. <radio value="1" />密码验证
  30. </label>
  31. </radio-group>
  32. <radio-group wx:if="{{tabIndex == 1}}" class="radioGroup" bindchange="securityChange">
  33. <label>
  34. <radio value="0" checked="true" />无验证
  35. </label>
  36. </radio-group>
  37. </view>
  38. <view wx:if="{{pdwSwitch && tabIndex == 0}}" class="pwdBox">
  39. <input type="text" placeholder="请设置密码" placeholder-class="pwdBoxInside" focus="true" bindinput="pwdInput"/>
  40. </view>
  41. </view>
  42. <view class="btns">
  43. <button wx:if="{{tabIndex == 0}}" type="primary" bindtap="checkPhoneStatus">确认绑定</button>
  44. <button wx:if="{{tabIndex == 1}}" type="primary" bindtap="checkPhoneStatus">去转赠</button>
  45. </view>