bug
This commit is contained in:
@@ -112,7 +112,7 @@
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
getInfo () {
|
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) {
|
if (res.code === 0) {
|
||||||
this.info = res.data
|
this.info = res.data
|
||||||
|
|
||||||
@@ -163,7 +163,7 @@
|
|||||||
if (!this.info.exitClock && (times > outSTimes && times < outETimes)) {
|
if (!this.info.exitClock && (times > outSTimes && times < outETimes)) {
|
||||||
type = 1
|
type = 1
|
||||||
}
|
}
|
||||||
this.$instance.post(`/appactivityinfo/clock`, {
|
this.$instance.post(`/api/appactivityinfo/clock`, {
|
||||||
address: this.address,
|
address: this.address,
|
||||||
activityId: this.id,
|
activityId: this.id,
|
||||||
clockTime: this.$dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'),
|
clockTime: this.$dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'),
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
if (this.isMore) return
|
if (this.isMore) return
|
||||||
|
|
||||||
this.$loading()
|
this.$loading()
|
||||||
this.$instance.post(`/appactivityinfo/list`, null, {
|
this.$instance.post(`/api/appactivityinfo/list`, null, {
|
||||||
withoutToken: true,
|
withoutToken: true,
|
||||||
params: {
|
params: {
|
||||||
current: this.current,
|
current: this.current,
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ export default {
|
|||||||
complete: () => {
|
complete: () => {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.imgList.length === total && this.hideStatus) {
|
if (this.imgList.length === total && this.hideStatus) {
|
||||||
this.$instance.post(`/appwechatescalation/addOrUpdate`, {
|
this.$instance.post(`/api/appwechatescalation/addOrUpdate`, {
|
||||||
type: type,
|
type: type,
|
||||||
openId: this.user.openId,
|
openId: this.user.openId,
|
||||||
accessUrl: this.imgList[0]
|
accessUrl: this.imgList[0]
|
||||||
|
|||||||
@@ -137,7 +137,7 @@
|
|||||||
complete: () => {
|
complete: () => {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.imgList.length === total && this.hideStatus) {
|
if (this.imgList.length === total && this.hideStatus) {
|
||||||
this.$instance.post(`/appwechatescalation/addOrUpdate`, {
|
this.$instance.post(`/api/appwechatescalation/addOrUpdate`, {
|
||||||
type: 0,
|
type: 0,
|
||||||
listType: 0,
|
listType: 0,
|
||||||
openId: this.user.openId,
|
openId: this.user.openId,
|
||||||
@@ -166,7 +166,7 @@
|
|||||||
getList () {
|
getList () {
|
||||||
if (this.isMore) return
|
if (this.isMore) return
|
||||||
|
|
||||||
this.$instance.post(`/appwechatescalation/list`, null, {
|
this.$instance.post(`/api/appwechatescalation/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
current: this.current,
|
current: this.current,
|
||||||
size: 10,
|
size: 10,
|
||||||
|
|||||||
@@ -14,12 +14,12 @@
|
|||||||
<div class="info">
|
<div class="info">
|
||||||
<div class="info-item">
|
<div class="info-item">
|
||||||
<h3>积分总额</h3>
|
<h3>积分总额</h3>
|
||||||
<span>{{ user.integral }}</span>
|
<span>{{ user.integral || 0 }}</span>
|
||||||
<image src="https://cdn.cunwuyun.cn/wxmp/tianfuxing/nav2.png" />
|
<image src="https://cdn.cunwuyun.cn/wxmp/tianfuxing/nav2.png" />
|
||||||
</div>
|
</div>
|
||||||
<div class="info-item">
|
<div class="info-item">
|
||||||
<h3>积分排名</h3>
|
<h3>积分排名</h3>
|
||||||
<span>{{ user.integralOrder }}</span>
|
<span>{{ user.integralOrder || 0 }}</span>
|
||||||
<image src="https://cdn.cunwuyun.cn/wxmp/tianfuxing/nav1.png" />
|
<image src="https://cdn.cunwuyun.cn/wxmp/tianfuxing/nav1.png" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -85,7 +85,10 @@
|
|||||||
|
|
||||||
toLogin () {
|
toLogin () {
|
||||||
if (!this.token) {
|
if (!this.token) {
|
||||||
this.autoLogin()
|
this.autoLogin().then(() => {
|
||||||
|
this.getList()
|
||||||
|
this.getUserInfo()
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
this.getUserInfo()
|
this.getUserInfo()
|
||||||
}
|
}
|
||||||
@@ -94,7 +97,7 @@
|
|||||||
getList () {
|
getList () {
|
||||||
if (this.isMore) return
|
if (this.isMore) return
|
||||||
|
|
||||||
this.$instance.post(`/appwechatintegraldetail/list`, null, {
|
this.$instance.post(`/api/appwechatintegraldetail/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
current: this.current,
|
current: this.current,
|
||||||
size: 10
|
size: 10
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import instance from "dvcp-wui/utils/http";
|
|||||||
instance.defaults.baseURL = setting.baseUrl
|
instance.defaults.baseURL = setting.baseUrl
|
||||||
|
|
||||||
instance.interceptors.request.use(config => {
|
instance.interceptors.request.use(config => {
|
||||||
if (config.baseURL === 'http://192.168.1.87:12421') {
|
if (config.baseURL === 'http://192.168.1.87:59998') {
|
||||||
config.url = '/api' + config.url.replace(/(app|auth|admin)\//, "")
|
config.url = config.url.replace(/(app|auth|admin|api)\//, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const configs = {
|
|||||||
dev: {
|
dev: {
|
||||||
areaId: '341021104000',
|
areaId: '341021104000',
|
||||||
areaName: '郑村镇',
|
areaName: '郑村镇',
|
||||||
baseUrl: 'http://192.168.1.87:12421'
|
baseUrl: 'http://192.168.1.87:59998'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 当前选中配置
|
// 当前选中配置
|
||||||
|
|||||||
Reference in New Issue
Block a user