...
|
...
|
@@ -37,11 +37,10 @@ |
|
|
const qs = require('yoho-qs');
|
|
|
const tip = require('common/tip');
|
|
|
const bus = require('common/vue-bus');
|
|
|
const modal = require('common/modal');
|
|
|
const yoho = require('yoho');
|
|
|
|
|
|
const productList = require('home/return/list.vue');
|
|
|
const productItem = require('home/return/item.vue');
|
|
|
const exchangeItem = require('home/exchange/item.vue');
|
|
|
const featureSelector = require('component/product/feature-selector.vue');
|
|
|
|
|
|
module.exports = {
|
...
|
...
|
@@ -116,8 +115,8 @@ |
|
|
changeAddress() {
|
|
|
yoho.goAddress({
|
|
|
type:'1'
|
|
|
}, (address)=>{
|
|
|
|
|
|
}, (address) => {
|
|
|
// Todo
|
|
|
}, () => {
|
|
|
tip('更换地址失败~');
|
|
|
});
|
...
|
...
|
@@ -127,15 +126,17 @@ |
|
|
whenFeatureChange(selection) {
|
|
|
const index = this.indexMap[selection.goodsId];
|
|
|
const goods = this.goodsArr[index];
|
|
|
|
|
|
goods.change = {
|
|
|
color: selection.color.text,
|
|
|
size: selection.size.text,
|
|
|
goodsId: selection.size.goodsId,
|
|
|
sku: selection.size.value
|
|
|
}
|
|
|
};
|
|
|
console.log(goods.goodsId);
|
|
|
|
|
|
this.showFeatureSelector = false;
|
|
|
|
|
|
// this.goodsArr.$set(index, Object.assign({}, goods, change));
|
|
|
},
|
|
|
|
...
|
...
|
@@ -182,9 +183,6 @@ |
|
|
|
|
|
// 提交 换货
|
|
|
submit() {
|
|
|
if (!this.checkSubmitData()) {
|
|
|
alert('请填写完整退换货信息');
|
|
|
}
|
|
|
$.ajax({
|
|
|
method: 'POST',
|
|
|
url: '/home/exchange/submit',
|
...
|
...
|
@@ -193,7 +191,7 @@ |
|
|
if (result.code === 200) {
|
|
|
console.log(result);
|
|
|
} else {
|
|
|
alert(result.message);
|
|
|
modal.alert(result.message);
|
|
|
}
|
|
|
});
|
|
|
}
|
...
|
...
|
|