ceshi1/js/7432.30bb90b8.js

2 lines
4.2 KiB
JavaScript

"use strict";(self["webpackChunkapp"]=self["webpackChunkapp"]||[]).push([[7432],{7432:function(t,e,a){a.r(e),a.d(e,{default:function(){return d}});a(7658);var i=function(){var t=this,e=t._self._c;return e("div",[e("van-tabs",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[e("van-tab",{attrs:{title:"健康资讯"}},t._l(t.homeList,(function(a,i){return e("div",{key:i,staticClass:"seek_list"},[a.thumbnail.length>1?e("div",{on:{click:function(e){return t.$router.push("/home/Information_Details?infoId="+a.infoId)}}},[e("h3",[t._v(t._s(a.title))]),e("div",{staticClass:"imgs"},t._l(a.thumbnail,(function(t,a){return e("img",{key:a,attrs:{src:t,alt:""}})})),0),e("div",{staticClass:"emil"},[e("span",[t._v(t._s(a.source))]),e("span",[t._v(t._s(a.releaseTime))])])]):e("div",[e("dl",{on:{click:function(e){return t.$router.push("/home/Information_Details?infoId="+a.infoId)}}},[e("dt",[e("img",{attrs:{src:a.thumbnail,alt:""}})]),e("dd",[e("h4",[t._v(t._s(a.title))])])]),e("div",{staticClass:"emil"},[e("span",[t._v(t._s(a.source))]),e("span",[t._v(t._s(a.releaseTime))])])])])})),0),e("van-tab",{attrs:{title:"健康视频"}},[e("div",{staticClass:"main"},[e("img",{attrs:{src:a(6049),alt:""}}),e("p",[t._v("您还没有收藏哦")])])]),e("van-tab",{attrs:{title:"病友圈"}},t._l(t.byList,(function(a,i){return e("div",{key:i,staticClass:"active3",on:{click:function(e){return t.$router.push("/home/default_details?id="+a.sickCircleId)}}},[e("h3",[t._v(t._s(a.title))]),e("p",[t._v(" "+t._s(a.disease)+" ")]),e("div",[e("p",[e("span",[t._v("收藏:"+t._s(a.collectionNum))]),e("span",[t._v("建议:"+t._s(a.commentNum))])]),e("p",[t._v(t._s(t.changeTime(a.createTime)))])])])})),0)],1)],1)},n=[],s=a(2900),r=a(340),o={mixins:[r.D],data(){return{active:0,homeList:[],byList:[]}},methods:{async findUserInfoCollection(){let t={page:1,count:5},{data:e}=await(0,s.bF)(t);console.log(e),e.result.forEach((t=>{let e=t.thumbnail.split(";"),a=Object.assign({},{...t},{thumbnail:e});this.homeList.push(a)}))},async findUserSickCollection(){let t={page:1,count:5},{data:e}=await(0,s.Ky)(t);console.log(e),"0000"==e.status&&(this.byList=e.result)},async findVideoCollection(){let t={page:1,count:5},{data:e}=await(0,s.sM)(t);console.log(e)}},created(){this.findUserInfoCollection(),this.findUserSickCollection(),this.findVideoCollection()}},l=o,c=a(1001),u=(0,c.Z)(l,i,n,!1,null,"39a49718",null),d=u.exports},2900:function(t,e,a){a.d(e,{H3:function(){return n},J2:function(){return r},Ky:function(){return h},bF:function(){return d},bS:function(){return c},e9:function(){return s},fH:function(){return u},go:function(){return o},sM:function(){return f},vf:function(){return l}});var i=a(9028);let n=async t=>(console.log(t),await(0,i.Z)({method:"post",url:"/health/user/verify/v1/recharge",data:{...t},headers:{"Content-Type":"application/x-www-form-urlencoded"}})),s=async t=>await(0,i.Z)({method:"get",url:"/health/user/verify/v1/findUserArchives",params:{...t}}),r=async t=>await(0,i.Z)({method:"post",url:"/health/user/verify/v1/addUserArchives",data:{...t}}),o=async t=>await(0,i.Z)({method:"post",url:"/health/user/verify/v1/uploadArchivesPicture",data:{...t},headers:{"Content-type":"multipart/form-data"}}),l=async t=>await(0,i.Z)({method:"delete",url:"/health/user/verify/v1/deleteUserArchives",params:{archivesId:t}}),c=async t=>await(0,i.Z)({method:"put",url:"/health/user/verify/v1/updateUserArchives",data:{...t},headers:{"Content-type":"application/json"}}),u=async t=>await(0,i.Z)({method:"get",url:"/health/user/verify/v1/findUserDoctorFollowList",params:{...t}}),d=async t=>await(0,i.Z)({method:"get",url:"/health/user/verify/v1/findUserInfoCollectionList",params:{...t}}),h=async t=>await(0,i.Z)({method:"get",url:"/health/user/verify/v1/findUserSickCollectionList",params:{...t}}),f=async t=>await(0,i.Z)({method:"get",url:"/health/user/verify/v1/findVideoCollectionList",params:{...t}})},340:function(t,e,a){a.d(e,{D:function(){return i}});const i={data(){return{}},methods:{changeTime(t){const e=t,a=new Date(e),i=a.getFullYear(),n=a.getMonth()+1,s=a.getDate(),r=a.getHours(),o=a.getMinutes(),l=a.getSeconds(),c=`${i}-${n}-${s} ${r}:${o}:${l}`;return c}}}},6049:function(t,e,a){t.exports=a.p+"img/no_message.4cb0942a.png"}}]);
//# sourceMappingURL=7432.30bb90b8.js.map