Authored by baoss

增加优惠券详情展示判断

... ... @@ -184,7 +184,7 @@
<i-form-item label="需要校验" prop="checkRequired">
<checkbox v-model="formData.isCheckRequired" :disabled="allreadonly" @on-change="getCheckRequired"></checkbox>
</i-form-item>
<i-form-item label="展示在详情页" prop="isShowInDetail">
<i-form-item v-if="isShowDetail" label="展示在详情页" prop="isShowInDetail">
<checkbox v-model="formData.isShowInDetail" :disabled="allreadonly" @on-change="setIsShowInDetail"></checkbox>
</i-form-item>
</div>
... ... @@ -496,6 +496,9 @@ export default {
counponOptions: function() {
return this.formData.userType === 1 ? userCouponType.buyer : userCouponType.seller
},
isShowDetail: function() {
return this.formData.userType === 1 ? true : false
},
uploadProp: function() {
return this.formData.productLimitType === 1 ? 'productLimitValue' : 'excludeProductIds'
},
... ...