Workorder.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <template>
  2. <view class="management">
  3. <view class="topnames" >
  4. 工作台
  5. </view>
  6. <view class="managelind">
  7. <view class="managename" @click="Tenantbill" v-if="$has('app:TenantBill')">
  8. <view class="managename1">
  9. <u--image mode="widthFix" :src="srczuhu" width="48rpx" height="48rpx"></u--image>
  10. </view>
  11. <view class="managename2">
  12. 租户账单
  13. </view>
  14. </view>
  15. <view class="managename" @click="Remotecontrol" v-if="$has('app:RemoteControl')">
  16. <view class="managename1">
  17. <!-- <img :src='srcyuanc' alt=""> -->
  18. <u--image mode="widthFix" :src="srcyuanc" width="48rpx" height="48rpx"></u--image>
  19. </view>
  20. <view class="managename2">
  21. 远程管控
  22. </view>
  23. </view>
  24. <view class="managename" @click="Videosurveillance" v-if="$has('app:Videosurveillance')">
  25. <view class="managename1">
  26. <!-- <img :src='srcyuanc' alt=""> -->
  27. <u--image mode="widthFix" :src="srcshipin" width="48rpx" height="48rpx"></u--image>
  28. </view>
  29. <view class="managename2">
  30. 视频监控
  31. </view>
  32. </view>
  33. <view class="managename" @click="AccessControl" v-if="$has('app:AccessControl')">
  34. <view class="managename1">
  35. <!-- <img :src='srcyuanc' alt=""> -->
  36. <u--image mode="widthFix" :src="srcmj" width="48rpx" height="48rpx"></u--image>
  37. </view>
  38. <view class="managename2">
  39. 门禁管理
  40. </view>
  41. </view>
  42. <view class="managename" @click="Intelligentdoorlock" v-if="$has('app:Intelligentdoorlock')">
  43. <view class="managename1">
  44. <!-- <img :src='srcyuanc' alt=""> -->
  45. <u--image mode="widthFix" :src="srcms" width="48rpx" height="48rpx"></u--image>
  46. </view>
  47. <view class="managename2">
  48. 智能门锁
  49. </view>
  50. </view>
  51. <!-- v-if="$has('app:Arrearsrecord')" -->
  52. <!--<view class="managename" @click="Arrearsrecord" >-->
  53. <!--<view class="managename1">-->
  54. <!--&lt;!&ndash; <img :src='srcyuanc' alt=""> &ndash;&gt;-->
  55. <!--<u&#45;&#45;image mode="widthFix" :src="srcjilu" width="48rpx" height="48rpx"></u&#45;&#45;image>-->
  56. <!--</view>-->
  57. <!--<view class="managename2">-->
  58. <!--欠费记录-->
  59. <!--</view>-->
  60. <!--</view>-->
  61. <!-- <view class="managename" @click="pay">
  62. <view class="managename1">
  63. <img :src='srcyuanc' alt="">
  64. <u--image mode="widthFix" :src="srcyuanc" width="48rpx" height="48rpx"></u--image>
  65. </view>
  66. <view class="managename2">
  67. 支付功能
  68. </view>
  69. </view> -->
  70. </view>
  71. <!--
  72. <u-tabbar
  73. :value="value1"
  74. :fixed="true"
  75. :placeholder="true"
  76. @change="name => value1 = name"
  77. activeColor="#2E69EB"
  78. :safeAreaInsetBottom="true"
  79. >
  80. <u-tabbar-item text="首页" icon="home" @click="click1" ></u-tabbar-item>
  81. <u-tabbar-item v-if="$has('app:worktable')" text="工作台" icon="list" @click="click2" ></u-tabbar-item>
  82. <u-tabbar-item text="我的" icon="account" @click="click3" ></u-tabbar-item>
  83. </u-tabbar> -->
  84. <u-tabbar class="tabberall" :value="value1" :fixed="true" :placeholder="true" @change="name => value1 = name"
  85. :safeAreaInsetBottom="true">
  86. <u-tabbar-item text="首页" @click="click1">
  87. <image class="u-page__item__slot-icon" slot="active-icon" :src="tabimg1"></image>
  88. <image class="u-page__item__slot-icon" slot="inactive-icon" :src="tabimg2"></image>
  89. </u-tabbar-item>
  90. <u-tabbar-item v-if="$has('app:worktable')" text="工作台" @click="click2">
  91. <image class="u-page__item__slot-icon" slot="active-icon" :src="tabimg3"></image>
  92. <image class="u-page__item__slot-icon" slot="inactive-icon" :src="tabimg4"></image>
  93. </u-tabbar-item>
  94. <u-tabbar-item text="我的" @click="click3">
  95. <image class="u-page__item__slot-icon" slot="active-icon" :src="tabimg5"></image>
  96. <image class="u-page__item__slot-icon" slot="inactive-icon" :src="tabimg6"></image>
  97. </u-tabbar-item>
  98. </u-tabbar>
  99. </view>
  100. </template>
  101. <script>
  102. export default {
  103. data() {
  104. return {
  105. tabimg1: require('@/static/tab/h2.png'),
  106. tabimg2: require('@/static/tab/h1.png'),
  107. tabimg3: require('@/static/tab/w2.png'),
  108. tabimg4: require('@/static/tab/w1.png'),
  109. tabimg5: require('@/static/tab/y2.png'),
  110. tabimg6: require('@/static/tab/y1.png'),
  111. value1: 1,
  112. srczuhu: require('@/static/management/zd.png'),
  113. srcyuanc: require('@/static/management/yc.png'),
  114. srcjilu: require('@/static/management/jl.png'),
  115. srcshipin: require('@/static/management/sp.png'),
  116. srcms: require('@/static/management/ms.png'),
  117. srcmj: require('@/static/management/mj.png'),
  118. }
  119. },
  120. methods: {
  121. click1(){
  122. uni.navigateTo({
  123. url: '/pages/index/index'
  124. })
  125. },
  126. click2(){
  127. uni.navigateTo({
  128. url: '/pages/Workorder/Workorder'
  129. })
  130. },
  131. click3(){
  132. uni.navigateTo({
  133. url: '/pages/my/my'
  134. })
  135. },
  136. Tenantbill(){
  137. uni.navigateTo({
  138. url: '/pages/Workorder/Tenantbill/Tenantbill'
  139. })
  140. },
  141. Remotecontrol(){
  142. uni.navigateTo({
  143. url: '/pages/Workorder/Remotecontrol/Remotecontrol'
  144. })
  145. },
  146. Intelligentdoorlock(){
  147. uni.navigateTo({
  148. url: '/pages/Workorder/Intelligentdoorlock/Intelligentdoorlock'
  149. })
  150. },
  151. // Arrearsrecord(){
  152. // uni.navigateTo({
  153. // url: '/pages/Workorder/Arrearsrecord/Arrearsrecord'
  154. // })
  155. // },
  156. Videosurveillance(){
  157. uni.navigateTo({
  158. url: '/pages/Workorder/Videosurveillance/Videosurveillance'
  159. })
  160. },
  161. AccessControl(){
  162. uni.navigateTo({
  163. url: '/pages/Workorder/AccessControl/AccessControl'
  164. })
  165. },
  166. // pay(){
  167. // uni.navigateTo({
  168. // url: '/pages/Workorder/pay/pay'
  169. // })
  170. // },
  171. }
  172. }
  173. </script>
  174. <style>
  175. .u-page__item__slot-icon {
  176. width: 40rpx;
  177. height: 40rpx;
  178. }
  179. .management{}
  180. .managelind{
  181. display: flex;
  182. //justify-content: space-around;
  183. align-items: center;
  184. flex-wrap: wrap;
  185. width: 690rpx;
  186. min-height: 130rpx;
  187. margin: 20rpx auto;
  188. background: #fff;
  189. border-radius: 10px;
  190. }
  191. .managename{
  192. width: 345rpx;
  193. height: 170rpx;
  194. display: flex;
  195. flex-direction: column;
  196. align-items: center;
  197. justify-content: center;
  198. }
  199. .managename1 img{
  200. width: 40rpx;
  201. height: 40rpx;
  202. }
  203. .managename2{
  204. padding-top: 15rpx;
  205. color: #666;
  206. font-size: 20rpx;
  207. }
  208. </style>