mine.wxml 4.0 KB

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