|
@@ -5,8 +5,8 @@
|
|
|
<s-header :name="sys ? sys.title : $t('public.homePage')" :noback="true" :isFixed="false"></s-header>
|
|
|
<!-- 新闻通知 -->
|
|
|
<template v-if="noticeContent.title">
|
|
|
- <van-notice-bar @click="noticeClk" mode="link" :scrollable="true" color="rgba(64,77,116,1)" left-icon="volume-o"
|
|
|
- :text="noticeContent.title" />
|
|
|
+ <van-notice-bar @click="noticeClk" mode="link" :scrollable="true" color="#ff3456" background="#F2F9FC"
|
|
|
+ left-icon="volume-o" :text="noticeContent.title" />
|
|
|
</template>
|
|
|
<!-- 灰线 -->
|
|
|
<!-- <div class="intervalRow"></div> -->
|
|
@@ -25,7 +25,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<div class="c-text-c c-text-18" style="color: #39a6fe;font-weight: bold ;">
|
|
|
月K线图
|
|
|
</div>
|
|
@@ -75,7 +75,6 @@
|
|
|
<van-col span="8">总金额</van-col>
|
|
|
</van-row>
|
|
|
<van-row v-for="(item, index) in sellTop5List" :key="index" justify="center">
|
|
|
- <!-- <van-col span="8">卖家{{ index + 1 }}</van-col> -->
|
|
|
<van-col span="8">{{ item.userAnonymousName }}</van-col>
|
|
|
<van-col span="8">{{ item.totalNum }}</van-col>
|
|
|
<van-col span="8">{{ item.totalPrice }}</van-col>
|
|
@@ -93,13 +92,16 @@
|
|
|
<br />
|
|
|
</div>
|
|
|
<!-- 新闻通知弹窗 -->
|
|
|
- <kDialog :dialogTitle="$t('home.notificationPop.notification')" cancelBtnTxt="确定"
|
|
|
- ref="kDialogRef" >
|
|
|
+ <kDialog :dialogTitle="$t('home.notificationPop.notification')" cancelBtnTxt="确定" ref="kDialogRef">
|
|
|
<template #content>
|
|
|
<div class="o-w" style="max-height: 50vh; overflow-y: auto" v-html="noticeContent.content"></div>
|
|
|
</template>
|
|
|
</kDialog>
|
|
|
|
|
|
+ <!-- 水印 -->
|
|
|
+ <van-watermark :content="watermarkVal" opacity="0.3" :gap-x="70" :gap-y="50" :height="50" rotate="2" />
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -135,15 +137,15 @@ async function getTop5Func() {
|
|
|
const noticeContent = ref({});
|
|
|
// 获取公告
|
|
|
const getNotice = () => {
|
|
|
-
|
|
|
+
|
|
|
const params = {
|
|
|
current: 1,
|
|
|
size: 10
|
|
|
}
|
|
|
- getPageNotice(params).then((res)=>{
|
|
|
+ getPageNotice(params).then((res) => {
|
|
|
noticeContent.value = res.data.data.records[0] || {};
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
};
|
|
|
// 通知弹窗
|
|
|
const kDialogRef = ref(null);
|
|
@@ -168,6 +170,22 @@ const user = getLoginUser();
|
|
|
const userName = ref(user.userName);
|
|
|
const sys = ref(null);
|
|
|
|
|
|
+const watermarkVal = ref('')
|
|
|
+// 获取当前日期和时间
|
|
|
+const date = new Date();
|
|
|
+
|
|
|
+const year = date.getFullYear() % 100; // 获取年份的后两位
|
|
|
+const month = (date.getMonth() + 1).toString().padStart(2, '0'); // 月份从0开始计数,所以需要+1
|
|
|
+const day = date.getDate().toString().padStart(2, '0'); // 获取日期
|
|
|
+const hours = date.getHours().toString().padStart(2, '0'); // 获取小时
|
|
|
+const minutes = date.getMinutes().toString().padStart(2, '0'); // 获取分钟
|
|
|
+
|
|
|
+const formattedDate = `${year}${month}${day}${hours}${minutes}`;
|
|
|
+
|
|
|
+watermarkVal.value = user.phone + "\n" + formattedDate;
|
|
|
+
|
|
|
+// watermarkVal.value = user.phone + "~" + new Date().toISOString();
|
|
|
+// console.log("watermark >>>", watermarkVal.value);
|
|
|
|
|
|
|
|
|
// 图表对象
|