Feat(页面):页面埋点配置

This commit is contained in:
lifizer
2024-06-17 23:13:22 +08:00
parent 19914b5b0d
commit cef0177716
55 changed files with 552 additions and 377 deletions
+9 -7
View File
@@ -17,24 +17,26 @@
</template>
<script>
import {getImages, getShopData} from "@/api/join";
import {getImages, getShopData} from '@/api/join'
import { pageListenMixins } from '@/mixins/pageListenMixins'
export default {
name: "pkgJoinIndex",
name: 'PkgJoinIndex',
mixins: [pageListenMixins],
data() {
return {
webUrl: this.$VUE_APP_RESOURCES_URL,
partnerId: "",
partnerType: "",
partnerId: '',
partnerType: '',
hotelId: null,
hasHotel: null,
hasSupplier: null,
hasWholesaler: null,
images: null
images: null,
pageKeyId: Object.freeze('merchantApplyIndex')
}
},
onLoad(options) {
this.partnerId = options.partnerId || "";
this.partnerId = options.partnerId || ''
getImages().then(({data}) => this.images = data);
getShopData(this.partnerId).then(({data}) => {
this.partnerType = data.partnerType;
+4 -1
View File
@@ -310,6 +310,7 @@
<script>
import CitySelect from "@/components/CitySelect"
import { pageListenMixins } from '@/mixins/pageListenMixins'
import {
getShopData,
getShopInfo,
@@ -332,6 +333,7 @@ export default {
components: {
CitySelect
},
mixins: [pageListenMixins],
data() {
return {
partnerId: null,
@@ -441,7 +443,8 @@ export default {
reviewStatus: null,
stateTitle: '',
stateType: 'primary',
isPass: false
isPass: false,
pageKeyId: Object.freeze('merchantApplyHotel')
}
},
onLoad(options) {
+16 -6
View File
@@ -430,12 +430,14 @@ import {
uploadImage,
chooseVideoToUpload
} from "@/utils"
import { pageListenMixins } from '@/mixins/pageListenMixins'
export default {
name: "pkgJoinSupplier",
name: "PkgJoinSupplier",
components: {
CitySelect
},
mixins: [pageListenMixins],
data() {
return {
partnerId: "",
@@ -614,15 +616,23 @@ export default {
reviewStatus: null,
stateTitle: "",
stateType: "primary",
isPass: false
isPass: false,
pageKeyId: ''
}
},
onLoad(options) {
this.partnerId = options.partnerId || "";
this.formSupplier.subType = options.type;
this.infoTitle = options.type === "goods_supplier" ? "特产" : "文玩";
this.partnerId = options.partnerId || ''
const type = options.type
this.formSupplier.subType = type
if (type === 'goods_supplier') {
this.infoTitle = '特产'
this.pageKeyId = 'merchantApplyGoodsSupplier'
} else {
this.infoTitle = '文玩'
this.pageKeyId = 'merchantApplyWenwanSupplier'
}
uni.setNavigationBarTitle({
title: this.infoTitle + "供应商入驻"
title: this.infoTitle + '供应商入驻'
})
this.init();
},
+4 -1
View File
@@ -156,12 +156,14 @@ import CitySelect from "@/components/CitySelect";
import {getShopData, getWholesaler, removeApply, saveWholesaler} from "@/api/join";
import {getCity, registerVerify} from "@/api/user";
import {chooseImage} from "@/utils";
import { pageListenMixins } from '@/mixins/pageListenMixins'
export default {
name: "pkgJoinWholesaler",
components: {
CitySelect
},
mixins: [pageListenMixins],
data() {
return {
tips: "",
@@ -233,7 +235,8 @@ export default {
reviewStatus: null,
stateTitle: "",
stateType: "primary",
isPass: false
isPass: false,
pageKeyId: Object.freeze('merchantApplyWholesaler')
}
},
onLoad(options) {