mine.wxml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <view class="wrapper">
  2. <view
  3. class="portrait">
  4. <view class="van-uploader-wrap">
  5. <van-uploader
  6. file-list="{{ user_head_img_url }}"
  7. max-count="1"
  8. accept="image"
  9. deletable="{{false}}"
  10. preview-size="169rpx"
  11. data-formkey="user_head_img_url"
  12. preview-full-image="{{false}}"
  13. disabled="{{!sessionId}}"
  14. image-fit="aspectFill"
  15. bind:click-preview="uploadImg"
  16. bind:after-read="afterRead"
  17. bind:delete="delete"
  18. bind:tap="handleFormItemClick">
  19. <image
  20. class="no-login"
  21. src="../../image/common/no_login_head_img_url.png"></image>
  22. </van-uploader>
  23. </view>
  24. </view>
  25. <view class="nickname-wrap">
  26. <block
  27. wx:if="{{form.user_nickname.length > 0 && !booNickname}}">
  28. <text
  29. bind:tap="editNickname">{{form.user_nickname}}</text>
  30. <image
  31. src="../../image/mine/edit.png"
  32. bind:tap="editNickname"></image>
  33. </block>
  34. <block wx:else>
  35. <input value="{{user_nickname}}"
  36. bindinput="bindInput"
  37. bindblur="bindblur"
  38. class="nickname"
  39. type="nickname"
  40. focus="{{isAutoFocus}}"
  41. placeholder="请输入昵称"
  42. cursor-spacing="{{52}}"
  43. data-formkey="user_nickname"
  44. disabled="{{!sessionId}}"
  45. placeholder-class="app_header-search-placeholder"
  46. bind:tap="handleFormItemClick"/>
  47. </block>
  48. </view>
  49. <view
  50. class="account"
  51. style="visibility: {{form.user_phone ? 'visible' : 'hidden'}};">账号:{{form.user_phone}}
  52. </view>
  53. <view class="main">
  54. <view
  55. class="business-account"
  56. wx:if="{{userInfo.shop_status === 1}}">
  57. <image src="../../image/mine/bg.png"></image>
  58. <view>
  59. <view class="describe">已有商家账号</view>
  60. <view class="box">
  61. <view class="business-account-name-wrap">
  62. <view class="business-account-name">{{userInfo.shop_name}}</view>
  63. <view class="dashboard">
  64. <view>商品数量:{{userInfo.product_total}}</view>
  65. <view>预售商品数量:{{userInfo.sale_product_total}}</view>
  66. </view>
  67. </view>
  68. <button
  69. class="btn"
  70. type="default"
  71. data-page="businessHome"
  72. bind:tap="handleSubscribeMessage">商户管理
  73. </button>
  74. </view>
  75. </view>
  76. </view>
  77. <view
  78. class="list"
  79. wx:if="{{userInfo.shop_status !== 1}}"
  80. data-page="businessApply"
  81. bind:tap="handleSubscribeMessage">
  82. <image class="label" src="../../image/mine/user.png"></image>
  83. <text class="value">申请入住(成为农户)</text>
  84. </view>
  85. <view
  86. class="list"
  87. data-page="collection"
  88. bind:tap="jump">
  89. <image class="label" src="../../image/mine/star.png"></image>
  90. <text class="value">收藏</text>
  91. </view>
  92. <view
  93. class="list"
  94. bind:tap="call">
  95. <image class="label" src="../../image/mine/phone.png"></image>
  96. <text class="value">客服电话</text>
  97. </view>
  98. <view
  99. class="list"
  100. bind:tap="showLogout"
  101. wx:if="{{sessionId}}">
  102. <image class="label" src="../../image/mine/tuichu.png"></image>
  103. <text class="value">退出</text>
  104. </view>
  105. </view>
  106. </view>
  107. <!--自定义tabbar页面被遮挡-->
  108. <view style="padding-bottom:25%;"></view>
  109. <!-- 弹窗:退出登录二次确认 -->
  110. <van-popup
  111. custom-class="customer-van-model"
  112. show="{{ booLogout }}"
  113. bind:close="hideLogout">
  114. <view class="customer-van-model_body">
  115. <view class="content">确认退出登录?</view>
  116. </view>
  117. <view class="customer-van-model_footer">
  118. <button class="customer-van-model_cancel"
  119. hover-class="none"
  120. type="default"
  121. bind:tap="hideLogout">取消
  122. </button>
  123. <button class="customer-van-model_confirm"
  124. hover-class="none"
  125. type="primary"
  126. disabled="{{booLock}}"
  127. bind:tap="confirmLogout">确定
  128. </button>
  129. </view>
  130. </van-popup>