Authored by lijing

修改返回值

... ... @@ -385,10 +385,10 @@ const order = (params) => {
* @param params
*/
const getOrders = (params) => {
let finalResult = [];
let finalResult = Promise.resolve([]);
if (!params.uid) {
return Promise.resolve({});
return Promise.resolve([]);
}
return _getOrderData(params).then(result => {
if (result.data && result.data.page_total && params.page <= result.data.page_total && result.data.order_list) {
... ...
... ... @@ -130,7 +130,7 @@ function getOrders(option) {
success: function(data) {
let num;
if (data !== '') {
if (data.length > 0) {
order.page = opt.page;
... ...