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