Authored by 王洪广

修改yoho币,订单

... ... @@ -56,7 +56,7 @@ const component = {
gender: data.gender === '1' ? 'men' : 'women',
birthday: data.birthday
});
})
});
},
help: (req, res, next) => {
homeModel.getHelpInfo().then(helpList => {
... ... @@ -91,7 +91,7 @@ const component = {
page: 'feedback',
suggestSub: true,
noLocalCSS: true
})
});
},
saveFeedback: (req, res, next) => {
let saveFeedbackPara = {
... ...
... ... @@ -7,7 +7,7 @@
const orderModel = require('../models/order');
const notLoginCode = 400;
const notLoginTip = '抱歉,您暂未登录!';
const testUid = 8041886;//8039836; //8050882;// 测试uid
const testUid = 8041886;// 8039836; //8050882;// 测试uid
const isBLK = 1;
const order = {
... ... @@ -125,7 +125,7 @@ const order = {
uid = testUid;
orderModel.getCoins(uid).then(result => {
//console.log(result)
// console.log(result)
res.render('coin', {
module: 'home',
page: 'coin',
... ...
This diff could not be displayed because it is too large.
... ... @@ -57,7 +57,7 @@ function Select(items) {
overlay.hide();
elem.hide();
}
}
};
}
module.exports = Select;
... ...
... ... @@ -5,6 +5,7 @@ html,
body {
height: 100%;
}
.main-wrap {
height: 100%;
background: #f6f6f6;
... ...
... ... @@ -76,8 +76,8 @@
}).then(result => {
if (result.code === 200) {
this.$set('order', result.data);
}else{
tip(result.message)
} else {
tip(result.message);
}
}).fail(() => {
tip('网络错误');
... ... @@ -94,7 +94,7 @@
}
}).then(success).fail(fail);
}
}
};
},
autoCancel(code) {
let _that = this;
... ... @@ -105,7 +105,7 @@
location.href = '/home/orders?type=2';
}
});
}
};
},
cancelOrder(code) {
let _that = this;
... ... @@ -119,7 +119,7 @@
}
}, () => {
tip('操作失敗');
})
});
});
},
deleteOrder(code) {
... ...
... ... @@ -100,7 +100,7 @@
location.reload();
}
});
}
};
},
order() {
return {
... ... @@ -113,13 +113,13 @@
}
}).then(success).fail(fail);
}
}
};
},
cancelOrder(code) {
let _that = this;
Modal.confirm('订单取消后不能恢复,确认取消订单吗?', '', function() {
_that.order().cancel(code,(result) => {
_that.order().cancel(code, (result) => {
if (result.code === 200) {
location.reload();
} else {
... ... @@ -127,7 +127,7 @@
}
}, () => {
tip('操作失敗');
})
});
});
},
deleteOrder(order, index) {
... ...