You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
28 KiB

1 year ago
  1. var e=Object.defineProperty,t=Object.prototype.hasOwnProperty,s=Object.getOwnPropertySymbols,i=Object.prototype.propertyIsEnumerable,a=(t,s,i)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[s]=i,n=(e,n)=>{for(var l in n||(n={}))t.call(n,l)&&a(e,l,n[l]);if(s)for(var l of s(n))i.call(n,l)&&a(e,l,n[l]);return e};import{_ as l}from"./returnBar.35b6215f.js";import{c}from"./tool.8db46c9c.js";import{_ as o}from"./gz@2x.4eecd945.js";import{_ as r,a as d}from"./dushu-yizan@2x.b53044a0.js";import{B as A,x as I,v as p,K as h,T as m,G as u,p as g,m as b,c as y,t as w,u as R,F as N,q as E,s as C,w as M,r as k,o as S}from"./vendor.269b2875.js";import"./pinlun@2x.628190cf.js";import"./paixu@2x.fd1743af.js";var G="/assets/kongzhuangtai-huida@2x.1ef13ca3.png";const D={components:{ReturnBar:l},setup(){const{proxy:e}=A(),t=I({typeBar:2,TabCur:0,isPageCurrent:!0,tabList:[{id:1,name:"问题"},{id:2,name:"回答"},{id:3,name:"关注"},{id:4,name:"动态"}],userInfo:{},issuesList:[],MyissuesList:[],answerList:[],totalPages:0,certificateNo:"",Order:"Date_desc",ShowId:"",custIds:"",pageIndex:1,hasNextPage:!1,isFlag:!0,isEmpty:!1,isSelf:!1,isAttn:!1,isHasAttn:!1,pubilshWarpShow:!1,attenPopShow:!1,attenHasIndex:0,reportPopShow:!1,reportIndex:0,isFixed:!1,isOtherDynamic:!1});p((()=>{const t=e;let n=e.$route.query.isSelf;t.TabCur=Number(e.$route.query.tablist)||Number(localStorage.getItem("tablist")),t.custIds=e.$route.query.custid,"false"==n?(t.isSelf=!1,t.isOtherDynamic=!1,y()):"true"!=n&&null!=n||(t.isSelf=!0,t.isOtherDynamic=!0,g()),a(t.TabCur),window.addEventListener("scroll",i,!0),s()})),h((()=>e.$route),((t,s)=>{t.query.custid!=s.query.custid&&null!=t.query.custid&&e.$router.go(0)}));let s=()=>{const t=e;0==t.isSelf&&t.tabList.splice(2,1)},i=t=>{const s=e;let i=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;if(document.querySelector("#tabNav")){let e=document.querySelector("#tabNav").offsetTop;i>=e&&!s.isFixed?s.isFixed=!0:i<e&&s.isFixed&&(s.isFixed=!1)}},a=t=>{const s=e;s.pageIndex=1,s.answerList=[],s.issuesList=[],s.MyissuesList=[],window.scrollTo(0,0),s.TabCur=t,l(s.TabCur)},l=t=>{const s=e;switch(t){case 0:0==s.isSelf?w():b();break;case 1:r();break;case 2:0==s.isSelf?(s.ShowId=s.custIds,s.isAttn=!1,d()):(s.isAttn=!0,d());break;case 3:s.isAttn=!1,d()}},o=()=>{const t=e;if(t.hasNextPage){if(t.pageIndex++,t.pageIndex>t.totalPages)return!1;l(t.TabCur)}},r=()=>{const t=e;let s={ShowId:t.custIds,BelongId:"",Order:"Date_desc",pageIndex:t.pageIndex,pageSize:10};t.$http.get(e.$API.GETANSEWRPAGES,{params:s,headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((e=>{200==e.type?(t.isFlag=!0,t.isEmpty=!1,t.totalPages=e.pages,t.hasNextPage=e.hasNextPage,t.MyissuesList=t.MyissuesList.concat(e.data),0==e.data.length&&(t.isEmpty=!0,t.hasNextPage=!0)):m(e.content)})).catch((e=>{}))},d=()=>{const t=e;let s={Where:t.certificateNo,IsSelf:!1,ShowId:t.ShowId,Order:t.Order,Attn:t.isAttn,pageIndex:t.pageIndex,pageSize:10};t.$http.get(e.$API.GETDYNAMICPAGES,{params:s,headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((e=>{200==e.type?(t.isFlag=!0,t.isEmpty=!1,t.hasNextPage=e.hasNextPage,t.totalPages=e.pages,t.answerList=t.answerList.concat(e.data),0==e.data.length&&(t.isEmpty=!0,t.hasNextPage=!0)):m(e.content)})).catch((e=>{}))},g=()=>{const t=e;e.$http.get(e.$API.GETUSERINFO,{params:{},headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((e=>{if(200==e.type){let s=e.data;if(t.userInfo=s,0==s.length)return m("获取数据出错,请与管理员联系"),!1}else m(e.content)})).catch((e=>{}))},b=()=>{const t=e;let s={isSelf:t.isSelf,Tag:"",Order:"Date_desc",pageIndex:t.pageIndex,pageSize:10};t.$http.get(e.$API.GETQUESTIONPAGES,{params:s}).then((e=>{200==e.type?(t.isFlag=!0,t.isEmpty=!1,t.hasNextPage=e.hasNextPage,t.totalPages=e.pages,t.issuesList=t.issuesList.concat(e.data),e.data[0]&&(t.custId=e.data[0].custId),0==e.data.length&&(t.isEmpty=!0,t.hasNextPage=!0)):m(e.content)})).catch((e=>{}))},y=()=>{const t=e;let s={CustId:t.custIds};t.$http.get(e.$API.GETOTHERUSE