index.wxml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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="goPurse">
  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="goCar">
  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. <!-- 运维用户 -->
  95. <view class="zan-cell" wx:if='{{userInfo.flag}}' hover-class="active" bindtap="goMyChargeSation">
  96. <view class="zan-icon">
  97. <!-- <image src='/images/charging3.png'></image> -->
  98. <image src='/images/column.png'></image>
  99. </view>
  100. <view class="zan-text">
  101. <text>责任场站</text>
  102. </view>
  103. <view class="zan-ft">
  104. <image src='/images/enter.png'></image>
  105. </view>
  106. </view>
  107. <view class="zan-cell" wx:if='{{userInfo.flag}}' hover-class="active" bindtap="goChargpileMonitor">
  108. <view class="zan-icon">
  109. <!-- <image src='/images/monitor.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="goMyWorksheet">
  120. <view class="zan-icon">
  121. <!-- <image src='/images/worksheet.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. <!-- 运维用户 -->
  132. <view class="zan-cell" hover-class="active" bindtap="goNotice">
  133. <view class="zan-icon">
  134. <!-- <image src='/images/notice_icon.png'></image> -->
  135. <image src='/images/column.png'></image>
  136. </view>
  137. <view class="zan-text">
  138. <text>通知公告</text>
  139. </view>
  140. <view class="zan-ft">
  141. <image src='/images/enter.png'></image>
  142. </view>
  143. </view>
  144. <view class="zan-cell" wx:if='{{userInfo.flag==null?1:!userInfo.flag}}' hover-class="active" bindtap="goAccountSecrity">
  145. <view class="zan-icon">
  146. <image src='/images/column.png'></image>
  147. </view>
  148. <view class="zan-text">
  149. <text>账户安全</text>
  150. </view>
  151. <view class="zan-ft">
  152. <image src='/images/enter.png'></image>
  153. </view>
  154. </view>
  155. <view class="zan-cell" hover-class="active" bindtap="goAgreement">
  156. <view class="zan-icon">
  157. <!-- <image src='/images/help.png'></image> -->
  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="goHelp">
  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>
  180. </view>
  181. <view class="logout" hover-class="active" wx:if="{{isLogin}}" bindtap="logout">退出账号</view>
  182. </view>
  183. <!-- <view class='footer' bindtap='phoneCall'>
  184. <text class="h1">客服电话:4009608068</text>
  185. <text class="h1">工作时间:工作日 08:30-17:00</text>
  186. </view> -->
  187. <!-- <view class='footer'>
  188. <view class='footer_1' bindtap="toindex">
  189. <image src='/images/index.png'></image>
  190. <text>首页</text>
  191. </view>
  192. <view class='footer_2'>
  193. <image src='/images/scan.png'>扫码充电</image>
  194. </view>
  195. <view class='footer_3'>
  196. <image src='/images/ucenter_selected.png'></image>
  197. <text class='selected'>我的</text>
  198. </view>
  199. </view> -->