Authored by QC-L

修复扫码不正确的问题 review by 黄敬囿

... ... @@ -8,6 +8,7 @@ function getQRCodeSource(code) {
let param = {
params: {
md5Param: code,
miniapp_type: '63'
},
url: config.domains.yohoApi +'/wechat/miniapp/getMiniAppRealParam'
}
... ...
... ... @@ -87,13 +87,13 @@ export default class ProductDetail extends Component {
componentWillMount() {
let options = this.$router.params;
if (options && options.scene) {
console.log(options.scene);
// let code = '073c8bb068f4fc9d8dc573b5d4284e3f';
let code = options.scene;
getQRCodeSource(code).then(json => {
if (json) {
this.loadElement(json);
this.loadElement(json);
}
})
.catch(error => {
... ...