|
@@ -137,6 +137,8 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <!-- 活动弹窗 -->
|
|
|
|
+ <activityAlert :show="isActivity" @click="handleClick" @cancel="handleCancelClick"></activityAlert>
|
|
<!-- 透明模态层 -->
|
|
<!-- 透明模态层 -->
|
|
<modal-layer v-if='modallayer'></modal-layer>
|
|
<modal-layer v-if='modallayer'></modal-layer>
|
|
</view>
|
|
</view>
|
|
@@ -147,6 +149,7 @@
|
|
import authorize from '@/common/config/authorize.js'
|
|
import authorize from '@/common/config/authorize.js'
|
|
import modalLayer from "@/components/modal-layer"
|
|
import modalLayer from "@/components/modal-layer"
|
|
import cmCustom from '@/components/cm-module/home/cm-custom.vue'
|
|
import cmCustom from '@/components/cm-module/home/cm-custom.vue'
|
|
|
|
+ import activityAlert from '@/components/cm-module/activity/activity_on_1.vue'
|
|
import uniStars from '@/components/uni-stars/uni-stars.vue'
|
|
import uniStars from '@/components/uni-stars/uni-stars.vue'
|
|
import { userInfoLogin, queryHomeInfo } from "@/api/use.js"
|
|
import { userInfoLogin, queryHomeInfo } from "@/api/use.js"
|
|
import { queryPreferred } from "@/api/product.js"
|
|
import { queryPreferred } from "@/api/product.js"
|
|
@@ -157,6 +160,7 @@
|
|
modalLayer,
|
|
modalLayer,
|
|
cmCustom,
|
|
cmCustom,
|
|
uniStars,
|
|
uniStars,
|
|
|
|
+ activityAlert
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -212,7 +216,7 @@
|
|
|
|
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- ...mapState(['hasLogin','userInfo','isWxAuthorize'])
|
|
|
|
|
|
+ ...mapState(['hasLogin','userInfo','isActivity'])
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapMutations(['login','logout']),
|
|
...mapMutations(['login','logout']),
|
|
@@ -289,6 +293,12 @@
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ handleClick(){
|
|
|
|
+ this.$api.navigateTo(`/h5/pages/activity/activity_mid`)
|
|
|
|
+ },
|
|
|
|
+ handleCancelClick(data){
|
|
|
|
+ this.$store.commit('setActivity',data)
|
|
|
|
+ },
|
|
//分类导航跳转
|
|
//分类导航跳转
|
|
navToListPage(nav){
|
|
navToListPage(nav){
|
|
let self = this;
|
|
let self = this;
|