This commit is contained in:
liuyuan
2025-07-22 13:41:20 +08:00
parent 2c99d9dbbf
commit 6fa247d0fa
18 changed files with 90 additions and 65 deletions

View File

@@ -18,6 +18,7 @@ export default {
};
},
onLaunch: function() {
uni.setStorageSync("isJump", null);
// 禁止横屏
// #ifdef APP-PLUS
plus.screen.lockOrientation("portrait-primary");

View File

@@ -73,12 +73,12 @@ export default {
return {
path: "",
navigationList: [
{
"pagePath": "pages/home/index",
"iconPath": "static/tab/icon_tab1.png",
"selectedIconPath": "static/tab/icon_tab1_a.png",
"text": "智慧医疗"
},
// {
// "pagePath": "pages/home/index",
// "iconPath": "static/tab/icon_tab1.png",
// "selectedIconPath": "static/tab/icon_tab1_a.png",
// "text": "智慧医疗"
// },
{
"pagePath": "pages/doctors/index",
"iconPath": "static/tab/icon_tab3.png",

View File

@@ -5,9 +5,11 @@ export default {
// 主页页面的页面路径
// 关联功能:打开的页面只有一个的时候右上角自动显示返回首页按钮,下面这个数组是排除显示返回首页的页面。
// 主页使用场景:小程序分享出去的页面,用户点击开是分享页面,很多情况下是没有返回首页按钮的
mainPagePath: ['pages/home/index'],
// mainPagePath: ['pages/home/index'],
mainPagePath: ['pages/doctors/index'],
//返回首页的地址
homePath: '/pages/home/index',
// homePath: '/pages/home/index',
homePath: '/pages/doctors/index',
/****************以下是zhouWei-APPUpdate插件配置*******************/
// 发起ajax请求获取服务端版本号

View File

@@ -156,7 +156,7 @@ $http.dataFactory = async function (res) {
// 返回正确的结果(then接受数据)
return Promise.resolve(httpData);
} else if (httpData.code == "401") {
if (uni.getStorageSync('guidePages') == 2) {
// if (uni.getStorageSync('guidePages') == 2) {
var jump = uni.getStorageSync('isJump') //以下解决多次跳转登录页的重点
if (!jump) {
//以下做token失效的操作
@@ -178,7 +178,7 @@ $http.dataFactory = async function (res) {
}, 100);
uni.setStorageSync('isJump', 'true')
}
}
// }
} else if (httpData.code == "500" && !httpData.msg) {
//500

View File

@@ -62,7 +62,9 @@ export const wxShare = function(data = {}) {
if (data.path && typeof(data.path) == "string") {
shareInfo.path = data.path;
} else if (data.path != 1) {
shareInfo.path = "pages/home/index";
// shareInfo.path = "pages/home/index";
shareInfo.path = "pages/doctors/index";
}
if (data.imageUrl) {
shareInfo.imageUrl = data.imageUrl;

View File

@@ -2,8 +2,8 @@
"name" : "太湖云医",
"appid" : "__UNI__1B1584A",
"description" : "太湖云医",
"versionName" : "1.0.0",
"versionCode" : "100",
"versionName" : "1.0.03",
"versionCode" : 1003,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@@ -1,9 +1,21 @@
{
"pages": [ //pages数组中第一项表示应用启动页参考https://uniapp.dcloud.io/collocation/pages
// {
// "path": "pages/home/index",
// "style": {
// "navigationBarTitleText": "首页",
// "app-plus": {
// "bounce": "none",
// "titleNView": false,
// "popGesture": "none"
// }
// }
// },
{
"path": "pages/home/index",
"path": "pages/doctors/index",
"style": {
"navigationBarTitleText": "首页",
"navigationBarTitleText": "名医精彩",
"enablePullDownRefresh": true, // 禁止下拉刷新
"app-plus": {
"bounce": "none",
"titleNView": false,
@@ -153,18 +165,7 @@
}
}
},
{
"path": "pages/doctors/index",
"style": {
"navigationBarTitleText": "名医精彩",
"enablePullDownRefresh": true, // 禁止下拉刷新
"app-plus": {
"bounce": "none",
"titleNView": false,
"popGesture": "none"
}
}
},
{
"path": "pages/wumen/medicaldes",
@@ -421,10 +422,11 @@
"selectedColor": "#5188e5",
"borderStyle": "black",
"backgroundColor": "#fff",
"list": [{
"pagePath": "pages/home/index",
"text": "智慧医疗"
},
"list": [
// {
// "pagePath": "pages/home/index",
// "text": "智慧医疗"
// },
{
"pagePath": "pages/doctors/index",
"text": "名医精彩"

View File

@@ -136,8 +136,11 @@
backClick() {
if (this.options.backType == "order") {
// uni.switchTab({
// url: "/pages/home/index",
// });
uni.switchTab({
url: "/pages/home/index",
url: "/pages/doctors/index",
});
} else {
uni.navigateBack({

View File

@@ -309,8 +309,11 @@ export default {
this.isLongPress = false; //重置状态
}
uni.setStorageSync('homeParams', { data: item, index: index, type: 'patient' });
// uni.switchTab({
// url: '/pages/home/index'
// });
uni.switchTab({
url: '/pages/home/index'
url: '/pages/doctors/index'
});
},
//触摸开始(防抖)

View File

@@ -22,7 +22,7 @@
<br clear="both" />
</view>
<view class="modal_vip" v-if="$platform=='android'">
<!-- <view class="modal_vip" v-if="$platform=='android'">
<template>
<view class="chong_zhi boxShadow box_fillet vip_box">
<view class="noVip">
@@ -47,7 +47,7 @@
</view>
</view>
</template>
</view>
</view> -->
<view class="recharge_block">
<view class="chong_zhi boxShadow box_fillet chongzhi_box">
@@ -130,16 +130,16 @@ export default {
return {
userMes: {},
pageList: [
{
name: "我的病历夹",
url: "/pages/folder/index",
type: "pageJump",
},
{
name: "会话记录",
url: "/pages/my/recordsList",
type: "pageJump",
},
// {
// name: "我的病历夹",
// url: "/pages/folder/index",
// type: "pageJump",
// },
// {
// name: "会话记录",
// url: "/pages/my/recordsList",
// type: "pageJump",
// },
{
name: "我的订单",
url: "/pages/order/index",

View File

@@ -64,8 +64,11 @@ export default {
//点击会话跳转到首页记录
clickRecord(item, index){
uni.setStorageSync('homeParams', { data: item, index: index });
// uni.switchTab({
// url: '/pages/home/index'
// });
uni.switchTab({
url: '/pages/home/index'
url: '/pages/doctors/index'
});
},
onPageJump(url) {

View File

@@ -417,8 +417,11 @@ export default {
setTimeout(() => {
uni.setStorageSync("isJump", "false");
// uni.reLaunch({
// url: "/pages/home/index"
// });
uni.reLaunch({
url: "/pages/home/index"
url: "/pages/doctors/index"
});
}, 100);
}).catch(e => {
@@ -456,8 +459,11 @@ export default {
title: "登录成功",
});
setTimeout(() => {
// uni.reLaunch({
// url: "/pages/home/index"
// });
uni.reLaunch({
url: "/pages/home/index"
url: "/pages/doctors/index"
});
}, 500);
}).catch(e => {

View File

@@ -424,8 +424,11 @@ export default {
if (this.homeState == 3000) {
this.$emit("homeClick");
} else {
// uni.switchTab({
// url: '/pages/home/index',
// });
uni.switchTab({
url: '/pages/home/index',
url: '/pages/doctors/index',
});
}
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long