营销:装修页面适配
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<s-video-block v-if="type === 'videoPlayer'" :data="data" :styles="styles" />
|
||||
<s-image-cube v-if="type === 'imageCube'" :data="data" :styles="styles" />
|
||||
|
||||
<s-notice-block v-if="type === 'noticeBlock'" :data="data" />
|
||||
<s-notice-block v-if="type === 'NoticeBar'" :data="data" />
|
||||
<s-search-block v-if="type === 'searchBlock'" :data="data" :navbar="false" />
|
||||
<s-title-block v-if="type === 'titleBlock'" :data="data" :styles="styles" />
|
||||
<s-line-block v-if="type === 'lineBlock'" :data="data" />
|
||||
|
||||
@@ -161,8 +161,8 @@
|
||||
const bgMain = computed(() => {
|
||||
if (navbarMode.value === 'inner') {
|
||||
return {
|
||||
background: `${props.bgStyle.color} url(${sheep.$url.cdn(
|
||||
props.bgStyle.src,
|
||||
background: `${props.bgStyle.backgroundColor} url(${sheep.$url.cdn(
|
||||
props.bgStyle.backgroundImage,
|
||||
)}) no-repeat top center / 100% auto`,
|
||||
};
|
||||
}
|
||||
@@ -173,8 +173,8 @@
|
||||
const bgBody = computed(() => {
|
||||
if (navbarMode.value === 'normal') {
|
||||
return {
|
||||
background: `${props.bgStyle.color} url(${sheep.$url.cdn(
|
||||
props.bgStyle.src,
|
||||
background: `${props.bgStyle.backgroundColor} url(${sheep.$url.cdn(
|
||||
props.bgStyle.backgroundImage,
|
||||
)}) no-repeat top center / 100% auto`,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
<template>
|
||||
<view class="ss-flex ss-col-center notice-wrap">
|
||||
<image class="icon-img" :src="sheep.$url.cdn(data.src)" mode="heightFix"></image>
|
||||
<image class="icon-img" :src="sheep.$url.cdn(data.iconUrl)" mode="heightFix"></image>
|
||||
<!-- todo:@owen 暂时只支持一个公告 -->
|
||||
<su-notice-bar
|
||||
style="flex: 1"
|
||||
:showIcon="false"
|
||||
scrollable
|
||||
single
|
||||
:text="data.title.text"
|
||||
:text="data.contents[0].text"
|
||||
:speed="50"
|
||||
:color="data.title.color"
|
||||
@tap="sheep.$router.go(data.url)"
|
||||
:color="data.textColor"
|
||||
@tap="sheep.$router.go(data.contents[0].url)"
|
||||
></su-notice-bar>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user