修改秒杀默认数据
parent
17530506fb
commit
8044a37d26
|
|
@ -217,10 +217,12 @@ const seckill_head_style = computed(() => {
|
|||
|
||||
const seckill_head_img_style = computed(() => {
|
||||
let style = ``;
|
||||
const { header_background_img, header_background_img_style } = new_style.value;
|
||||
const { header_background_img, header_background_img_style, seckill_head_padding } = new_style.value;
|
||||
// 背景图
|
||||
const back = { background_img: header_background_img, background_img_style: header_background_img_style };
|
||||
style += background_computer(back);
|
||||
// 秒杀头部内间距设置, 没有的时候默认15px
|
||||
const padding = !isEmpty(seckill_head_padding) ? seckill_head_padding : { padding: 0, padding_top: 15, padding_bottom: 15, padding_left: 13, padding_right: 13};
|
||||
style += background_computer(back) + padding_computer(padding);
|
||||
return style;
|
||||
});
|
||||
|
||||
|
|
@ -496,7 +498,7 @@ const corner_marker = computed(() => {
|
|||
font-size: 0.9rem;
|
||||
}
|
||||
.seckill-head {
|
||||
padding: 1.5rem 1.3rem;
|
||||
// padding: 1.5rem 1.3rem;
|
||||
width: 100%;
|
||||
height: 5.1rem;
|
||||
border-radius: 0.8rem 0.8rem 0 0;
|
||||
|
|
|
|||
|
|
@ -30,6 +30,9 @@
|
|||
<upload v-model="form.header_background_img" :limit="1"></upload>
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="内间距">
|
||||
<padding :value="form.seckill_head_padding"></padding>
|
||||
</el-form-item>
|
||||
</card-container>
|
||||
<div class="divider-line"></div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ interface DefaultSeckill {
|
|||
header_background_direction: string;
|
||||
header_background_img_style: string;
|
||||
header_background_img: uploadList[];
|
||||
seckill_head_padding: paddingStyle;
|
||||
shop_radius: radiusStyle;
|
||||
shop_img_radius: radiusStyle;
|
||||
shop_padding: paddingStyle;
|
||||
|
|
@ -118,6 +119,14 @@ const defaultSeckill: DefaultSeckill = {
|
|||
header_background_direction: '180deg',
|
||||
header_background_img_style: '2',
|
||||
header_background_img: [{ id: 1, url: new_url + 'header-bg.png', original: '背景', title: '背景1', ext: '.png', type: 'img' }],
|
||||
// 头部内边距
|
||||
seckill_head_padding: {
|
||||
padding: 0,
|
||||
padding_top: 15,
|
||||
padding_bottom: 15,
|
||||
padding_left: 13,
|
||||
padding_right: 13,
|
||||
},
|
||||
// 商品内容圆角
|
||||
shop_radius: {
|
||||
radius: 8,
|
||||
|
|
|
|||
Loading…
Reference in New Issue