Authored by QC-L

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

@@ -8,6 +8,7 @@ function getQRCodeSource(code) { @@ -8,6 +8,7 @@ function getQRCodeSource(code) {
8 let param = { 8 let param = {
9 params: { 9 params: {
10 md5Param: code, 10 md5Param: code,
  11 + miniapp_type: '63'
11 }, 12 },
12 url: config.domains.yohoApi +'/wechat/miniapp/getMiniAppRealParam' 13 url: config.domains.yohoApi +'/wechat/miniapp/getMiniAppRealParam'
13 } 14 }
@@ -87,13 +87,13 @@ export default class ProductDetail extends Component { @@ -87,13 +87,13 @@ export default class ProductDetail extends Component {
87 87
88 componentWillMount() { 88 componentWillMount() {
89 let options = this.$router.params; 89 let options = this.$router.params;
90 -  
91 if (options && options.scene) { 90 if (options && options.scene) {
  91 + console.log(options.scene);
92 // let code = '073c8bb068f4fc9d8dc573b5d4284e3f'; 92 // let code = '073c8bb068f4fc9d8dc573b5d4284e3f';
93 let code = options.scene; 93 let code = options.scene;
94 getQRCodeSource(code).then(json => { 94 getQRCodeSource(code).then(json => {
95 if (json) { 95 if (json) {
96 - this.loadElement(json); 96 + this.loadElement(json);
97 } 97 }
98 }) 98 })
99 .catch(error => { 99 .catch(error => {