diff --git a/src/project/tianfuxing/AppHome/Activity.vue b/src/project/tianfuxing/AppHome/Activity.vue index 1f38164..f072460 100644 --- a/src/project/tianfuxing/AppHome/Activity.vue +++ b/src/project/tianfuxing/AppHome/Activity.vue @@ -112,7 +112,7 @@ methods: { getInfo () { - this.$instance.post(`/appactivityinfo/queryDetailById?id=${this.id}`).then(res => { + this.$instance.post(`/api/appactivityinfo/queryDetailById?id=${this.id}`).then(res => { if (res.code === 0) { this.info = res.data @@ -163,7 +163,7 @@ if (!this.info.exitClock && (times > outSTimes && times < outETimes)) { type = 1 } - this.$instance.post(`/appactivityinfo/clock`, { + this.$instance.post(`/api/appactivityinfo/clock`, { address: this.address, activityId: this.id, clockTime: this.$dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'), diff --git a/src/project/tianfuxing/AppHome/AppHome.vue b/src/project/tianfuxing/AppHome/AppHome.vue index d8df8bc..eeeb9a8 100644 --- a/src/project/tianfuxing/AppHome/AppHome.vue +++ b/src/project/tianfuxing/AppHome/AppHome.vue @@ -88,7 +88,7 @@ if (this.isMore) return this.$loading() - this.$instance.post(`/appactivityinfo/list`, null, { + this.$instance.post(`/api/appactivityinfo/list`, null, { withoutToken: true, params: { current: this.current, diff --git a/src/project/tianfuxing/AppHome/Culture.vue b/src/project/tianfuxing/AppHome/Culture.vue index 1a3bef7..4340f18 100644 --- a/src/project/tianfuxing/AppHome/Culture.vue +++ b/src/project/tianfuxing/AppHome/Culture.vue @@ -139,7 +139,7 @@ export default { complete: () => { this.$nextTick(() => { if (this.imgList.length === total && this.hideStatus) { - this.$instance.post(`/appwechatescalation/addOrUpdate`, { + this.$instance.post(`/api/appwechatescalation/addOrUpdate`, { type: type, openId: this.user.openId, accessUrl: this.imgList[0] diff --git a/src/project/tianfuxing/AppHome/PhotoReport.vue b/src/project/tianfuxing/AppHome/PhotoReport.vue index dde7505..216e56b 100644 --- a/src/project/tianfuxing/AppHome/PhotoReport.vue +++ b/src/project/tianfuxing/AppHome/PhotoReport.vue @@ -137,7 +137,7 @@ complete: () => { this.$nextTick(() => { if (this.imgList.length === total && this.hideStatus) { - this.$instance.post(`/appwechatescalation/addOrUpdate`, { + this.$instance.post(`/api/appwechatescalation/addOrUpdate`, { type: 0, listType: 0, openId: this.user.openId, @@ -166,7 +166,7 @@ getList () { if (this.isMore) return - this.$instance.post(`/appwechatescalation/list`, null, { + this.$instance.post(`/api/appwechatescalation/list`, null, { params: { current: this.current, size: 10, diff --git a/src/project/tianfuxing/AppMy/AppMy.vue b/src/project/tianfuxing/AppMy/AppMy.vue index e5f3900..6011d35 100644 --- a/src/project/tianfuxing/AppMy/AppMy.vue +++ b/src/project/tianfuxing/AppMy/AppMy.vue @@ -14,12 +14,12 @@

积分总额

- {{ user.integral }} + {{ user.integral || 0 }}

积分排名

- {{ user.integralOrder }} + {{ user.integralOrder || 0 }}
@@ -85,7 +85,10 @@ toLogin () { if (!this.token) { - this.autoLogin() + this.autoLogin().then(() => { + this.getList() + this.getUserInfo() + }) } else { this.getUserInfo() } @@ -94,7 +97,7 @@ getList () { if (this.isMore) return - this.$instance.post(`/appwechatintegraldetail/list`, null, { + this.$instance.post(`/api/appwechatintegraldetail/list`, null, { params: { current: this.current, size: 10 diff --git a/src/utils/axios.js b/src/utils/axios.js index 1189fef..45ee765 100644 --- a/src/utils/axios.js +++ b/src/utils/axios.js @@ -6,8 +6,8 @@ import instance from "dvcp-wui/utils/http"; instance.defaults.baseURL = setting.baseUrl instance.interceptors.request.use(config => { - if (config.baseURL === 'http://192.168.1.87:12421') { - config.url = '/api' + config.url.replace(/(app|auth|admin)\//, "") + if (config.baseURL === 'http://192.168.1.87:59998') { + config.url = config.url.replace(/(app|auth|admin|api)\//, "") } return config diff --git a/src/utils/config.js b/src/utils/config.js index c5da9df..f686029 100644 --- a/src/utils/config.js +++ b/src/utils/config.js @@ -16,7 +16,7 @@ const configs = { dev: { areaId: '341021104000', areaName: '郑村镇', - baseUrl: 'http://192.168.1.87:12421' + baseUrl: 'http://192.168.1.87:59998' } } // 当前选中配置