index.wxml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. <!-- 运维用户 -->
  83. <view class="zan-cell" wx:if='{{userInfo.flag}}' hover-class="active" bindtap="goMyChargeSation">
  84. <view class="zan-icon">
  85. <!-- <image src='/images/charging3.png'></image> -->
  86. <image src='/images/column.png'></image>
  87. </view>
  88. <view class="zan-text">
  89. <text>责任场站</text>
  90. </view>
  91. <view class="zan-ft">
  92. <image src='/images/enter.png'></image>
  93. </view>
  94. </view>
  95. <view class="zan-cell" wx:if='{{userInfo.flag}}' hover-class="active" bindtap="goChargpileMonitor">
  96. <view class="zan-icon">
  97. <!-- <image src='/images/monitor.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="goMyWorksheet">
  108. <view class="zan-icon">
  109. <!-- <image src='/images/worksheet.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. <!-- 运维用户 -->
  120. <view class="zan-cell" hover-class="active" bindtap="goNotice">
  121. <view class="zan-icon">
  122. <!-- <image src='/images/notice_icon.png'></image> -->
  123. <image src='/images/column.png'></image>
  124. </view>
  125. <view class="zan-text">
  126. <text>通知公告</text>
  127. </view>
  128. <view class="zan-ft">
  129. <image src='/images/enter.png'></image>
  130. </view>
  131. </view>
  132. <view class="zan-cell" wx:if='{{userInfo.flag==null?1:!userInfo.flag}}' hover-class="active" bindtap="goAccountSecrity">
  133. <view class="zan-icon">
  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. <view class="zan-cell" hover-class="active" bindtap="goHelp">
  144. <view class="zan-icon">
  145. <!-- <image src='/images/help.png'></image> -->
  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>
  156. </view>
  157. <view class="logout" hover-class="active" wx:if="{{isLogin}}" bindtap="logout">退出账号</view>
  158. </view>
  159. <!-- <view class='footer' bindtap='phoneCall'>
  160. <text class="h1">客服电话:4009608068</text>
  161. <text class="h1">工作时间:工作日 08:30-17:00</text>
  162. </view> -->
  163. <!-- <view class='footer'>
  164. <view class='footer_1' bindtap="toindex">
  165. <image src='/images/index.png'></image>
  166. <text>首页</text>
  167. </view>
  168. <view class='footer_2'>
  169. <image src='/images/scan.png'>扫码充电</image>
  170. </view>
  171. <view class='footer_3'>
  172. <image src='/images/ucenter_selected.png'></image>
  173. <text class='selected'>我的</text>
  174. </view>
  175. </view> -->