diff --git a/common/api.js b/common/api.js index 5cdf8a0..dfe9c87 100644 --- a/common/api.js +++ b/common/api.js @@ -38,6 +38,10 @@ export const getDeviceListDays = (data) => { export const getVersion = (data) => { return post('watch/version/index', data) } +// 获取版本号 +export const getIndexData = (data) => { + return post('watch/device/getIndexData', data) +} export default { @@ -48,5 +52,6 @@ export default { getBindUserDeviceId, getDayInfo, getDeviceListDays, - getVersion + getVersion, + getIndexData } \ No newline at end of file diff --git a/config/request.js b/config/request.js index 849ebce..3e8bfa2 100644 --- a/config/request.js +++ b/config/request.js @@ -77,7 +77,7 @@ export default () => { uni.$u.toast(data.msg) } - if (data.code == 1005) { + if (data.code == 7777) { uni.showToast({ mask: true, title: '请重新登录', diff --git a/manifest.json b/manifest.json index 7440235..95c2b91 100644 --- a/manifest.json +++ b/manifest.json @@ -116,7 +116,7 @@ "disableHostCheck" : true, // 开启可以用自己的域名 "proxy" : { "/watch" : { - "target" : "http://test.sc2.agrimedia.cn", + "target" : "https://ai.agrimedia.cn", "changeOrigin" : true, "secure" : false } diff --git a/pages/index/detail.vue b/pages/index/detail.vue index 00d9845..3a7e538 100644 --- a/pages/index/detail.vue +++ b/pages/index/detail.vue @@ -1,5 +1,5 @@