|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
- <index ref="首页" v-show="page == '首页'" />
|
|
|
+ <index ref="首页" v-show="page == '首页'" :sa_storeid="sa_storeid" />
|
|
|
<store ref="活动" v-show="page == '活动'" />
|
|
|
<my-case ref="案例" v-show="page == '案例'" />
|
|
|
<videos ref="视频" v-show="page == '视频'" />
|
|
@@ -16,9 +16,6 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import Vue from 'vue';
|
|
|
-
|
|
|
-
|
|
|
import index from './index/index.vue'
|
|
|
import store from './index/store.vue'
|
|
|
import myCase from './index/myCase.vue'
|
|
@@ -40,15 +37,22 @@ export default {
|
|
|
user: {
|
|
|
wechatBindUserid: 0,
|
|
|
userName: ""
|
|
|
- }
|
|
|
+ },
|
|
|
+ sa_storeid: 0
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
if (options.wechatBindUserid) {
|
|
|
this.user.wechatBindUserid = options.wechatBindUserid;
|
|
|
this.user.userName = options.userName;
|
|
|
+ } else if (options.sa_storeid) {
|
|
|
+ this.sa_storeid = options.sa_storeid;
|
|
|
+ }
|
|
|
+ if (options.q) {
|
|
|
+ let data = this.getUrlParams(options.q);
|
|
|
+ if (data.wechatBindUserid) this.user = data;//绑定账号
|
|
|
+ if (data.sa_storeid) this.sa_storeid = data.sa_storeid;//锁定门店
|
|
|
}
|
|
|
- if (options.q) this.user = this.getUrlParams(options.q);
|
|
|
},
|
|
|
onShow() {
|
|
|
this.isInitializeLogin(render.bind(this))
|
|
@@ -102,11 +106,12 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
});
|
|
|
+ } else {
|
|
|
+ console.log("this.user", this.user)
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
updatePageData(itemId, page) {
|
|
|
if (this.$refs[this.page].updatePage) this.$refs.pages.onClick(itemId, page)
|
|
|
},
|