mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 07:29:48 +08:00
【优化】售后提醒调整展示模式,将toast调整为可关闭的alert模式
This commit is contained in:
@@ -11,12 +11,16 @@
|
|||||||
</view>
|
</view>
|
||||||
</u-navbar>
|
</u-navbar>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
|
|
||||||
|
<view class="coreshop-margin-10" v-if="showAlert">
|
||||||
|
<u-alert :title="alertTitle" type="warning" effect="dark" :closable="alertClosable" :description="alertDescription"></u-alert>
|
||||||
|
</view>
|
||||||
|
|
||||||
<view class="coreshop-solid-bottom coreshop-bg-white coreshop-font-lg coreshop-padding-15">
|
<view class="coreshop-solid-bottom coreshop-bg-white coreshop-font-lg coreshop-padding-15">
|
||||||
<uni-text class="coreshop-text-black">
|
<uni-text class="coreshop-text-black">
|
||||||
<span>请选择退货商品和数量</span>
|
<span>请选择退货商品和数量</span>
|
||||||
</uni-text>
|
</uni-text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<form @submit="submit">
|
<form @submit="submit">
|
||||||
<view class="coreshop-tabbar-height">
|
<view class="coreshop-tabbar-height">
|
||||||
<view class="img-list">
|
<view class="img-list">
|
||||||
@@ -185,7 +189,11 @@
|
|||||||
submitStatus: false,
|
submitStatus: false,
|
||||||
checkedItems: [],//当前选中的商品
|
checkedItems: [],//当前选中的商品
|
||||||
isFlag: true,
|
isFlag: true,
|
||||||
costFreight: 0//运费
|
costFreight: 0,//运费
|
||||||
|
showAlert: false,
|
||||||
|
alertTitle: '提醒',
|
||||||
|
alertDescription: '',
|
||||||
|
alertClosable: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -341,10 +349,10 @@
|
|||||||
nums = this.items[j].returnNums
|
nums = this.items[j].returnNums
|
||||||
//this.itemIds = this.itemIds.concat({ id: k, nums: nums });
|
//this.itemIds = this.itemIds.concat({ id: k, nums: nums });
|
||||||
this.itemIds.forEach((item, index, arr) => {
|
this.itemIds.forEach((item, index, arr) => {
|
||||||
if (item.id==k) {
|
if (item.id == k) {
|
||||||
item.nums = nums;
|
item.nums = nums;
|
||||||
}
|
}
|
||||||
// console.log(index + ":" + item)
|
// console.log(index + ":" + item)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$u.toast("您填写的数量不对!")
|
this.$u.toast("您填写的数量不对!")
|
||||||
@@ -402,7 +410,9 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
_that.$u.toast(res.msg);
|
_that.showAlert = true;
|
||||||
|
_that.alertDescription = res.msg;
|
||||||
|
//_that.$u.toast(res.msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user