...
|
...
|
@@ -88,12 +88,8 @@ export default class ProductDetail extends Component { |
|
|
componentWillMount() {
|
|
|
let options = this.$router.params;
|
|
|
|
|
|
console.log('============111111==================');
|
|
|
console.log(options);
|
|
|
console.log(options.scene);
|
|
|
console.log('============111111==================');
|
|
|
|
|
|
if (options && options.scene) {
|
|
|
// let code = '073c8bb068f4fc9d8dc573b5d4284e3f';
|
|
|
let code = options.scene;
|
|
|
getQRCodeSource(code).then(json => {
|
|
|
if (json) {
|
...
|
...
|
@@ -105,21 +101,6 @@ export default class ProductDetail extends Component { |
|
|
} else {
|
|
|
this.loadElement(options);
|
|
|
}
|
|
|
|
|
|
// let code = '64d537276352fedc14b06dfc856a358d';
|
|
|
// getQRCodeSource(code).then(json => {
|
|
|
// console.log('============222222==================');
|
|
|
// console.log(json);
|
|
|
// console.log('============222222==================');
|
|
|
// if (json) {
|
|
|
// this.loadElement(json);
|
|
|
// }
|
|
|
// })
|
|
|
// .catch(error => {
|
|
|
// console.log('============555==================');
|
|
|
// console.log(error);
|
|
|
// console.log('============555==================');
|
|
|
// });
|
|
|
}
|
|
|
|
|
|
loadElement(options) {
|
...
|
...
|
@@ -167,7 +148,7 @@ export default class ProductDetail extends Component { |
|
|
var product_qrCode = ''
|
|
|
|
|
|
let param = {
|
|
|
id: '10000341'
|
|
|
id: productInfo.product_id
|
|
|
}
|
|
|
product_qrCode = config.domains.yohoApi + '/wechat/miniapp/img-check.jpg?param=' + encodeURIComponent(JSON.stringify(param)) + '&miniQrType=23&miniapp_type=63';
|
|
|
|
...
|
...
|
|