Authored by bevishuang

优化上报,公共参数

@@ -45,7 +45,7 @@ App({ @@ -45,7 +45,7 @@ App({
45 // yas 注册成功后上报 45 // yas 注册成功后上报
46 event.on('yas-user-register-success', params => { 46 event.on('yas-user-register-success', params => {
47 accountModel.recordRegisterSource({ 47 accountModel.recordRegisterSource({
48 - storeId: 1, // 线下店ID写死1 48 + storeId: config.storeId, // 线下店ID写死1
49 fromPage: params.TRIGGER_PAGE_NAME 49 fromPage: params.TRIGGER_PAGE_NAME
50 }); 50 });
51 yas.report('YB_REGISTER_SUCCESS', params); 51 yas.report('YB_REGISTER_SUCCESS', params);
@@ -144,7 +144,7 @@ const api = { @@ -144,7 +144,7 @@ const api = {
144 miniapp_version: config.apiParams.miniapp_version, 144 miniapp_version: config.apiParams.miniapp_version,
145 storeId: config.storeId, 145 storeId: config.storeId,
146 udid: udid.get(), 146 udid: udid.get(),
147 - business_line: 'miniappOffshop' 147 + business_line: config.business_line
148 }, params); 148 }, params);
149 }, 149 },
150 get(params) { 150 get(params) {
@@ -27,7 +27,7 @@ const config = { @@ -27,7 +27,7 @@ const config = {
27 unionType: '100000000011678', // 渠道号 27 unionType: '100000000011678', // 渠道号
28 MINI_APP_DOMAIN: 'miniapp.yohobuy.com', 28 MINI_APP_DOMAIN: 'miniapp.yohobuy.com',
29 appid: 'wx668c1fe6f44f24c4', // 业务中使用、与package.config.json内appid保持一致 29 appid: 'wx668c1fe6f44f24c4', // 业务中使用、与package.config.json内appid保持一致
30 - business_line: 'miniappOffshop', // 业务线 30 + business_line: 'miniappOffshopMkt', // 业务线
31 storeId: '11', // 线下店ID 31 storeId: '11', // 线下店ID
32 miniapp_type: '67' 32 miniapp_type: '67'
33 }; 33 };
@@ -14,7 +14,7 @@ export default class yas { @@ -14,7 +14,7 @@ export default class yas {
14 dm: '', // 设备型号 14 dm: '', // 设备型号
15 res: '', // 屏幕大小 15 res: '', // 屏幕大小
16 osv: '', // 系统版本 16 osv: '', // 系统版本
17 - ak: 'yohostore_mp', 17 + ak: 'yohostoremkt_mp',
18 ch: this.app.globalData.unionType, 18 ch: this.app.globalData.unionType,
19 udid: this.app.globalData.udid 19 udid: this.app.globalData.udid
20 }; 20 };
@@ -38,7 +38,7 @@ Component({ @@ -38,7 +38,7 @@ Component({
38 */ 38 */
39 getVerifyImage: function() { 39 getVerifyImage: function() {
40 let timestamp = Date.parse(new Date()); 40 let timestamp = Date.parse(new Date());
41 - 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 41 + 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
42 42
43 return url; 43 return url;
44 }, 44 },