修改首页功能

This commit is contained in:
wangxiaowei
2026-04-23 10:41:27 +08:00
parent 7f8f15b809
commit a3edea96af
10 changed files with 45 additions and 37 deletions

View File

@ -262,12 +262,9 @@
isScanEntry: false
};
},
onLoad() {
onLoad(options) {
this.isScanEntry = false
console.log("🚀 ~ this.$Route.query:", this.$Route.query)
if (this.$Route.query && this.$Route.query.scene) {
console.log("🚀 ~ this.$Route.query:", this.$Route.query.scene)
const query = this.parseScanQuery(this.$Route.query.scene)
console.log("🚀 ~ query:", query)
if (query.type == 1 || query.type == '1') {
@ -276,13 +273,16 @@
}
}
if (options && (options.type == 1 || options.type == '1')) {
this.isScanEntry = true
}
// 获取上级及个人信息
this.getSuperiorInfoFun()
// 判断是否是分销会员
this.veryfiyDistributeFun()
},
methods: {
parseScanQuery(scene) {
if (!scene || typeof scene !== 'string') return {}