diff --git a/src/assets/imgs/show/icon_select.png b/src/assets/imgs/show/icon_select.png new file mode 100644 index 0000000..b010a9e Binary files /dev/null and b/src/assets/imgs/show/icon_select.png differ diff --git a/src/assets/imgs/show/icon_timing_fault.png b/src/assets/imgs/show/icon_timing_fault.png new file mode 100644 index 0000000..053d29f Binary files /dev/null and b/src/assets/imgs/show/icon_timing_fault.png differ diff --git a/src/assets/imgs/show/icon_timing_killvirus.png b/src/assets/imgs/show/icon_timing_killvirus.png new file mode 100644 index 0000000..9e3f621 Binary files /dev/null and b/src/assets/imgs/show/icon_timing_killvirus.png differ diff --git a/src/router-demo.ts b/src/router-demo.ts index 74959a8..82221a0 100644 --- a/src/router-demo.ts +++ b/src/router-demo.ts @@ -36,15 +36,6 @@ export const demoRoutes = [ requireAuth: false, }, }, - { - name: "timing", - path: "base-components-demo/timing", - component: () => import("@/view/show/timing.vue"), - meta: { - title: "定时", - requireAuth: false, - }, - }, { name: "animation-demo", path: "base-components-demo/animation-demo", diff --git a/src/router.ts b/src/router.ts index db98e76..ee97e1e 100644 --- a/src/router.ts +++ b/src/router.ts @@ -40,32 +40,42 @@ const projectRoutes = [ path: "/tabs", component: () => import("@/view/tabs/tabs.vue"), meta: { - title: '智慧屏首頁' - } + title: "智慧屏首頁", + }, }, { name: "timingAdd", path: "/timingAdd", component: () => import("@/view/timing/timing-add.vue"), meta: { - title: '智慧屏首頁' - } + title: "", + }, }, { name: "timingSureDelete", path: "/timingSureDelete", component: () => import("@/view/timing/timing-sure-delete.vue"), meta: { - title: '智慧屏首頁' - } + title: "", + }, }, { name: "device-detail", path: "/device-detail", component: () => import("@/view/device-detail/device-detail.vue"), meta: { - title: '设备详情页' - } + title: "设备详情页", + }, + }, + { + name: "timingSelectDevice", + path: "/timingSelectDevice", + component: () => import("@/view/timing/timing-select-device.vue"), + }, + { + name: "timingSelectTime", + path: "/timingSelectTime", + component: () => import("@/view/timing/timing-select-time.vue"), }, // 非哈希路由暂不启用 { diff --git a/src/styles/framework/base/flexbox.scss b/src/styles/framework/base/flexbox.scss index 968c1c7..ec3b711 100644 --- a/src/styles/framework/base/flexbox.scss +++ b/src/styles/framework/base/flexbox.scss @@ -240,6 +240,7 @@ Flex, Grow, & Shrink 待确定 line-height: 1; } } + //智慧屏标题 .zhp-title { padding-top: 31px; @@ -247,6 +248,7 @@ Flex, Grow, & Shrink 待确定 width: 100vw; position: relative; } + //智慧屏标题 .zhp-title-text { margin-top: 4px; @@ -254,11 +256,14 @@ Flex, Grow, & Shrink 待确定 text-align: center; font-size: 40px; } + //智慧屏背景 .base-bg { + display: flex; + flex-direction: column; position: relative; background-image: url("@/assets/imgs/show/bg_timing.png"); - height: 720px; + height: 100vh; width: 720px; //智慧屏返回键 .leftImg { @@ -267,4 +272,46 @@ Flex, Grow, & Shrink 待确定 position: absolute; left: 24px; } + + .bottom-s-c { + left: 24px; + right: 24px; + position: absolute; + bottom: 0; + flex-wrap: wrap; + display: flex; + justify-content: space-between; + padding-top: 30px; + padding-bottom: 30px; + background-color: rgba($color: #0A101A, $alpha: 0.7); + + .bottom-s { + margin-left: 20px; + display: flex; + align-items: center; + justify-content: center; + background-repeat: no-repeat; + background-size: contain; + color: #ffffff; + font-size: 40px; + font-weight: 400; + width: 326px; + height: 110px; + background-image: url("@/assets/imgs/show/bg_btn_blue.png"); + } + + .bottom-c { + display: flex; + align-items: center; + justify-content: center; + background-repeat: no-repeat; + background-size: contain; + color: #ffffff; + font-size: 40px; + font-weight: 400; + width: 326px; + height: 110px; + background-image: url("@/assets/imgs/show/bg_btn_gray.png"); + } + } } diff --git a/src/view/tabs/device-control.vue b/src/view/tabs/device-control.vue index b23b8ee..a8eff0b 100644 --- a/src/view/tabs/device-control.vue +++ b/src/view/tabs/device-control.vue @@ -16,7 +16,6 @@ 'air-quality-liang': item.airQuality === '良', 'air-quality-cha': item.airQuality === '差', }" - @click="goToDetail(item)" >
{{ item.name }}
@@ -39,7 +38,7 @@ {{ i }}
-
+
@@ -62,7 +61,6 @@ \ No newline at end of file + diff --git a/src/view/tabs/fixed-time.vue b/src/view/tabs/fixed-time.vue index 8f3f362..09b07c7 100644 --- a/src/view/tabs/fixed-time.vue +++ b/src/view/tabs/fixed-time.vue @@ -65,9 +65,6 @@ import { useRouter } from "vue-router"; import { ref } from "vue"; import { TimingDto } from "@/dto/timing-dto"; -import timing from "@/view/show/timing.vue"; -import type from "async-validator/dist-types/rule/type"; -import { Toast } from "vant"; const router = useRouter(); @@ -172,21 +169,20 @@ const navList = ref([ } .base-timing-card-content-unSelectBg { - width: 100vw; - margin-left: 45px; + width: 672px; margin-bottom: 12px; height: 126px; background-image: url(@/assets/imgs/show/bg_item_timing_unselect.png); - background-size: contain; + background-size: 100% 100%; background-repeat: no-repeat; } .base-timing-card-content-selectBg { - margin-left: 45px; margin-bottom: 12px; + background-size: 100% 100%; + width: 672px; height: 126px; background-image: url(@/assets/imgs/show/bg_item_timing_select.png); - background-size: contain; background-repeat: no-repeat; } @@ -206,10 +202,13 @@ const navList = ref([ } .stateBg { + display: flex; margin-left: 14px; background-image: url(@/assets/imgs/show/btn_item_timing_open.png); background-size: contain; background-repeat: no-repeat; + align-items: center; + justify-content: center; width: 56px; height: 32px; } @@ -217,7 +216,7 @@ const navList = ref([ .state { line-height: 32px; font-weight: 400; - font-size: 10px; + font-size: 18px; color: #ffffff; } diff --git a/src/view/timing/timing-add.vue b/src/view/timing/timing-add.vue index ae22cd1..0a573db 100644 --- a/src/view/timing/timing-add.vue +++ b/src/view/timing/timing-add.vue @@ -52,28 +52,60 @@
时间
-
1小时后
+
{{ time }}小时后
-
+
设备
-
1台空调
+
{{ selectNum }}台空调
-
保存
+
保存
- diff --git a/src/view/timing/timing-select-time.vue b/src/view/timing/timing-select-time.vue new file mode 100644 index 0000000..ee2bfb8 --- /dev/null +++ b/src/view/timing/timing-select-time.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/src/view/timing/timing-sure-delete.vue b/src/view/timing/timing-sure-delete.vue index 9e3f851..456fae5 100644 --- a/src/view/timing/timing-sure-delete.vue +++ b/src/view/timing/timing-sure-delete.vue @@ -14,60 +14,36 @@ -