Feat:供应商发送商品链接至商城用户
This commit is contained in:
@@ -1001,7 +1001,8 @@ export default {
|
||||
return Number(order && order._status && order._status._type)
|
||||
},
|
||||
isCollectiveWholesalerOrder(order) {
|
||||
return this.getCollectiveScenarioCode(order) === 22
|
||||
// 22=集采批发,25=直购批发
|
||||
return [22, 25].includes(this.getCollectiveScenarioCode(order))
|
||||
},
|
||||
isCollectiveCustomGiftOrder(order) {
|
||||
return this.getCollectiveScenarioCode(order) === 24
|
||||
|
||||
@@ -514,7 +514,8 @@ export default {
|
||||
usePoints: this.usePointsCheck ? 1 : 0,
|
||||
shipping_type: parseInt(this.shipping_type) + 1
|
||||
}).then(res => {
|
||||
this.couponList = res.data.result.couponList
|
||||
// 批发商品不参与优惠券,后端返回 couponList 为 null,兜底保证结构一致
|
||||
this.couponList = res.data.result.couponList || { usable: [], unusable: [] }
|
||||
if (this.isLotteryOrder()) {
|
||||
this.couponTitle = ''
|
||||
if (this.couponId !== 0) {
|
||||
@@ -556,7 +557,8 @@ export default {
|
||||
_this.offlinePayStatus = data.offline_pay_status
|
||||
_this.orderGroupInfo = data
|
||||
_this.deduction = data.deduction
|
||||
_this.couponList = data.couponList
|
||||
// 批发商品不参与优惠券,后端返回 couponList 为 null,兜底保证结构一致
|
||||
_this.couponList = data.couponList || { usable: [], unusable: [] }
|
||||
if (_this.couponId > 0) {
|
||||
_this.couponList['usable'].map((item, index) => {
|
||||
if (item.id === _this.couponId) {
|
||||
|
||||
Reference in New Issue
Block a user