fix: 代码优化
This commit is contained in:
@@ -128,7 +128,11 @@ export default {
|
||||
onItemSelect(item,xItem){
|
||||
this.curSelectList.push(xItem);
|
||||
this.curSelect++;
|
||||
this.getAddressList(xItem.id);
|
||||
this.getAddressList(xItem.id).then(() => {
|
||||
if (!this.addressList.length) {
|
||||
this.onOk();
|
||||
}
|
||||
});
|
||||
},
|
||||
onSelect(item,index){
|
||||
this.curSelectList.splice(index + 1);
|
||||
@@ -417,4 +421,4 @@ export default {
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
<style lang="scss" scoped></style>
|
||||
@@ -30,6 +30,12 @@
|
||||
" class="order_item_header_right" :style="{ color: ORDER_STATUS_CSS[item.status] }">
|
||||
{{ getValue(ORDER_STATUS, item.status) }}
|
||||
</view>
|
||||
<!-- 售后显示订单状态 -->
|
||||
<view v-if="
|
||||
form.type == MINE_ORDER_TYPE.AFTER_SALE
|
||||
" class="order_item_header_right" :style="{ color: ORDER_STATUS_CSS[item.status] }">
|
||||
{{ getValue(ORDER_STATUS, item.status) }}
|
||||
</view>
|
||||
<!-- 待付款 -->
|
||||
|
||||
<view v-if="
|
||||
|
||||
Reference in New Issue
Block a user