Workorder.vue 5.5 KB

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