Authored by htoooth

fix

... ... @@ -2,6 +2,7 @@ import detailModel from '../../../models/product/detail';
import formatImage from '../../../utils/formatImage';
import config from '../../../common/config';
import common from '../../../models/common';
import Yas from '../../../common/yas';
import {
Actionsheet
... ... @@ -13,6 +14,7 @@ import {
let app = getApp();
let router = global.router;
let yas;
const LIMIT_TYPE = {
UNKNOWN: 0,
... ... @@ -135,9 +137,14 @@ Page(Object.assign({
uid,
originUnionID
});
yas = new Yas(app); // 实例化埋点
},
onShow() {
setTimeout(() => {
app = app || getApp();
this.init();
}, app ? 0 : 1000);
},
init() {
this.productInfo().then(() => {
... ...