From eb070953c03b5f0fe45d6003ea89c6197ed10800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Sun, 13 Jun 2021 17:54:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8A=9F=E8=83=BD=E4=BB=8B?= =?UTF-8?q?=E7=BB=8D=E5=88=97=E8=A1=A8,=E4=BC=98=E5=8C=96=E5=85=B3?= =?UTF-8?q?=E4=BA=8E=E6=88=91=E4=BB=AC=E9=A1=B5=E9=9D=A2=E3=80=82=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=88=86=E4=BA=ABios=E5=BA=94=E7=94=A8id=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/message.js | 17 +++- config/api.js | 4 +- config/config.js | 3 +- pages.json | 7 ++ pages/mine/set/editionIntro.vue | 118 ++++++++++++++++--------- pages/mine/set/notify.vue | 39 -------- pages/mine/set/versionFunctionList.vue | 57 ++++++++++++ plugins/APPUpdate/index.js | 4 +- utils/request.js | 1 - 9 files changed, 162 insertions(+), 88 deletions(-) delete mode 100644 pages/mine/set/notify.vue create mode 100644 pages/mine/set/versionFunctionList.vue diff --git a/api/message.js b/api/message.js index 4c0d41d..b7cc5e8 100644 --- a/api/message.js +++ b/api/message.js @@ -67,15 +67,28 @@ export function getLogisticsMessages(params) { /** - * TODO 获取版本更新信息 暂无此功能。后续会优化更新 * @param appType * @returns {AxiosPromise} * */ -export function getAppVersionList(appType) { + export function getAppVersion(appType) { return http.request({ url: `/appVersion/${appType}`, method: Method.GET, type:"manager" }); } + +/** + * @param appType + * @returns {AxiosPromise} + * + */ + export function getAppVersionList(type,data) { + return http.request({ + url: `/appVersion/appVersion/${type}`, + method: Method.GET, + type:"manager", + data + }); +} diff --git a/config/api.js b/config/api.js index 22ca38d..7ebeda9 100644 --- a/config/api.js +++ b/config/api.js @@ -4,8 +4,8 @@ */ // 开发环境 const dev = { - common: 'http://192.168.0.109:8890', - buyer: 'http://192.168.0.109:8888', + common: 'http://192.168.0.100:8890', + buyer: 'http://192.168.0.100:8888', // common: "https://common-api.pickmall.cn", // buyer: "https://buyer-api.pickmall.cn", }; diff --git a/config/config.js b/config/config.js index e1cf681..9cadd62 100644 --- a/config/config.js +++ b/config/config.js @@ -8,5 +8,6 @@ export default { appSecret: "6dfbe0c72380dce5d49d65b3c91059b1", //可在 manifest.json 查看 aMapKey: "d649892b3937a5ad20b76dacb2bcb5bd", //在高德中申请web端key scanAuthNavigation:['https://m-b2b2c.pickmall.cn'], //扫码认证跳转域名配置 会根据此处配置的路由进行跳转 - iosAppId:"id1564638363" //AppStore的应用地址id 具体在分享->拷贝链接中查看 + iosAppId:"id1564638363", //AppStore的应用地址id 具体在分享->拷贝链接中查看 + logo:"https://lilishop-oss.oss-cn-beijing.aliyuncs.com/4c864e133c2944efad1f7282ac8a3b9e.png" //logo地址 }; diff --git a/pages.json b/pages.json index 91a1c48..96517d0 100644 --- a/pages.json +++ b/pages.json @@ -199,6 +199,13 @@ "navigationBarTitleText": "地址管理" } }, + { + "path": "set/versionFunctionList", + "style": { + "navigationBarTitleText": "功能介绍" + } + }, + { "path": "set/securityCenter/fingerLogin", "style": { diff --git a/pages/mine/set/editionIntro.vue b/pages/mine/set/editionIntro.vue index c158c6a..eaf9df8 100644 --- a/pages/mine/set/editionIntro.vue +++ b/pages/mine/set/editionIntro.vue @@ -1,17 +1,20 @@ -// TODO 第一版本暂无此功能 后续优化以及更新 + - - diff --git a/pages/mine/set/versionFunctionList.vue b/pages/mine/set/versionFunctionList.vue new file mode 100644 index 0000000..08258bd --- /dev/null +++ b/pages/mine/set/versionFunctionList.vue @@ -0,0 +1,57 @@ + + + + + \ No newline at end of file diff --git a/plugins/APPUpdate/index.js b/plugins/APPUpdate/index.js index fb7a54b..363b6c5 100644 --- a/plugins/APPUpdate/index.js +++ b/plugins/APPUpdate/index.js @@ -2,7 +2,7 @@ /**** 此文件说明请看注释 *****/ // 可以用自己项目的请求方法 // 请求配置说明:https://ext.dcloud.net.cn/plugin?id=822 -import { getAppVersionList } from "@/api/message.js"; +import { getAppVersion } from "@/api/message.js"; const platform = uni.getSystemInfoSync().platform; // 主颜色 @@ -28,7 +28,7 @@ export const getServerNo = function (callback) { platform == "android" ? (type = "ANDROID") : (type = "IOS"); - getAppVersionList(type).then((res) => { + getAppVersion(type).then((res) => { if (res.data.success && res.data.result.downloadUrl) { let response = res.data.result; let result = {}; diff --git a/utils/request.js b/utils/request.js index 0825b42..2b03fbf 100644 --- a/utils/request.js +++ b/utils/request.js @@ -189,7 +189,6 @@ http.interceptors.response.use( /* 请求之后拦截器。可以使用async await 做异步操作 */ // token存在并且token过期 let token = storage.getAccessToken(); - console.warn(token) if ( (token && response.statusCode === 403) || response.data.status === 403