|
|
@ -27,8 +27,8 @@ |
|
|
class="streamer" |
|
|
class="streamer" |
|
|
/> --> |
|
|
/> --> |
|
|
<div class="noticeContent"> |
|
|
<div class="noticeContent"> |
|
|
<ul class="notice_list" :class="noticeList.length>1?{notice_top:freshMap.animate}:''"> |
|
|
<ul class="notice_list" :class="data.noticeList.length>1?{notice_top:freshMap.animate}:''"> |
|
|
<li v-for="(item, index) in noticeList" :key="index"> |
|
|
<li v-for="(item, index) in data.noticeList" :key="index"> |
|
|
{{item.content}} |
|
|
{{item.content}} |
|
|
</li> |
|
|
</li> |
|
|
</ul> |
|
|
</ul> |
|
|
@ -98,17 +98,8 @@ |
|
|
key: 0, |
|
|
key: 0, |
|
|
animate: false |
|
|
animate: false |
|
|
}); |
|
|
}); |
|
|
const noticeList = [ |
|
|
|
|
|
{ |
|
|
const noticeList = []; |
|
|
content: '苹果也疯狂!iPhone XR来到小米价,刷新售价底线' |
|
|
|
|
|
}, { |
|
|
|
|
|
content: '“5号电池一出”,充电宝没用了,所有手机通用,行千里不关机' |
|
|
|
|
|
}, { |
|
|
|
|
|
content: '小米10一出手就高配置,小米9难及十分之一,友商都汗颜' |
|
|
|
|
|
}, { |
|
|
|
|
|
content: 'iPhone XR2性能曝光,A13处理器+后置双摄' |
|
|
|
|
|
} |
|
|
|
|
|
]; |
|
|
|
|
|
// 模拟异步数据加载 |
|
|
// 模拟异步数据加载 |
|
|
// setTimeout(() => { |
|
|
// setTimeout(() => { |
|
|
|
|
|
|
|
|
@ -132,7 +123,9 @@ |
|
|
speed: 20, |
|
|
speed: 20, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
const data = reactive({}); |
|
|
const data = reactive({ |
|
|
|
|
|
noticeList: [] |
|
|
|
|
|
}); |
|
|
const adviceList = reactive([]); |
|
|
const adviceList = reactive([]); |
|
|
const boutiqueAttr = reactive({ |
|
|
const boutiqueAttr = reactive({ |
|
|
columnNum: 4, |
|
|
columnNum: 4, |
|
|
@ -186,9 +179,13 @@ |
|
|
queryEnforcementInspectionProgramListNoPermission({},success =>{ |
|
|
queryEnforcementInspectionProgramListNoPermission({},success =>{ |
|
|
console.log(success) |
|
|
console.log(success) |
|
|
if(success.data.length > 4 ){ |
|
|
if(success.data.length > 4 ){ |
|
|
for (let i = 0; i < 1; i++) { |
|
|
for (let i = 0; i < 5; i++) { |
|
|
carouselList.push(success.data[i]); |
|
|
carouselList.push(success.data[i]); |
|
|
noticeObj.noticeList.push(success.data[i].planName) |
|
|
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 + " "; |
|
|
// noticeStr += success.data[i].planName != null ?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); |
|
|
noticeObj.noticeList.push(success.data[i].planName); |
|
|
} |
|
|
} |
|
|
noticeStr += success.data[0].planName != null ?success.data[0].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 |
|
|
freshMap.key = 1 |
|
|
console.log(carouselList); |
|
|
console.log(carouselList); |
|
|
|
|
|
console.log(data.noticeList); |
|
|
// timerObj.timer = setInterval(flushMessage, 4000); |
|
|
// timerObj.timer = setInterval(flushMessage, 4000); |
|
|
setNotificationMove(); |
|
|
setNotificationMove(); |
|
|
},error =>{ |
|
|
},error =>{ |
|
|
@ -261,7 +263,7 @@ |
|
|
isLoading.value = false; |
|
|
isLoading.value = false; |
|
|
} |
|
|
} |
|
|
}, error => { |
|
|
}, error => { |
|
|
|
|
|
queryList(); |
|
|
}) |
|
|
}) |
|
|
// getEnterpriseMerchantAuthorization({merchantTel: useCommon.phonenumber}, success => { |
|
|
// getEnterpriseMerchantAuthorization({merchantTel: useCommon.phonenumber}, success => { |
|
|
// if (!(success.data == null && success.data.length == 0)) { |
|
|
// if (!(success.data == null && success.data.length == 0)) { |
|
|
@ -321,8 +323,8 @@ |
|
|
const showNotice = () => { |
|
|
const showNotice = () => { |
|
|
freshMap.animate = true |
|
|
freshMap.animate = true |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
noticeList.push(noticeList[0]) |
|
|
data.noticeList.push(data.noticeList[0]) |
|
|
noticeList.shift() |
|
|
data.noticeList.shift() |
|
|
freshMap.animate = false |
|
|
freshMap.animate = false |
|
|
}, 500) |
|
|
}, 500) |
|
|
} |
|
|
} |
|
|
|