diff --git a/App.vue b/App.vue
index 4e03ce8..2d54195 100644
--- a/App.vue
+++ b/App.vue
@@ -5,15 +5,18 @@
plAd: true,
dotNumber: {
- }
+ },
+ apiHost: 'https://dev-app.igandan.com/app',
+ //BASE_URL='https://dev-app.igandan.com/app'
},
onLaunch(options) {
-
+ //uni.setStorageSync('apiHost', 'value')
console.log('打印options');
console.log(options);
if (options && options.referrerInfo.extraData && options.referrerInfo.extraData.token) {
uni.setStorageSync("AUTH_TOKEN_App", options.referrerInfo.extraData.token);
uni.setStorageSync("userInfo", options.referrerInfo.extraData.userInfo);
+ //getApp({allowDefault: true}).globalData.apiHost = options.referrerInfo.extraData.apiHost;
};
if (options && options.referrerInfo.extraData && options.referrerInfo.extraData.targetPath) {
uni.navigateTo({
diff --git a/package.json b/package.json
index ad874f6..0072a1b 100644
--- a/package.json
+++ b/package.json
@@ -18,6 +18,7 @@
"mobx": "^6.6.1",
"nim-web-sdk-ng": "^10.9.50",
"pinyin": "^4.0.0",
+ "uni-packing-wgt": "^1.2.3",
"uniapp-video-player": "^1.3.0",
"uview-plus": "^3.4.73",
"vconsole": "^3.15.1"
diff --git a/pages.json b/pages.json
index 1bc8774..dde06f3 100644
--- a/pages.json
+++ b/pages.json
@@ -9,16 +9,16 @@
}
},
"pages": [
- {
- "path": "pages/loading/loading",
- "style": {
- "navigationBarTitleText": "",
- "navigationStyle": "custom",
- "app": {
- "bounce": "none"
- }
- }
- },
+ // {
+ // "path": "pages/loading/loading",
+ // "style": {
+ // "navigationBarTitleText": "",
+ // "navigationStyle": "custom",
+ // "app": {
+ // "bounce": "none"
+ // }
+ // }
+ // },
{
"path": "pages/index/index",
"style": {
@@ -281,6 +281,28 @@
}
}
},
+ {
+ "path": "video/video",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarRightButton":{ "hide": true},
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
+ {
+ "path": "patientVideo/patientVideo",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarRightButton":{ "hide": true},
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
{
"path": "videoDetail/videoDetail",
"style": {
@@ -527,17 +549,7 @@
// }
// }
// },
- // {
- // "path": "patientVideo/patientVideo",
- // "style": {
- // "navigationStyle": "custom",
- // "navigationBarRightButton":{ "hide": true},
- // "navigationBarTitleText": "uni-app分页",
- // "app": {
- // "bounce": "none"
- // }
- // }
- // },
+
// {
// "path": "selectPatient/selectPatient",
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 99dd37f..cebae79 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -703,31 +703,31 @@
let url = "";
if (name == "我的患者") {
url = "/pages_app/patientMsg/patientMsg";
- sendAppMsgEvent('goPatientMsg', name);
+ //sendAppMsgEvent('goPatientMsg', name);
} else if (name == "肝胆视频") {
url = "/pages_app/video/video";
- sendAppMsgEvent('goGdVideo', name);
+ //sendAppMsgEvent('goGdVideo', name);
} else if (name == "公益咨询") {
url = "/pages_app/consult/consult";
- sendAppMsgEvent('goFreeConsult', name);
+ //sendAppMsgEvent('goFreeConsult', name);
} else if (name == "指南杂志") {
url = "/pages_app/zhinan/zhinan";
- sendAppMsgEvent('goGuide', name);
+ //sendAppMsgEvent('goGuide', name);
} else if (name == "肝胆新闻") {
url = "/pages_app/newsList/newsList";
- sendAppMsgEvent('goGdNews', name);
+ //sendAppMsgEvent('goGdNews', name);
} else if (name == "肝胆课件") {
url = "/pages_app/ppt/ppt";
- sendAppMsgEvent('goGdPpt', name);
+ //sendAppMsgEvent('goGdPpt', name);
} else if (name == "精品课") {
url = "/pages_course/course/course";
- sendAppMsgEvent('goCourse', name);
+ //sendAppMsgEvent('goCourse', name);
} else if (name == "积分商城") {
url = "/pages_goods/pointMall/pointMall";
- sendAppMsgEvent('goPointMall', name);
+ //sendAppMsgEvent('goPointMall', name);
} else if (name == "我的福利") {
url = "/pages_app/myWelfare/myWelfare";
- sendAppMsgEvent('goMyWelfare', name);
+ //sendAppMsgEvent('goMyWelfare', name);
} else if (name == "专题e站") {
const encoded = encodeURIComponent(
"https://wx.igandan.com/Esite/index.htm#/home?fromtype=doctor"
@@ -738,9 +738,11 @@
});
} else {
url = "/pages_app/myApplication/myApplication";
- sendAppMsgEvent('goMyApplication', name);
+ // sendAppMsgEvent('goMyApplication', name);
}
-
+ navTo({
+ url: url,
+ });
};
const sendAppMsg = () => {
uni.sendNativeEvent('openPage', {
diff --git a/pages_app/videoDetail/videoDetail.vue b/pages_app/videoDetail/videoDetail.vue
index 03ee63c..a9a1d87 100644
--- a/pages_app/videoDetail/videoDetail.vue
+++ b/pages_app/videoDetail/videoDetail.vue
@@ -115,9 +115,10 @@
-
+
+ 点击下载(限时5折,仅需{{videoInfo.point}}积分)
+ 查看缓存
+