| | |
| | | @change="onChangeVisit" /> |
| | | </view> |
| | | <view class="form-item d-b-c border-b-e" v-if="is_checked_visit"> |
| | | <view class="item-title">被走访企业名称</view> |
| | | <input type="text" v-model="formData.visit_supplier_name" class="ww100" placeholder="商户没有入驻时,请输入被走访企业名称" /> |
| | | </view> |
| | | <view class="form-item d-b-c border-b-e" v-if="is_checked_visit"> |
| | | <view class="item-title">被走访企业</view> |
| | | <view class="d-s-c" @click="selectSupplier('visit')"> |
| | | <view class="make-item input-box flex-1">{{visit_supplier_name||'请选择'}}</view> |
| | |
| | | <view class="item-title">活动名额(人)</view> |
| | | <input type="number" v-model="formData.limit_num" class="tr flex-1" |
| | | placeholder='请输入活动名额,0表示不限制' /> |
| | | </view> |
| | | <view class="form-item d-b-c border-b-e" v-if="selectedCategory.limit_num > 0"> |
| | | <view class="gray9 pt10">该分类最多{{selectedCategory.limit_num}}人</view> |
| | | </view> |
| | | <view class="form-item d-b-c border-b-e"> |
| | | <view class="item-title">报名开始时间</view> |
| | |
| | | }, |
| | | created() { |
| | | this.getCategoryList(); |
| | | }, |
| | | computed: { |
| | | selectedCategory() { |
| | | if (!this.category || this.category.length === 0 || this.category_index === '') { |
| | | return {}; |
| | | } |
| | | return this.category[this.category_index] || {}; |
| | | } |
| | | }, |
| | | methods: { |
| | | // 提交 |
| | |
| | | }, |
| | | insertImage() { |
| | | this.isupload = true; |
| | | this.upload_type = 'insertImage' |
| | | |
| | | this.upload_type = 'insertImage'; |
| | | } |
| | | } |
| | | }, |
| | | } |
| | | </script> |
| | | |