mine.wxml 3.8 KB

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