微信小店联盟带货小程序

edit.wxml 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <view class="container">
  2. <view class="section account-type">
  3. <view class="section-title">选择账户类型</view>
  4. <view class="account-type-grid">
  5. <view
  6. class="account-type-item {{selectedAccountType === item.type ? 'selected' : ''}}"
  7. wx:for="{{accountTypes}}"
  8. wx:key="type"
  9. data-type="{{item.type}}"
  10. bindtap="selectAccountType"
  11. >
  12. <image class="account-type-icon" src="{{item.icon}}"></image>
  13. <text>{{item.name}}</text>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="section account-info" wx:if="{{selectedAccountType}}">
  18. <view class="section-title">{{selectedAccountType === 'bank' ? '银行卡信息' : '账户信息'}}</view>
  19. <view class="input-group">
  20. <view wx:if="{{selectedAccountType === 'bank'}}" class="input-item bank-select-item">
  21. <text class="label">银行</text>
  22. <view
  23. class="bank-select"
  24. bindtap="showBankList"
  25. >
  26. <input
  27. class="bank-name"
  28. type="text"
  29. placeholder="请选择银行"
  30. value="{{selectedBank ? selectedBank.name : ''}}"
  31. disabled
  32. />
  33. <text class="select-icon">▼</text>
  34. </view>
  35. </view>
  36. <view class="input-item">
  37. <text class="label">
  38. {{selectedAccountType === 'bank' ? '卡号' :
  39. (selectedAccountType === 'alipay' ? '支付宝账号' : '微信账号')}}
  40. </text>
  41. <input
  42. class="input"
  43. type="text"
  44. placeholder="{{selectedAccountType === 'bank' ? '请输入银行卡号' : (selectedAccountType === 'alipay' ? '请输入支付宝账号' : '请输入微信账号')}}"
  45. value="{{accountNumber}}"
  46. bindinput="onAccountNumberInput"
  47. />
  48. </view>
  49. <view class="input-item">
  50. <text class="label">
  51. {{selectedAccountType === 'bank' ? '持卡人' : '账户姓名'}}
  52. </text>
  53. <input
  54. class="input"
  55. type="text"
  56. placeholder="{{selectedAccountType === 'bank' ? '请输入持卡人姓名' : (selectedAccountType === 'alipay' ? '请输入支付宝实名' : '请输入微信实名')}}"
  57. value="{{accountName}}"
  58. bindinput="onAccountNameInput"
  59. />
  60. </view>
  61. </view>
  62. </view>
  63. <view class="section default-setting">
  64. <view class="default-label">设为默认账户</view>
  65. <switch
  66. checked="{{isDefault}}"
  67. bindchange="toggleDefault"
  68. />
  69. </view>
  70. <button
  71. class="save-btn"
  72. bindtap="saveAccount"
  73. >
  74. 保存账户
  75. </button>
  76. <!-- 银行选择弹窗 -->
  77. <view
  78. class="bank-list-modal {{showBankList ? 'show' : ''}}"
  79. catchtap="hideBankList"
  80. >
  81. <view
  82. class="bank-list-content"
  83. catchtap="preventTap"
  84. >
  85. <view class="bank-list-title">选择银行</view>
  86. <scroll-view
  87. scroll-y
  88. class="bank-list-scroll"
  89. >
  90. <view
  91. class="bank-list-item"
  92. wx:for="{{bankList}}"
  93. wx:key="code"
  94. data-code="{{item.code}}"
  95. bindtap="selectBank"
  96. >
  97. {{item.name}}
  98. </view>
  99. </scroll-view>
  100. </view>
  101. </view>
  102. </view>