Authored by huangyCode

503url更改

// 线上环境
// export const API_HOST = 'https://api.yoho.cn';
// export const SERVICE_HOST = 'https://api.yoho.cn';
// export const ACTIVITY_HOST = 'https://action.yoho.cn';
// export const APP_REPORT_HOST = 'https://app.yoho.cn/collect/v3';
// export const LOG_EVENT_HOST = 'https://analysis.yohobuy.com/yas_mobile';
export const API_HOST = 'https://api.yoho.cn';
export const SERVICE_HOST = 'https://api.yoho.cn';
export const ACTIVITY_HOST = 'https://action.yoho.cn';
export const APP_REPORT_HOST = 'https://app.yoho.cn/collect/v3';
export const LOG_EVENT_HOST = 'https://analysis.yohobuy.com/yas_mobile';
// 测试环境
export const API_HOST = 'http://api-test3.dev.yohocorp.com';
export const SERVICE_HOST = 'http://api-test3.dev.yohocorp.com';
// export const API_HOST = 'http://api-test3.dev.yohocorp.com';
// export const SERVICE_HOST = 'http://api-test3.dev.yohocorp.com';
// export const ACTIVITY_HOST = 'http://yoho-activity-platform.test3.ingress.dev.yohocorp.com';
export const ACTIVITY_HOST = 'http://192.168.102.49:6006';
export const APP_REPORT_HOST = 'http://app.yoho.cn/collect/v3';
export const LOG_EVENT_HOST = 'https://analysis.yohobuy.com/yas_mobile';
// export const ACTIVITY_HOST = 'http://limit-yoho-activity-platform.test3.ingress.dev.yohocorp.com';
// export const APP_REPORT_HOST = 'http://app.yoho.cn/collect/v3';
// export const LOG_EVENT_HOST = 'https://analysis.yohobuy.com/yas_mobile';
export const MINI_APP_TYPE = 29;
export const MINI_QR_TYPE = 16;
... ...
... ... @@ -114,17 +114,9 @@ Page(Object.assign({
yasReport(YB_PAGE_OPEN_L);
},
reflash(){
if (this.data.tabIndex) {
this._init(this.data.tabIndex);
} else {
this._init();
}
},
onShow() {
let uid = app.globalData.userInfo.uid > 0 ? app.globalData.userInfo.uid : 0;
event.emit('errorPage',this.reflash.bind(this));
event.emit('errorPage',this._refresh.bind(this));
this.setData({
... ...