From e009cc043203df7f177d8b76081a3e95a38eb116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E5=B3=B0=E2=80=9C?= <3512137118@qq.com> Date: Thu, 14 Mar 2024 14:38:40 +0800 Subject: [PATCH] llf --- vite-project/components.d.ts | 2 + vite-project/src/router/index.ts | 7 + vite-project/src/views/Home/HomeAccompany.vue | 26 +++- vite-project/src/views/Home/HomeView.vue | 8 +- vite-project/src/views/Home/Homepay.vue | 47 ++++-- .../src/views/Home/Homepostpartum.vue | 12 +- vite-project/src/views/Home/SelectView1.vue | 2 +- vite-project/src/views/Home/homepay1.vue | 139 ++++++++++++++++++ 8 files changed, 220 insertions(+), 23 deletions(-) create mode 100644 vite-project/src/views/Home/homepay1.vue diff --git a/vite-project/components.d.ts b/vite-project/components.d.ts index 6ada770..05140e5 100644 --- a/vite-project/components.d.ts +++ b/vite-project/components.d.ts @@ -20,6 +20,8 @@ declare module 'vue' { VanIcon: typeof import('vant/es')['Icon'] VanNavBar: typeof import('vant/es')['NavBar'] VanPopup: typeof import('vant/es')['Popup'] + VanRadio: typeof import('vant/es')['Radio'] + VanRadioGroup: typeof import('vant/es')['RadioGroup'] VanSearch: typeof import('vant/es')['Search'] VanSticky: typeof import('vant/es')['Sticky'] VanSwipe: typeof import('vant/es')['Swipe'] diff --git a/vite-project/src/router/index.ts b/vite-project/src/router/index.ts index cf98566..fcbac01 100644 --- a/vite-project/src/router/index.ts +++ b/vite-project/src/router/index.ts @@ -5,6 +5,8 @@ const Home = () => import("views/Home/HomeView.vue"); const HomeServer = () => import("views/Home/HomeServerView.vue"); const HomeDetail = () => import("views/Home/HomeDetail.vue"); const HomePay = () => import("views/Home/Homepay.vue"); +const HomePay1 = () => import("views/Home/homepay1.vue"); + const HomePostpartum=import("views/Home/Homepostpartum.vue"); const Circle = () => import("views/Hjc/CircleView.vue"); const StoreView = () => import("views/StoreView.vue"); @@ -118,6 +120,11 @@ const router = createRouter({ name: "homepay", component: HomePay, }, + { + path: "/homepay1", + name: "homepay1", + component: HomePay1, + }, { path: "/homeAccompany", name: "homeAccompany", diff --git a/vite-project/src/views/Home/HomeAccompany.vue b/vite-project/src/views/Home/HomeAccompany.vue index 7eb1398..419afd2 100644 --- a/vite-project/src/views/Home/HomeAccompany.vue +++ b/vite-project/src/views/Home/HomeAccompany.vue @@ -52,9 +52,10 @@
@@ -109,6 +110,16 @@ const handelShowItem = (item) => { show.value = false; } +const routerpay = () => { + router.push({ + path: '/homepay', + query: { + id: '155424265542', + title: showlist.value.title, + price: showlist.value.price + } + }) +} @@ -163,15 +174,18 @@ const handelShowItem = (item) => { border-bottom: 1px solid #ccc; } -.tab_img{ + +.tab_img { width: 100%; height: 300px; margin-bottom: 80px; } -.tab_img img{ + +.tab_img img { width: 100%; height: 100%; } + .personner_img { width: 30%; height: 100%; @@ -257,6 +271,6 @@ const handelShowItem = (item) => { background-color: white; position: fixed; width: 100%; + align-items: center; bottom: 0; -} - \ No newline at end of file +} \ No newline at end of file diff --git a/vite-project/src/views/Home/HomeView.vue b/vite-project/src/views/Home/HomeView.vue index 2605c9c..283df20 100644 --- a/vite-project/src/views/Home/HomeView.vue +++ b/vite-project/src/views/Home/HomeView.vue @@ -23,7 +23,7 @@

甲醛检测

-
  • +
  • 家电维修

  • @@ -177,6 +177,12 @@ const handelRouterHomeServer = () => { }) } +const handleRouterJiadian=()=>{ + router.push({ + path:'/jia', + }) +} + \ No newline at end of file diff --git a/vite-project/src/views/Home/SelectView1.vue b/vite-project/src/views/Home/SelectView1.vue index ed20b5b..8d07518 100644 --- a/vite-project/src/views/Home/SelectView1.vue +++ b/vite-project/src/views/Home/SelectView1.vue @@ -116,7 +116,7 @@ const submitOrder = async () => { // 提交订单 const { data } = await axiosInstance.post('/axlAPi/order',params, { headers: { 'Authorization': `Bearer ${accessToken}` } }) - router.push('/homepay') + router.push({ path: '/homepay', query: { id: userId.value, price: selectedOption.value.price}}) } diff --git a/vite-project/src/views/Home/homepay1.vue b/vite-project/src/views/Home/homepay1.vue new file mode 100644 index 0000000..3cdf580 --- /dev/null +++ b/vite-project/src/views/Home/homepay1.vue @@ -0,0 +1,139 @@ + + + + + + + + \ No newline at end of file -- Gitee