tijiao
This commit is contained in:
1
App.vue
1
App.vue
@@ -18,6 +18,7 @@ export default {
|
||||
};
|
||||
},
|
||||
onLaunch: function() {
|
||||
uni.setStorageSync("isJump", null);
|
||||
// 禁止横屏
|
||||
// #ifdef APP-PLUS
|
||||
plus.screen.lockOrientation("portrait-primary");
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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请求获取服务端版本号
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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" : {
|
||||
|
||||
38
pages.json
38
pages.json
@@ -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": "名医精彩"
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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'
|
||||
});
|
||||
},
|
||||
//触摸开始(防抖)
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
@@ -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
16
unpackage/dist/build/app-plus/app-service.js
vendored
16
unpackage/dist/build/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
6
unpackage/dist/build/app-plus/app-view.js
vendored
6
unpackage/dist/build/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/build/app-plus/manifest.json
vendored
2
unpackage/dist/build/app-plus/manifest.json
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user