From 2acfb9e405d10e354a6a26cc14dcd63b0c1fef3d Mon Sep 17 00:00:00 2001
From: linyongLynn <15926056+linyonglynn@user.noreply.gitee.com>
Date: Thu, 23 Oct 2025 11:04:57 +0800
Subject: [PATCH] save
---
pages.json | 413 ++++++++++++++++++++++---------------------
pages/map/map.vue | 280 +++++++++++++++--------------
pages/mine/index.vue | 33 +++-
utils/util.js | 2 +-
4 files changed, 391 insertions(+), 337 deletions(-)
diff --git a/pages.json b/pages.json
index af52593..6430ef6 100644
--- a/pages.json
+++ b/pages.json
@@ -1,268 +1,269 @@
-{
- "easycom": {
- "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
- },
- "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
- {
- "path": "pages/index/index",
- "style": {
- "navigationBarTitleText": "中共苏州独立支部旧址",
- "navigationStyle": "custom",
- "enablePullDownRefresh": false
-
- }
- },{
- "path": "pages/vr/vrpage",
- "style": {
- "navigationBarTitleText": "",
- "navigationStyle": "custom",
- "enablePullDownRefresh": false
-
- }
- }, {
- "path": "pages/guide/index",
- "style": {
- "navigationBarTitleText": "参观指南",
- "enablePullDownRefresh": false
- }
-
- }, {
- "path": "pages/mine/index",
- "style": {
- "navigationBarTitleText": "个人中心",
- "navigationStyle": "custom",
- "enablePullDownRefresh": false
- }
-
- }, {
- "path": "pages/map/map",
- "style": {
- "navigationBarTitleText": "展馆导航",
- "enablePullDownRefresh": false
- }
-
- }, {
- "path": "pages/visit/index",
- "style": {
- "navigationBarTitleText": "参观预约",
- "enablePullDownRefresh": false
- }
-
- }, {
- "path": "pages/activity/index",
- "style": {
- "navigationBarTitleText": "活动列表",
- "enablePullDownRefresh": false
- }
-
- }, {
- "path": "pages/visit/book",
- "style": {
- "navigationBarTitleText": "个人预约",
- "enablePullDownRefresh": false
- }
-
- }, {
- "path": "pages/visit/teambook",
- "style": {
- "navigationBarTitleText": "团体预约",
- "enablePullDownRefresh": false
- }
-
- }, {
- "path": "pages/activity/info",
- "style": {
- "navigationBarTitleText": "活动详情",
- "enablePullDownRefresh": false
- }
-
- }, {
- "path": "pages/activity/book",
- "style": {
- "navigationBarTitleText": "活动预约",
- "enablePullDownRefresh": false
- }
-
- }, {
- "path": "pages/order/visitorder",
- "style": {
- "navigationBarTitleText": "参观预约订单",
- "enablePullDownRefresh": false
- }
-
- }, {
- "path": "pages/order/parkorder",
- "style": {
- "navigationBarTitleText": "车位预约",
- "enablePullDownRefresh": false
- }
-
- }, {
- "path": "pages/park/index",
- "style": {
- "navigationBarTitleText": "停车场预约",
- "enablePullDownRefresh": false
- }
-
- }, {
- "path": "pages/order/visitorderinfo",
- "style": {
- "navigationBarTitleText": "参观预约详情",
- "enablePullDownRefresh": false
- }
-
- }, {
- "path": "pages/park/book",
- "style": {
- "navigationBarTitleText": "停车场预约",
- "enablePullDownRefresh": false
- }
-
- }
- ,{
- "path" : "pages/success/success",
+{
+ "easycom": {
+ "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
+ },
+ "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
+ {
+ "path": "pages/index/index",
+ "style": {
+ "navigationBarTitleText": "中共苏州独立支部旧址",
+ "navigationStyle": "custom",
+ "enablePullDownRefresh": false
+
+ }
+ },{
+ "path": "pages/vr/vrpage",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationStyle": "custom",
+ "enablePullDownRefresh": false
+
+ }
+ }, {
+ "path": "pages/guide/index",
+ "style": {
+ "navigationBarTitleText": "参观指南",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "pages/mine/index",
+ "style": {
+ "navigationBarTitleText": "个人中心",
+ "navigationStyle": "custom",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "pages/map/map",
+ "style": {
+ "navigationBarTitleText": "展馆导航",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+
+ }, {
+ "path": "pages/visit/index",
+ "style": {
+ "navigationBarTitleText": "参观预约",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "pages/activity/index",
+ "style": {
+ "navigationBarTitleText": "活动列表",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "pages/visit/book",
+ "style": {
+ "navigationBarTitleText": "个人预约",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "pages/visit/teambook",
+ "style": {
+ "navigationBarTitleText": "团体预约",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "pages/activity/info",
+ "style": {
+ "navigationBarTitleText": "活动详情",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "pages/activity/book",
+ "style": {
+ "navigationBarTitleText": "活动预约",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "pages/order/visitorder",
+ "style": {
+ "navigationBarTitleText": "参观预约订单",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "pages/order/parkorder",
+ "style": {
+ "navigationBarTitleText": "车位预约",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "pages/park/index",
+ "style": {
+ "navigationBarTitleText": "停车场预约",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "pages/order/visitorderinfo",
+ "style": {
+ "navigationBarTitleText": "参观预约详情",
+ "enablePullDownRefresh": false
+ }
+
+ }, {
+ "path": "pages/park/book",
+ "style": {
+ "navigationBarTitleText": "停车场预约",
+ "enablePullDownRefresh": false
+ }
+
+ }
+ ,{
+ "path" : "pages/success/success",
"style" :
{
"navigationBarTitleText": "预约成功",
"enablePullDownRefresh": false
}
-
- }
- ,{
- "path" : "pages/order/parkorderinfo",
+
+ }
+ ,{
+ "path" : "pages/order/parkorderinfo",
"style" :
{
"navigationBarTitleText": "停车场预约",
"enablePullDownRefresh": false
}
-
- }
- ,{
- "path" : "pages/order/activityorder",
+
+ }
+ ,{
+ "path" : "pages/order/activityorder",
"style" :
{
"navigationBarTitleText": "活动预约",
"enablePullDownRefresh": false
}
-
- }
- ,{
- "path" : "pages/order/activityorderinfo",
+
+ }
+ ,{
+ "path" : "pages/order/activityorderinfo",
"style" :
{
"navigationBarTitleText": "活动预约详情",
"enablePullDownRefresh": false
}
-
- }
- ,{
- "path" : "pages/guide/list",
+
+ }
+ ,{
+ "path" : "pages/guide/list",
"style" :
{
"navigationBarTitleText": "参观指南",
"enablePullDownRefresh": false
}
-
- }
- ,{
- "path" : "pages/guide/info",
+
+ }
+ ,{
+ "path" : "pages/guide/info",
"style" :
{
"navigationBarTitleText": "参观指南",
"enablePullDownRefresh": false
}
-
- }
- ,{
- "path" : "pages/mine/recommend",
+
+ }
+ ,{
+ "path" : "pages/mine/recommend",
"style" :
{
"navigationBarTitleText": "分享预约小程序",
"enablePullDownRefresh": false
}
-
- }
- ,{
- "path" : "pages/guide/feedback",
+
+ }
+ ,{
+ "path" : "pages/guide/feedback",
"style" :
{
"navigationBarTitleText": "投诉建议",
"enablePullDownRefresh": false
}
-
- }
- ,{
- "path" : "pages/guide/contact",
+
+ }
+ ,{
+ "path" : "pages/guide/contact",
"style" :
{
"navigationBarTitleText": "联系我们",
"enablePullDownRefresh": false
}
-
- }
- ,{
- "path" : "pages/order/shareQR",
+
+ }
+ ,{
+ "path" : "pages/order/shareQR",
"style" :
{
"navigationBarTitleText": "分享二维码",
"enablePullDownRefresh": false
}
-
+
},
- // {
- // "path" : "pages/vr/vrpagegm",
+ // {
+ // "path" : "pages/vr/vrpagegm",
// "style" :
// {
// "navigationBarTitleText": "",
// "enablePullDownRefresh": false
// }
-
- // }
- {
- "path" : "pages/guide/feedbackinfo",
+
+ // }
+ {
+ "path" : "pages/guide/feedbackinfo",
"style" :
{
"navigationBarTitleText": "意见建议详情",
"enablePullDownRefresh": false
}
-
- }
- ],
- "globalStyle": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "中共苏州独立支部旧址",
- "navigationBarBackgroundColor": "#F8F8F8",
- "backgroundColor": "#F8F8F8"
- },
- "tabBar": {
- "color": "#351C1B",
- "selectedColor": "#351C1B",
- "backgroundColor": "#fdf9f5",
- "list": [{
- "pagePath": "pages/index/index",
- "text": "首页",
- "iconPath": "/static/img/icon_nav_home.png",
- "selectedIconPath": "/static/img/icon_nav_home_on.png"
- },
- {
- "pagePath": "pages/guide/index",
- "text": "参观指南",
- "iconPath": "/static/img/icon_nav_guide.png",
- "selectedIconPath": "/static/img/icon_nav_guide_on.png"
- },
- {
- "pagePath": "pages/map/map",
- "text": "展馆导航",
- "iconPath": "/static/img/icon_nav_map.png",
- "selectedIconPath": "/static/img/icon_nav_map_on.png"
- },
- {
- "pagePath": "pages/mine/index",
- "text": "个人中心",
- "iconPath": "/static/img/icon_nav_user.png",
- "selectedIconPath": "/static/img/icon_nav_user_on.png"
- }
- ]
- }
-
+
+ }
+ ],
+ "globalStyle": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "中共苏州独立支部旧址",
+ "navigationBarBackgroundColor": "#F8F8F8",
+ "backgroundColor": "#F8F8F8"
+ },
+ "tabBar": {
+ "color": "#351C1B",
+ "selectedColor": "#351C1B",
+ "backgroundColor": "#fdf9f5",
+ "list": [{
+ "pagePath": "pages/index/index",
+ "text": "首页",
+ "iconPath": "/static/img/icon_nav_home.png",
+ "selectedIconPath": "/static/img/icon_nav_home_on.png"
+ },
+ {
+ "pagePath": "pages/guide/index",
+ "text": "参观指南",
+ "iconPath": "/static/img/icon_nav_guide.png",
+ "selectedIconPath": "/static/img/icon_nav_guide_on.png"
+ },
+ {
+ "pagePath": "pages/map/map",
+ "text": "展馆导航",
+ "iconPath": "/static/img/icon_nav_map.png",
+ "selectedIconPath": "/static/img/icon_nav_map_on.png"
+ },
+ {
+ "pagePath": "pages/mine/index",
+ "text": "个人中心",
+ "iconPath": "/static/img/icon_nav_user.png",
+ "selectedIconPath": "/static/img/icon_nav_user_on.png"
+ }
+ ]
+ }
+
}
diff --git a/pages/map/map.vue b/pages/map/map.vue
index 66b0ea7..de87f37 100644
--- a/pages/map/map.vue
+++ b/pages/map/map.vue
@@ -1,128 +1,152 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/mine/index.vue b/pages/mine/index.vue
index 99a36cb..e7b33b2 100644
--- a/pages/mine/index.vue
+++ b/pages/mine/index.vue
@@ -11,7 +11,7 @@
-
+
@@ -60,7 +60,7 @@
- 推荐预约管理系统
+ 系统
@@ -162,6 +162,25 @@
});
},
methods: {
+ // 显示编辑表单
+ showEditForm() {
+ // 检测运行环境
+ const isH5 = typeof window !== 'undefined' && window.location
+
+ if (isH5) {
+ // H5环境:直接显示编辑弹窗
+ this.showAuthorization = true;
+ // 预填充当前信息
+ this.form.name = this.info.nickname || '';
+ this.form.avatar = this.info.headimgurl || '';
+ } else {
+ // 小程序环境:显示确认编辑弹窗
+ this.showform = true;
+ // 预填充当前信息
+ this.form.name = this.info.nickname || '';
+ this.form.avatar = this.info.headimgurl || '';
+ }
+ },
closeInfo() {
this.showAuthorization = false;
},
@@ -337,6 +356,16 @@
}
+ .user_avator {
+ cursor: pointer;
+ position: relative;
+ transition: transform 0.2s;
+ }
+
+ .user_avator:active {
+ transform: scale(0.95);
+ }
+
.user_info {
margin-left: 33rpx;
}
diff --git a/utils/util.js b/utils/util.js
index 970f812..bd0071f 100755
--- a/utils/util.js
+++ b/utils/util.js
@@ -120,7 +120,7 @@ const wxH5AuthLogin = (cb) => {
})
} else {
// 未获取授权码,跳转到微信授权页面
- const appId = 'wxbf4862e929ab85b0'
+ const appId = 'wx90acb6e2aa676977'
const currentUrl = window.location.href
const redirectUri = encodeURIComponent(currentUrl.replace(/#\//, ""));
const scope = 'snsapi_userinfo'