|
@@ -60,6 +60,9 @@
|
|
<el-form-item label="商品轮播图" prop="sliderPicUrls">
|
|
<el-form-item label="商品轮播图" prop="sliderPicUrls">
|
|
<UploadImgs v-model="formData.sliderPicUrls" :disabled="isDetail" />
|
|
<UploadImgs v-model="formData.sliderPicUrls" :disabled="isDetail" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="优惠活动说明" prop="activeIntroduction">
|
|
|
|
+ <Editor v-model:modelValue="formData.activeIntroduction" height="150px" />
|
|
|
|
+ </el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -74,6 +77,7 @@ import { CategoryVO } from '@/api/mall/product/category'
|
|
import * as ProductBrandApi from '@/api/mall/product/brand'
|
|
import * as ProductBrandApi from '@/api/mall/product/brand'
|
|
import { BrandVO } from '@/api/mall/product/brand'
|
|
import { BrandVO } from '@/api/mall/product/brand'
|
|
import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
|
|
import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
|
|
|
|
+import { Editor } from '@/components/Editor'
|
|
|
|
|
|
defineOptions({ name: 'ProductSpuInfoForm' })
|
|
defineOptions({ name: 'ProductSpuInfoForm' })
|
|
|
|
|
|
@@ -95,6 +99,7 @@ const formData = reactive<Spu>({
|
|
picUrl: '', // 商品封面图
|
|
picUrl: '', // 商品封面图
|
|
sliderPicUrls: [], // 商品轮播图
|
|
sliderPicUrls: [], // 商品轮播图
|
|
introduction: '', // 商品简介
|
|
introduction: '', // 商品简介
|
|
|
|
+ activeIntroduction: undefined, // 优惠活动简介
|
|
type: '0', // 商品类型
|
|
type: '0', // 商品类型
|
|
brandId: undefined // 商品品牌
|
|
brandId: undefined // 商品品牌
|
|
})
|
|
})
|