电速宝
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <view class="setup">
  2. <view style="width: 100%;height:60rpx"></view>
  3. <view class="user">
  4. <image bind:tap="onuser" class="user_to" src="{{user.operationPicture||'https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132'}}" mode=""/>
  5. <view class="user_name">
  6. <view class="user_name1">{{user.operationName||'微信用户'}}
  7. <view class="user_role" wx:if="{{user.operationRole==4}}">司机</view>
  8. <view class="user_role" wx:if="{{user.operationRole==5}}">绿电业主</view>
  9. <view class="user_role" wx:if="{{user.operationRole==6}}">用电业主</view>
  10. </view>
  11. <view class="user_name2">{{user.operationPhone}}</view>
  12. </view>
  13. </view>
  14. <view style="width: 100%;height:40rpx"></view>
  15. <view class="allocation_box">
  16. <view class="allocation">
  17. <view class="allocation_3_password">我的账户<image class="login_imgae" src="https://esos-iot.bjdexn.cn/wx_images/password_1.png" wx:if="{{passwordtype}}" bind:tap="onpassword" mode=""/>
  18. <image class="login_imgae" src="https://esos-iot.bjdexn.cn/wx_images/password_2.png" wx:else bind:tap="onpassword" mode=""/></view>
  19. <view class="allocation_1" data-name="balance" bind:tap="toconfigure">
  20. <view class="allocation_2"></view>
  21. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s"/>
  22. </view>
  23. </view>
  24. <view class="allocation" data-name="balance" bind:tap="toconfigure">
  25. <view>
  26. <text wx:if="{{!passwordtype}}">¥</text>
  27. <text style="font-size: 26px;" wx:if="{{passwordtype}}">∗∗∗∗</text>
  28. <text style="font-size: 26px;" wx:else>{{ js.toFixed2(accountdata.balance) }}</text>
  29. <!-- <text style="font-size: 26px;" wx:else>{{accountdata.balance}}</text> -->
  30. </view>
  31. </view>
  32. <view class="allocation_money">
  33. <view class="allocation_3_money">日/<text wx:if="{{user.operationRole==5}}">收入</text><text wx:if="{{user.operationRole==6}}">支出</text></view>
  34. <view class="allocation_3_money">月/<text wx:if="{{user.operationRole==5}}">收入</text><text wx:if="{{user.operationRole==6}}">支出</text></view>
  35. <view class="allocation_3_money" style="color: #222;">年/<text wx:if="{{user.operationRole==5}}">收入</text><text wx:if="{{user.operationRole==6}}">支出</text></view>
  36. </view>
  37. <view class="allocation_money" style="margin-bottom: 10rpx;">
  38. <view class="allocation_3_money">
  39. <text wx:if="{{passwordtype}}">∗∗∗∗</text>
  40. <text wx:else>¥{{accountdata.zhouspent}}</text>
  41. </view>
  42. <view class="allocation_3_money">
  43. <text wx:if="{{passwordtype}}">∗∗∗∗</text>
  44. <text wx:else>¥{{accountdata.weeklyconsumption}}</text>
  45. </view>
  46. <view class="allocation_1">
  47. <view class="allocation_3_money" style="color: #222;">
  48. <text wx:if="{{passwordtype}}">∗∗∗∗</text>
  49. <text wx:else>¥{{accountdata.annualconsumption}}</text>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="project" bind:tap="onCardClick" wx:if="{{user.operationRole!=4}}">
  55. <!-- <view></view> -->
  56. <view class="project_box" wx:for="{{projectList}}" wx:if="{{index<1}}" wx:key="index" bind:tap="onCardClick">
  57. <view class="project_top1">
  58. <t-steps theme="dot" current="{{item.projectType}}" bind:change="onThirdChange">
  59. <t-step-item wx:for="{{statedata}}" wx:for-item="items" wx:key="indexs" content="{{items.title}}" />
  60. </t-steps>
  61. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s"/>
  62. </view>
  63. <view class="project_top">
  64. <view class="project_title">北方油田项目</view>
  65. </view>
  66. <view class="project_name">项目地址:{{item.electricName}}</view>
  67. <view class="project_name">项目时间:{{item.createTime}}</view>
  68. </view>
  69. </view>
  70. <view class="allocation_box_more">
  71. <view class="allocation_box_allocate" wx:if="{{user.operationRole==5||user.operationRole==6}}">
  72. <view class="allocation_allocate" data-name="userlist" bind:tap="toconfigure">
  73. <view class="allocation_allocateimg">
  74. <t-icon name="assignment" size="50rpx" data-name="assignment" color="#07c160"/>
  75. </view>
  76. <view class="allocation_name">分配工单</view>
  77. </view>
  78. <!-- <view class="allocation_allocate" data-name="order" bind:tap="toconfigure">
  79. <view class="allocation_allocateimg">
  80. <t-icon name="file-code-1" size="50rpx" data-name="file-code-1" color="#07c160"/>
  81. </view>
  82. <view class="allocation_name">历史工单</view>
  83. </view> -->
  84. <view class="allocation_allocate" data-name="driver" bind:tap="toconfigure">
  85. <view class="allocation_allocateimg">
  86. <t-icon name="bill" size="50rpx" data-name="bill" color="#07c160"/>
  87. </view>
  88. <view class="allocation_name">工单发票</view>
  89. </view>
  90. <view class="allocation_allocate" data-name="address" bind:tap="toconfigure">
  91. <view class="allocation_allocateimg">
  92. <t-icon name="task-location" size="50rpx" data-name="task-location" color="#07c160"/>
  93. </view>
  94. <view class="allocation_name">地址</view>
  95. </view>
  96. <view class="allocation_allocate">
  97. <view class="allocation_allocateimg">
  98. <t-icon name="file-setting" size="50rpx" data-name="file-setting" color="#07c160"/>
  99. </view>
  100. <view class="allocation_name">版本</view>
  101. </view>
  102. </view>
  103. <view class="allocation_box_allocate" wx:if="{{user.operationRole==5||user.operationRole==6}}">
  104. <view class="allocation_allocate" bind:tap="onelectricity">
  105. <view class="allocation_allocateimg">
  106. <t-icon name="file-setting" size="50rpx" data-name="file-setting" color="#07c160"/>
  107. </view>
  108. <view class="allocation_name" wx:if="{{user.operationRole==5}}">充电统计</view>
  109. <view class="allocation_name" wx:if="{{user.operationRole==6}}">放电统计</view>
  110. </view>
  111. <view class="allocation_allocate">
  112. <view class="allocation_allocateimg">
  113. <t-icon name="service" size="50rpx" data-name="service" color="#07c160"/>
  114. </view>
  115. <!-- <view class="allocation_name">联系客服</view> -->
  116. <button class="contact-button" open-type="contact" plain>
  117. <view style="font-size: 26rpx;">联系客服</view>
  118. </button>
  119. </view>
  120. <view class="allocation_allocate" bind:tap="onsetup">
  121. <view class="allocation_allocateimg">
  122. <t-icon name="setting-1" size="50rpx" data-name="setting-1" color="#07c160"/>
  123. </view>
  124. <view class="allocation_name">设置</view>
  125. </view>
  126. <!-- <view class="allocation_allocate"> -->
  127. <!-- <view class="allocation_allocateimg">
  128. <t-icon name="task-location" size="50rpx" data-name="task-location" color="#07c160"/>
  129. </view>
  130. <view class="allocation_name"></view> -->
  131. <!-- </view> -->
  132. <view class="allocation_allocate">
  133. </view>
  134. </view>
  135. <view class="allocation_box_allocate" wx:if="{{user.operationRole==4}}">
  136. <view class="allocation_allocate" data-name="address" bind:tap="toconfigure">
  137. <view class="allocation_allocateimg">
  138. <t-icon name="task-location" size="50rpx" data-name="task-location" color="#07c160"/>
  139. </view>
  140. <view class="allocation_name">地址</view>
  141. </view>
  142. <view class="allocation_allocate">
  143. <view class="allocation_allocateimg">
  144. <t-icon name="file-setting" size="50rpx" data-name="file-setting" color="#07c160"/>
  145. </view>
  146. <view class="allocation_name">版本</view>
  147. </view>
  148. <view class="allocation_allocate">
  149. <view class="allocation_allocateimg">
  150. <t-icon name="service" size="50rpx" data-name="service" color="#07c160"/>
  151. </view>
  152. <!-- <view class="allocation_name">联系客服</view> -->
  153. <button class="contact-button" open-type="contact" plain>
  154. <view style="font-size: 26rpx;">联系客服</view>
  155. </button>
  156. </view>
  157. <view class="allocation_allocate" bind:tap="onsetup">
  158. <view class="allocation_allocateimg">
  159. <t-icon name="setting-1" size="50rpx" data-name="setting-1" color="#07c160"/>
  160. </view>
  161. <view class="allocation_name">设置</view>
  162. </view>
  163. </view>
  164. </view>
  165. <!-- <view class="allocation_box">
  166. <view class="allocation" data-name="userlist" bind:tap="toconfigure">
  167. <view class="allocation_3">分配工单</view>
  168. <view class="allocation_1">
  169. <view class="allocation_2"></view>
  170. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s"/>
  171. </view>
  172. </view>
  173. <view class="allocation" data-name="order" bind:tap="toconfigure">
  174. <view class="allocation_3">我的工单</view>
  175. <view class="allocation_1">
  176. <view class="allocation_2"></view>
  177. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s"/>
  178. </view>
  179. </view>
  180. <view class="allocation" data-name="driver" bind:tap="toconfigure">
  181. <view class="allocation_3">工单发票</view>
  182. <view class="allocation_1">
  183. <view class="allocation_2"></view>
  184. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s"/>
  185. </view>
  186. </view>
  187. <view wx:if="{{user.operationRole==5||user.operationRole==6}}" class="allocation" data-name="address" bind:tap="toconfigure">
  188. <view class="allocation_3">地址</view>
  189. <view class="allocation_1">
  190. <view class="allocation_2"></view>
  191. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s"/>
  192. </view>
  193. </view>
  194. </view> -->
  195. <!-- <view class="allocation_box">
  196. <view class="allocation">
  197. <view class="allocation_3">小程序版本</view>
  198. <view class="allocation_1">
  199. <view class="allocation_2" wx:if="{{accountInfo!=''}}">V {{accountInfo}}</view>
  200. <view class="allocation_2" wx:else>V 1.0.0</view>
  201. </view>
  202. </view>
  203. <view class="allocation">
  204. <view class="allocation_31">
  205. <button class="contact-button" open-type="contact" plain>
  206. <view>联系客服</view>
  207. </button>
  208. </view>
  209. <view class="allocation_1">
  210. <view class="allocation_2"></view>
  211. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s"/>
  212. </view>
  213. </view>
  214. <view class="allocation" bind:tap="onsetup">
  215. <view class="allocation_3">设置</view>
  216. <view class="allocation_1">
  217. <view class="allocation_2"></view>
  218. <t-icon name="chevron-right-s" size="40rpx" data-name="chevron-right-s"/>
  219. </view>
  220. </view>
  221. </view> -->
  222. </view>
  223. <wxs module="js">
  224. // 金额省略小数点后两位(直接取整数,丢掉小数)
  225. function formatIntMoney(num) {
  226. if (!num || isNaN(num)) return "0";
  227. return parseInt(num); // 直接截取整数部分
  228. }
  229. // 可选:保留两位小数(标准金额)
  230. function toFixed2(num) {
  231. if (!num || isNaN(num)) return "0.00";
  232. return parseFloat(num).toFixed(2);
  233. }
  234. module.exports = {
  235. formatIntMoney: formatIntMoney,
  236. toFixed2: toFixed2
  237. };
  238. </wxs>
  239. <!-- -->