Browse Source

修改横幅通知

修改企业端投诉只查看本人数据
v2
chenrui 2 years ago
parent
commit
9ba0840f9c
  1. 2
      src/views/enforce/enterpriseBaseInfo.vue
  2. 38
      src/views/enforceHome.vue
  3. 12
      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="refresh_content" v-if="data?.checkDataList.length && data?.show == 1">
<div class="goods_box" v-for="(item, index) in data?.checkDataList" :key="index"> <div class="goods_box" v-for="(item, index) in data?.checkDataList" :key="index">
<van-swipe-cell class="swipe_cell"> <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 style="background-color: aqua; border: 2px; height: .1px;" class="van-hairline&#45;&#45;bottom"></div>-->
<div class="card_box_span"> <div class="card_box_span">

38
src/views/enforceHome.vue

@ -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)
} }

12
src/views/enterprise/complaintList.vue

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

Loading…
Cancel
Save