index.wxml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <!--pages/ucenter/index/index.wxml-->
  2. <view class="container">
  3. <view class="user_text" bindtap='{{isLogin?"toUserCenter":"tologin"}}' hover-class='active'>
  4. <!--<open-data class="userAvatarUrl" bindtap="" type='userAvatarUrl'></open-data>-->
  5. <view class="userAvatarUrl" bindtap="">
  6. <image src='{{isLogin&&!userInfo.flag?userInfo.avatar:"/images/userhead.png"}}'></image>
  7. </view>
  8. <text class="bold" wx:if="{{userInfo.bindingPhone==1}}">{{isLogin?userInfo.phonenumber:'手机号未绑定'}}</text>
  9. <text class='bold' wx:if="{{userInfo.bindingPhone==0}}">{{isLogin?userInfo.userName:'点击登录'}}</text>
  10. <text class="h1" wx:if="{{userInfo.bindingPhone==0}}">{{isLogin?userInfo.loginName:'工作人员登录后进行操作'}}</text>
  11. <text class='bold' wx:if="{{!isLogin}}">点击登录</text>
  12. <text class="h1" wx:if="{{!isLogin}}">工作人员登录后进行操作</text>
  13. <view wx:if="{{isLogin}}" class="user_text_edit">
  14. 编辑个人信息
  15. </view>
  16. <view class="user_text_zan-ft">
  17. <image src='/images/enter.png'></image>
  18. </view>
  19. </view>
  20. <!-- <view class="banner">
  21. <image src='/banner/banner1.png'></image>
  22. </view> -->
  23. <!-- <view style="width: 100%;">
  24. <ad unit-id="adunit-8eb13875bcf592b0" ad-intervals="30"></ad>
  25. </view> -->
  26. <view class="context" wx:if='{{!userInfo.flag}}' >
  27. <view class='context_view' bindtap="goPurse" hover-class='active'>
  28. <image class='my_purse' src='/images/my_purse.png'></image>
  29. <text>我的钱包</text>
  30. </view>
  31. <view class='context_view' bindtap="goCharginglog" hover-class='active'>
  32. <image class='my_chargelog' src='/images/my_chargelog.png'></image>
  33. <text>充电记录</text>
  34. </view>
  35. <view class='context_view' hover-class='active'>
  36. <image class='my_cuppon' src='/images/my_cuppon.png'></image>
  37. <text>优惠券</text>
  38. </view>
  39. <view class='context_view' hover-class='active'>
  40. <image class='my_integral' src='/images/my_integral.png'></image>
  41. <text>积分中心</text>
  42. </view>
  43. </view>
  44. <view class="user-menu">
  45. <view class="zan-panel">
  46. <view class="zan-cell" wx:if='{{!userInfo.flag}}' hover-class="active" bindtap="goCharginglog">
  47. <view class="zan-icon">
  48. <!-- <image src='/images/charginglog.png'></image> -->
  49. <image src='/images/column.png'></image>
  50. </view>
  51. <view class="zan-text">
  52. <text>充电记录</text>
  53. </view>
  54. <view class="zan-ft">
  55. <image src='/images/enter.png'></image>
  56. </view>
  57. </view>
  58. <view class="zan-cell" wx:if='{{!userInfo.flag}}' hover-class="active" bindtap="goChargemoneylog">
  59. <view class="zan-icon">
  60. <!-- <image src='/images/chargemoneylog.png'></image> -->
  61. <image src='/images/column.png'></image>
  62. </view>
  63. <view class="zan-text">
  64. <text>充值记录</text>
  65. </view>
  66. <view class="zan-ft">
  67. <image src='/images/enter.png'></image>
  68. </view>
  69. </view>
  70. <view class="zan-cell" wx:if='{{!userInfo.flag}}' hover-class="active" bindtap="goyuyt">
  71. <view class="zan-icon">
  72. <!-- <image src='/images/purse.png'></image> -->
  73. <image src='/images/column.png'></image>
  74. </view>
  75. <view class="zan-text">
  76. <text>预约记录</text>
  77. </view>
  78. <view class="zan-ft">
  79. <image src='/images/enter.png'></image>
  80. </view>
  81. </view>
  82. <view class="zan-cell" wx:if='{{!userInfo.flag}}' hover-class="active" bindtap="goPurse">
  83. <view class="zan-icon">
  84. <!-- <image src='/images/purse.png'></image> -->
  85. <image src='/images/column.png'></image>
  86. </view>
  87. <view class="zan-text">
  88. <text>我的钱包</text>
  89. </view>
  90. <view class="zan-ft">
  91. <image src='/images/enter.png'></image>
  92. </view>
  93. </view>
  94. <view class="zan-cell" wx:if='{{!userInfo.flag}}' hover-class="active" bindtap="goCar">
  95. <view class="zan-icon">
  96. <!-- <image src='/images/purse.png'></image> -->
  97. <image src='/images/column.png'></image>
  98. </view>
  99. <view class="zan-text">
  100. <text>我的车辆</text>
  101. </view>
  102. <view class="zan-ft">
  103. <image src='/images/enter.png'></image>
  104. </view>
  105. </view>
  106. <!-- 运维用户 -->
  107. <view class="zan-cell" wx:if='{{userInfo.flag}}' hover-class="active" bindtap="goMyChargeSation">
  108. <view class="zan-icon">
  109. <!-- <image src='/images/charging3.png'></image> -->
  110. <image src='/images/column.png'></image>
  111. </view>
  112. <view class="zan-text">
  113. <text>责任场站</text>
  114. </view>
  115. <view class="zan-ft">
  116. <image src='/images/enter.png'></image>
  117. </view>
  118. </view>
  119. <view class="zan-cell" wx:if='{{userInfo.flag}}' hover-class="active" bindtap="goChargpileMonitor">
  120. <view class="zan-icon">
  121. <!-- <image src='/images/monitor.png'></image> -->
  122. <image src='/images/column.png'></image>
  123. </view>
  124. <view class="zan-text">
  125. <text>充电桩监控</text>
  126. </view>
  127. <view class="zan-ft">
  128. <image src='/images/enter.png'></image>
  129. </view>
  130. </view>
  131. <view class="zan-cell" wx:if='{{userInfo.flag}}' hover-class="active" bindtap="goMyWorksheet">
  132. <view class="zan-icon">
  133. <!-- <image src='/images/worksheet.png'></image> -->
  134. <image src='/images/column.png'></image>
  135. </view>
  136. <view class="zan-text">
  137. <text>我的工单</text>
  138. </view>
  139. <view class="zan-ft">
  140. <image src='/images/enter.png'></image>
  141. </view>
  142. </view>
  143. <!-- 运维用户 -->
  144. <view class="zan-cell" hover-class="active" bindtap="goNotice">
  145. <view class="zan-icon">
  146. <!-- <image src='/images/notice_icon.png'></image> -->
  147. <image src='/images/column.png'></image>
  148. </view>
  149. <view class="zan-text">
  150. <text>通知公告</text>
  151. </view>
  152. <view class="zan-ft">
  153. <image src='/images/enter.png'></image>
  154. </view>
  155. </view>
  156. <view class="zan-cell" wx:if='{{userInfo.flag==null?1:!userInfo.flag}}' hover-class="active" bindtap="goAccountSecrity">
  157. <view class="zan-icon">
  158. <image src='/images/column.png'></image>
  159. </view>
  160. <view class="zan-text">
  161. <text>账户安全</text>
  162. </view>
  163. <view class="zan-ft">
  164. <image src='/images/enter.png'></image>
  165. </view>
  166. </view>
  167. <view class="zan-cell" hover-class="active" bindtap="goAgreement">
  168. <view class="zan-icon">
  169. <!-- <image src='/images/help.png'></image> -->
  170. <image src='/images/column.png'></image>
  171. </view>
  172. <view class="zan-text">
  173. <text>用户协议</text>
  174. </view>
  175. <view class="zan-ft">
  176. <image src='/images/enter.png'></image>
  177. </view>
  178. </view>
  179. <view class="zan-cell" hover-class="active" bindtap="goHelp">
  180. <view class="zan-icon">
  181. <!-- <image src='/images/help.png'></image> -->
  182. <image src='/images/column.png'></image>
  183. </view>
  184. <view class="zan-text">
  185. <text>帮助中心</text>
  186. </view>
  187. <view class="zan-ft">
  188. <image src='/images/enter.png'></image>
  189. </view>
  190. </view>
  191. </view>
  192. </view>
  193. <view class="logout" hover-class="active" wx:if="{{isLogin}}" bindtap="logout">退出账号</view>
  194. </view>
  195. <!-- <view class='footer' bindtap='phoneCall'>
  196. <text class="h1">客服电话:4009608068</text>
  197. <text class="h1">工作时间:工作日 08:30-17:00</text>
  198. </view> -->
  199. <!-- <view class='footer'>
  200. <view class='footer_1' bindtap="toindex">
  201. <image src='/images/index.png'></image>
  202. <text>首页</text>
  203. </view>
  204. <view class='footer_2'>
  205. <image src='/images/scan.png'>扫码充电</image>
  206. </view>
  207. <view class='footer_3'>
  208. <image src='/images/ucenter_selected.png'></image>
  209. <text class='selected'>我的</text>
  210. </view>
  211. </view> -->