Authored by ccbikai

个人中心路由修改

Showing 47 changed files with 41 additions and 41 deletions
... ... @@ -74,11 +74,11 @@ const titleMap = {
},
ltitle: {
des: '商品',
action: origin + '/home/favorite'
action: origin + '/me/favorite'
},
rtitle: {
des: '品牌',
action: origin + '/home/favorite?tab=brand'
action: origin + '/me/favorite?tab=brand'
},
right: {
des: '编辑',
... ... @@ -129,7 +129,7 @@ const matchHeader = (url) => {
if (/\/home\/order-detail$/.test(path)) {
header = titleMap[2];
header.title.des = '订单详情';
header.title.right.action = origin + '/home/service';
header.title.right.action = origin + '/me/service';
return header;
}
... ...
... ... @@ -19,7 +19,7 @@ yoho.addNativeMethod('saveFeedback', function() {
$.ajax({
type: 'post',
url: '/home/save-feedback',
url: '/me/save-feedback',
data: {
content: suggestText,
}
... ...
@charset "utf-8";
@import "common/index";
@import "example/index";
@import "home/index";
@import "me/index";
... ...
... ... @@ -42,7 +42,7 @@
return;
}
$.ajax({
url: '/home/coin-detail',
url: '/me/coin-detail',
data: {
page: ++this.page,
limit: this.limit
... ...
... ... @@ -79,7 +79,7 @@
// 获取 换货商品
$.ajax({
url: '/home/exchange/order',
url: '/me/exchange/order',
data: {
orderId: this.orderCode
}
... ... @@ -242,11 +242,11 @@
$.ajax({
method: 'POST',
url: '/home/exchange/submit',
url: '/me/exchange/submit',
data
}).then(result => {
if (result.code === 200) {
yoho.goNewPage({url: `/home/exchange-status?orderId=${self.orderCode}`});
yoho.goNewPage({url: `/me/exchange-status?orderId=${self.orderCode}`});
} else {
modal.alert(result.message);
}
... ... @@ -263,7 +263,7 @@
'address.areaCode': function(newVal, oldVal) {
const self = this;
$.get('/home/exchange/delivery', {
$.get('/me/exchange/delivery', {
areaCode: newVal
})
.then(result => {
... ...
... ... @@ -59,7 +59,7 @@
this.busy = true;
$.ajax({
url: '/home/favorite/favpaging',
url: '/me/favorite/favpaging',
data: {
page: ++_this.page,
tab: 'brand'
... ... @@ -112,7 +112,7 @@
$.ajax({
method: 'POST',
url: '/home/del-favdel',
url: '/me/del-favdel',
data: {
favId: id,
type: 'brand'
... ...
... ... @@ -64,7 +64,7 @@
this.busy = true;
$.ajax({
url: '/home/favorite/favpaging',
url: '/me/favorite/favpaging',
data: {
page: ++_this.page
}
... ... @@ -129,7 +129,7 @@
$.ajax({
method: 'POST',
url: '/home/del-favdel',
url: '/me/del-favdel',
data: {
favId: id,
type: 'product'
... ...
... ... @@ -78,7 +78,7 @@
saveDetails: function(params) {
$.ajax({
method: 'POST',
url: '/home/save-mydetails',
url: '/me/save-mydetails',
data: params
}).then(result => {
if (result.code !== 200) {
... ... @@ -93,5 +93,5 @@
</script>
<style>
@import "../../scss/home/_details.css";
@import "../../scss/me/_details.css";
</style>
... ...
... ... @@ -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
... ...
... ... @@ -177,7 +177,7 @@ $border_color_light: #eee;
};
$.ajax({
url: '/home/get-order-logistic-date',
url: '/me/get-order-logistic-date',
data: data
}).then(result => {
this.logisticDate = result;
... ...
... ... @@ -22,7 +22,7 @@
<p>&yen; {{goods.goodsPrice}}</p>
<p>×{{goods.buyNumber}}</p>
</div>
<a href="/home/order-detail?orderCode={{order.orderCode}}"></a>
<a href="/me/order-detail?orderCode={{order.orderCode}}"></a>
</div>
</div>
<div class="order-option">
... ... @@ -87,7 +87,7 @@
return;
}
$.ajax({
url: '/home/get-orders',
url: '/me/get-orders',
data: {
page: ++this.page,
limit: this.limit,
... ... @@ -128,7 +128,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;
... ... @@ -152,7 +152,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: order.orderCode
... ... @@ -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;
},
dropDown(elementId){
let dropdown = document.getElementById(elementId);
... ... @@ -240,7 +240,7 @@ body {
height: 100%;
}
@import "../../scss/home/_order.css";
@import "../../scss/me/_order.css";
</style>
\ No newline at end of file
... ...
... ... @@ -70,7 +70,7 @@
return;
}
$.ajax({
url: '/home/refund/get-orders',
url: '/me/refund/get-orders',
data: {
page: ++this.page,
limit: this.limit
... ... @@ -92,7 +92,7 @@
*/
cancelApply(id, type) {
$.ajax({
url: '/home/'+(type == 2 ? 'exchange' : 'refund')+'/cancel-apply',
url: '/me/'+(type == 2 ? 'exchange' : 'refund')+'/cancel-apply',
type: 'post',
data: {
id: id
... ... @@ -116,6 +116,6 @@
height: 100%;
}
@import "../../scss/home/_order.css";
@import "../../scss/me/_order.css";
</style>
\ No newline at end of file
... ...
... ... @@ -91,7 +91,7 @@
},
created() {
$.ajax({
url: '/home/refund/order',
url: '/me/refund/order',
data: {
orderId: qs.orderId
}
... ... @@ -153,7 +153,7 @@
}
$.ajax({
method: 'POST',
url: '/home/refund/submit',
url: '/me/refund/submit',
data: this.submitData
}).then(result => {
if (result.code === 200) {
... ...
... ... @@ -43,7 +43,7 @@
$.ajax({
method: 'POST',
url: '/home/save-logistics',
url: '/me/save-logistics',
data: {
company_id: this.company_id,
company_name: this.company_name,
... ... @@ -69,5 +69,5 @@
</script>
<style>
@import "../../../scss/home/_logistics.css";
@import "../../../scss/me/_logistics.css";
</style>
... ...