mine.wxml 3.9 KB

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