Feat(页面):页面埋点配置
This commit is contained in:
@@ -39,29 +39,32 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {countyFamous} from "@/api/product";
|
||||
import {getProducts} from "@/api/store";
|
||||
import {famousShareImage} from "@/api/share";
|
||||
import {mapGetters} from "vuex";
|
||||
import cookie from "@/utils/store/cookie";
|
||||
import {userBindParent} from "@/api/user";
|
||||
import {getUrlParam} from "@/utils/common.js";
|
||||
import {countyFamous} from '@/api/product'
|
||||
import {getProducts} from '@/api/store'
|
||||
import {famousShareImage} from '@/api/share'
|
||||
import {mapGetters} from 'vuex'
|
||||
import cookie from '@/utils/store/cookie'
|
||||
import {userBindParent} from '@/api/user'
|
||||
import {getUrlParam} from '@/utils/common.js'
|
||||
import { pageListenMixins } from '@/mixins/pageListenMixins'
|
||||
|
||||
export default {
|
||||
name: "famousList",
|
||||
name: 'FamousList',
|
||||
mixins: [pageListenMixins],
|
||||
data() {
|
||||
return {
|
||||
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||
keyword: "",
|
||||
keyword: '',
|
||||
page: 1,
|
||||
bannerList: [],
|
||||
dataList: [],
|
||||
navList: [],
|
||||
navIndex: 0,
|
||||
partnerId: null
|
||||
partnerId: null,
|
||||
pageKeyId: Object.freeze('countyFamousIndex')
|
||||
}
|
||||
},
|
||||
computed: mapGetters(["userInfo", "isLogin"]),
|
||||
computed: mapGetters(['userInfo', 'isLogin']),
|
||||
onShareAppMessage() {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
const {status, data} = await famousShareImage();
|
||||
@@ -81,11 +84,11 @@ export default {
|
||||
let obj = uni.getEnterOptionsSync();
|
||||
if (options.scene != null || obj.query.scene != null) {
|
||||
let query = options ? decodeURIComponent(options.scene) : decodeURIComponent(obj.query.scene);
|
||||
this.partnerId = getUrlParam(query, "partnerId") || null;
|
||||
this.partnerId = getUrlParam(query, 'partnerId') || null;
|
||||
}
|
||||
}
|
||||
if (this.partnerId) {
|
||||
cookie.set("spread", this.partnerId);
|
||||
cookie.set('spread', this.partnerId);
|
||||
userBindParent({spread: parseInt(this.partnerId)});
|
||||
}
|
||||
|
||||
@@ -132,7 +135,7 @@ export default {
|
||||
},
|
||||
goStory() {
|
||||
uni.navigateTo({
|
||||
url: "/pkg_product/views/famousStory"
|
||||
url: '/pkg_product/views/famousStory'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user