jiazhipeng 5 months ago
parent
commit
3df693dc5e
  1. 5
      pages/index/index.vue
  2. 2
      subPackages/webPage/webPage.vue

5
pages/index/index.vue

@ -292,14 +292,14 @@
} }
}, },
onLoad() { onLoad() {
}, },
onShow() { onShow() {
// id 4,(subtitle)(address) // id 4,(subtitle)(address)
this.Post({ this.Post({
id: 4 id: 4
},'/api/article/getArticleById').then(res => { },'/api/article/getArticleById').then(res => {
this.isShow = res.data.subtitle == 1 ? true : false // this.isShow = res.data.subtitle == 1 ? true : false
this.isShow = res.data.address == 1 ? true : false
}) })
}, },
onReady() { onReady() {
@ -307,6 +307,7 @@
this.getWinnowList() this.getWinnowList()
this.getCalendarList() this.getCalendarList()
this.changeType(0) this.changeType(0)
this.getLocation()
}, },
onReachBottom() { onReachBottom() {
setTimeout(() => { setTimeout(() => {

2
subPackages/webPage/webPage.vue

@ -111,6 +111,7 @@ export default {
console.log(fullUrl); console.log(fullUrl);
this.url = fullUrl this.url = fullUrl
} else { } else {
uni.getLocation({ uni.getLocation({
success: data => { success: data => {
uni.setStorageSync('location', { uni.setStorageSync('location', {
@ -129,6 +130,7 @@ export default {
this.url = fullUrl this.url = fullUrl
} }
}) })
} }
} }

Loading…
Cancel
Save