Authored by 邱骏

Merge branch 'develop' of http://git.yoho.cn/fe/yoho-limited-sell-miniapp into develop

... ... @@ -25,7 +25,8 @@ const config = {
MINI_APP_DOMAIN: 'miniapp.yohobuy.com',
appid: 'wx39f299b6485cf97a', // 业务中使用、与package.config.json内appid保持一致wx39f299b6485cf97a
business_line: 'miniappOffshop', // 业务线
mini_app_type: 4
mini_app_type: 4,
envVersion: 'develop'
};
export default config;
... ...
... ... @@ -14,7 +14,7 @@ export default class yas {
dm: '', // 设备型号
res: '', // 屏幕大小
osv: '', // 系统版本
ak: 'yohostore_mp',
ak: 'yoholimit_mp',
ch: this.app.globalData.unionType,
udid: this.app.globalData.udid
};
... ...
... ... @@ -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() {
this.init();
setTimeout(() => {
app = app || getApp();
this.init();
}, app ? 0 : 1000);
},
init() {
this.productInfo().then(() => {
... ...
... ... @@ -2,6 +2,7 @@ import wx from '../utils/wx';
import {
stringify
} from '../vendors/query-stringify';
import config from '../common/config';
const appData = {
yohostore: {
... ... @@ -36,7 +37,8 @@ const appData = {
export default function(params) {
let navigateToMiniParams = {
appId: appData[params.app].appId,
path: params.path || `${appData[params.app].page[params.page]}?${stringify(params.data)}`
path: params.path || `${appData[params.app].page[params.page]}?${stringify(params.data)}`,
envVersion: config.envVersion
};
return wx.navigateToMiniProgram(navigateToMiniParams);
... ...