From 5c1c2657f1a75a5a06ad1f5f03469e6fab697016 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com>
Date: Wed, 15 Mar 2023 10:35:06 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
main.js | 19 ++--
pages.json | 40 +++-----
pages/diseasemanagement/diseasemanagement.vue | 8 +-
pages/homepage/homepage.vue | 86 ++++++++++++++----
pages/login/login.vue | 2 +-
pages/shopping/shopping.vue | 2 +-
pages/site/site.vue | 4 +-
static/shoping.png | Bin 1752 -> 78667 bytes
static/shopingw.png | Bin 834 -> 0 bytes
store/index.js | 47 ++++++++++
10 files changed, 147 insertions(+), 61 deletions(-)
delete mode 100644 static/shopingw.png
create mode 100644 store/index.js
diff --git a/main.js b/main.js
index 24ceff6..bc56f3e 100644
--- a/main.js
+++ b/main.js
@@ -4,23 +4,24 @@ import App from './App'
import Vue from 'vue'
import uView from "uview-ui";
Vue.use(uView);
-// import share from './share.js'
-// Vue.mixin(share)
-
Vue.config.productionTip = false
App.mpType = 'app'
+import store from "@/store/index.js"
const app = new Vue({
- ...App
+ store,
+ ...App
})
app.$mount()
// #endif
// #ifdef VUE3
-import { createSSRApp } from 'vue'
+import {
+ createSSRApp
+} from 'vue'
export function createApp() {
- const app = createSSRApp(App)
- return {
- app
- }
+ const app = createSSRApp(App)
+ return {
+ app
+ }
}
// #endif
diff --git a/pages.json b/pages.json
index 5c6fb73..797495c 100644
--- a/pages.json
+++ b/pages.json
@@ -17,7 +17,7 @@
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
- },{
+ }, {
"path": "pages/medicine/medicine",
"style": {
"navigationBarTitleText": "健康咨询",
@@ -25,22 +25,21 @@
"navigationBarBackgroundColor": "#ffffff",
"disableScroll": true
}
- },{
+ }, {
"path": "pages/integral/integral",
"style": {
"navigationBarTitleText": "积分",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
- },{
- "path" : "pages/confirmation/confirmation",
- "style" :
- {
+ }, {
+ "path": "pages/confirmation/confirmation",
+ "style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"navigationBarTitleText": "预约时间"
}
- },{
+ }, {
"path": "pages/information/information",
"style": {
"navigationBarTitleText": "完善个人信息",
@@ -143,8 +142,7 @@
"navigationBarTitleText": "医路优品",
"navigationBarBackgroundColor": "#ffffff",
"onReachBottomDistance": 40, //距离底部多远时触发 单位为px
- "enablePullDownRefresh": true, //设置参数为true
- "navigationStyle": "custom"
+ "enablePullDownRefresh": true //设置参数为true
}
}, {
"path": "pages/CommodityOrder/CommodityOrder",
@@ -359,17 +357,15 @@
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
- }
- ,{
- "path" : "pages/Healthrecords/Healthrecords",
- "style" :
- {
- "navigationBarTitleText": "健康档案",
+ }, {
+ "path": "pages/Healthrecords/Healthrecords",
+ "style": {
+ "navigationBarTitleText": "健康档案",
"navigationBarBackgroundColor": "#ffffff",
- "enablePullDownRefresh": false
- }
- }
- ],
+ "enablePullDownRefresh": false
+ }
+ }
+ ],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "",
@@ -388,12 +384,6 @@
"selectedIconPath": "static/homepagews.png",
"text": "首页"
},
- {
- "pagePath": "pages/shopping/shopping",
- "iconPath": "static/shoping.png",
- "selectedIconPath": "static/shopingw.png",
- "text": "商城"
- },
{
"pagePath": "pages/Personal/Personal",
"iconPath": "static/userw.png",
diff --git a/pages/diseasemanagement/diseasemanagement.vue b/pages/diseasemanagement/diseasemanagement.vue
index bf4feac..531c277 100644
--- a/pages/diseasemanagement/diseasemanagement.vue
+++ b/pages/diseasemanagement/diseasemanagement.vue
@@ -1,6 +1,6 @@
-
-
+
+
diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue
index d34120e..f610e6e 100644
--- a/pages/homepage/homepage.vue
+++ b/pages/homepage/homepage.vue
@@ -49,6 +49,7 @@
+
@@ -78,6 +79,10 @@