home.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. <template>
  2. <view>
  3. <!-- 疫苗 -->
  4. <view class="con" style="width: 100%;display: none;">
  5. <!-- 点击查看全民接种疫苗进度 -->
  6. <view class="imagba">
  7. <image class="imagb" src="https://qsfy.qs163.cn/statics/shujuju_applet_static_path/1.png"></image>
  8. </view>
  9. <!-- 点击查看疫苗接种情况登记表 -->
  10. <view class="imagbox" @click="vacInfo">
  11. <image :src="peobga" class="nimage"></image>
  12. <view class="imagboxa">
  13. <view class="imgl">
  14. <image :src="peolimga" mode=""></image>
  15. </view>
  16. <view class="">
  17. <text class="txt">疫苗接种情况统计表</text>
  18. <view class="txt2" style="color: #05407A;">
  19. 截止至 {{getTimeNow ()}}
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <!-- 点击添加新增疫苗接种情况 -->
  25. <view class="imagbox" @click="addVacSitua()">
  26. <image class="nimage" :src="peobgb" mode=""></image>
  27. <view class="imagboxa">
  28. <view class="imgl">
  29. <image :src="peolimgb" mode=""></image>
  30. </view>
  31. <view class="">
  32. <text class="txt">新增疫苗接种信息</text>
  33. <view class="txt2">
  34. 添加疫苗接种情况
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <!-- 点击查询疫苗接种情况 -->
  40. <view class="imagbox " @click="goRecord">
  41. <image class="nimage" :src="peobgc" mode=""></image>
  42. <view class="imagboxa">
  43. <view class="imgl">
  44. <image :src="peolimgc" mode=""></image>
  45. </view>
  46. <view class="">
  47. <text class="txt">疫苗接种情况</text>
  48. <view class="txt2" style="color: #046922;">
  49. 查询/修改人员疫苗接种情况
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <u-toast ref="uToast" />
  55. </view>
  56. <!-- 人口 -->
  57. <view class="con" style="width: 100%;">
  58. <!-- 点击查看全市人口信息 -->
  59. <view class="imagba">
  60. <image class="imagb" :src="peobg"></image>
  61. <view class="imagbc">
  62. <view class="imagbd"><text class="imagbda">电脑端网址:</text>https://qsfy.qs163.cn</view>
  63. <view class="imagbd"><text class="imagbda">维保热线:</text>0556-8938001</view>
  64. </view>
  65. </view>
  66. <!-- 点击查看常住人口统计 -->
  67. <view class="imagbox" @click="vacInfopro">
  68. <image class="nimage" :src="peobga" mode=""></image>
  69. <view class="imagboxa">
  70. <view class="imgl">
  71. <image :src="peolimga" mode=""></image>
  72. </view>
  73. <view class="" >
  74. <text class="txt">常住人口统计</text>
  75. <view class="txt2" style="color: #05407A;">
  76. 截止至 {{getTimeNow ()}}
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. <!-- 点击新增人口信息 -->
  82. <view class="imagbox " @click="addVacSituapeo()">
  83. <image class="nimage" :src="peobgb" mode=""></image>
  84. <view class=" imagboxa">
  85. <view class="imgl">
  86. <image :src="peolimgb" mode=""></image>
  87. </view>
  88. <view class="" >
  89. <text class="txt">新增人口信息</text>
  90. <view class="txt2">
  91. 添加人口详细信息
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. <!-- 点击查询人口信息情况 -->
  97. <view class="imagbox" @click="goRecordpeo">
  98. <image class="nimage" :src="peobgc" mode=""></image>
  99. <view class=" imagboxa">
  100. <view class="imgl">
  101. <image :src="peolimgc" mode=""></image>
  102. </view>
  103. <view class="" >
  104. <text class="txt">人口信息情况</text>
  105. <view class="txt2" style="color: #046922;">
  106. 查询/修改/删除人口信息
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. <!-- 人员状态变更 -->
  112. <view class="imagbox" @click="goReturnState">
  113. <image class="nimage" :src="peobgd" mode=""></image>
  114. <view class=" imagboxa">
  115. <view class="imgl">
  116. <image :src="peolimge" mode=""></image>
  117. </view>
  118. <view class="">
  119. <text class="txt">人员状态变更</text>
  120. <view class="txt2" style="color: #6A2665;">
  121. 更改人员状态信息
  122. </view>
  123. </view>
  124. </view>
  125. </view>
  126. <!-- 核酸情况 -->
  127. <view class="imagbox" @click="goNuclein">
  128. <image class="nimage" :src="peobge" mode=""></image>
  129. <view class=" imagboxa">
  130. <view class="imgl">
  131. <image :src="peolimgf" mode=""></image>
  132. </view>
  133. <view class="">
  134. <text class="txt">人员核酸信息</text>
  135. <view class="txt2" style="color: #C7110C;">
  136. 查看已核酸人员的核酸详细信息
  137. </view>
  138. </view>
  139. </view>
  140. </view>
  141. <view class="imagbox" @click="goAddress">
  142. <image class="nimage" :src="peobgg" mode=""></image>
  143. <view class=" imagboxa">
  144. <view class="imgl">
  145. <image :src="peolimgg" mode=""></image>
  146. </view>
  147. <view class="">
  148. <text class="txt">采集点核酸信息</text>
  149. <view class="txt2" style="color:#0C706F;">
  150. 根据核酸采集地筛选核酸信息
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. <view class="imagbox" @click="goProblem">
  156. <image class="nimage" :src="peobgi" mode=""></image>
  157. <view class=" imagboxa">
  158. <view class="imgl">
  159. <image :src="peolimgi" mode=""></image>
  160. </view>
  161. <view class="">
  162. <text class="txt">常见问题及解答</text>
  163. <view class="txt2" style="color:#C7110C;">
  164. 查看软件操作使用中可能遇到的问题及解答
  165. </view>
  166. </view>
  167. </view>
  168. </view>
  169. <!-- 点击查询返乡人员信息 -->
  170. <!-- <view class="imagbox" @click="goReturnpeo">
  171. <image class="nimage" :src="peobgd" mode=""></image>
  172. <view class=" imagboxa">
  173. <view class="imgl">
  174. <image :src="peolimgd" mode=""></image>
  175. </view>
  176. <view class="">
  177. <text class="txt">返乡人员信息</text>
  178. <view class="txt2" style="color: #046922;">
  179. 查询/修改/删除返乡人员信息
  180. </view>
  181. </view>
  182. </view>
  183. </view> -->
  184. <!-- <view style="height: 200rpx;"></view> -->
  185. <u-toast ref="uToast" />
  186. </view>
  187. </view>
  188. </template>
  189. <script>
  190. export default {
  191. data() {
  192. return {
  193. peobg:require("@/static/image/peo_bg.png"),
  194. peobga:require("@/static/image/peo_bga.png"),
  195. peobgb:require("@/static/image/peo_bgb.png"),
  196. peobgc:require("@/static/image/peo_bgc.png"),
  197. peobgd:require("@/static/image/peo_bgd.png"),
  198. peobge:require("@/static/image/peo_bge.png"),
  199. peobgg:require("@/static/image/peo_bgg.png"),
  200. peobgi:require("@/static/image/peo_bgi.png"),
  201. peolimga:require("@/static/image/peo_a.png"),
  202. peolimgb:require("@/static/image/peo_b.png"),
  203. peolimgc:require("@/static/image/peo_c.png"),
  204. peolimgd:require("@/static/image/peo_d.png"),
  205. peolimge:require("@/static/image/peo_e.png"),
  206. peolimgf:require("@/static/image/peo_f.png"),
  207. peolimgg:require("@/static/image/peo_g.png"),
  208. peolimgi:require("@/static/image/peo_i.png"),
  209. }
  210. },
  211. methods:{
  212. checkLogin() {
  213. var token = uni.getStorageSync('token')
  214. // var token = "df057579-73c8-4bdd-8312-f64db8efd699"
  215. if (token == undefined || token == '') {
  216. uni.navigateTo({
  217. url: '/pages/login/login'
  218. })
  219. return false
  220. }
  221. return true
  222. },
  223. /* 点击新增疫苗接种情况 */
  224. addVacSitua () {
  225. if (!this.checkLogin()) {
  226. return
  227. }
  228. uni.navigateTo({
  229. url: "/add/pages/addvacfrom/addvacfrom"
  230. })
  231. },
  232. /* 点击进入疫苗情况 */
  233. goRecord () {
  234. if (!this.checkLogin()) {
  235. return
  236. }
  237. uni.navigateTo({
  238. url: "/home/pages/recordthree/recordthree"
  239. })
  240. },
  241. vacInfo() {
  242. if (!this.checkLogin()) {
  243. return
  244. }
  245. uni.navigateTo({
  246. url: '/pages/home/statis'
  247. })
  248. // this.$refs.uToast.show({
  249. // title: '该功能暂未开放',
  250. // type: 'error'
  251. // })
  252. },
  253. // 常驻人口
  254. vacInfopro(){
  255. if (!this.checkLogin()) {
  256. return
  257. }
  258. uni.navigateTo({
  259. url: '/pages/home/resident'
  260. })
  261. },
  262. //新增人口信息
  263. addVacSituapeo(){
  264. if (!this.checkLogin()) {
  265. return
  266. }
  267. uni.navigateTo({
  268. url: "/add/pages/addvacfrom/addpeople"
  269. })
  270. },
  271. // 人口信息情况
  272. goRecordpeo(){
  273. if (!this.checkLogin()) {
  274. return
  275. }
  276. uni.navigateTo({
  277. url: "/home/pages/recordthree/recordpeople"
  278. })
  279. },
  280. //状态变更
  281. goReturnState(){
  282. if (!this.checkLogin()) {
  283. return
  284. }
  285. uni.navigateTo({
  286. url: "/home/pages/recordthree/recordstate"
  287. })
  288. },
  289. goNuclein(){
  290. if (!this.checkLogin()) {
  291. return
  292. }
  293. uni.navigateTo({
  294. url: "/home/pages/recordthree/recordnuclein"
  295. })
  296. },
  297. goAddress(){
  298. if (!this.checkLogin()) {
  299. return
  300. }
  301. uni.navigateTo({
  302. url: "/home/pages/recordthree/addressacid"
  303. })
  304. },
  305. goProblem(){
  306. if (!this.checkLogin()) {
  307. return
  308. }
  309. uni.navigateTo({
  310. url: "/home/pages/recordthree/problem"
  311. })
  312. },
  313. //返乡
  314. goReturnpeo(){
  315. if (!this.checkLogin()) {
  316. return
  317. }
  318. uni.navigateTo({
  319. url: "/home/pages/recordthree/returnpeople"
  320. })
  321. },
  322. /* 获取当前时间 */
  323. getTimeNow () {
  324. // console.log(Date.now())
  325. let re = this.h_util.getDateTime('yyyy年MM月dd日hh时',new Date())
  326. // console.log(re)
  327. return re
  328. }
  329. }
  330. }
  331. </script>
  332. <style scoped lang="scss">
  333. .imagbox{position: relative;width: 684rpx;height: 140rpx;margin-bottom: 30rpx;}
  334. .nimage{width: 100%;height: 100%;display: block;}
  335. .imagboxa{position: absolute;left: 0;right: 0;top: 0;bottom: 0;padding: 0 32rpx;box-sizing: border-box;display: flex;align-items: center;}
  336. .imgl{width: 88rpx;height: 88rpx;display: flex;align-items: center;justify-content: center;margin-right: 32rpx;margin-top: 20rpx;}
  337. .imgl image{max-width: 100%;max-height: 100%;}
  338. .con {
  339. display: flex;
  340. flex-direction: column;
  341. align-items: center;
  342. justify-content: center;
  343. padding: 30rpx 0;
  344. }
  345. .imagba{position:relative;width:684rpx;
  346. height:292upx;
  347. margin-bottom: 24rpx;}
  348. .imagbc{position: absolute;left:44rpx;bottom: 4rpx;
  349. .imagbd{font-size: 24rpx;color: #ffffff;
  350. .imagbda{display: inline-block;width: 160rpx;text-align: justify;text-align-last: justify;}
  351. }
  352. }
  353. .imagb{
  354. width:684rpx;
  355. height:292upx;
  356. }
  357. .imagx{
  358. width:90%;
  359. height:200upx;
  360. background-size: 100% 200upx;
  361. }
  362. .imagy{
  363. width:90%;
  364. height:200upx;
  365. background-size: 100% 200upx;
  366. margin-top: 28upx;
  367. }
  368. .imagp{
  369. width:90%;
  370. height:200upx;
  371. // background-image:url("../../static/img");
  372. background-size: 100% 200upx;
  373. margin-bottom: 28upx;
  374. }
  375. .txt{
  376. font-size: 30rpx;
  377. font-family: PingFang SC;
  378. font-weight: bold;
  379. color: #FFFFFF;
  380. line-height: 40rpx;
  381. }
  382. .txt2{
  383. margin-top: 10rpx;
  384. font-size: 24rpx;
  385. font-family: PingFang SC;
  386. font-weight: 400;
  387. color: #DA6100;
  388. line-height: 24rpx;
  389. }
  390. </style>