|
|
@ -8,15 +8,29 @@ |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
src: '' |
|
|
|
src: '', |
|
|
|
isShow: true, |
|
|
|
} |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.checkIsLoginJdsz().then(res => { |
|
|
|
if(res) { |
|
|
|
this.src = 'https://chang-map.js-dyyj.com?token=' + res |
|
|
|
// 后台文章id 4,副标题(subtitle)和地址(address)切换 |
|
|
|
this.Post({ |
|
|
|
id: 4 |
|
|
|
},'/api/article/getArticleById').then(res => { |
|
|
|
// this.isShow = res.data.subtitle == 1 ? true : false |
|
|
|
this.isShow = res.data.address == 1 ? true : false |
|
|
|
if (this.isShow) { |
|
|
|
this.checkIsLoginJdsz().then(res => { |
|
|
|
if(res) { |
|
|
|
this.src = 'https://chang-map.js-dyyj.com?token=' + res |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.src = "https://chang-map.js-dyyj.com" |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// 必须登录 |
|
|
|
// let userInfo = (uni.getStorageSync('userInfo') && JSON.parse(uni.getStorageSync('userInfo'))) || this.$store.state.user.userInfo || {} |
|
|
|
// console.log(userInfo) |
|
|
|