Browse Source

首页

test
Enzo 4 years ago
parent
commit
0d55c20636
  1. 30
      pages/index/index.vue

30
pages/index/index.vue

@ -132,21 +132,21 @@
this.getFavourite()
},
onLoad(options) {
console.log('=======11111=======',options)
if (options.scene) {
//
let str = decodeURIComponent(options.scene);
let obj = this.parseData(str);
console.log('==============',str)
return
if (obj.type == 'de_qr') {
this.click_type = 'department_qr';
this.qr_id = obj.first_id;
}else if(obj.type == 'sp_qr'){
this.click_type = 'special_qr';
this.qr_id = obj.special_id;
}
}
// console.log('=======11111=======',options)
// if (options.scene) {
// //
// let str = decodeURIComponent(options.scene);
// let obj = this.parseData(str);
// console.log('==============',str)
// return
// if (obj.type == 'de_qr') {
// this.click_type = 'department_qr';
// this.qr_id = obj.first_id;
// }else if(obj.type == 'sp_qr'){
// this.click_type = 'special_qr';
// this.qr_id = obj.special_id;
// }
// }
},
methods: {
//

Loading…
Cancel
Save