Authored by 肖亚东

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

... ... @@ -38,12 +38,7 @@ Page({
})
let that = this;
let params = {
uid: '500031152',
debug: 'XYZ'
}
this.data.api.fetchMessageTypeInfo(params, () => {
this.data.api.fetchMessageTypeInfo(() => {
wx.hideLoading();
})
.then(data => {
... ... @@ -82,10 +77,8 @@ Page({
})
let params = {
uid: '500031152',
page: messageInfo.currentPage,
limit: 20,
debug: 'XYZ'
limit: 20
}
this.data.api.fetchNewMessageList(params, () => {
... ...
... ... @@ -48,10 +48,8 @@ Page({
let params = {
type: messgeType,
uid: '500031152',
page: messageInfo.currentPage,
limit: 20,
debug: 'XYZ'
limit: 20
}
let api = new MessageService();
... ...
... ... @@ -56,9 +56,7 @@ Page({
editPageOnLoad: function (level,id) {
let params = {
fromPage: 'addressEditer',
id: id,
uid: '500031152',
debug: 'XYZ'
id: id
};
let that = this;
let api = new AddressService().yohoApi();
... ... @@ -137,8 +135,6 @@ Page({
if (res.confirm) {
let params = {
id: that.data.editeAddressPage._id,
uid: "500031152",
debug: 'XYZ'
};
let api = new AddressService().yohoApi();
api.delAddressRequest(params)
... ... @@ -184,9 +180,7 @@ Page({
mobile: this.data.editeAddressPage._mobile,
area_code: this.data.editeAddressPage._area_code,
address: this.data.editeAddressPage._detailAddress,
is_default:this.data.editeAddressPage._is_default,
uid: "500031152",
debug: 'XYZ'
is_default:this.data.editeAddressPage._is_default
};
let api = new AddressService().yohoApi();
... ... @@ -215,9 +209,7 @@ Page({
area_code: this.data.editeAddressPage._area_code,
address: this.data.editeAddressPage._detailAddress,
is_default:this.data.editeAddressPage._is_default,
id: this.data.editeAddressPage._id,
uid: "500031152",
debug: 'XYZ'
id: this.data.editeAddressPage._id
};
let api = new AddressService().yohoApi();
api.updateAddressRequest(params)
... ...
... ... @@ -158,9 +158,7 @@ Page({
if (res.confirm) {
let params = {
order_code: that.data.order_code,
address_id: addressID,
uid: "500031152",
debug: 'XYZ'
address_id: addressID
}
api.delAddressRequest(params)
.then(data => {
... ... @@ -279,13 +277,8 @@ Page({
* 获取地址列表
*/
getAddressList: function() {
let params = {
uid: '500031152',
debug: 'XYZ'
}
let api = new AddressService().yohoApi();
api.fetchAddressList(params)
api.fetchAddressList()
.then(data => {
if (data) {
this.data.items = data
... ...
... ... @@ -38,10 +38,8 @@ Page({
})
let params = {
uid: '500031152',
page: collectionInfo.currentPage,
limit: 20,
debug: 'XYZ'
limit: 20
}
let api = new MessageService();
... ...