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.

71 lines
4.4 KiB

  1. <view class='accountManagement'>
  2. <view class='title' wx:if="{{!receiverAccount&&!isFlag||!isSet}}">添加收款账户</view>
  3. <view class='title' wx:if="{{isFlag}}">变更收款账户</view>
  4. <view class='title' wx:if="{{receiverAccount}}">商家收款账户</view>
  5. <!-- 没有添加收款账户 -->
  6. <form bindsubmit="formSubmit" bindreset="formReset" wx:if="{{(!receiverAccount&&!isFlag)||isFlag||!isSet}}">
  7. <view class="section">
  8. <view class="section__title">账号类型</view>
  9. <view class='list-msg2' bindtap='bindShowMsg'>
  10. <view>{{tihuoWay}}</view>
  11. <image style='height:20rpx;width:20rpx;' src='https://formall.oss-accelerate.aliyuncs.com/cimg/belowan.png'></image>
  12. </view>
  13. <view class="select_box" wx:if="{{select}}">
  14. <view class="select_one" bindtap="mySelect" data-name="微信商户号" data-accountTypeValue='0'>微信商户号</view>
  15. <view class="select_one" bindtap="mySelect" data-name="个人微信号" data-accountTypeValue='1'>个人微信号</view>
  16. </view>
  17. </view>
  18. <view class="section">
  19. <view class="section__title" wx:if="{{tihuoWay=='微信商户号'}}">商户号</view>
  20. <view class="section__title" wx:if="{{tihuoWay=='个人微信号'}}">微信号</view>
  21. <input name="id" placeholder="请输入{{tihuoWay}}" placeholder-style='color:#eee;' />
  22. </view>
  23. <view class="section">
  24. <view class="section__title" wx:if="{{tihuoWay=='微信商户号'}}">商户名</view>
  25. <view class="section__title" wx:if="{{tihuoWay=='个人微信号'}}">姓名</view>
  26. <input name="name" placeholder="请输入{{tihuoWay=='个人微信号'?'个人微信名':'微信商户名'}}" placeholder-style='color:#eee;' />
  27. </view>
  28. <view class="section" wx:if="{{tihuoWay=='个人微信号'}}">
  29. <view class="section__title">收款授权状态</view>
  30. <!-- <view class='tihuoWay tihuoWay01' wx:if="{{haveAccount}}">已授权</view>
  31. <view class='tihuoWay tihuoWay01' wx:if="{{!haveAccount}}">未授权(请打开本广场用户端小程序领取任意一张优惠券,然后刷新本页面点击保存完成授权)</view> -->
  32. <view class='tihuoWay tihuoWay01' >{{haveAccount}}</view>
  33. </view>
  34. <view class="btn-area">
  35. <button formType="submit" hover-class='opacity'>提交</button>
  36. </view>
  37. </form>
  38. <!-- 已经添加收款账户 -->
  39. <view class='add' wx:if="{{receiverAccount&&!isFlag}}">
  40. <form>
  41. <view class="section">
  42. <view class="section__title">账号类型</view>
  43. <view class='tihuoWay' wx:if="{{accountData.receiverType == 0}}">微信商户号</view>
  44. <view class='tihuoWay' wx:if="{{accountData.receiverType == 1 || accountData.receiverType == 3}}">个人微信号</view>
  45. </view>
  46. <view class="section">
  47. <view class="section__title" wx:if="{{accountData.receiverType == 0}}">商户号</view>
  48. <view class="section__title" wx:if="{{accountData.receiverType == 1}}">微信号</view>
  49. <view class="section__title" wx:if="{{accountData.receiverType == 3}}">openId</view>
  50. <view class='tihuoWay' style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">{{accountData.receiverAccount}}</view>
  51. </view>
  52. <view class="section">
  53. <view class="section__title" wx:if="{{accountData.receiverType == 0}}">商户名</view>
  54. <view class="section__title" wx:if="{{accountData.receiverType == 1||accountData.receiverType == 3}}">姓名</view>
  55. <!-- <view class='tihuoWay' wx:if="{{accountData.receiverType == 0}}">{{accountData.receiverComments}}</view> -->
  56. <view class='tihuoWay'>{{accountData.trueName}}</view>
  57. </view>
  58. <view class="section" wx:if="{{accountData.receiverType == 1||accountData.receiverType == 3}}">
  59. <view class="section__title">收款授权状态</view>
  60. <!-- <view class='tihuoWay tihuoWay01' wx:if="{{haveAccount}}">已授权</view>
  61. <view class='tihuoWay tihuoWay01' wx:if="{{!haveAccount}}">未授权(请打开本广场用户端小程序领取任意一张优惠券,然后刷新本页面点击保存完成授权)</view> -->
  62. <view class='tihuoWay tihuoWay01' >{{haveAccount}}</view>
  63. </view>
  64. <view class="btn-area">
  65. <button bindtap="deleteByReceiverId" hover-class='opacity' data-id='{{accountData.id}}'>删除账号</button>
  66. <button bindtap="submitAccount" wx:if="{{accountData.receiverType == 1}}" hover-class='opacity'>提交</button>
  67. </view>
  68. </form>
  69. </view>
  70. </view>