This commit is contained in:
yanran200730
2022-11-03 09:52:23 +08:00
parent 1a65407ef7
commit 350e85143a
7 changed files with 16 additions and 13 deletions

View File

@@ -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'),

View File

@@ -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,

View File

@@ -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]

View File

@@ -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,

View File

@@ -14,12 +14,12 @@
<div class="info">
<div class="info-item">
<h3>积分总额</h3>
<span>{{ user.integral }}</span>
<span>{{ user.integral || 0 }}</span>
<image src="https://cdn.cunwuyun.cn/wxmp/tianfuxing/nav2.png" />
</div>
<div class="info-item">
<h3>积分排名</h3>
<span>{{ user.integralOrder }}</span>
<span>{{ user.integralOrder || 0 }}</span>
<image src="https://cdn.cunwuyun.cn/wxmp/tianfuxing/nav1.png" />
</div>
</div>
@@ -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

View File

@@ -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

View File

@@ -16,7 +16,7 @@ const configs = {
dev: {
areaId: '341021104000',
areaName: '郑村镇',
baseUrl: 'http://192.168.1.87:12421'
baseUrl: 'http://192.168.1.87:59998'
}
}
// 当前选中配置