Authored by huangyCode

503url更改

1 // 线上环境 1 // 线上环境
2 -// export const API_HOST = 'https://api.yoho.cn';  
3 -// export const SERVICE_HOST = 'https://api.yoho.cn';  
4 -// export const ACTIVITY_HOST = 'https://action.yoho.cn';  
5 -// export const APP_REPORT_HOST = 'https://app.yoho.cn/collect/v3';  
6 -// export const LOG_EVENT_HOST = 'https://analysis.yohobuy.com/yas_mobile'; 2 +export const API_HOST = 'https://api.yoho.cn';
  3 +export const SERVICE_HOST = 'https://api.yoho.cn';
  4 +export const ACTIVITY_HOST = 'https://action.yoho.cn';
  5 +export const APP_REPORT_HOST = 'https://app.yoho.cn/collect/v3';
  6 +export const LOG_EVENT_HOST = 'https://analysis.yohobuy.com/yas_mobile';
7 7
8 // 测试环境 8 // 测试环境
9 -export const API_HOST = 'http://api-test3.dev.yohocorp.com';  
10 -export const SERVICE_HOST = 'http://api-test3.dev.yohocorp.com'; 9 +// export const API_HOST = 'http://api-test3.dev.yohocorp.com';
  10 +// export const SERVICE_HOST = 'http://api-test3.dev.yohocorp.com';
11 // export const ACTIVITY_HOST = 'http://yoho-activity-platform.test3.ingress.dev.yohocorp.com'; 11 // export const ACTIVITY_HOST = 'http://yoho-activity-platform.test3.ingress.dev.yohocorp.com';
12 -export const ACTIVITY_HOST = 'http://192.168.102.49:6006';  
13 -export const APP_REPORT_HOST = 'http://app.yoho.cn/collect/v3';  
14 -export const LOG_EVENT_HOST = 'https://analysis.yohobuy.com/yas_mobile'; 12 +// export const ACTIVITY_HOST = 'http://limit-yoho-activity-platform.test3.ingress.dev.yohocorp.com';
  13 +// export const APP_REPORT_HOST = 'http://app.yoho.cn/collect/v3';
  14 +// export const LOG_EVENT_HOST = 'https://analysis.yohobuy.com/yas_mobile';
15 15
16 export const MINI_APP_TYPE = 29; 16 export const MINI_APP_TYPE = 29;
17 export const MINI_QR_TYPE = 16; 17 export const MINI_QR_TYPE = 16;
@@ -114,17 +114,9 @@ Page(Object.assign({ @@ -114,17 +114,9 @@ Page(Object.assign({
114 yasReport(YB_PAGE_OPEN_L); 114 yasReport(YB_PAGE_OPEN_L);
115 }, 115 },
116 116
117 - reflash(){  
118 - if (this.data.tabIndex) {  
119 - this._init(this.data.tabIndex);  
120 - } else {  
121 - this._init();  
122 - }  
123 - },  
124 -  
125 onShow() { 117 onShow() {
126 let uid = app.globalData.userInfo.uid > 0 ? app.globalData.userInfo.uid : 0; 118 let uid = app.globalData.userInfo.uid > 0 ? app.globalData.userInfo.uid : 0;
127 - event.emit('errorPage',this.reflash.bind(this)); 119 + event.emit('errorPage',this._refresh.bind(this));
128 120
129 121
130 this.setData({ 122 this.setData({