Commit abd20ca4 authored by Facius's avatar Facius

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

parent e0e0f649
......@@ -246,22 +246,26 @@ export default {
},
},
onLoad() {
this.loading = true
this.getProvinceList()
if (this.vuex_token) {
this.loading = true
this.getProvinceList()
}
},
onShow() {
let pages = getCurrentPages()
let page = pages[pages.length - 1]
let info = page.info
if (info) {
this.selected = info
page.info = null
this.visible = info.state
this.queryMyQuestionWarehouseDetail(this.selected.id)
} else {
this.queryMyQuestionWarehouseDetail(this.info.id || 0)
if (this.vuex_token) {
let pages = getCurrentPages()
let page = pages[pages.length - 1]
let info = page.info
if (info) {
this.selected = info
page.info = null
this.visible = info.state
this.queryMyQuestionWarehouseDetail(this.selected.id)
} else {
this.queryMyQuestionWarehouseDetail(this.info.id || 0)
}
this.chagefinishCount()
}
this.chagefinishCount()
},
methods: {
initData() {
......
......@@ -98,14 +98,14 @@ export default {
computed: {
detail01Image() {
return process.uniEnv.qn_base_url + 'detail01.png'
},
detail02Image() {
return process.uniEnv.qn_base_url + 'detail02.png'
},
detail03Image() {
return process.uniEnv.qn_base_url + 'detail03.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'
// },
shiherenqunImage() {
return process.uniEnv.qn_base_url + 'shiherenqun.png'
},
......@@ -125,7 +125,8 @@ export default {
return process.uniEnv.qn_base_url + 'zhutu.png'
},
images() {
return [this.detail01Image, this.detail02Image, this.detail03Image]
// return [this.detail01Image, this.detail02Image, this.detail03Image]
return [this.detail01Image]
},
buttonStyle() {
return {
......@@ -422,16 +423,17 @@ export default {
margin-top: 56rpx;
background-color: #ffffff;
border-radius: 24rpx;
padding: 56rpx 30rpx;
padding: 56rpx 24rpx 90rpx 24rpx;
text-align: left;
.outline-view {
font-size: 28rpx;
color: #5a6073;
margin-bottom: 32rpx;
text-align: center;
}
.crowd-image {
width: 622rpx;
height: 120rpx;
margin-top: 24rpx;
width: 592rpx;
height: 214rpx;
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