...
|
...
|
@@ -25,13 +25,6 @@ |
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<!-- <feature-selector
|
|
|
:is-visible="showFeatureSelector"
|
|
|
:entity="entity"
|
|
|
:on-add-to-cart="whenFeatureChange"
|
|
|
button-text="确定">
|
|
|
</feature-selector> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
...
|
...
|
@@ -41,6 +34,7 @@ |
|
|
const Modal = require('plugin/modal2');
|
|
|
const returnUtil = require('plugin/util');
|
|
|
const bus = require('plugin/vue-bus');
|
|
|
const loading = require('plugin/loading');
|
|
|
const chosePanel = require('common/chose-panel-new');
|
|
|
|
|
|
const productList = require('home/return/list.vue');
|
...
|
...
|
@@ -76,6 +70,11 @@ |
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
// 提交按钮dom
|
|
|
this.$submitBtn = $('#yoho-header .nav-btn');
|
|
|
|
|
|
this.$submitBtn.on('click', this.submit);
|
|
|
|
|
|
// 打开 更换 颜色尺码 TAR-TODO 这个可能得重写
|
|
|
bus.$on('open.featureSelector', msg => {
|
|
|
this.queryProductFeature(msg.pid, msg.sku, msg.rid);
|
...
|
...
|
@@ -143,11 +142,9 @@ |
|
|
goods.change = {
|
|
|
color: selection.sku.prop.color.valName,
|
|
|
size: selection.sku.prop.size.valName,
|
|
|
goodsId: selection.productId,
|
|
|
goodsId: selection.sku.prop.color.goodsId,
|
|
|
sku: selection.sku.skuId
|
|
|
};
|
|
|
|
|
|
// this.showFeatureSelector = false;
|
|
|
},
|
|
|
|
|
|
// 处理商品尺码数据
|
...
|
...
|
@@ -320,17 +317,21 @@ |
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
// area code 改变,重新获取 换货方式
|
|
|
'address.areaCode': function(newVal) {
|
|
|
showChoseAddress(val) {
|
|
|
if (val) {
|
|
|
this.$submitBtn.hide();
|
|
|
} else {
|
|
|
this.$submitBtn.show();
|
|
|
}
|
|
|
},
|
|
|
'address.areaCode': function(newVal) { // area code 改变,重新获取 换货方式
|
|
|
this.reflushDeliveryTpye(newVal);
|
|
|
},
|
|
|
processing(val) {
|
|
|
if (val) {
|
|
|
|
|
|
// when processing
|
|
|
loading.showLoading();
|
|
|
} else {
|
|
|
|
|
|
// when not in processing
|
|
|
loading.hideLoading();
|
|
|
}
|
|
|
|
|
|
}
|
...
|
...
|
@@ -340,8 +341,8 @@ |
|
|
addressList
|
|
|
}
|
|
|
};
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<style>
|
|
|
@import "home/refund/_return.css";
|
|
|
@import "cart/chose-panel.css";
|
...
|
...
|
|