[优惠券得使用规则加校验及优惠券规则为null处理为空]
This commit is contained in:
@@ -236,7 +236,13 @@
|
|||||||
days : this.timeNumber,
|
days : this.timeNumber,
|
||||||
goodsable_ids : this.coupongoods
|
goodsable_ids : this.coupongoods
|
||||||
}
|
}
|
||||||
|
if(valuss.description === ''){
|
||||||
|
uni.showToast({
|
||||||
|
title:'请添加使用规则',
|
||||||
|
icon:'none'
|
||||||
|
})
|
||||||
|
return;
|
||||||
|
}
|
||||||
pushCoupons(valuss).then(res => {
|
pushCoupons(valuss).then(res => {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title : '提示',
|
title : '提示',
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
getList() {
|
getList() {
|
||||||
getCouponsInfoById(this.coupon_grant_id).then(res => {
|
getCouponsInfoById(this.coupon_grant_id).then(res => {
|
||||||
this.info = res
|
this.info = res
|
||||||
this.contentArr = res.description.replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>').split('<br/>')
|
this.contentArr =res.description? res.description.replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>').split('<br/>'):''
|
||||||
this.loaded = true
|
this.loaded = true
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
|
|||||||
Reference in New Issue
Block a user