Authored by 李奇

错误修正

@@ -26,9 +26,7 @@ Page({ @@ -26,9 +26,7 @@ Page({
26 event.on('bind-auto-register-type-report', params => { 26 event.on('bind-auto-register-type-report', params => {
27 yas.report('YB_REGISTER_SUCCESS', params); 27 yas.report('YB_REGISTER_SUCCESS', params);
28 }); 28 });
29 - console.log('<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<', app.globalData.unionID);  
30 event.on('wx-union-id-update', () => { 29 event.on('wx-union-id-update', () => {
31 - console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>');  
32 console.log('update', !!app.globalData.unionID); 30 console.log('update', !!app.globalData.unionID);
33 this.setData({ 31 this.setData({
34 hasUnionID: !!app.globalData.unionID 32 hasUnionID: !!app.globalData.unionID
@@ -149,7 +149,7 @@ Page({ @@ -149,7 +149,7 @@ Page({
149 showLoading: false, 149 showLoading: false,
150 productList: this.data.productList.concat(list), 150 productList: this.data.productList.concat(list),
151 currentPage: params.page, 151 currentPage: params.page,
152 - totalPage: res.data.page_total 152 + totalPage: res.data && res.data.page_total || 0
153 }); 153 });
154 154
155 if (!this.data.showCopyright) { 155 if (!this.data.showCopyright) {