From 55fcdfcac9fa9693132a352c6d891866d90f3b3c Mon Sep 17 00:00:00 2001 From: 展杰 <1240968267@qq.com> Date: 星期一, 20 十一月 2023 17:43:33 +0800 Subject: [PATCH] 1 --- pages/index/index.vue | 32 +++++++++++++++++++++++++------- 1 files changed, 25 insertions(+), 7 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index eb5066d..5371802 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,7 +1,7 @@ <template> <view> <u-grid :col="3" @click="gotoPage" border> - <u-grid-item v-for="item in grid" :index="item[0]"> + <u-grid-item v-for="item in grid" :index="item[0]" class="grid-box"> <u-icon name="play-right-fill" :size="46" color="#FF8000"></u-icon> <view class="grid-text">{{item.name}}</view> </u-grid-item> @@ -20,11 +20,23 @@ data() { return { grid: [], - filter: [{ - name: '宸℃妫�楠�', - src: '/pages/inspection/inspectionList', - icon:'' - }] + filter: [ + { + name: '宸℃妫�楠�', + src: '/pages/inspection/inspectionList', + icon:'' + }, + { + name: '棣栨妫�楠�', + src: '/pages/inspection/firstInspectionList', + icon:'' + }, + { + name :'鏈哄彴鎶ュ伐', + src:'/pages/work_reporting/work_reporting', + icon:'' + }, + ] } }, onLoad() { @@ -42,8 +54,8 @@ this.grid.push(item) } } + console.log(this.grid); }) - }, methods: { gotoPage(e) { @@ -70,4 +82,10 @@ </script> <style> + .grid-box{ + border-bottom: 1upx solid #dadbde; + border-right: 1upx solid #dadbde; + background-color: #f1f2f4; + height: 100upx; + } </style> \ No newline at end of file -- Gitblit v1.9.3