| | |
| | | <el-form-item label="是否上架:"> |
| | | <el-switch v-model="mData.isUp" :active-value="1" :inactive-value="0" /> |
| | | </el-form-item> |
| | | <el-form-item label="详情:" prop="content"> |
| | | <el-form-item label="富文本1:" prop="content"> |
| | | <!-- 富文本 --> |
| | | <WangEnduit :catchdata="catchData" :content="mData.content" :rangenum="rangenum" /> |
| | | </el-form-item> |
| | | <el-form-item label="富文本2:" prop="content2"> |
| | | <tinymce v-model="mData.content2" :height="300" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import Tinymce from '@/components/Tinymce' |
| | | import WangEnduit from '@/components/WangEnduit' // 富文本 |
| | | import mixin_upload from '@/mixins/upload.js' // 通用上传图片预览 |
| | | import UploadSingleImg from '@/components_simple/UploadSingleImg' |
| | |
| | | import BackToTop from '@/components/BackToTop' |
| | | export default { |
| | | name: 'DemoForm', |
| | | components: { WangEnduit, UploadSingleImg, BackToTop }, |
| | | components: { WangEnduit, UploadSingleImg, BackToTop, Tinymce }, |
| | | mixins: [ |
| | | mixin_upload |
| | | ], |
| | |
| | | required: true, message: '请选择地址', trigger: 'change' |
| | | }], |
| | | content: [{ |
| | | required: true, message: '请填写优惠券详情' |
| | | required: true, message: '请填写富文本1详情' |
| | | }], |
| | | content2: [{ |
| | | required: true, message: '请填写富文本2详情' |
| | | }], |
| | | uploadImgs: [{ |
| | | required: true, message: '请选择图片' |