修改首页功能
This commit is contained in:
@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user