Browse Source

修改横幅通知

修改企业端投诉只查看本人数据
v2
chenrui 2 years ago
parent
commit
9ba0840f9c
  1. 2
      src/views/enforce/enterpriseBaseInfo.vue
  2. 38
      src/views/enforceHome.vue
  3. 4
      src/views/enterprise/complaintList.vue

2
src/views/enforce/enterpriseBaseInfo.vue

@ -92,7 +92,7 @@
<div class="refresh_content" v-if="data?.checkDataList.length && data?.show == 1">
<div class="goods_box" v-for="(item, index) in data?.checkDataList" :key="index">
<van-swipe-cell class="swipe_cell">
<div class="card_box" @click="toDetailView(item.id)">
<div class="card_box">
<!-- <div style="background-color: aqua; border: 2px; height: .1px;" class="van-hairline&#45;&#45;bottom"></div>-->
<div class="card_box_span">

38
src/views/enforceHome.vue

@ -27,8 +27,8 @@
class="streamer"
/> -->
<div class="noticeContent">
<ul class="notice_list" :class="noticeList.length>1?{notice_top:freshMap.animate}:''">
<li v-for="(item, index) in noticeList" :key="index">
<ul class="notice_list" :class="data.noticeList.length>1?{notice_top:freshMap.animate}:''">
<li v-for="(item, index) in data.noticeList" :key="index">
{{item.content}}
</li>
</ul>
@ -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)
}

4
src/views/enterprise/complaintList.vue

@ -100,6 +100,7 @@
</template>
<script setup name="registrationList">
import { Pagination } from 'vant';
import {queryRegistrationList, toMssqAppraise,queryEnterpriseComplaintList} from '../../api/enterprise';
import {queryLinkage, queryLinkageById, queryLinkageDictByValueAndParentId} from "@/api/linkage";
import { setGoodsNum } from "@/util/util";
@ -169,6 +170,9 @@ onMounted(() => {
// queryLinkageDictByValueAndParentId({"value": "check_item", "parentId": "100"}, success => {
// getLinkageByParentIdToItem(success.id)
// },error=>{});
if(useCommon.enterpriseNumber == null || useCommon.enterpriseNumber == ''){
}
queryEnterpriseComplaintList(searchParam, success => {
console.log(success.data)
data.dataList = success.data;

Loading…
Cancel
Save