Commit 6685f8f0 by crushh

udpate: 兼容channelTip为null

parent 07da7933
......@@ -589,7 +589,7 @@ export default {
this.storeMode = card.storeMode === 0 ? 0 : 1;
this.gicCouponType = card.gicCouponType;
this.form.cardApplyChannel = card.cardApplyChannel ? card.cardApplyChannel.split(',') : [];
this.form.channelTip = card.channelTip;
this.form.channelTip = card.channelTip == null ? '' : card.channelTip;
this.form.auditingStatus = card.auditingStatus || '';
this.form.giveFlag = card.giveFlag;
this.form.refundFlag = card.refundFlag || 0;
......@@ -966,7 +966,7 @@ export default {
let card = {};
let params = {};
card.channelTip = this.form.channelTip.slice(0, 18); // 有超过18字长的老数据
card.channelTip = this.form.channelTip ? this.form.channelTip.slice(0, 18) : ''; // 有超过18字长的老数据
card.cardApplyChannel = this.form.cardApplyChannel.join(',');
card.coupCardId = this.form.coupCardId;
card.cardType = this.form.cardType;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment