Authored by 李奇

fix part of eslint errors

... ... @@ -13,6 +13,6 @@
"getApp": true,
"Page": true,
"Component": true,
"getCurrentPages": true
"getCurrentPages": true,
}
}
... ...
... ... @@ -9,10 +9,9 @@ export default {
buynowPayment(params) {
return api.get({
url: '',
data: {
...params,
data: Object.assign({
method: 'app.Buynow.payment'
}
}, params)
});
},
... ... @@ -24,10 +23,9 @@ export default {
buynowCompute(params) {
return api.get({
url: '',
data: {
...params,
data: Object.assign({
method: 'app.Buynow.compute'
}
}, params)
});
},
... ... @@ -39,10 +37,9 @@ export default {
buynowSubmit(params) {
return api.get({
url: '',
data: {
...params,
data: Object.assign({
method: 'app.Buynow.submit'
}
}, params)
});
}
};
... ...
... ... @@ -6,12 +6,11 @@ export default {
* @param params
* @returns {*}
*/
addWechatFormId(param) {
addWechatFormId(params) {
return api.get({
data: {
...param,
data: Object.assign({
method: 'wechat.formId.add'
}
}, params)
});
},
};
... ...
... ... @@ -9,10 +9,9 @@ export default {
productList(params) {
return api.get({
url: '',
data: {
...params,
data: Object.assign({
method: 'app.distribution.productList'
}
}, params)
});
},
... ... @@ -24,10 +23,9 @@ export default {
infoNum(params = {}) {
return api.get({
url: '',
data: {
...params,
data: Object.assign({
method: 'app.home.getInfoNum'
}
}, params)
});
}
};
... ...
... ... @@ -8,10 +8,9 @@ export default {
*/
getOrders(params) {
return api.get({
data: {
...params,
data: Object.assign({
method: 'app.SpaceOrders.get'
}
}, params)
});
},
... ... @@ -22,10 +21,9 @@ export default {
*/
delOrder(params) {
return api.get({
data: {
...params,
data: Object.assign({
method: 'app.SpaceOrders.delOrderByCode'
}
}, params)
});
},
... ... @@ -36,10 +34,9 @@ export default {
*/
cancelOrder(params) {
return api.get({
data: {
...params,
data: Object.assign({
method: 'app.SpaceOrders.close'
}
}, params)
});
},
... ... @@ -63,10 +60,9 @@ export default {
*/
confirmReceive(params) {
return api.get({
data: {
...params,
data: Object.assign({
method: 'app.SpaceOrders.confirm'
}
}, params)
});
},
... ... @@ -77,10 +73,9 @@ export default {
*/
expressDetail(params) {
return api.get({
data: {
...params,
data: Object.assign({
method: 'app.express.li'
}
}, params)
});
},
... ...
... ... @@ -9,10 +9,9 @@ export default {
productList(params) {
return api.get({
url: '',
data: {
...params,
data: Object.assign({
method: 'app.distribution.productList'
}
}, params)
});
}
};
... ...
... ... @@ -21,10 +21,9 @@ export default {
paySuccessConfirm(param) {
return api.get({
url: '',
data: {
...param,
data: Object.assign({
method: 'app.SpaceOrders.payConfirm'
}
}, param)
});
}
};
... ...
... ... @@ -24,10 +24,9 @@ export default {
supportService(params) {
return api.get({
url: '',
data: {
...params,
data: Object.assign({
method: 'app.product.supportService'
}
}, params)
});
},
... ... @@ -39,10 +38,9 @@ export default {
productIntro(params) {
return api.get({
url: '',
data: {
...params,
data: Object.assign({
method: 'smallapp.product.intro'
}
}, params)
});
}
};
... ...
... ... @@ -9,10 +9,9 @@ export default {
productList(params) {
return api.get({
url: '',
data: {
...params,
data: Object.assign({
method: 'app.distribution.productList'
}
}, params)
});
},
... ...
... ... @@ -9,10 +9,9 @@ export default {
productList(params) {
return api.get({
url: '',
data: {
...params,
data: Object.assign({
method: 'app.search.fuzzy.distribution'
}
}, params)
});
}
};
... ...
... ... @@ -18,10 +18,9 @@ export default {
shopInfo(params) {
return api.get({
url: '',
data: {
...params,
data: Object.assign({
method: 'app.shops.getIntro'
}
}, params)
});
},
... ... @@ -33,10 +32,9 @@ export default {
shopDecorator(params) {
return api.get({
url: '',
data: {
...params,
data: Object.assign({
method: 'app.popular.shopsdecorator'
}
}, params)
});
}
};
... ...
... ... @@ -59,7 +59,7 @@ Page({
showInvoceNotice() {
wx.showModal({
title: '发票须知',
content: '1、发票金额不含优惠券/有货币/红包/优惠券/优惠码/运费,只包含商品实付金额;\r\n2、电子发票是税务局认可的、有效的收付款凭证,其法律效力、基本用途及使用规则同纸质发票,如需纸质发票可自行下载打印;',
content: '1、发票金额不含优惠券/有货币/红包/优惠券/优惠码/运费,只包含商品实付金额;\r\n2、电子发票是税务局认可的、有效的收付款凭证,其法律效力、基本用途及使用规则同纸质发票,如需纸质发票可自行下载打印;', // eslint-disable-line
confirmText: '我知道了',
showCancel: false
});
... ...
... ... @@ -176,7 +176,7 @@ Page({
},
reasonSure() {
orderHandle.refundNow(this.orderCode, this.data.reason[this.reasonIndex || 0], res => {
if (res && res.code == 200) {
if (res && res.code === 200) {
wx.navigateBack({delta: 1});
}
});
... ...
... ... @@ -98,8 +98,8 @@ Page({
needTimer = true;
}
for (let i = 0; i < item.order_goods.length; i++) {
if (Number(item.order_goods[i].real_pay_price).toFixed(2) === Number(item.order_goods[i].sales_price).toFixed(2) || !item.order_goods[i].real_pay_price) {
item.order_goods[i].real_pay_price = item.order_goods[i].goods_price ? item.order_goods[i].goods_price : item.order_goods[i].sales_price;
if (Number(item.order_goods[i].real_pay_price).toFixed(2) === Number(item.order_goods[i].sales_price).toFixed(2) || !item.order_goods[i].real_pay_price) { // eslint-disable-line
item.order_goods[i].real_pay_price = item.order_goods[i].goods_price ? item.order_goods[i].goods_price : item.order_goods[i].sales_price; // eslint-disable-line
item.order_goods[i].sales_price = '';
}
if (item.order_goods[i].sales_price) {
... ...