...
|
...
|
@@ -76,7 +76,7 @@ |
|
|
methods: {
|
|
|
getOrderData() {
|
|
|
$.ajax({
|
|
|
url: '/home/get-order',
|
|
|
url: '/me/get-order',
|
|
|
data: {
|
|
|
orderCode: this.$parent.$data.orderCode
|
|
|
}
|
...
|
...
|
@@ -87,13 +87,13 @@ |
|
|
{
|
|
|
key: this.order.isSupportRefund,
|
|
|
val: this.order.isSupportRefund === 'Y' ? '申请退货' : '<span class="overdue">申请退货(已过期限)</span>',
|
|
|
url: '/home/refund?orderId=' + this.order.orderCode,
|
|
|
url: '/me/refund?orderId=' + this.order.orderCode,
|
|
|
disabled: this.order.isSupportRefund !== 'Y'
|
|
|
},
|
|
|
{
|
|
|
key: this.order.isSupportExchange,
|
|
|
val: this.order.isSupportExchange === 'Y' ? '申请换货' : '<span class="overdue">申请换货(已过期限)</span>',
|
|
|
url: '/home/exchange?orderId=' + this.order.orderCode,
|
|
|
url: '/me/exchange?orderId=' + this.order.orderCode,
|
|
|
disabled: this.order.isSupportExchange !== 'Y'
|
|
|
},
|
|
|
{
|
...
|
...
|
@@ -129,7 +129,7 @@ |
|
|
let that = this;
|
|
|
|
|
|
$.ajax({
|
|
|
url: '/home/order/cancel-reason',
|
|
|
url: '/me/order/cancel-reason',
|
|
|
}).then(result => {
|
|
|
if (result.data.length > 0) {
|
|
|
that.options = result.data;
|
...
|
...
|
@@ -142,7 +142,7 @@ |
|
|
return {
|
|
|
cancel(param, success, fail) {
|
|
|
$.ajax({
|
|
|
url: '/home/cancel-order',
|
|
|
url: '/me/cancel-order',
|
|
|
type: 'post',
|
|
|
data: param
|
|
|
}).then(success).fail(fail);
|
...
|
...
|
@@ -174,7 +174,7 @@ |
|
|
Modal.confirm('确认删除订单?', '', function() {
|
|
|
this.hide();
|
|
|
$.ajax({
|
|
|
url: '/home/delete-order',
|
|
|
url: '/me/delete-order',
|
|
|
type: 'post',
|
|
|
data: {
|
|
|
orderCode: code
|
...
|
...
|
@@ -192,7 +192,7 @@ |
|
|
},
|
|
|
confirmGoods(code) {
|
|
|
$.ajax({
|
|
|
url: '/home/confirm-order',
|
|
|
url: '/me/confirm-order',
|
|
|
type: 'post',
|
|
|
data: {
|
|
|
orderCode: code
|
...
|
...
|
@@ -211,7 +211,7 @@ |
|
|
yohoAPI.goPay({orderid: code});
|
|
|
},
|
|
|
seeExpress(code) {
|
|
|
location.href = '/home/logistic?order_code='+code;
|
|
|
location.href = '/me/logistic?order_code='+code;
|
|
|
},
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -244,5 +244,5 @@ |
|
|
};
|
|
|
</script>
|
|
|
<style>
|
|
|
@import "../../scss/home/_order-detail.css";
|
|
|
@import "../../scss/me/_order-detail.css";
|
|
|
</style> |
|
|
\ No newline at end of file |
...
|
...
|
|