Authored by 肖亚东

去掉调试代码 — review by 李其昌

@@ -38,12 +38,7 @@ Page({ @@ -38,12 +38,7 @@ Page({
38 }) 38 })
39 39
40 let that = this; 40 let that = this;
41 - let params = {  
42 - uid: '500031152',  
43 - debug: 'XYZ'  
44 - }  
45 -  
46 - this.data.api.fetchMessageTypeInfo(params, () => { 41 + this.data.api.fetchMessageTypeInfo(() => {
47 wx.hideLoading(); 42 wx.hideLoading();
48 }) 43 })
49 .then(data => { 44 .then(data => {
@@ -82,10 +77,8 @@ Page({ @@ -82,10 +77,8 @@ Page({
82 }) 77 })
83 78
84 let params = { 79 let params = {
85 - uid: '500031152',  
86 page: messageInfo.currentPage, 80 page: messageInfo.currentPage,
87 - limit: 20,  
88 - debug: 'XYZ' 81 + limit: 20
89 } 82 }
90 83
91 this.data.api.fetchNewMessageList(params, () => { 84 this.data.api.fetchNewMessageList(params, () => {
@@ -48,10 +48,8 @@ Page({ @@ -48,10 +48,8 @@ Page({
48 48
49 let params = { 49 let params = {
50 type: messgeType, 50 type: messgeType,
51 - uid: '500031152',  
52 page: messageInfo.currentPage, 51 page: messageInfo.currentPage,
53 - limit: 20,  
54 - debug: 'XYZ' 52 + limit: 20
55 } 53 }
56 54
57 let api = new MessageService(); 55 let api = new MessageService();
@@ -56,9 +56,7 @@ Page({ @@ -56,9 +56,7 @@ Page({
56 editPageOnLoad: function (level,id) { 56 editPageOnLoad: function (level,id) {
57 let params = { 57 let params = {
58 fromPage: 'addressEditer', 58 fromPage: 'addressEditer',
59 - id: id,  
60 - uid: '500031152',  
61 - debug: 'XYZ' 59 + id: id
62 }; 60 };
63 let that = this; 61 let that = this;
64 let api = new AddressService().yohoApi(); 62 let api = new AddressService().yohoApi();
@@ -137,8 +135,6 @@ Page({ @@ -137,8 +135,6 @@ Page({
137 if (res.confirm) { 135 if (res.confirm) {
138 let params = { 136 let params = {
139 id: that.data.editeAddressPage._id, 137 id: that.data.editeAddressPage._id,
140 - uid: "500031152",  
141 - debug: 'XYZ'  
142 }; 138 };
143 let api = new AddressService().yohoApi(); 139 let api = new AddressService().yohoApi();
144 api.delAddressRequest(params) 140 api.delAddressRequest(params)
@@ -184,9 +180,7 @@ Page({ @@ -184,9 +180,7 @@ Page({
184 mobile: this.data.editeAddressPage._mobile, 180 mobile: this.data.editeAddressPage._mobile,
185 area_code: this.data.editeAddressPage._area_code, 181 area_code: this.data.editeAddressPage._area_code,
186 address: this.data.editeAddressPage._detailAddress, 182 address: this.data.editeAddressPage._detailAddress,
187 - is_default:this.data.editeAddressPage._is_default,  
188 - uid: "500031152",  
189 - debug: 'XYZ' 183 + is_default:this.data.editeAddressPage._is_default
190 }; 184 };
191 185
192 let api = new AddressService().yohoApi(); 186 let api = new AddressService().yohoApi();
@@ -215,9 +209,7 @@ Page({ @@ -215,9 +209,7 @@ Page({
215 area_code: this.data.editeAddressPage._area_code, 209 area_code: this.data.editeAddressPage._area_code,
216 address: this.data.editeAddressPage._detailAddress, 210 address: this.data.editeAddressPage._detailAddress,
217 is_default:this.data.editeAddressPage._is_default, 211 is_default:this.data.editeAddressPage._is_default,
218 - id: this.data.editeAddressPage._id,  
219 - uid: "500031152",  
220 - debug: 'XYZ' 212 + id: this.data.editeAddressPage._id
221 }; 213 };
222 let api = new AddressService().yohoApi(); 214 let api = new AddressService().yohoApi();
223 api.updateAddressRequest(params) 215 api.updateAddressRequest(params)
@@ -158,9 +158,7 @@ Page({ @@ -158,9 +158,7 @@ Page({
158 if (res.confirm) { 158 if (res.confirm) {
159 let params = { 159 let params = {
160 order_code: that.data.order_code, 160 order_code: that.data.order_code,
161 - address_id: addressID,  
162 - uid: "500031152",  
163 - debug: 'XYZ' 161 + address_id: addressID
164 } 162 }
165 api.delAddressRequest(params) 163 api.delAddressRequest(params)
166 .then(data => { 164 .then(data => {
@@ -279,13 +277,8 @@ Page({ @@ -279,13 +277,8 @@ Page({
279 * 获取地址列表 277 * 获取地址列表
280 */ 278 */
281 getAddressList: function() { 279 getAddressList: function() {
282 - let params = {  
283 - uid: '500031152',  
284 - debug: 'XYZ'  
285 - }  
286 -  
287 let api = new AddressService().yohoApi(); 280 let api = new AddressService().yohoApi();
288 - api.fetchAddressList(params) 281 + api.fetchAddressList()
289 .then(data => { 282 .then(data => {
290 if (data) { 283 if (data) {
291 this.data.items = data 284 this.data.items = data
@@ -38,10 +38,8 @@ Page({ @@ -38,10 +38,8 @@ Page({
38 }) 38 })
39 39
40 let params = { 40 let params = {
41 - uid: '500031152',  
42 page: collectionInfo.currentPage, 41 page: collectionInfo.currentPage,
43 - limit: 20,  
44 - debug: 'XYZ' 42 + limit: 20
45 } 43 }
46 44
47 let api = new MessageService(); 45 let api = new MessageService();