Authored by bevishuang

优化上报,公共参数

... ... @@ -45,7 +45,7 @@ App({
// yas 注册成功后上报
event.on('yas-user-register-success', params => {
accountModel.recordRegisterSource({
storeId: 1, // 线下店ID写死1
storeId: config.storeId, // 线下店ID写死1
fromPage: params.TRIGGER_PAGE_NAME
});
yas.report('YB_REGISTER_SUCCESS', params);
... ...
... ... @@ -144,7 +144,7 @@ const api = {
miniapp_version: config.apiParams.miniapp_version,
storeId: config.storeId,
udid: udid.get(),
business_line: 'miniappOffshop'
business_line: config.business_line
}, params);
},
get(params) {
... ...
... ... @@ -27,7 +27,7 @@ const config = {
unionType: '100000000011678', // 渠道号
MINI_APP_DOMAIN: 'miniapp.yohobuy.com',
appid: 'wx668c1fe6f44f24c4', // 业务中使用、与package.config.json内appid保持一致
business_line: 'miniappOffshop', // 业务线
business_line: 'miniappOffshopMkt', // 业务线
storeId: '11', // 线下店ID
miniapp_type: '67'
};
... ...
... ... @@ -14,7 +14,7 @@ export default class yas {
dm: '', // 设备型号
res: '', // 屏幕大小
osv: '', // 系统版本
ak: 'yohostore_mp',
ak: 'yohostoremkt_mp',
ch: this.app.globalData.unionType,
udid: this.app.globalData.udid
};
... ...
... ... @@ -38,7 +38,7 @@ Component({
*/
getVerifyImage: function() {
let timestamp = Date.parse(new Date());
let url = `${config.domains.api}/passport/img-check?business_line=miniappOffshop&app_version=0.0.1&udid=${udid.get()}&client_type=${config.apiParams.client_type}&fromPage=${config.apiParams.client_type}&t=${timestamp}`; // eslint-disable-line
let url = `${config.domains.api}/passport/img-check?business_line=${config.business_line}&app_version=0.0.1&udid=${udid.get()}&client_type=${config.apiParams.client_type}&fromPage=${config.apiParams.client_type}&t=${timestamp}`; // eslint-disable-line
return url;
},
... ...