mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 15:53:26 +08:00
Merge branch 'dev' into 'master'
uniapp【优化】:首页公告向左跑马灯,防止录入内容长就看不全的问题 See merge request jianweie/coreshoppro!114
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="m-b-25">
|
<view class="m-b-25">
|
||||||
<uv-notice-bar :text="noticeArray" @click="handleRouteNavigateTo('/pages/subpackage/notice/list/list')"
|
<uv-notice-bar :text="noticeArray" @click="handleRouteNavigateTo('/pages/subpackage/notice/list/list')"
|
||||||
:customStyle="{'border-radius':'15rpx' , 'padding':'12px'}" direction="column" bgColor="#fff"
|
:customStyle="{'border-radius':'15rpx' , 'padding':'12px'}" direction="row" bgColor="#fff"
|
||||||
color="#D83E35"></uv-notice-bar>
|
color="#D83E35"></uv-notice-bar>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -16,8 +16,8 @@
|
|||||||
data: {},
|
data: {},
|
||||||
});
|
});
|
||||||
|
|
||||||
let noticeArray = ref([]);
|
let noticeArray = ref('');
|
||||||
noticeArray.value = props.data.list.map((item : any) => `${item.title}【${timeFormat(item.createTime, 'yyyy年mm月dd日')}】`);
|
props.data.list.forEach((item : any) => noticeArray.value += `${item.title}【${timeFormat(item.createTime, 'yyyy年mm月dd日')}】\u00A0\u00A0\u00A0\u00A0\u00A0`);
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user