Browse Source

首页活动

master
jiazhipeng 2 months ago
parent
commit
16c42a0462
  1. 6
      pages/index/index.vue
  2. 22
      pages/map/map.vue

6
pages/index/index.vue

@ -311,8 +311,8 @@
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 this.isShow = res.data.address == 1 ? true : false
}) })
}, },
onReady() { onReady() {
@ -533,7 +533,7 @@
getHotList() { getHotList() {
if(this.typeIndex == 1) { if(this.typeIndex == 1) {
this.Post({ this.Post({
date: this.getNowTime(new Date()), end_time: this.getNowTime(new Date()),
offset: this.hotList.length, offset: this.hotList.length,
limit:this.limit, limit:this.limit,
type_id: 7, type_id: 7,

22
pages/map/map.vue

@ -8,15 +8,29 @@
export default { export default {
data() { data() {
return { return {
src: '' src: '',
isShow: true,
} }
}, },
onShow() { onShow() {
this.checkIsLoginJdsz().then(res => { // id 4,(subtitle)(address)
if(res) { this.Post({
this.src = 'https://chang-map.js-dyyj.com?token=' + res 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 || {} // let userInfo = (uni.getStorageSync('userInfo') && JSON.parse(uni.getStorageSync('userInfo'))) || this.$store.state.user.userInfo || {}
// console.log(userInfo) // console.log(userInfo)

Loading…
Cancel
Save