all.wxml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <!--登陆界面-->
  2. <view class="logindiv" wx:if="{{userInfo == 'nologin'}}">
  3. <image class="logindiv_image" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/xcx/start.png"></image>
  4. <!-- 旧版弃用 -->
  5. <!-- <button class="loginbtn" bindtap="getUserProfile">微信授权登陆</button> -->
  6. <!-- <button class="loginbtn" open-type="getUserInfo" bindgetuserinfo="getUserInfo">微信授权登陆</button> -->
  7. <view class="container">
  8. <view class="auth-title">完成登录前,请先完善以下资料</view>
  9. <view class="auth-subtitle" style="margin-bottom: 45rpx;">你的公开信息(昵称、头像等)</view>
  10. <label>我的头像</label>
  11. <button class="avatar-wrapper" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar" style="width: 140rpx;height: 140rpx;border-radius: 50%;background: #f0f0f0;margin-bottom:22rpx;padding:0; margin: auto;">
  12. <image class="avatar" src="{{avatarUrl}}" style="width: 140rpx;height: 140rpx;border-radius: 50%;"></image>
  13. </button>
  14. <label>我的昵称</label>
  15. <input type="nickname" class="weui-input" placeholder="请输入昵称" bindinput="changeNickName" bindblur="changeNickName" style="margin-bottom:120rpx"/>
  16. <view class="login-btn">
  17. <button class="btn-normal" catchtap="savebtn">确定登录</button>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="user">
  22. <view class="user-top">
  23. <image src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/image/icon/parner.png" class="user-par" wx:if="{{checkData.copartner_state == 1}}" />
  24. <view class="user-name ellipsis">{{userInfo.nickname}}</view>
  25. <button class="user-title" wx:if="{{userInfo == 'nologin'}}" bindtap="getUserProfile" style="font-size: 18px;margin-top: -20px;">立即登陆</button>
  26. <!-- <button class="user-title" wx:if="{{userInfo == 'nologin'}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo" style="font-size: 18px;margin-top: -20px;">立即登陆</button> -->
  27. <view class="user-title" wx:if="{{userInfo != 'nologin'}}"><text>NO.{{info.wx_user.id}}</text><text wx:if="{{info.user.tel}}"> | TEL : {{info.user.tel}}</text></view>
  28. <span class="user-title" style="top: 165rpx;" wx:if="{{userInfo.rank == 1}}">(身份:代理)</span>
  29. <span class="user-title" style="top: 165rpx;" wx:if="{{userInfo.rank == 2}}">(身份:店长)</span>
  30. <span class="user-title" style="top: 165rpx;" wx:if="{{userInfo.rank == 3}}">(身份:区域代理)</span>
  31. <span class="user-title" style="top:15px;width:356rpx;" wx:if="{{userInfo != 'nologin' && !bindTel}}">
  32. <view>
  33. <text>尚未绑定手机 , </text>
  34. </view>
  35. <navigator url="/packageUser/pages/user/bind/bind">
  36. <view class="bind" style="top: 0;left: 192rpx;">立即绑定</view>
  37. </navigator>
  38. </span>
  39. <image class="user-head" src="{{userInfo.full_head}}" bindtap="toUserInfo"></image>
  40. <view class="clean"></view>
  41. </view>
  42. <view style="padding-bottom: 50rpx;">
  43. <view class="user-radishbg">
  44. <view class="user-points" bindtap="toSilver">
  45. <view class="user-points__title">我的银豆</view>
  46. <image class="user-points__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  47. <view class="user-points__num">{{silver / 100}}</view>
  48. </view>
  49. <!-- <view class="user-points" bindtap="toIntegral">
  50. <view class="user-points__title">我的积分</view>
  51. <image class="user-points__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  52. <view class="user-points__num">{{integral / 100}}</view>
  53. </view> -->
  54. <!-- <view class="user-points" bindtap="toCashList">
  55. <view class="user-points__title">我的余额</view>
  56. <image class="user-points__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  57. <view class="user-points__num">{{cashbalance / 100}}</view>
  58. </view> -->
  59. <view class="user-points" bindtap="toRadish">
  60. <view class="user-points__title">我的提货券</view>
  61. <image class="user-points__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  62. <view class="user-points__num">{{balance / 100}}</view>
  63. </view>
  64. <view class="user-points" bindtap="toCash">
  65. <view class="user-points__title">我的余额</view>
  66. <image class="user-points__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  67. <view class="user-points__num">{{cashbalance / 100}}</view>
  68. </view>
  69. <view class="user-luobo">
  70. <!--
  71. <navigator url="/packageUser/pages/user/exchange/exchange">
  72. <view class="user-radish">兑换提货券</view>
  73. </navigator>
  74. -->
  75. <!-- <navigator bindtap="buyVoucher" wx:if="{{bindTel}}">
  76. <view class="user-radish1" style="width:100%">购买提货券</view>
  77. </navigator> -->
  78. <!-- <navigator url="/packageUser/pages/user/otherbind/otherbind" wx:if="{{!bindTel}}">
  79. <view class="user-radish1" style="width:100%">购买提货券</view>
  80. </navigator> -->
  81. <!--<view class="line1"></view>-->
  82. </view>
  83. <view class="clean"></view>
  84. </view>
  85. <view class="user-padding">
  86. <!--
  87. <navigator url="/packageUser/pages/user/orders/orders" >
  88. <view class="user-line">
  89. <view class="user-line__title">我的订单</view>
  90. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  91. </view>
  92. </navigator>
  93. -->
  94. <view class="user-state" bindtap="checkbindtel">
  95. <navigator url="/packageUser/pages/user/orders/orders" >
  96. <view class="user-dingdan">
  97. <image class="user-paid__icon" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/dingdan.png"></image>
  98. <view class="user-paid__text">我的订单</view>
  99. </view>
  100. </navigator>
  101. <navigator url="/packageUser/pages/user/orders/orders?type=unpay" >
  102. <view class="user-paid">
  103. <image class="user-paid__icon" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/paid.png"></image>
  104. <view class="user-paid__text">待支付</view>
  105. </view>
  106. </navigator>
  107. <navigator url="/packageUser/pages/user/orders/orders?type=processing" >
  108. <view class="user-deliver">
  109. <image class="user-paid__icon" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/deliver.png"></image>
  110. <view class="user-deliver__text">待发货</view>
  111. </view>
  112. </navigator>
  113. <navigator url="/packageUser/pages/user/orders/orders?type=dispatch" >
  114. <view class="user-collect">
  115. <image class="user-collect__icon" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/collect.png"></image>
  116. <view class="user-collect__text">待收货</view>
  117. </view>
  118. </navigator>
  119. <view class="clean"></view>
  120. </view>
  121. </view>
  122. <!--
  123. <view class="user-padding">
  124. <navigator url="/packageUser/pages/user/farm/farm" >
  125. <view class="user-farm">
  126. <image class="user-farm__icon" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/farm.png"></image>
  127. <view class="user-farm__text">我的团购</view>
  128. </view>
  129. </navigator>
  130. <navigator url="/packageUser/pages/user/granary/granary">
  131. <view class="user-granary">
  132. <image class="user-granary__icon" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/icon/granary.png"></image>
  133. <view class="user-granary__text">我的粮仓</view>
  134. </view>
  135. </navigator>
  136. <view class="line"></view>
  137. <view class="clean"></view>
  138. </view>
  139. -->
  140. <view class="user-padding">
  141. <!--
  142. <view class="user-line" bindtap="toPromotion">
  143. <view class="user-line__title">我的赠券</view>
  144. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  145. </view>
  146. -->
  147. <!-- <view class="user-line" bindtap="toInviteList">
  148. <view class="user-line__title">我的推广</view>
  149. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  150. </view> -->
  151. <view class="user-line" bindtap="toCommission" style="border:0;" wx:if="{{userInfo.tc_bl>0}}">
  152. <view class="user-line__title">我的提成</view>
  153. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  154. </view>
  155. </view>
  156. <view class="user-padding">
  157. <!-- <view class="user-line" bindtap="toBindOldSys" wx:if="{{info.wx_user.can_bind}}">
  158. <view class="user-line__title">旧系统用户绑定</view>
  159. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  160. </view> -->
  161. <!-- <view class="user-line" bindtap="toIdentity">
  162. <view class="user-line__title">会员认证</view>
  163. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  164. </view> -->
  165. <!-- <view class="user-line" bindtap="toBankInfo">
  166. <view class="user-line__title">银行信息</view>
  167. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  168. </view> -->
  169. <view class="user-line" bindtap="toAddressList">
  170. <view class="user-line__title">收货地址</view>
  171. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  172. </view>
  173. <view class="user-line" bindtap="toCanteen" wx:if="{{info['user']['employ']}}">
  174. <view class="user-line__title">员工订餐</view>
  175. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  176. </view>
  177. <!--<view class="user-line" bindtap="toSafe" >
  178. <view class="user-line__title">修改交易密码</view>
  179. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  180. </view>-->
  181. <!--
  182. <view class="user-line" bindtap="toApplyLeader" >
  183. <view class="user-line__title">团长申请</view>
  184. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  185. </view>
  186. <view class="user-line" bindtap="toAreaCart" >
  187. <view class="user-line__title">店铺专区</view>
  188. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  189. </view>
  190. -->
  191. <!-- <view class="user-line" bindtap="toProxy" wx:if="{{userInfo.rank == 3}}">
  192. <view class="user-line__title">我的代理</view>
  193. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  194. </view> -->
  195. <!-- <view class="user-line" bindtap="toCustom" >
  196. <view class="user-line__title">联系客服</view>
  197. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  198. </view> -->
  199. <button class="user-line" open-type="contact" >
  200. <view class="user-line__title">联系客服</view>
  201. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  202. </button>
  203. <!-- <button class="user-line" bindtap="tiggerQR" >
  204. <view class="user-line__title">联系客服</view>
  205. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  206. </button>-->
  207. <view class="kfqr-dialog" wx:if="{{showqr}}" bindtap="tiggerQR">
  208. <view class="kfqr" catchtap="catchtapQR">
  209. <image src="{{kfqr}}" show-menu-by-longpress="{{true}}"></image>
  210. <text>长按扫码联系客服</text>
  211. </view>
  212. </view>
  213. <!--
  214. <view class="user-line" bindtap="toAbout" style="border:0;">
  215. <view class="user-line__title">关于商城</view>
  216. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  217. </view>
  218. -->
  219. </view>
  220. <!-- <view class="user-padding" wx:if="{{ checkData.merchant_id > 0}}">
  221. <view class="user-line" bindtap="toMerchant" style="{{checkData.is_super_admin ? 'margin-top: 20rpx;':'margin-top: 20rpx;border:0;'}}">
  222. <view class="user-line__title">订单管理</view>
  223. <view class="user-line__merchant"></view>
  224. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  225. <view class="user-line__merchantNum" wx:if="{{merchant}}">{{merchant.list_count}}</view>
  226. </view>
  227. <view class="user-line" bindtap="toMerchant1" style="border:0;" wx:if="{{checkData.is_super_admin}}">
  228. <view class="user-line__title">结算管理</view>
  229. <view class="user-line__merchant1"></view>
  230. <image class="user-line__right" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/right.png"></image>
  231. </view>
  232. </view> -->
  233. </view>
  234. <!--
  235. <view class="unbind" wx:if="{{!bindTel}}">
  236. <image class="unbind-img" src="http://fohow.oss-cn-shenzhen.aliyuncs.com/xcx/user/bindtel.png"></image>
  237. <view class="unbind-title">你还没绑定手机号</view>
  238. <view class="unbind-about">兑换产品前要确定绑定了手机哦!</view>
  239. <view class="unbind-btn" bindtap="toBindTel">去绑定</view>
  240. </view>
  241. -->
  242. </view>