start.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <template>
  2. <view style="padding-top: 20px;">
  3. <uni-card title="运维系统">
  4. <uni-row>
  5. <uni-col :span="14">
  6. <view style="height: 160px;width: 100%;margin-bottom: 10px;align-items: center;overflow:hidden">
  7. <image class="yj-img" :src="ywxtImgUrl" mode="heightFix"></image>
  8. </view>
  9. </uni-col>
  10. <uni-col :span="10">
  11. <view class="tag">
  12. <view>
  13. <uni-tag :inverted="true" text="维修直填报" type="primary" />
  14. </view>
  15. <view>
  16. <uni-tag :inverted="true" text="设备巡检" type="primary" />
  17. </view>
  18. <view>
  19. <uni-tag :inverted="true" text="站点管理" type="primary" />
  20. </view>
  21. <view>
  22. <uni-tag :inverted="true" text="统计" type="primary" />
  23. </view>
  24. <view>
  25. <uni-tag :inverted="true" text="通讯录" type="primary" />
  26. </view>
  27. </view>
  28. </uni-col>
  29. </uni-row>
  30. <view class="yw-button" @click="onYwxtClick()">
  31. <view class="btn-items">
  32. <uni-icons class="input-uni-icon" type="info" size="18" color="coral" />
  33. <text>进入运维系统</text>
  34. <uni-icons class="input-uni-icon" type="arrow-right" size="18" color="white" />
  35. </view>
  36. </view>
  37. </uni-card>
  38. <uni-card title="应急系统">
  39. <uni-row>
  40. <uni-col :span="14">
  41. <view style="height: 160px;width: 100%;margin-bottom: 10px;align-items: center;overflow:hidden">
  42. <image class="yj-img" :src="yjxtImgUrl" mode="heightFix"></image>
  43. </view>
  44. </uni-col>
  45. <uni-col :span="10">
  46. <view class="tag">
  47. <view>
  48. <uni-tag :inverted="true" text="群众注册" type="primary" />
  49. </view>
  50. <view>
  51. <uni-tag :inverted="true" text="监测预警" type="primary" />
  52. </view>
  53. <view>
  54. <uni-tag :inverted="true" text="危险区动态管理" type="primary" />
  55. </view>
  56. <view>
  57. <uni-tag :inverted="true" text="转移避险" type="primary" />
  58. </view>
  59. <view>
  60. <uni-tag :inverted="true" text="巡查检查" type="primary" />
  61. </view>
  62. </view>
  63. </uni-col>
  64. </uni-row>
  65. <view class="yj-button" @click="onYjxtClick()">
  66. <view class="btn-items">
  67. <uni-icons class="input-uni-icon" type="info" size="18" color="coral" />
  68. <text>进入应急系统</text>
  69. <uni-icons class="input-uni-icon" type="arrow-right" size="18" color="white" />
  70. </view>
  71. </view>
  72. </uni-card>
  73. </view>
  74. </template>
  75. <script>
  76. import {
  77. img
  78. } from '@/common/setting';
  79. export default {
  80. data() {
  81. return {
  82. ywxtImgUrl: img + 'ywxt.png',
  83. yjxtImgUrl: img + 'yjxt.png',
  84. }
  85. },
  86. computed: {
  87. },
  88. created(){
  89. },
  90. methods: {
  91. onYwxtClick() {
  92. uni.setStorageSync("SubSystemSelectInfo", {
  93. ywxt: 1,
  94. yjxt: 0,
  95. });
  96. uni.switchTab({
  97. url: '/pages/home/home'
  98. })
  99. },
  100. onYjxtClick() {
  101. uni.setStorageSync("SubSystemSelectInfo", {
  102. ywxt: 0,
  103. yjxt: 1,
  104. });
  105. uni.switchTab({
  106. url: '/pages/home/home'
  107. })
  108. }
  109. }
  110. }
  111. </script>
  112. <style lang="scss">
  113. .tag {
  114. display: flex;
  115. flex-direction: row;
  116. justify-content: flex-start;
  117. align-items: center;
  118. margin-bottom: 10px;
  119. padding-left: 10px;
  120. flex-wrap: wrap;
  121. view {
  122. margin: 5px;
  123. }
  124. }
  125. .yw-button {
  126. display: flex;
  127. flex-direction: column;
  128. justify-content: center;
  129. width: 60%;
  130. height: 40px;
  131. margin-left: 5px;
  132. margin-top: 3px;
  133. margin-bottom: 3px;
  134. border-radius: 20px;
  135. background-color: mediumpurple;
  136. padding-left: 20px;
  137. .btn-items {
  138. display: flex;
  139. flex-direction: row;
  140. justify-content: flex-start;
  141. align-items: center;
  142. text {
  143. margin-left: 5px;
  144. margin-right: 5px;
  145. color: white;
  146. font-size: 0.6rem;
  147. }
  148. }
  149. }
  150. .yw-button:active {
  151. background-color: plum;
  152. }
  153. .yj-img {
  154. flex-shrink: 0;
  155. width: auto;
  156. height: 160px;
  157. }
  158. .yj-button {
  159. display: flex;
  160. flex-direction: row;
  161. justify-content: start;
  162. width: 60%;
  163. height: 40px;
  164. margin-left: 5px;
  165. margin-top: 3px;
  166. margin-bottom: 3px;
  167. border-radius: 20px;
  168. background-color: mediumpurple;
  169. padding-left: 20px;
  170. .btn-items {
  171. display: flex;
  172. flex-direction: row;
  173. justify-content: flex-start;
  174. align-items: center;
  175. text {
  176. margin-left: 5px;
  177. margin-right: 5px;
  178. color: white;
  179. font-size: 0.6rem;
  180. }
  181. }
  182. }
  183. .yj-button:active {
  184. background-color: plum;
  185. }
  186. </style>