app.7afee9c3.js 32 KB

12
  1. (function(){"use strict";var t={6348:function(t,e,i){i.d(e,{Z:function(){return c}});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"fix"},[e("div",{staticClass:"back"},[e("div",{staticStyle:{display:"flex","justify-content":"space-between","box-sizing":"border-box",padding:"30px 0 0",margin:"0 auto",width:"1200px"}},[e("div",{staticClass:"logo"}),e("div",{staticClass:"serve",staticStyle:{"margin-left":"78px"}},[e("div",{staticClass:"service"},[t._v("服务说明")]),e("div",{staticClass:"agreement",staticStyle:{"margin-top":"22px"},on:{click:function(e){return t.about(0)}}},[t._v(" 常见问题 ")]),e("div",{staticClass:"agreement",staticStyle:{"margin-top":"22px"},on:{click:function(e){return t.about(1)}}},[t._v(" 关于我们 ")]),e("div",{staticClass:"agreement",staticStyle:{"margin-top":"22px"},on:{click:function(e){return t.toagreement(3)}}},[t._v(" 用户服务协议 ")]),e("div",{staticClass:"agreement",staticStyle:{"margin-top":"14px"},on:{click:function(e){return t.toagreement(2)}}},[t._v(" 隐私协议 ")])]),e("div",{staticClass:"serve",staticStyle:{"margin-left":"95px"}},[e("div",{staticClass:"service"},[t._v("我的账户")]),e("div",{staticClass:"agreement",staticStyle:{"margin-top":"22px"},on:{click:function(e){return t.toorder(1)}}},[t._v(" 我的订单 ")]),e("div",{staticClass:"agreement",staticStyle:{"margin-top":"14px"},on:{click:function(e){return t.toorder(0)}}},[t._v(" 我的体验卡 ")])]),e("div",{staticClass:"line1"}),t._m(0),e("div",{staticClass:"img"})]),e("div",{staticClass:"bottom time"},[t._v(" 某某某科技有限公司 | 浙公网安备 33010902001895号 | 浙ICP备 18006540号 © 2018-现在 万郡绿建VANDREAM版权所有 ")])])])},n=[function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"phone"},[t._v("400-000-8329")]),e("div",{staticStyle:{display:"flex","margin-top":"16px"}},[e("span",{staticClass:"time"},[t._v("工作时间:")]),e("span",{staticClass:"time",staticStyle:{width:"179px",display:"block"}},[t._v("上午8:00-12:00 下午14:00到18:00(周一到周六节假日除外)")])]),e("div",{staticStyle:{"margin-top":"16px"}},[e("span",{staticClass:"time"},[t._v("客服邮箱:")]),e("span",{staticClass:"time"},[t._v("puturu@ohawonut.gw")])])])}],a=(i(560),{data(){return{}},methods:{toorder(t){localStorage.getItem("token")?this.$router.push({path:"myorder",query:{index:t}}):this.$message.error("请登录后操作")},toagreement(t){localStorage.setItem("num",t),this.$router.push({path:"/agreement"})},about(t){this.$router.push({path:"/about",query:{num:t}})}}}),o=a,r=i(3736),l=(0,r.Z)(o,s,n,!1,null,"661f452a",null),c=l.exports},2077:function(t,e,i){i.d(e,{Z2:function(){return x},B9:function(){return S},CH:function(){return r},l$:function(){return P},BF:function(){return u},LV:function(){return B},Wv:function(){return O},Eg:function(){return h},mG:function(){return m},Or:function(){return w},xZ:function(){return y},TB:function(){return p},wd:function(){return b},iJ:function(){return $},kZ:function(){return f},kR:function(){return L},Fw:function(){return A},ok:function(){return C},CW:function(){return _},$p:function(){return v},O3:function(){return g},HF:function(){return d},h2:function(){return V},OT:function(){return N},lW:function(){return c},gi:function(){return k},MT:function(){return l}});var s=i(1076);let n="https://tyjc.hdlkeji.com";const a=s.Z.create({baseURL:n});a.interceptors.request.use((t=>{let e=localStorage.getItem("token");return e&&(t.headers.token=e),t}),(t=>{throw Promise.reject(t)})),a.interceptors.response.use((t=>{switch(t.status){case 201:case 200:return t.data;default:throw Promise.reject(t.data)}}),(t=>{}));const o={get:(t,e,i)=>a.get(t,{params:e,...i}),post:(t,e,i)=>a.post(t,e,i)},r=t=>o.post("api/user/register",t),l=t=>o.post("api/user/login",t),c=t=>o.post("/api/sms/send",t),d=t=>o.post("/api/user/mobilelogin",t),u=t=>o.post("/api/sms/check",t),h=t=>o.post("/api/banner/getBanner",t),p=t=>o.post("api/books/getBooksList",t),m=t=>o.post("api/books/getBookInfo",t),g=t=>o.post("api/video/getVideoList",t),v=t=>o.post("api/video/getVideoInfo",t),f=t=>o.post("/api/certificate/getMyCertificate",t),k=t=>o.post("/api/certificate/useCertificate",t),_=t=>o.post("api/user/getUserinfo",t),y=t=>o.post("api/books/getBooksLevel",t),w=t=>o.post("api/books/getBooksArrangement",t),b=t=>o.post("api/books/getBooksSpeciality",t),C=t=>o.post("api/books/getSeriesBooks",t),x=t=>o.post("api/books/addContribute",t),S=t=>o.post("api/books/addSampleApply",t),B=t=>o.post("api/order/createOrder",t),A=t=>o.post("api/order/getOrderList",t),L=t=>o.post("api/order/getOrderInfo",t),O=t=>o.post("api/order/delOrder",t),P=t=>o.post("api/order/cancellationOrder",t),$=t=>o.post("/api/common/getHelpConfig",t),V=t=>o.post("api/order/orderPay",t),N=t=>o.post("api/user/resetpwd",t)},972:function(t,e,i){var s=i(6369),n=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},a=[],o=i(3736),r={},l=(0,o.Z)(r,n,a,!1,null,null,null),c=l.exports,d=i(5431);(0,d.z)("service-worker.js",{ready(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered(){console.log("Service worker has been registered.")},cached(){console.log("Content has been cached for offline use.")},updatefound(){console.log("New content is downloading.")},updated(){console.log("New content is available; please refresh.")},offline(){console.log("No internet connection found. App is running in offline mode.")},error(t){console.error("Error during service worker registration:",t)}});var u=i(2631),h=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"pageindex",style:{background:0==t.tab?"rgb(244, 244, 244)":"#fff"}},[e("div",{staticClass:"header1"},[e("div",{staticStyle:{margin:"0 auto",width:"1200px"}},[e("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"space-between"}},[e("div",{staticClass:"top"},[e("div",{staticClass:"logo"}),e("div",{staticClass:"u-flex"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.keyword,expression:"keyword"}],staticClass:"ipt",attrs:{placeholder:"请输入关键词搜索",type:"text"},domProps:{value:t.keyword},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search.apply(null,arguments)},input:function(e){e.target.composing||(t.keyword=e.target.value)}}})])]),e("div",{staticClass:"fix"},[t.login?t._e():e("div",{staticClass:"login",staticStyle:{cursor:"pointer"},on:{click:t.tologin}},[t._v(" 登录 ")]),t.login?t._e():e("div",{staticClass:"register",staticStyle:{cursor:"pointer"},on:{click:t.tohome}},[t._v(" 免费注册 ")]),e("el-dropdown",{on:{command:t.myorder}},[t.login?e("div",{staticClass:"zhang",staticStyle:{position:"relative"}},[t._v(" "+t._s(t.nickname)+" ")]):t._e(),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.list,(function(i,s){return e("el-dropdown-item",{key:s,attrs:{command:s}},[t._v(t._s(i.name))])})),1)],1)],1)]),e("div",{staticStyle:{"margin-top":"29px",display:"flex","justify-content":"space-between"}},[e("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-tab-pane",{directives:[{name:"show",rawName:"v-show",value:t.isSearch,expression:"isSearch"}],attrs:{label:"首页",name:"first"}}),e("el-tab-pane",{attrs:{label:"纸质书",name:"second"}}),e("el-tab-pane",{attrs:{label:"电子书",name:"third"}}),e("el-tab-pane",{attrs:{label:"名师教学视频",name:"fourth"}})],1),e("div",{staticClass:"rightt"},[e("img",{staticStyle:{width:"12px",height:"12px"},attrs:{src:i(7824),alt:""}}),e("span",{staticStyle:{"margin-left":"5px",cursor:"pointer"},on:{click:t.tou}},[t._v("投稿")])])],1)])]),0==t.tab?e("div",{staticStyle:{background:"rgba(244, 244, 244, 1)",padding:"26px 0 46px"}},[e("div",{staticClass:"swiper"},[e("div",{},[e("el-carousel",{attrs:{height:"400px"}},t._l(t.bannerList,(function(i,s){return e("el-carousel-item",{key:s},[e("img",{staticStyle:{width:"100%",height:"400px"},attrs:{src:i.image,alt:""},on:{click:function(e){return t.toinfo(i.jump_id,i.jump_type)}}})])})),1)],1)]),e("div",{staticClass:"bear"},[e("div",{staticClass:"flx"},[e("span",{staticClass:"mu"},[t._v("获奖材料")]),e("div",{staticClass:"more",on:{click:function(e){return t.tomore("is_awards")}}},[t._v("查看更多")])]),e("div",{staticClass:"box"},t._l(t.BooksList,(function(i,s){return e("div",{key:s,staticClass:"item",staticStyle:{"text-align":"left"},on:{click:function(e){return t.toinfo(i.id)}}},[e("img",{staticStyle:{width:"158px",height:"204px"},attrs:{src:i.image,alt:""}}),e("div",[e("span",{staticClass:"ding"},[t._v("定价")]),e("span",{staticClass:"money"},[t._v("¥"+t._s(i.entity_price))])]),e("div",{staticClass:"titlea"},[t._v(t._s(i.title))]),e("div",{staticClass:"writer",staticStyle:{width:"100%","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(" "+t._s(i.author)+" ")])])})),0)]),e("div",{staticClass:"bear"},[e("div",{staticClass:"flx"},[e("span",{staticClass:"mu"},[t._v("新书推荐")]),e("div",{staticClass:"more",on:{click:function(e){return t.tomore("is_new_recommend")}}},[t._v("查看更多")])]),e("div",{staticClass:"box"},t._l(t.newList,(function(i,s){return e("div",{key:s,staticClass:"item",on:{click:function(e){return t.toinfo(i.id)}}},[e("img",{staticStyle:{width:"158px",height:"204px"},attrs:{src:i.image,alt:""}}),e("div",[e("span",{staticClass:"ding"},[t._v("定价")]),e("span",{staticClass:"money"},[t._v("¥"+t._s(i.entity_price))])]),e("div",{staticClass:"titlea"},[t._v(t._s(i.title))]),e("div",{staticClass:"writer",staticStyle:{width:"100%","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(" "+t._s(i.author)+" ")])])})),0)])]):t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:1==t.tab,expression:"tab == 1"}],staticStyle:{"padding-bottom":"46px"}},[e("BookXVue",{ref:"BookXVue",attrs:{keys:t.keys}})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:2==t.tab,expression:"tab == 2"}],staticStyle:{"padding-bottom":"46px"}},[e("electronicBook",{ref:"electronicBook"})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:3==t.tab,expression:"tab == 3"}],staticStyle:{"padding-bottom":"46px"}},[e("videoV",{ref:"videoV"})],1)]),0==t.tab?e("BottomB"):t._e()],1)},p=[],m=(i(560),i(6348)),g=function(){var t=this,e=t._self._c;return e("div",[t.keywords?e("div",{staticClass:"search",staticStyle:{width:"1200px",margin:"0 auto"}},[e("span",[t._v("共"+t._s(t.total)+'条"')]),e("span",{staticStyle:{color:"rgba(6, 169, 113, 1)"}},[t._v(t._s(t.keywords))]),e("span",[t._v('"相关的搜素结果')])]):t._e(),""==t.keywords?e("div",{staticClass:"top1"},[e("div",{staticClass:"flx mar"},[e("div",{staticClass:"left"},[t._v("按教材级别:")]),e("div",{staticClass:"right flx"},[e("div",{class:null==t.level_id?"all":"item",staticStyle:{"margin-right":"25px"},on:{click:function(e){return t.level()}}},[t._v(" 全部 ")]),t._l(t.booklevel,(function(i,s){return e("div",{key:s,class:t.level_id==i.id?"all":"item",on:{click:function(e){return t.level(i.id)}}},[t._v(" "+t._s(i.title)+" ")])}))],2)]),e("div",{staticClass:"flx mar"},[e("div",{staticClass:"left"},[t._v("按教学层次:")]),e("div",{staticClass:"right flx"},[e("div",{class:null==t.arrangement_id?"all":"item",staticStyle:{"margin-right":"25px"},on:{click:function(e){return t.arrangement()}}},[t._v(" 全部 ")]),t._l(t.Arrangement,(function(i,s){return e("div",{key:s,class:t.arrangement_id==i.id?"all":"item",on:{click:function(e){return t.arrangement(i.id)}}},[t._v(" "+t._s(i.title)+" ")])}))],2)]),e("div",{staticClass:"flx mar"},[e("div",{staticClass:"left"},[t._v("按专业类型:")]),e("div",{staticClass:"right flx"},[e("div",{class:null==t.speciality_id?"all":"item",staticStyle:{"margin-right":"25px"},on:{click:function(e){return t.speciality()}}},[t._v(" 全部 ")]),t._l(t.Specialityt,(function(i,s){return e("div",{key:s,class:t.speciality_id==i.id?"all":"item",on:{click:function(e){return t.speciality(i.id)}}},[t._v(" "+t._s(i.title)+" ")])}))],2)]),e("div",{staticClass:"flx mar"},[e("div",{staticClass:"flx"},[e("div",{staticClass:"left"},[t._v("按获奖教材:")]),e("div",{staticClass:"right flx"},[e("div",{class:null==t.is_awards?"all":"item",staticStyle:{"margin-right":"25px"},on:{click:function(e){return t.awards()}}},[t._v(" 不限 ")]),t._l(t.list,(function(i,s){return e("div",{key:s,class:t.is_awards==s?"all":"item",on:{click:function(e){return t.awards(s)}}},[t._v(" "+t._s(i.name)+" ")])}))],2)]),e("div",{staticClass:"flx"},[e("div",{staticClass:"left"},[t._v("按新书推荐:")]),e("div",{staticClass:"right flx"},[e("div",{class:null==t.is_new_recommend?"all":"item",staticStyle:{"margin-right":"25px"},on:{click:function(e){return t.recommend()}}},[t._v(" 不限 ")]),t._l(t.list,(function(i,s){return e("div",{key:s,class:t.is_new_recommend==s?"all":"item",on:{click:function(e){return t.recommend(s)}}},[t._v(" "+t._s(i.name)+" ")])}))],2)])])]):t._e(),e("div",{staticClass:"box2"},t._l(t.booklist,(function(i,s){return e("div",{key:s,staticClass:"book1",staticStyle:{"margin-right":"15px"},on:{click:function(e){return t.toinfo(i.id)}}},[e("img",{staticStyle:{width:"205px",height:"270px"},attrs:{src:i.image,alt:""}}),e("div",{staticClass:"titlet"},[t._v(t._s(i.title))]),e("div",{staticClass:"wri"},[t._v("作者:"+t._s(i.author))]),e("div",[e("span",{staticClass:"wri"},[t._v("定价:")]),e("span",{staticClass:"wri",staticStyle:{color:"rgba(204, 51, 0, 1)"}},[t._v("¥"+t._s(i.entity_price))])])])})),0),t.booklist.length>0?e("div",{staticClass:"block"},[e("el-pagination",{attrs:{"current-page":t.currentPage3,"page-size":100,layout:"prev, pager, next, jumper",total:t.total,background:""},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange,"update:currentPage":function(e){t.currentPage3=e},"update:current-page":function(e){t.currentPage3=e}}})],1):t._e()])},v=[],f=i(2077),k={data(){return{list:[{name:"是"},{name:"否"}],currentPage3:1,page:1,limit:10,booklist:[],total:"",booklevel:[],Arrangement:[],Specialityt:[],level_id:null,arrangement_id:null,speciality_id:null,is_new_recommend:null,is_awards:null,keywords:""}},created(){this.getBooksList(),this.getBooksLevel(),this.getBooksArrangement(),this.getBooksSpecialityt()},methods:{recommend(t){this.is_new_recommend=t,this.getBooksList()},awards(t){this.is_awards=t,this.getBooksList()},arrangement(t){this.arrangement_id=t,this.getBooksList()},speciality(t){this.speciality_id=t,this.getBooksList()},level(t){this.level_id=t,this.getBooksList()},getBooksSpecialityt(){(0,f.wd)().then((t=>{this.Specialityt=t.data}))},getBooksArrangement(){(0,f.Or)().then((t=>{console.log(t),this.Arrangement=t.data}))},getBooksLevel(){(0,f.xZ)().then((t=>{console.log(t),this.booklevel=t.data}))},search(t){console.log("keyword",t),this.keywords=t,this.getBooksList()},toinfo(t){this.$router.push({path:"/info",query:{id:t}})},getBooksList(){(0,f.TB)({level_id:this.level_id,arrangement_id:this.arrangement_id,speciality_id:this.speciality_id,book_type:0,is_new_recommend:this.is_new_recommend,is_awards:this.is_awards,page:this.page,limit:this.limit,keywords:this.keywords}).then((t=>{console.log(t),this.booklist=t.data.data,this.total=t.data.total}))},handleSizeChange(t){console.log(`每页 ${t} 条`)},handleCurrentChange(t){this.page=t,console.log(`当前页: ${t}`),this.getBooksList()}}},_=k,y=(0,o.Z)(_,g,v,!1,null,"254c8357",null),w=y.exports,b=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page4s"},[t.keywords?e("div",{staticClass:"search",staticStyle:{width:"1200px",margin:"0 auto"}},[e("span",[t._v("共"+t._s(t.total)+'条"')]),e("span",{staticStyle:{color:"rgba(6, 169, 113, 1)"}},[t._v(t._s(t.keywords))]),e("span",[t._v('"相关的搜素结果')])]):t._e(),e("div",{staticClass:"videobox"},t._l(t.videoList,(function(i,s){return e("div",{key:s,staticClass:"item9",on:{click:function(e){return t.tovideoinfo(i.id)}}},[e("img",{staticStyle:{width:"225px",height:"136px"},attrs:{src:i.image,alt:""}}),e("div",{staticStyle:{padding:"10px 0 0 10px"}},[e("div",{staticClass:"title"},[t._v(t._s(i.title))]),e("div",{staticClass:"writer"},[t._v(t._s(i.lecturer))]),e("div",{staticClass:"money"},[t._v("¥"+t._s(i.price))])])])})),0),t.videoList.length>0?e("div",{staticClass:"block"},[e("el-pagination",{attrs:{"current-page":t.currentPage3,"page-size":100,layout:"prev, pager, next, jumper",total:t.total,background:""},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange,"update:currentPage":function(e){t.currentPage3=e},"update:current-page":function(e){t.currentPage3=e}}})],1):t._e(),t.show1?e("div",{staticStyle:{"font-size":"0"}},[e("video",{staticClass:"video",attrs:{src:t.url,id:"demoVideo",controls:!0,"enable-progress-gesture":!1}})]):t._e()])},C=[],x={data(){return{page:1,lime:10,keywords:"",currentPage3:1,videoList:[],total:0,show1:!1}},created(){this.getVideoList()},methods:{search(t){console.log("keyword",t),this.keywords=t,this.getVideoList()},getVideoList(){(0,f.O3)({page:this.page,lime:this.limit,keywords:this.keywords}).then((t=>{this.videoList=t.data.data,this.total=t.data.total}))},tovideoinfo(t){this.$router.push({path:"/videoinfo",query:{id:t}})},handleSizeChange(t){console.log(`每页 ${t} 条`)},handleCurrentChange(t){this.page=t,console.log(`当前页: ${t}`),this.getVideoList()}}},S=x,B=(0,o.Z)(S,b,C,!1,null,null,null),A=B.exports,L=function(){var t=this,e=t._self._c;return e("div",[t.keywords?e("div",{staticClass:"search",staticStyle:{width:"1200px",margin:"0 auto"}},[e("span",[t._v("共"+t._s(t.total)+'条"')]),e("span",{staticStyle:{color:"rgba(6, 169, 113, 1)"}},[t._v(t._s(t.keywords))]),e("span",[t._v('"相关的搜素结果')])]):t._e(),""==t.keywords?e("div",{staticClass:"top1"},[e("div",{staticClass:"flx mar"},[e("div",{staticClass:"left"},[t._v("按教材级别:")]),e("div",{staticClass:"right flx"},[e("div",{class:null==t.level_id?"all":"item",staticStyle:{"margin-right":"25px"},on:{click:function(e){return t.level()}}},[t._v(" 全部 ")]),t._l(t.booklevel,(function(i,s){return e("div",{key:s,class:t.level_id==i.id?"all":"item",on:{click:function(e){return t.level(i.id)}}},[t._v(" "+t._s(i.title)+" ")])}))],2)]),e("div",{staticClass:"flx mar"},[e("div",{staticClass:"left"},[t._v("按教学层次:")]),e("div",{staticClass:"right flx"},[e("div",{class:null==t.arrangement_id?"all":"item",staticStyle:{"margin-right":"25px"},on:{click:function(e){return t.arrangement()}}},[t._v(" 全部 ")]),t._l(t.Arrangement,(function(i,s){return e("div",{key:s,class:t.arrangement_id==i.id?"all":"item",on:{click:function(e){return t.arrangement(i.id)}}},[t._v(" "+t._s(i.title)+" ")])}))],2)]),e("div",{staticClass:"flx mar"},[e("div",{staticClass:"left"},[t._v("按专业类型:")]),e("div",{staticClass:"right flx"},[e("div",{class:null==t.speciality_id?"all":"item",staticStyle:{"margin-right":"25px"},on:{click:function(e){return t.speciality()}}},[t._v(" 全部 ")]),t._l(t.Specialityt,(function(i,s){return e("div",{key:s,class:t.speciality_id==i.id?"all":"item",on:{click:function(e){return t.speciality(i.id)}}},[t._v(" "+t._s(i.title)+" ")])}))],2)]),e("div",{staticClass:"flx mar"},[e("div",{staticClass:"flx"},[e("div",{staticClass:"left"},[t._v("按获奖教材:")]),e("div",{staticClass:"right flx"},[e("div",{class:null==t.is_new_recommend?"all":"item",staticStyle:{"margin-right":"25px"},on:{click:function(e){return t.recommend()}}},[t._v(" 不限 ")]),t._l(t.list,(function(i,s){return e("div",{key:s,class:t.is_new_recommend==s?"all":"item",on:{click:function(e){return t.recommend(s)}}},[t._v(" "+t._s(i.name)+" ")])}))],2)]),e("div",{staticClass:"flx"},[e("div",{staticClass:"left"},[t._v("按新书推荐:")]),e("div",{staticClass:"right flx"},[e("div",{class:null==t.is_awards?"all":"item",staticStyle:{"margin-right":"25px"},on:{click:function(e){return t.awards()}}},[t._v(" 不限 ")]),t._l(t.list,(function(i,s){return e("div",{key:s,class:t.is_awards==s?"all":"item",on:{click:function(e){return t.awards(s)}}},[t._v(" "+t._s(i.name)+" ")])}))],2)])])]):t._e(),e("div",{staticClass:"box2"},t._l(t.booklist,(function(i,s){return e("div",{key:s,staticClass:"book1",staticStyle:{"margin-right":"15px"},on:{click:function(e){return t.toinfo(i.id)}}},[e("img",{staticStyle:{width:"205px",height:"270px"},attrs:{src:i.image,alt:""}}),e("div",{staticClass:"titlec"},[t._v(t._s(i.title))]),e("div",{staticClass:"wri"},[t._v("作者:"+t._s(i.author))]),e("div",[e("span",{staticClass:"wri"},[t._v("定价:")]),e("span",{staticClass:"wri",staticStyle:{color:"rgba(204, 51, 0, 1)"}},[t._v("¥"+t._s(i.price))])])])})),0),t.booklist.length>0?e("div",{staticClass:"block"},[e("el-pagination",{attrs:{"current-page":t.currentPage3,"page-size":100,layout:"prev, pager, next, jumper",total:t.total,background:""},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange,"update:currentPage":function(e){t.currentPage3=e},"update:current-page":function(e){t.currentPage3=e}}})],1):t._e()])},O=[],P={data(){return{list:[{name:"是"},{name:"否"}],currentPage3:1,page:1,limit:10,booklist:[],total:"",booklevel:[],Arrangement:[],Specialityt:[],level_id:null,arrangement_id:null,speciality_id:null,is_new_recommend:null,is_awards:null,keywords:""}},created(){this.getBooksList(),this.getBooksLevel(),this.getBooksArrangement(),this.getBooksSpecialityt()},methods:{recommend(t){this.is_new_recommend=t,this.getBooksList()},awards(t){this.is_awards=t,this.getBooksList()},arrangement(t){this.arrangement_id=t,this.getBooksList()},speciality(t){this.speciality_id=t,this.getBooksList()},level(t){this.level_id=t,this.getBooksList()},search(t){console.log("keyword",t),this.keywords=t,this.getBooksList()},getBooksSpecialityt(){(0,f.wd)().then((t=>{this.Specialityt=t.data}))},getBooksArrangement(){(0,f.Or)().then((t=>{console.log(t),this.Arrangement=t.data}))},getBooksLevel(){(0,f.xZ)().then((t=>{console.log(t),this.booklevel=t.data}))},toinfo(t){this.$router.push({path:"/info",query:{id:t}})},getBooksList(){(0,f.TB)({level_id:this.level_id,arrangement_id:this.arrangement_id,speciality_id:this.speciality_id,book_type:1,is_new_recommend:this.is_new_recommend,is_awards:this.is_awards,page:this.page,limit:this.limit,keywords:this.keywords}).then((t=>{console.log(t),this.booklist=t.data.data,this.total=t.data.total}))},handleSizeChange(t){console.log(`每页 ${t} 条`)},handleCurrentChange(t){this.page=t,console.log(`当前页: ${t}`),this.getBooksList()}}},$=P,V=(0,o.Z)($,L,O,!1,null,"44688d5f",null),N=V.exports,E={name:"HomeView",components:{BottomB:m.Z,BookXVue:w,videoV:A,electronicBook:N},created(){document.title="首页",localStorage.getItem("token")&&(this.login=!0,this.getUserinfo()),this.$route.query.keyword&&(this.keyword=this.$route.query.keyword,this.$nextTick((()=>{this.search()}))),void 0!=this.$route.query.tab&&(this.tab=this.$route.query.tab,1==this.tab?(this.activeName="second",document.title="纸质书"):2==this.tab?(this.activeName="third",document.title="电子书"):3==this.tab?(this.activeName="fourth",document.title="名师教学视频"):(this.activeName="first",document.title="首页"))},mounted(){},data(){return{keys:"",activeName:"first",tab:0,bannerList:[],page:1,limit:20,BooksList:[],newList:[],login:!1,nickname:"",isSearch:!0,keyword:"",list:[{name:"体验卡"},{name:"我的订单"},{name:"设置"},{name:"退出"}]}},methods:{tou(){localStorage.getItem("token")?this.$router.push({path:"contribute"}):this.$message.error("请登录后操作")},myorder(t){console.log(t),3==t?(localStorage.removeItem("token"),this.$router.go(0)):this.$router.push({path:"/myorder",query:{index:t}})},search(){console.log(111),this.keyword&&(this.isSearch=!1,0==this.tab&&(this.tab=1,this.activeName="second",document.title="纸质书"),1==this.tab&&this.$refs.BookXVue.search(this.keyword),2==this.tab&&this.$refs.electronicBook.search(this.keyword),3==this.tab&&this.$refs.videoV.search(this.keyword)),console.log("e")},tomore(t){this.tab=1,this.activeName="second",document.title="纸质书",this.$nextTick((()=>{this.$refs["BookXVue"][t]=0,this.$refs.BookXVue.getBooksList()}))},tohome(){this.$router.push({path:"/home"})},tologin(){this.$router.push({path:"/codelogin"})},getUserinfo(){(0,f.CW)().then((t=>{this.nickname=t.nickname}))},handleClick(t){this.tab=t.index,0==this.tab&&(document.title="首页"),1==this.tab&&(document.title="纸质书",this.$nextTick((()=>{this.$refs.BookXVue.is_new_recommend=null,this.$refs.BookXVue.is_awards=null,this.$refs.BookXVue.getBooksList()})),this.keyword?this.$refs.BookXVue.search(this.keyword):(this.keyword="",this.$refs.BookXVue.search(""))),2==this.tab&&(document.title="电子书",this.keyword?this.$refs.electronicBook.search(this.keyword):(this.keyword="",this.$refs.electronicBook.search(""))),3==this.tab&&(document.title="名师教学视频",this.keyword?this.$refs.videoV.search(this.keyword):(this.keyword="",this.$refs.videoV.search("")))},toinfo(t,e=0){0==e&&this.$router.push({path:"/info",query:{id:t}}),1==e&&this.$router.push({path:"/videoinfo",query:{id:t}})},Banner(){(0,f.Eg)({}).then((t=>{this.bannerList=t.data})),(0,f.TB)({is_awards:0,page:this.page,limit:this.limit}).then((t=>{this.BooksList=t.data.data})),(0,f.TB)({is_new_recommend:0,page:this.page,limit:this.limit}).then((t=>{this.newList=t.data.data,console.log(t)}))}},mounted(){console.log(this.tab),this.Banner()}},j=E,Z=(0,o.Z)(j,h,p,!1,null,"8727665a",null),q=Z.exports;s["default"].use(u.ZP);const I=[{path:"/",name:"index",meta:{title:"首页"},component:q},{path:"/about",name:"about",component:()=>i.e(443).then(i.bind(i,2246))},{path:"/codelogin",name:"codelogin",component:()=>i.e(443).then(i.bind(i,6213))},{path:"/success",name:"success",component:()=>i.e(443).then(i.bind(i,3524))},{path:"/home",name:"home",component:()=>i.e(443).then(i.bind(i,3203))},{path:"/info",name:"info",component:()=>i.e(443).then(i.bind(i,4039))},{path:"/order",name:"order",component:()=>i.e(443).then(i.bind(i,8158))},{path:"/pay",name:"pay",component:()=>i.e(443).then(i.bind(i,1897))},{path:"/paysuccess",name:"paysuccess",component:()=>i.e(443).then(i.bind(i,9998))},{path:"/details",name:"details",component:()=>i.e(443).then(i.bind(i,9605))},{path:"/myorder",name:"myorder",component:()=>i.e(443).then(i.bind(i,900))},{path:"/stylebook",name:"stylebook",component:()=>i.e(443).then(i.bind(i,815))},{path:"/contribute",name:"contribute",component:()=>i.e(443).then(i.bind(i,7812))},{path:"/videoinfo",name:"videoinfo",component:()=>i.e(443).then(i.bind(i,4375))},{path:"/agreement",name:"agreement",component:()=>i.e(443).then(i.bind(i,4305))},{path:"/updown",name:"updown",component:()=>i.e(443).then(i.bind(i,386))},{path:"/reset",name:"reset",component:()=>i.e(443).then(i.bind(i,9397))}],X=new u.ZP({mode:"hash",base:"",routes:I}),F=u.ZP.prototype.push;u.ZP.prototype.push=function(t){return F.call(this,t).catch((t=>t))};var T=X,H=i(3822);s["default"].use(H.ZP);var J=new H.ZP.Store({state:{},getters:{},mutations:{},actions:{},modules:{}}),z=i(8499),R=i.n(z);s["default"].use(R()),s["default"].config.productionTip=!1,new s["default"]({router:T,store:J,el:"#app",render:t=>t(c)}).$mount("#app")},7824:function(t){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAqpJREFUSEu1lE9IFHEcxd93Bt1VZC2JjQLJrllQnRIjEIuMWPXQbqEQRnXqkLuubOahLaQ86K7HoEPQrdm0P4KFl7qZEFGXJOgQSF4sSaV13Z35vRjR/LOrO9k2lznM7/c+836/976C//SUPYlUp1U6IoXWLxsKezMZdYeCQwAPFwxQ9TrqnpqebwdVlwjeEdgNoroggJJE8IKi9JLcB8EYIJ9Bttmn80+AEiNcY1HFAB5bFpsQTYsppR6sHP22AO6nN6pUJt0L8vyqkEyKSIuCGgaxY1uAipFbnuSv+ZuKbAfh+hMQkZkiTavLKOs+iJq1wXHkwG8Y+guOX4XwNknvuuQJkrou9VRoVoqRjanMC3AZwQYCfXYisiItYoqGJlA3SfMVmH2nmwLsomSsTD/B0zm7IqAm0qZTHzVhfcxytrwpC7BaFF4BoW9WRIF0dgU8sXuJuVGS9ZuvW/6ytigAPFs1XDTpW/THOouNUDfIni3X2h/XFSXv7JBHi4H+tpJEuFZBvdnK5VI3XI87ghTVA6I0n7ZARmq8nqb307OeRcoHgpX59wDYOxwt/Z6aOwvCD9B+Z8MEY7tKyk9O+aJJlxF6TrIxn3jOUZELJsCES3B8LhCfcRkd10k14EQ87yxagelFeLvQHJssHew8alrWGMjiggBskWKj44AONbsQiH8rGwofNE2rVQG+nMXLQc3bZHuPOxG8lPLHH7qM4DOK/ADlJYBPApwC6CN5AkBRLlcOAaF6aPKFJgcINgvk+x6vp/JrXTRli+40IuUpZBoswgfBGZAVfz1N3UbwMkWOUPGapuFuyh/vzvXH9mAc1sdraaLRdufIwdIxDYbqaKGV5EVdsN++EycX7Rhgi7mM4AhFfqb9sRYn4nljulHEdiHUkgvn+sadAn4DQPc3KuNJOl8AAAAASUVORK5CYII="}},e={};function i(s){var n=e[s];if(void 0!==n)return n.exports;var a=e[s]={id:s,loaded:!1,exports:{}};return t[s].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}i.m=t,function(){i.amdO={}}(),function(){var t=[];i.O=function(e,s,n,a){if(!s){var o=1/0;for(d=0;d<t.length;d++){s=t[d][0],n=t[d][1],a=t[d][2];for(var r=!0,l=0;l<s.length;l++)(!1&a||o>=a)&&Object.keys(i.O).every((function(t){return i.O[t](s[l])}))?s.splice(l--,1):(r=!1,a<o&&(o=a));if(r){t.splice(d--,1);var c=n();void 0!==c&&(e=c)}}return e}a=a||0;for(var d=t.length;d>0&&t[d-1][2]>a;d--)t[d]=t[d-1];t[d]=[s,n,a]}}(),function(){i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,{a:e}),e}}(),function(){i.d=function(t,e){for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})}}(),function(){i.f={},i.e=function(t){return Promise.all(Object.keys(i.f).reduce((function(e,s){return i.f[s](t,e),e}),[]))}}(),function(){i.u=function(t){return"js/about.9db373fd.js"}}(),function(){i.miniCssF=function(t){return"css/about.08a67f73.css"}}(),function(){i.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="project:";i.l=function(s,n,a,o){if(t[s])t[s].push(n);else{var r,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==s||u.getAttribute("data-webpack")==e+a){r=u;break}}r||(l=!0,r=document.createElement("script"),r.charset="utf-8",r.timeout=120,i.nc&&r.setAttribute("nonce",i.nc),r.setAttribute("data-webpack",e+a),r.src=s),t[s]=[n];var h=function(e,i){r.onerror=r.onload=null,clearTimeout(p);var n=t[s];if(delete t[s],r.parentNode&&r.parentNode.removeChild(r),n&&n.forEach((function(t){return t(i)})),e)return e(i)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=h.bind(null,r.onerror),r.onload=h.bind(null,r.onload),l&&document.head.appendChild(r)}}}(),function(){i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){i.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t}}(),function(){i.p=""}(),function(){if("undefined"!==typeof document){var t=function(t,e,i,s,n){var a=document.createElement("link");a.rel="stylesheet",a.type="text/css";var o=function(i){if(a.onerror=a.onload=null,"load"===i.type)s();else{var o=i&&i.type,r=i&&i.target&&i.target.href||e,l=new Error("Loading CSS chunk "+t+" failed.\n("+o+": "+r+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=o,l.request=r,a.parentNode&&a.parentNode.removeChild(a),n(l)}};return a.onerror=a.onload=o,a.href=e,i?i.parentNode.insertBefore(a,i.nextSibling):document.head.appendChild(a),a},e=function(t,e){for(var i=document.getElementsByTagName("link"),s=0;s<i.length;s++){var n=i[s],a=n.getAttribute("data-href")||n.getAttribute("href");if("stylesheet"===n.rel&&(a===t||a===e))return n}var o=document.getElementsByTagName("style");for(s=0;s<o.length;s++){n=o[s],a=n.getAttribute("data-href");if(a===t||a===e)return n}},s=function(s){return new Promise((function(n,a){var o=i.miniCssF(s),r=i.p+o;if(e(o,r))return n();t(s,r,null,n,a)}))},n={143:0};i.f.miniCss=function(t,e){var i={443:1};n[t]?e.push(n[t]):0!==n[t]&&i[t]&&e.push(n[t]=s(t).then((function(){n[t]=0}),(function(e){throw delete n[t],e})))}}}(),function(){var t={143:0};i.f.j=function(e,s){var n=i.o(t,e)?t[e]:void 0;if(0!==n)if(n)s.push(n[2]);else{var a=new Promise((function(i,s){n=t[e]=[i,s]}));s.push(n[2]=a);var o=i.p+i.u(e),r=new Error,l=function(s){if(i.o(t,e)&&(n=t[e],0!==n&&(t[e]=void 0),n)){var a=s&&("load"===s.type?"missing":s.type),o=s&&s.target&&s.target.src;r.message="Loading chunk "+e+" failed.\n("+a+": "+o+")",r.name="ChunkLoadError",r.type=a,r.request=o,n[1](r)}};i.l(o,l,"chunk-"+e,e)}},i.O.j=function(e){return 0===t[e]};var e=function(e,s){var n,a,o=s[0],r=s[1],l=s[2],c=0;if(o.some((function(e){return 0!==t[e]}))){for(n in r)i.o(r,n)&&(i.m[n]=r[n]);if(l)var d=l(i)}for(e&&e(s);c<o.length;c++)a=o[c],i.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return i.O(d)},s=self["webpackChunkproject"]=self["webpackChunkproject"]||[];s.forEach(e.bind(null,0)),s.push=e.bind(null,s.push.bind(s))}();var s=i.O(void 0,[998],(function(){return i(972)}));s=i.O(s)})();
  2. //# sourceMappingURL=app.7afee9c3.js.map