From 9ba0840f9c660047a442f0ff5086c25e984f13f1 Mon Sep 17 00:00:00 2001
From: chenrui <1950717904@qq.com>
Date: Mon, 12 Aug 2024 09:36:53 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A8=AA=E5=B9=85=E9=80=9A?=
=?UTF-8?q?=E7=9F=A5=20=E4=BF=AE=E6=94=B9=E4=BC=81=E4=B8=9A=E7=AB=AF?=
=?UTF-8?q?=E6=8A=95=E8=AF=89=E5=8F=AA=E6=9F=A5=E7=9C=8B=E6=9C=AC=E4=BA=BA?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/enforce/enterpriseBaseInfo.vue | 2 +-
src/views/enforceHome.vue | 38 +++++++++++++-----------
src/views/enterprise/complaintList.vue | 12 +++++---
3 files changed, 29 insertions(+), 23 deletions(-)
diff --git a/src/views/enforce/enterpriseBaseInfo.vue b/src/views/enforce/enterpriseBaseInfo.vue
index b3c056a..fb87e07 100644
--- a/src/views/enforce/enterpriseBaseInfo.vue
+++ b/src/views/enforce/enterpriseBaseInfo.vue
@@ -92,7 +92,7 @@
-
+
diff --git a/src/views/enforceHome.vue b/src/views/enforceHome.vue
index d4edf1e..f533fed 100644
--- a/src/views/enforceHome.vue
+++ b/src/views/enforceHome.vue
@@ -27,8 +27,8 @@
class="streamer"
/> -->
-
- -
+
@@ -98,17 +98,8 @@
key: 0,
animate: false
});
- const noticeList = [
- {
- content: '苹果也疯狂!iPhone XR来到小米价,刷新售价底线'
- }, {
- content: '“5号电池一出”,充电宝没用了,所有手机通用,行千里不关机'
- }, {
- content: '小米10一出手就高配置,小米9难及十分之一,友商都汗颜'
- }, {
- content: 'iPhone XR2性能曝光,A13处理器+后置双摄'
- }
- ];
+
+ const noticeList = [];
// 模拟异步数据加载
// setTimeout(() => {
@@ -132,7 +123,9 @@
speed: 20,
});
- const data = reactive({});
+ const data = reactive({
+ noticeList: []
+ });
const adviceList = reactive([]);
const boutiqueAttr = reactive({
columnNum: 4,
@@ -186,9 +179,13 @@
queryEnforcementInspectionProgramListNoPermission({},success =>{
console.log(success)
if(success.data.length > 4 ){
- for (let i = 0; i < 1; i++) {
+ for (let i = 0; i < 5; i++) {
carouselList.push(success.data[i]);
noticeObj.noticeList.push(success.data[i].planName)
+ var obj = {
+ content: success.data[i].planName
+ }
+ data.noticeList.push(obj)
// noticeStr += success.data[i].planName + " ";
// noticeStr += success.data[i].planName != null ?success.data[i].planName + "":"";
}
@@ -201,9 +198,14 @@
noticeObj.noticeList.push(success.data[i].planName);
}
noticeStr += success.data[0].planName != null ?success.data[0].planName + "":"";
+ var obj = {
+ content: success.data[i].planName
+ }
+ data.noticeList.push(obj)
}
freshMap.key = 1
console.log(carouselList);
+ console.log(data.noticeList);
// timerObj.timer = setInterval(flushMessage, 4000);
setNotificationMove();
},error =>{
@@ -261,7 +263,7 @@
isLoading.value = false;
}
}, error => {
-
+ queryList();
})
// getEnterpriseMerchantAuthorization({merchantTel: useCommon.phonenumber}, success => {
// if (!(success.data == null && success.data.length == 0)) {
@@ -321,8 +323,8 @@
const showNotice = () => {
freshMap.animate = true
setTimeout(() => {
- noticeList.push(noticeList[0])
- noticeList.shift()
+ data.noticeList.push(data.noticeList[0])
+ data.noticeList.shift()
freshMap.animate = false
}, 500)
}
diff --git a/src/views/enterprise/complaintList.vue b/src/views/enterprise/complaintList.vue
index bb9f7c3..314e141 100644
--- a/src/views/enterprise/complaintList.vue
+++ b/src/views/enterprise/complaintList.vue
@@ -100,6 +100,7 @@