setting.wxml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <view class='gcs-box'>
  2. <view class='top-bg'></view>
  3. <view class="avatar-box">
  4. <image src="{{headInfo.member_info.avatar}}"></image>
  5. <!-- <view class="avatar-edit" bindtap="showEdit" data-type="avatar">修改头像</view> -->
  6. <view class="user-id">ID: {{headInfo.re_id}}</view>
  7. <view class="rest" wx:if="{{headInfo.close_reset_btn!=1}}">
  8. <text>{{rest==1?"休息中":"营业中"}}</text>
  9. <switch checked="{{rest==1?false:true}}" bindchange="switchChange" color='#f34b1f' />
  10. </view>
  11. </view>
  12. <!-- 个人资料 -->
  13. <view class="gcs-info card">
  14. <view class="card-header">
  15. <view class="title">个人资料</view><view class="card-edit" bindtap="showEdit" data-type="info">编辑</view>
  16. </view>
  17. <view class="bot-line"></view>
  18. <view class="info-item">
  19. <view class="item-title">关联会员</view>
  20. <view class="item-content">{{headInfo.member_info.username}}</view>
  21. </view>
  22. <view class="bot-line"></view>
  23. <view class="info-item">
  24. <view class="item-title">{{groupInfo.owner_name}}名称</view>
  25. <view class="item-content">{{headInfo.head_name}}</view>
  26. </view>
  27. <view class="bot-line"></view>
  28. <view class="info-item">
  29. <view class="item-title">手机号</view>
  30. <view class="item-content">{{headInfo.head_mobile}}</view>
  31. </view>
  32. <view class="bot-line"></view>
  33. <view class="info-item">
  34. <view class="item-title">{{groupInfo.group_name}}名称</view>
  35. <view class="item-content">{{headInfo.community_name}}</view>
  36. </view>
  37. <block wx:if="{{headInfo.delivery_type_tuanz==1}}">
  38. <view class="bot-line"></view>
  39. <view class="info-item">
  40. <view class="item-title">自定义配送开关</view>
  41. <view class="item-content">{{tuanType[headInfo.is_modify_shipping_method]}}</view>
  42. </view>
  43. <view class="bot-line"></view>
  44. <view class="info-item">
  45. <view class="item-title">自定义配送费</view>
  46. <view class="item-content">{{headInfo.is_modify_shipping_fare==0?'跟随系统':headInfo.shipping_fare}}</view>
  47. </view>
  48. <view class="info-item" wx:if="{{headInfo.share_wxcode}}">
  49. <view class="item-title">群分享二维码</view>
  50. <view class="item-content">
  51. <image class='img' src='{{headInfo.share_wxcode}}'></image>
  52. </view>
  53. </view>
  54. </block>
  55. </view>
  56. </view>
  57. <!-- 修改头像begin -->
  58. <i-modal scrollUp="{{false}}" visible="{{showEditAvatar}}" wx:if="{{showEditAvatar}}">
  59. <view class="avatar-edit-box">
  60. <view class="modal-title">修改头像</view>
  61. <image src="{{headInfo.member_info.avatar}}"></image>
  62. <view class="bot-line"></view>
  63. <view class="modal-btn">上传头像</view>
  64. <view class="bot-line"></view>
  65. <view class="modal-btn cancel" bindtap="hideEdit">取消</view>
  66. </view>
  67. </i-modal>
  68. <!-- 修改头像end -->
  69. <!-- 个人资料修改begin -->
  70. <i-modal scrollUp="{{false}}" visible="{{showEditUserInfo}}" wx:if="{{showEditUserInfo}}">
  71. <view class="edit-box">
  72. <form bindsubmit="infoFormSubmit">
  73. <view class="card-header">
  74. <view class="title">修改个人资料</view>
  75. <image class="edit-close" bindtap="hideEdit" src="../../images/icon-sku-close.png"></image>
  76. </view>
  77. <view class="bot-line"></view>
  78. <view class="info-item">
  79. <view class="item-title">{{groupInfo.owner_name}}名称</view>
  80. <view class="item-content">
  81. <input name="head_name" value="{{headInfo.head_name}}" bindfocus="iptFocus" bindblur="iptBlur" data-name="headName" placeholder="请输入团长名称" />
  82. </view>
  83. </view>
  84. <view class="bot-line {{currentFocus=='headName'?'focus':''}}"></view>
  85. <view class="info-item">
  86. <view class="item-title">手机号</view>
  87. <view class="item-content">
  88. <input name="head_mobile" type="number" value="{{headInfo.head_mobile}}" bindfocus="iptFocus" bindblur="iptBlur" data-name="headMobile" placeholder="请输入手机号" />
  89. </view>
  90. </view>
  91. <view class="bot-line {{currentFocus=='headMobile'?'focus':''}}"></view>
  92. <block wx:if="{{headInfo.delivery_type_tuanz==1}}">
  93. <view class="info-item">
  94. <view class="item-title">自定义配送开关</view>
  95. <view class="item-content">
  96. <radio-group class="radio-group" bindchange="radioChange" data-name="method">
  97. <label class="radio" wx:for="{{tuanItems}}" wx:key="name">
  98. <radio value="{{item.name}}" checked="{{headInfo.is_modify_shipping_method==item.name?true:false}}" /><text>{{item.value}}</text>
  99. </label>
  100. </radio-group>
  101. </view>
  102. </view>
  103. <view class="info-item">
  104. <view class="item-title">自定义配送费</view>
  105. <view class="item-content">
  106. <radio-group class="radio-group" bindchange="radioChange" data-name="fare">
  107. <label class="radio" wx:for="{{fareItems}}" wx:key="name">
  108. <radio value="{{item.name}}" checked="{{headInfo.is_modify_shipping_fare==item.name?true:false}}" /><text>{{item.value}}</text>
  109. </label>
  110. </radio-group>
  111. </view>
  112. </view>
  113. <block wx:if="{{showFare}}">
  114. <view class="info-item">
  115. <view class="item-title">配送费(元)</view>
  116. <view class="item-content">
  117. <input name="shipping_fare" value="{{headInfo.shipping_fare}}" bindfocus="iptFocus" bindblur="iptBlur" data-name="tuanzMoney" placeholder="请输入配送费" />
  118. </view>
  119. </view>
  120. <view class="bot-line {{currentFocus=='tuanzMoney'?'focus':''}}"></view>
  121. </block>
  122. </block>
  123. <view class="info-item" bindtap='choseImg'>
  124. <view class="item-title">群分享二维码(点击修改)</view>
  125. <view class="item-content">
  126. <image class='img' src='{{headInfo.share_wxcode}}' wx:if="{{headInfo.share_wxcode}}"></image>
  127. <view class="upload-btn" wx:else>
  128. <text class="iconfont icon-xiangce"></text>
  129. </view>
  130. </view>
  131. </view>
  132. <view class="edit-btn">
  133. <button loading="{{btnLoading}}" form-type="submit">保存</button>
  134. </view>
  135. </form>
  136. </view>
  137. </i-modal>
  138. <!-- 个人资料修改end -->