Commit abd20ca4 authored by Facius's avatar Facius

fix: 首页没有token不调用接口

parent e0e0f649
...@@ -246,22 +246,26 @@ export default { ...@@ -246,22 +246,26 @@ export default {
}, },
}, },
onLoad() { onLoad() {
this.loading = true if (this.vuex_token) {
this.getProvinceList() this.loading = true
this.getProvinceList()
}
}, },
onShow() { onShow() {
let pages = getCurrentPages() if (this.vuex_token) {
let page = pages[pages.length - 1] let pages = getCurrentPages()
let info = page.info let page = pages[pages.length - 1]
if (info) { let info = page.info
this.selected = info if (info) {
page.info = null this.selected = info
this.visible = info.state page.info = null
this.queryMyQuestionWarehouseDetail(this.selected.id) this.visible = info.state
} else { this.queryMyQuestionWarehouseDetail(this.selected.id)
this.queryMyQuestionWarehouseDetail(this.info.id || 0) } else {
this.queryMyQuestionWarehouseDetail(this.info.id || 0)
}
this.chagefinishCount()
} }
this.chagefinishCount()
}, },
methods: { methods: {
initData() { initData() {
......
...@@ -98,14 +98,14 @@ export default { ...@@ -98,14 +98,14 @@ export default {
computed: { computed: {
detail01Image() { detail01Image() {
return process.uniEnv.qn_base_url + 'detail01.png' return process.uniEnv.qn_base_url + 'shiherenqun-d.png'
},
detail02Image() {
return process.uniEnv.qn_base_url + 'detail02.png'
},
detail03Image() {
return process.uniEnv.qn_base_url + 'detail03.png'
}, },
// detail02Image() {
// return process.uniEnv.qn_base_url + 'detail02.png'
// },
// detail03Image() {
// return process.uniEnv.qn_base_url + 'detail03.png'
// },
shiherenqunImage() { shiherenqunImage() {
return process.uniEnv.qn_base_url + 'shiherenqun.png' return process.uniEnv.qn_base_url + 'shiherenqun.png'
}, },
...@@ -125,7 +125,8 @@ export default { ...@@ -125,7 +125,8 @@ export default {
return process.uniEnv.qn_base_url + 'zhutu.png' return process.uniEnv.qn_base_url + 'zhutu.png'
}, },
images() { images() {
return [this.detail01Image, this.detail02Image, this.detail03Image] // return [this.detail01Image, this.detail02Image, this.detail03Image]
return [this.detail01Image]
}, },
buttonStyle() { buttonStyle() {
return { return {
...@@ -422,16 +423,17 @@ export default { ...@@ -422,16 +423,17 @@ export default {
margin-top: 56rpx; margin-top: 56rpx;
background-color: #ffffff; background-color: #ffffff;
border-radius: 24rpx; border-radius: 24rpx;
padding: 56rpx 30rpx; padding: 56rpx 24rpx 90rpx 24rpx;
text-align: left;
.outline-view { .outline-view {
font-size: 28rpx; font-size: 28rpx;
color: #5a6073; color: #5a6073;
margin-bottom: 32rpx; text-align: center;
} }
.crowd-image { .crowd-image {
width: 622rpx; width: 592rpx;
height: 120rpx; height: 214rpx;
margin-top: 24rpx; margin-top: 70rpx;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment