Authored by baoss

增加优惠券详情展示判断

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