Showing
47 changed files
with
41 additions
and
41 deletions
@@ -74,11 +74,11 @@ const titleMap = { | @@ -74,11 +74,11 @@ const titleMap = { | ||
74 | }, | 74 | }, |
75 | ltitle: { | 75 | ltitle: { |
76 | des: '商品', | 76 | des: '商品', |
77 | - action: origin + '/home/favorite' | 77 | + action: origin + '/me/favorite' |
78 | }, | 78 | }, |
79 | rtitle: { | 79 | rtitle: { |
80 | des: '品牌', | 80 | des: '品牌', |
81 | - action: origin + '/home/favorite?tab=brand' | 81 | + action: origin + '/me/favorite?tab=brand' |
82 | }, | 82 | }, |
83 | right: { | 83 | right: { |
84 | des: '编辑', | 84 | des: '编辑', |
@@ -129,7 +129,7 @@ const matchHeader = (url) => { | @@ -129,7 +129,7 @@ const matchHeader = (url) => { | ||
129 | if (/\/home\/order-detail$/.test(path)) { | 129 | if (/\/home\/order-detail$/.test(path)) { |
130 | header = titleMap[2]; | 130 | header = titleMap[2]; |
131 | header.title.des = '订单详情'; | 131 | header.title.des = '订单详情'; |
132 | - header.title.right.action = origin + '/home/service'; | 132 | + header.title.right.action = origin + '/me/service'; |
133 | return header; | 133 | return header; |
134 | } | 134 | } |
135 | 135 |
@@ -19,7 +19,7 @@ yoho.addNativeMethod('saveFeedback', function() { | @@ -19,7 +19,7 @@ yoho.addNativeMethod('saveFeedback', function() { | ||
19 | 19 | ||
20 | $.ajax({ | 20 | $.ajax({ |
21 | type: 'post', | 21 | type: 'post', |
22 | - url: '/home/save-feedback', | 22 | + url: '/me/save-feedback', |
23 | data: { | 23 | data: { |
24 | content: suggestText, | 24 | content: suggestText, |
25 | } | 25 | } |
@@ -79,7 +79,7 @@ | @@ -79,7 +79,7 @@ | ||
79 | 79 | ||
80 | // 获取 换货商品 | 80 | // 获取 换货商品 |
81 | $.ajax({ | 81 | $.ajax({ |
82 | - url: '/home/exchange/order', | 82 | + url: '/me/exchange/order', |
83 | data: { | 83 | data: { |
84 | orderId: this.orderCode | 84 | orderId: this.orderCode |
85 | } | 85 | } |
@@ -242,11 +242,11 @@ | @@ -242,11 +242,11 @@ | ||
242 | 242 | ||
243 | $.ajax({ | 243 | $.ajax({ |
244 | method: 'POST', | 244 | method: 'POST', |
245 | - url: '/home/exchange/submit', | 245 | + url: '/me/exchange/submit', |
246 | data | 246 | data |
247 | }).then(result => { | 247 | }).then(result => { |
248 | if (result.code === 200) { | 248 | if (result.code === 200) { |
249 | - yoho.goNewPage({url: `/home/exchange-status?orderId=${self.orderCode}`}); | 249 | + yoho.goNewPage({url: `/me/exchange-status?orderId=${self.orderCode}`}); |
250 | } else { | 250 | } else { |
251 | modal.alert(result.message); | 251 | modal.alert(result.message); |
252 | } | 252 | } |
@@ -263,7 +263,7 @@ | @@ -263,7 +263,7 @@ | ||
263 | 'address.areaCode': function(newVal, oldVal) { | 263 | 'address.areaCode': function(newVal, oldVal) { |
264 | const self = this; | 264 | const self = this; |
265 | 265 | ||
266 | - $.get('/home/exchange/delivery', { | 266 | + $.get('/me/exchange/delivery', { |
267 | areaCode: newVal | 267 | areaCode: newVal |
268 | }) | 268 | }) |
269 | .then(result => { | 269 | .then(result => { |
@@ -59,7 +59,7 @@ | @@ -59,7 +59,7 @@ | ||
59 | 59 | ||
60 | this.busy = true; | 60 | this.busy = true; |
61 | $.ajax({ | 61 | $.ajax({ |
62 | - url: '/home/favorite/favpaging', | 62 | + url: '/me/favorite/favpaging', |
63 | data: { | 63 | data: { |
64 | page: ++_this.page, | 64 | page: ++_this.page, |
65 | tab: 'brand' | 65 | tab: 'brand' |
@@ -112,7 +112,7 @@ | @@ -112,7 +112,7 @@ | ||
112 | 112 | ||
113 | $.ajax({ | 113 | $.ajax({ |
114 | method: 'POST', | 114 | method: 'POST', |
115 | - url: '/home/del-favdel', | 115 | + url: '/me/del-favdel', |
116 | data: { | 116 | data: { |
117 | favId: id, | 117 | favId: id, |
118 | type: 'brand' | 118 | type: 'brand' |
@@ -64,7 +64,7 @@ | @@ -64,7 +64,7 @@ | ||
64 | 64 | ||
65 | this.busy = true; | 65 | this.busy = true; |
66 | $.ajax({ | 66 | $.ajax({ |
67 | - url: '/home/favorite/favpaging', | 67 | + url: '/me/favorite/favpaging', |
68 | data: { | 68 | data: { |
69 | page: ++_this.page | 69 | page: ++_this.page |
70 | } | 70 | } |
@@ -129,7 +129,7 @@ | @@ -129,7 +129,7 @@ | ||
129 | 129 | ||
130 | $.ajax({ | 130 | $.ajax({ |
131 | method: 'POST', | 131 | method: 'POST', |
132 | - url: '/home/del-favdel', | 132 | + url: '/me/del-favdel', |
133 | data: { | 133 | data: { |
134 | favId: id, | 134 | favId: id, |
135 | type: 'product' | 135 | type: 'product' |
@@ -78,7 +78,7 @@ | @@ -78,7 +78,7 @@ | ||
78 | saveDetails: function(params) { | 78 | saveDetails: function(params) { |
79 | $.ajax({ | 79 | $.ajax({ |
80 | method: 'POST', | 80 | method: 'POST', |
81 | - url: '/home/save-mydetails', | 81 | + url: '/me/save-mydetails', |
82 | data: params | 82 | data: params |
83 | }).then(result => { | 83 | }).then(result => { |
84 | if (result.code !== 200) { | 84 | if (result.code !== 200) { |
@@ -93,5 +93,5 @@ | @@ -93,5 +93,5 @@ | ||
93 | </script> | 93 | </script> |
94 | 94 | ||
95 | <style> | 95 | <style> |
96 | - @import "../../scss/home/_details.css"; | 96 | + @import "../../scss/me/_details.css"; |
97 | </style> | 97 | </style> |
@@ -76,7 +76,7 @@ | @@ -76,7 +76,7 @@ | ||
76 | methods: { | 76 | methods: { |
77 | getOrderData() { | 77 | getOrderData() { |
78 | $.ajax({ | 78 | $.ajax({ |
79 | - url: '/home/get-order', | 79 | + url: '/me/get-order', |
80 | data: { | 80 | data: { |
81 | orderCode: this.$parent.$data.orderCode | 81 | orderCode: this.$parent.$data.orderCode |
82 | } | 82 | } |
@@ -87,13 +87,13 @@ | @@ -87,13 +87,13 @@ | ||
87 | { | 87 | { |
88 | key: this.order.isSupportRefund, | 88 | key: this.order.isSupportRefund, |
89 | val: this.order.isSupportRefund === 'Y' ? '申请退货' : '<span class="overdue">申请退货(已过期限)</span>', | 89 | val: this.order.isSupportRefund === 'Y' ? '申请退货' : '<span class="overdue">申请退货(已过期限)</span>', |
90 | - url: '/home/refund?orderId=' + this.order.orderCode, | 90 | + url: '/me/refund?orderId=' + this.order.orderCode, |
91 | disabled: this.order.isSupportRefund !== 'Y' | 91 | disabled: this.order.isSupportRefund !== 'Y' |
92 | }, | 92 | }, |
93 | { | 93 | { |
94 | key: this.order.isSupportExchange, | 94 | key: this.order.isSupportExchange, |
95 | val: this.order.isSupportExchange === 'Y' ? '申请换货' : '<span class="overdue">申请换货(已过期限)</span>', | 95 | val: this.order.isSupportExchange === 'Y' ? '申请换货' : '<span class="overdue">申请换货(已过期限)</span>', |
96 | - url: '/home/exchange?orderId=' + this.order.orderCode, | 96 | + url: '/me/exchange?orderId=' + this.order.orderCode, |
97 | disabled: this.order.isSupportExchange !== 'Y' | 97 | disabled: this.order.isSupportExchange !== 'Y' |
98 | }, | 98 | }, |
99 | { | 99 | { |
@@ -129,7 +129,7 @@ | @@ -129,7 +129,7 @@ | ||
129 | let that = this; | 129 | let that = this; |
130 | 130 | ||
131 | $.ajax({ | 131 | $.ajax({ |
132 | - url: '/home/order/cancel-reason', | 132 | + url: '/me/order/cancel-reason', |
133 | }).then(result => { | 133 | }).then(result => { |
134 | if (result.data.length > 0) { | 134 | if (result.data.length > 0) { |
135 | that.options = result.data; | 135 | that.options = result.data; |
@@ -142,7 +142,7 @@ | @@ -142,7 +142,7 @@ | ||
142 | return { | 142 | return { |
143 | cancel(param, success, fail) { | 143 | cancel(param, success, fail) { |
144 | $.ajax({ | 144 | $.ajax({ |
145 | - url: '/home/cancel-order', | 145 | + url: '/me/cancel-order', |
146 | type: 'post', | 146 | type: 'post', |
147 | data: param | 147 | data: param |
148 | }).then(success).fail(fail); | 148 | }).then(success).fail(fail); |
@@ -174,7 +174,7 @@ | @@ -174,7 +174,7 @@ | ||
174 | Modal.confirm('确认删除订单?', '', function() { | 174 | Modal.confirm('确认删除订单?', '', function() { |
175 | this.hide(); | 175 | this.hide(); |
176 | $.ajax({ | 176 | $.ajax({ |
177 | - url: '/home/delete-order', | 177 | + url: '/me/delete-order', |
178 | type: 'post', | 178 | type: 'post', |
179 | data: { | 179 | data: { |
180 | orderCode: code | 180 | orderCode: code |
@@ -192,7 +192,7 @@ | @@ -192,7 +192,7 @@ | ||
192 | }, | 192 | }, |
193 | confirmGoods(code) { | 193 | confirmGoods(code) { |
194 | $.ajax({ | 194 | $.ajax({ |
195 | - url: '/home/confirm-order', | 195 | + url: '/me/confirm-order', |
196 | type: 'post', | 196 | type: 'post', |
197 | data: { | 197 | data: { |
198 | orderCode: code | 198 | orderCode: code |
@@ -211,7 +211,7 @@ | @@ -211,7 +211,7 @@ | ||
211 | yohoAPI.goPay({orderid: code}); | 211 | yohoAPI.goPay({orderid: code}); |
212 | }, | 212 | }, |
213 | seeExpress(code) { | 213 | seeExpress(code) { |
214 | - location.href = '/home/logistic?order_code='+code; | 214 | + location.href = '/me/logistic?order_code='+code; |
215 | }, | 215 | }, |
216 | 216 | ||
217 | /** | 217 | /** |
@@ -244,5 +244,5 @@ | @@ -244,5 +244,5 @@ | ||
244 | }; | 244 | }; |
245 | </script> | 245 | </script> |
246 | <style> | 246 | <style> |
247 | - @import "../../scss/home/_order-detail.css"; | 247 | + @import "../../scss/me/_order-detail.css"; |
248 | </style> | 248 | </style> |
@@ -177,7 +177,7 @@ $border_color_light: #eee; | @@ -177,7 +177,7 @@ $border_color_light: #eee; | ||
177 | }; | 177 | }; |
178 | 178 | ||
179 | $.ajax({ | 179 | $.ajax({ |
180 | - url: '/home/get-order-logistic-date', | 180 | + url: '/me/get-order-logistic-date', |
181 | data: data | 181 | data: data |
182 | }).then(result => { | 182 | }).then(result => { |
183 | this.logisticDate = result; | 183 | this.logisticDate = result; |
@@ -22,7 +22,7 @@ | @@ -22,7 +22,7 @@ | ||
22 | <p>¥ {{goods.goodsPrice}}</p> | 22 | <p>¥ {{goods.goodsPrice}}</p> |
23 | <p>×{{goods.buyNumber}}</p> | 23 | <p>×{{goods.buyNumber}}</p> |
24 | </div> | 24 | </div> |
25 | - <a href="/home/order-detail?orderCode={{order.orderCode}}"></a> | 25 | + <a href="/me/order-detail?orderCode={{order.orderCode}}"></a> |
26 | </div> | 26 | </div> |
27 | </div> | 27 | </div> |
28 | <div class="order-option"> | 28 | <div class="order-option"> |
@@ -87,7 +87,7 @@ | @@ -87,7 +87,7 @@ | ||
87 | return; | 87 | return; |
88 | } | 88 | } |
89 | $.ajax({ | 89 | $.ajax({ |
90 | - url: '/home/get-orders', | 90 | + url: '/me/get-orders', |
91 | data: { | 91 | data: { |
92 | page: ++this.page, | 92 | page: ++this.page, |
93 | limit: this.limit, | 93 | limit: this.limit, |
@@ -128,7 +128,7 @@ | @@ -128,7 +128,7 @@ | ||
128 | let that = this; | 128 | let that = this; |
129 | 129 | ||
130 | $.ajax({ | 130 | $.ajax({ |
131 | - url: '/home/order/cancel-reason', | 131 | + url: '/me/order/cancel-reason', |
132 | }).then(result => { | 132 | }).then(result => { |
133 | if (result.data.length > 0) { | 133 | if (result.data.length > 0) { |
134 | that.options = result.data; | 134 | that.options = result.data; |
@@ -152,7 +152,7 @@ | @@ -152,7 +152,7 @@ | ||
152 | return { | 152 | return { |
153 | cancel(param, success, fail) { | 153 | cancel(param, success, fail) { |
154 | $.ajax({ | 154 | $.ajax({ |
155 | - url: '/home/cancel-order', | 155 | + url: '/me/cancel-order', |
156 | type: 'post', | 156 | type: 'post', |
157 | data: param | 157 | data: param |
158 | }).then(success).fail(fail); | 158 | }).then(success).fail(fail); |
@@ -174,7 +174,7 @@ | @@ -174,7 +174,7 @@ | ||
174 | Modal.confirm('确认删除订单?', '', function() { | 174 | Modal.confirm('确认删除订单?', '', function() { |
175 | this.hide(); | 175 | this.hide(); |
176 | $.ajax({ | 176 | $.ajax({ |
177 | - url: '/home/delete-order', | 177 | + url: '/me/delete-order', |
178 | type: 'post', | 178 | type: 'post', |
179 | data: { | 179 | data: { |
180 | orderCode: order.orderCode | 180 | orderCode: order.orderCode |
@@ -192,7 +192,7 @@ | @@ -192,7 +192,7 @@ | ||
192 | }, | 192 | }, |
193 | confirmGoods(code) { | 193 | confirmGoods(code) { |
194 | $.ajax({ | 194 | $.ajax({ |
195 | - url: '/home/confirm-order', | 195 | + url: '/me/confirm-order', |
196 | type: 'post', | 196 | type: 'post', |
197 | data: { | 197 | data: { |
198 | orderCode: code | 198 | orderCode: code |
@@ -211,7 +211,7 @@ | @@ -211,7 +211,7 @@ | ||
211 | yohoAPI.goPay({orderid: code}); | 211 | yohoAPI.goPay({orderid: code}); |
212 | }, | 212 | }, |
213 | seeExpress(code) { | 213 | seeExpress(code) { |
214 | - location.href = '/home/logistic?order_code='+code; | 214 | + location.href = '/me/logistic?order_code='+code; |
215 | }, | 215 | }, |
216 | dropDown(elementId){ | 216 | dropDown(elementId){ |
217 | let dropdown = document.getElementById(elementId); | 217 | let dropdown = document.getElementById(elementId); |
@@ -240,7 +240,7 @@ body { | @@ -240,7 +240,7 @@ body { | ||
240 | height: 100%; | 240 | height: 100%; |
241 | } | 241 | } |
242 | 242 | ||
243 | -@import "../../scss/home/_order.css"; | 243 | +@import "../../scss/me/_order.css"; |
244 | 244 | ||
245 | 245 | ||
246 | </style> | 246 | </style> |
@@ -70,7 +70,7 @@ | @@ -70,7 +70,7 @@ | ||
70 | return; | 70 | return; |
71 | } | 71 | } |
72 | $.ajax({ | 72 | $.ajax({ |
73 | - url: '/home/refund/get-orders', | 73 | + url: '/me/refund/get-orders', |
74 | data: { | 74 | data: { |
75 | page: ++this.page, | 75 | page: ++this.page, |
76 | limit: this.limit | 76 | limit: this.limit |
@@ -92,7 +92,7 @@ | @@ -92,7 +92,7 @@ | ||
92 | */ | 92 | */ |
93 | cancelApply(id, type) { | 93 | cancelApply(id, type) { |
94 | $.ajax({ | 94 | $.ajax({ |
95 | - url: '/home/'+(type == 2 ? 'exchange' : 'refund')+'/cancel-apply', | 95 | + url: '/me/'+(type == 2 ? 'exchange' : 'refund')+'/cancel-apply', |
96 | type: 'post', | 96 | type: 'post', |
97 | data: { | 97 | data: { |
98 | id: id | 98 | id: id |
@@ -116,6 +116,6 @@ | @@ -116,6 +116,6 @@ | ||
116 | height: 100%; | 116 | height: 100%; |
117 | } | 117 | } |
118 | 118 | ||
119 | - @import "../../scss/home/_order.css"; | 119 | + @import "../../scss/me/_order.css"; |
120 | 120 | ||
121 | </style> | 121 | </style> |
@@ -91,7 +91,7 @@ | @@ -91,7 +91,7 @@ | ||
91 | }, | 91 | }, |
92 | created() { | 92 | created() { |
93 | $.ajax({ | 93 | $.ajax({ |
94 | - url: '/home/refund/order', | 94 | + url: '/me/refund/order', |
95 | data: { | 95 | data: { |
96 | orderId: qs.orderId | 96 | orderId: qs.orderId |
97 | } | 97 | } |
@@ -153,7 +153,7 @@ | @@ -153,7 +153,7 @@ | ||
153 | } | 153 | } |
154 | $.ajax({ | 154 | $.ajax({ |
155 | method: 'POST', | 155 | method: 'POST', |
156 | - url: '/home/refund/submit', | 156 | + url: '/me/refund/submit', |
157 | data: this.submitData | 157 | data: this.submitData |
158 | }).then(result => { | 158 | }).then(result => { |
159 | if (result.code === 200) { | 159 | if (result.code === 200) { |
@@ -43,7 +43,7 @@ | @@ -43,7 +43,7 @@ | ||
43 | 43 | ||
44 | $.ajax({ | 44 | $.ajax({ |
45 | method: 'POST', | 45 | method: 'POST', |
46 | - url: '/home/save-logistics', | 46 | + url: '/me/save-logistics', |
47 | data: { | 47 | data: { |
48 | company_id: this.company_id, | 48 | company_id: this.company_id, |
49 | company_name: this.company_name, | 49 | company_name: this.company_name, |
@@ -69,5 +69,5 @@ | @@ -69,5 +69,5 @@ | ||
69 | </script> | 69 | </script> |
70 | 70 | ||
71 | <style> | 71 | <style> |
72 | - @import "../../../scss/home/_logistics.css"; | 72 | + @import "../../../scss/me/_logistics.css"; |
73 | </style> | 73 | </style> |
-
Please register or login to post a comment