index.wxml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <view class="container">
  2. <view class="tui-mtop">
  3. <tui-tabs tabs="{{tabs}}" currentTab="{{currentTab>2?0:currentTab}}" bind:change="change" itemWidth="33.3333%"
  4. bgColor="{{'#5677fc'}}" selectedColor="#FFF" color="#fff" sliderBgColor="#FFF" wx:if="{{userInfo.mgvmRole!=1}}"
  5. ></tui-tabs>
  6. </view>
  7. <view class="top-container">
  8. <image class='bg-img' src="../../static/images/my/pic_statistics@3x.png"></image>
  9. <view class="padding-xl text-white" style="z-index:2" wx:if="{{userInfo.mgvmRole!=1}}">
  10. <view class="padding-xs text-xl">
  11. 销售金额(元)
  12. </view>
  13. <view class="padding-xs">
  14. {{statisData.productPrice==null?0:statisData.productPrice}}
  15. </view>
  16. </view>
  17. <view class="flex padding-xs text-white" style="z-index:2" wx:if="{{userInfo.mgvmRole!=1}}">
  18. <view class="flex-sub padding-lr-xl">
  19. <view class="text-sm">
  20. 销售订单
  21. </view>
  22. <view class="padding-xs">
  23. {{statisData.orderNumber==null?0:statisData.orderNumber}}
  24. </view>
  25. </view>
  26. <view class="flex-sub padding-lr-xl" wx:if="{{userInfo.mgvmRole==2||userInfo.mgvmRole==3||userInfo.mgvmRole==4}}">
  27. <view class="padding-xs text-sm">
  28. 实际收款(元)
  29. </view>
  30. <view class="padding-xs" wx:if="{{userInfo.mgvmRole==2}}">
  31. {{statisData.storeCommission==null?0:statisData.storeCommission}}
  32. </view>
  33. <view class="padding-xs" wx:if="{{userInfo.mgvmRole==3}}">
  34. {{statisData.agentMoney==null?0:statisData.agentMoney}}
  35. </view>
  36. <view class="padding-xs" wx:if="{{userInfo.mgvmRole==4}}">
  37. {{statisData.areaAgentMoney==null?0:statisData.areaAgentMoney}}
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. <!-- <view class='menu-container'>
  43. <view class='ul-item'>
  44. <view bindtap='tapEvent' data-index="2" data-key='加油站' class='item' hover-class="opcity" hover-stay-time="150">
  45. <image class='item-img' src='../../static/images/my/device@3x.png'></image>
  46. <text class='item-name'>售货机</text>
  47. </view>
  48. <view bindtap='tapEvent' data-index="2" data-key='停车场' class='item' hover-class="opcity" hover-stay-time="150">
  49. <image class='item-img' src='../../static/images/my/mine_icon_tingche_3x.png'></image>
  50. <text class='item-name'>停车场</text>
  51. </view>
  52. <view bindtap='tapEvent' data-index="2" data-key='充电桩' class='item' hover-class="opcity" hover-stay-time="150">
  53. <image class='item-img' src='../../static/images/my/mine_icon_chongdian_3x.png'></image>
  54. <text class='item-name'>充电桩</text>
  55. </view>
  56. </view>
  57. </view> -->
  58. <view class='tui-notice-board solid'>
  59. <view class="tui-icon-bg">
  60. <view class="tui-tag-small tui-tag-outline tui-primary-outline">通知</view>
  61. </view>
  62. <view class="tui-scorll-view" bindtap='detail'>
  63. <view class="tui-notice {{animation?'tui-animation':''}}">客服工作时间09:30-23:00!</view>
  64. </view>
  65. </view>
  66. <view class="grid col-2">
  67. <view wx:if="{{userInfo.mgvmRole==0||userInfo.mgvmRole==3}}">
  68. <view class="margin-xs padding radius shadow-warp common-list-row" bindtap="toRouter" data-url="/pages/vendingMachine/index">
  69. <view style="width:100%;">
  70. <view class="padding-bottom-sm common-name">售货机管理</view>
  71. <view class="common-name-ex">智能售货机管理</view>
  72. </view>
  73. <view class="common-img">
  74. <image src="../../static/images/my/ico_vendingmachine@3x.png"></image>
  75. </view>
  76. </view>
  77. </view>
  78. <view wx:if="{{isLogin}}">
  79. <!-- <view wx:if="{{userInfo.mgvmRole==3||userInfo.mgvmRole==4}}"> -->
  80. <view class="margin-xs padding radius shadow-warp common-list-row" bindtap="toRouter" data-url="/pages/store/index">
  81. <view style="width:100%;">
  82. <view class="padding-bottom-sm common-name">门店列表</view>
  83. <view class="common-name-ex">门店信息管理</view>
  84. </view>
  85. <view class="common-img">
  86. <image src="../../static/images/my/ico_hotel@3x.png"></image>
  87. </view>
  88. </view>
  89. </view>
  90. <view wx:if="{{userInfo.mgvmRole!=1}}">
  91. <view class="margin-xs padding radius shadow-warp common-list-row" bindtap="toRouter" data-url="/pages/order/index">
  92. <view style="width:100%;">
  93. <view class="padding-bottom-sm common-name">订单管理</view>
  94. <view class="common-name-ex">查看订单信息</view>
  95. </view>
  96. <view class="common-img">
  97. <image src="../../static/images/my/ico_order@3x.png"></image>
  98. </view>
  99. </view>
  100. </view>
  101. <view>
  102. <view class="margin-xs padding radius shadow-warp common-list-row" bindtap="toRouter" data-url="/pages/device/index">
  103. <view style="width:100%;">
  104. <view class="padding-bottom-sm common-name">设备管理</view>
  105. <view class="common-name-ex">查看设备信息</view>
  106. </view>
  107. <view class="common-img">
  108. <image src="../../static/images/my/ico_equipment@3x.png"></image>
  109. </view>
  110. </view>
  111. </view>
  112. <view wx:if="{{userInfo.mgvmRole==0||userInfo.mgvmRole==3}}">
  113. <view class="margin-xs padding radius shadow-warp common-list-row" bindtap="toRouter" data-url="/pages/operation/index">
  114. <view style="width:100%;">
  115. <view class="padding-bottom-sm common-name">运维管理</view>
  116. <view class="common-name-ex">设备运维助手</view>
  117. </view>
  118. <view class="common-img">
  119. <image src="../../static/images/my/ico_operation@3x.png"></image>
  120. </view>
  121. </view>
  122. </view>
  123. <view wx:if="{{isLogin}}">
  124. <view wx:if="{{userInfo.mgvmRole==0||userInfo.mgvmRole==3}}">
  125. <view class="margin-xs padding radius shadow-warp common-list-row" bindtap="toRouter" data-url="/pages/agent/index">
  126. <view style="width:100%;">
  127. <view class="padding-bottom-sm common-name">代理管理</view>
  128. <view class="common-name-ex">查看代理信息</view>
  129. </view>
  130. <view class="common-img">
  131. <image src="../../static/images/my/ico_operation@3x.png"></image>
  132. </view>
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. <!-- <view class="flex">
  138. <view class="flex-sub padding-sm margin-xs radius shadow-warp common-list-row" bindtap="tip">
  139. <view style="width:100%;">
  140. <view class="padding-bottom-sm common-name">门店列表</view>
  141. <view class="common-name-ex">门店信息管理</view>
  142. </view>
  143. <view class="common-img">
  144. <image src="../../static/images/my/mine_def_touxiang_3x.png"></image>
  145. </view>
  146. </view>
  147. <view class="flex-sub padding-sm margin-xs radius shadow-warp common-list-row" bindtap="tip">
  148. <view style="width:100%;">
  149. <view class="padding-bottom-sm common-name">设备管理</view>
  150. <view class="common-name-ex">查看设备信息</view>
  151. </view>
  152. <view class="common-img">
  153. <image src="../../static/images/my/mine_def_touxiang_3x.png"></image>
  154. </view>
  155. </view>
  156. </view>
  157. <view class="flex">
  158. <view class="flex-sub padding-sm margin-xs radius shadow-warp common-list-row" bindtap="tip">
  159. <view style="width:100%;">
  160. <view class="padding-bottom-sm common-name">订单管理</view>
  161. <view class="common-name-ex">查看订单信息</view>
  162. </view>
  163. <view class="common-img">
  164. <image src="../../static/images/my/mine_def_touxiang_3x.png"></image>
  165. </view>
  166. </view>
  167. <view class="flex-sub padding-sm margin-xs radius shadow-warp common-list-row" bindtap="toOperation">
  168. <view style="width:100%;">
  169. <view class="padding-bottom-sm common-name">运维管理</view>
  170. <view class="common-name-ex">设备运维助手</view>
  171. </view>
  172. <view class="common-img">
  173. <image src="../../static/images/my/mine_def_touxiang_3x.png"></image>
  174. </view>
  175. </view>
  176. </view> -->
  177. </view>