start.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <template>
  2. <view style="padding-top: 20px;">
  3. <uni-card>
  4. <uni-row>
  5. <uni-col :span="24">
  6. <uni-card style="background-color: lavender;">
  7. <view
  8. style="height: 140px;display: flex;justify-content: center;flex-direction: column;align-items: center;">
  9. <image class="yj-img" :src="yjxtImgUrl" mode="heightFix"></image>
  10. <text style="color: black;font-size: 40px;font-weight: 200;;">运维系统</text>
  11. </view>
  12. <!-- <view style="height: 160px;width: 100%;margin-bottom: 10px;align-items: center;overflow:hidden">
  13. <image class="yj-img" :src="ywxtImgUrl" mode="heightFix"></image>
  14. </view> -->
  15. </uni-card>
  16. </uni-col>
  17. <!-- <uni-col :span="10">
  18. <view class="tag" style="margin-top: 10px;">
  19. <view>
  20. <uni-tag :inverted="true" text="维修直填报" type="primary" />
  21. </view>
  22. <view>
  23. <uni-tag :inverted="true" text="设备巡检" type="primary" />
  24. </view>
  25. <view>
  26. <uni-tag :inverted="true" text="站点管理" type="primary" />
  27. </view>
  28. <view>
  29. <uni-tag :inverted="true" text="统计" type="primary" />
  30. </view>
  31. <view>
  32. <uni-tag :inverted="true" text="通讯录" type="primary" />
  33. </view>
  34. </view>
  35. </uni-col> -->
  36. </uni-row>
  37. <view class="yw-button" @click="onYwxtClick()">
  38. <view class="btn-items">
  39. <uni-icons class="input-uni-icon" type="person" size="18" color="white" />
  40. <text>进入运维系统</text>
  41. <uni-icons class="input-uni-icon" type="arrow-right" size="18" color="coral" />
  42. </view>
  43. </view>
  44. </uni-card>
  45. <uni-card>
  46. <uni-row>
  47. <uni-col :span="24">
  48. <uni-card style="background-color: lavender;">
  49. <view
  50. style="height: 140px;display: flex;justify-content: center;flex-direction: column;align-items: center;">
  51. <!-- <image class="yj-img" :src="yjxtImgUrl" mode="heightFix"></image> -->
  52. <text style="color: black;font-size: 40px;font-weight: 200;;">应急系统</text>
  53. </view>
  54. </uni-card>
  55. </uni-col>
  56. <!-- <uni-col :span="10">
  57. <view class="tag" style="margin-top: 10px;">
  58. <view>
  59. <uni-tag :inverted="true" text="群众登记" type="primary" />
  60. </view>
  61. <view>
  62. <uni-tag :inverted="true" text="监测预警" type="primary" />
  63. </view>
  64. <view>
  65. <uni-tag :inverted="true" text="危险区动态管理" type="primary" />
  66. </view>
  67. <view>
  68. <uni-tag :inverted="true" text="转移避险" type="primary" />
  69. </view>
  70. <view>
  71. <uni-tag :inverted="true" text="巡查检查" type="primary" />
  72. </view>
  73. </view>
  74. </uni-col> -->
  75. </uni-row>
  76. <view class="yj-button" @click="onYjxtClick()">
  77. <view class="btn-items">
  78. <uni-icons class="input-uni-icon" type="person" size="18" color="white" />
  79. <text>进入应急系统</text>
  80. <uni-icons class="input-uni-icon" type="arrow-right" size="18" color="coral" />
  81. </view>
  82. </view>
  83. </uni-card>
  84. </view>
  85. </template>
  86. <script>
  87. import {
  88. img
  89. } from '@/common/setting';
  90. export default {
  91. data() {
  92. return {
  93. ywxtImgUrl: 'http://oiyo.oss-cn-beijing.aliyuncs.com/image/source/10d13c8b-4315-11ee-8df3-f0def1489016.jpg?Expires=1708232878&OSSAccessKeyId=LTAI5tPaSKSSyqthdx96Ky7b&Signature=dixmseuqD9XJoPau8ThB8SpS2kk%3D',
  94. yjxtImgUrl: 'http://oiyo.oss-cn-beijing.aliyuncs.com/image/source/10d13c8b-4315-11ee-8df3-f0def1489016.jpg?Expires=1708232878&OSSAccessKeyId=LTAI5tPaSKSSyqthdx96Ky7b&Signature=dixmseuqD9XJoPau8ThB8SpS2kk%3D',
  95. }
  96. },
  97. created() {},
  98. methods: {
  99. onYwxtClick() {
  100. uni.setStorageSync("SubSystemSelectInfo", {
  101. subSystem: 1,
  102. });
  103. uni.setTabBarItem({
  104. "index": 1,
  105. "iconPath": "static/images/tabbar/workbench.png",
  106. "selectedIconPath": "static/images/tabbar/workbench_selected.png",
  107. "text": "管理工作台",
  108. })
  109. uni.switchTab({
  110. url: '/pages/home/home'
  111. })
  112. },
  113. onYjxtClick() {
  114. uni.setStorageSync("SubSystemSelectInfo", {
  115. subSystem: 2,
  116. });
  117. uni.setTabBarItem({
  118. "index": 1,
  119. "iconPath": "static/images/tabbar/warn.png",
  120. "selectedIconPath": "static/images/tabbar/warn_selected.png",
  121. "text": "监测预警",
  122. })
  123. uni.switchTab({
  124. url: '/pages/home/home'
  125. })
  126. },
  127. // toDangerAreaCheck() {
  128. // uni.navigateTo({
  129. // url: '/pages/yjxt/dangerareacheck?id=&type=0'
  130. // })
  131. // }
  132. }
  133. }
  134. </script>
  135. <style lang="scss">
  136. .tag {
  137. display: flex;
  138. flex-direction: row;
  139. justify-content: flex-start;
  140. align-items: center;
  141. margin-bottom: 10px;
  142. padding-left: 10px;
  143. flex-wrap: wrap;
  144. view {
  145. margin: 5px;
  146. }
  147. }
  148. .yw-button {
  149. display: flex;
  150. flex-direction: column;
  151. justify-content: center;
  152. width: 100%;
  153. height: 40px;
  154. margin-left: 5px;
  155. margin-top: 3px;
  156. margin-bottom: 3px;
  157. border-radius: 20px;
  158. background-color: royalblue;
  159. padding-left: 20px;
  160. .btn-items {
  161. display: flex;
  162. flex-direction: row;
  163. justify-content: center;
  164. align-items: center;
  165. text {
  166. margin-left: 5px;
  167. margin-right: 5px;
  168. color: white;
  169. font-size: 0.6rem;
  170. }
  171. }
  172. }
  173. .yw-button:active {
  174. background-color: gray;
  175. }
  176. .yj-img {
  177. flex-shrink: 0;
  178. width: auto;
  179. height: 160px;
  180. }
  181. .yj-button {
  182. display: flex;
  183. flex-direction: column;
  184. justify-content: center;
  185. width: 100%;
  186. height: 40px;
  187. margin-left: 5px;
  188. margin-top: 3px;
  189. margin-bottom: 3px;
  190. border-radius: 20px;
  191. background-color: royalblue;
  192. padding-left: 20px;
  193. .btn-items {
  194. display: flex;
  195. flex-direction: row;
  196. justify-content: center;
  197. align-items: center;
  198. text {
  199. margin-left: 5px;
  200. margin-right: 5px;
  201. color: white;
  202. font-size: 0.6rem;
  203. }
  204. }
  205. }
  206. .yj-button:active {
  207. background-color: gray;
  208. }
  209. </style>