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

@@ -2,10 +2,10 @@ let baseUrl = "";
let socketUrl = "";
if (process.env.NODE_ENV === 'development') {
// 开发环境
//baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
// baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
baseUrl = "https://api.nuttyreading.com/"; //线上正式
} else if (process.env.NODE_ENV === 'production') {
//baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
// baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
baseUrl = "https://api.nuttyreading.com/"; //线上正式
}
const courtConfig = {

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;