pages-index-index.9a5ba711.js 9.3 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"0092":function(t,n,e){t.exports=e.p+"static/img/logo-name.162627d8.png"},"1d5a":function(t,n,e){t.exports=e.p+"static/img/banner3.0c040015.png"},"1f28":function(t,n,e){t.exports=e.p+"static/img/bg1.d5bd9996.png"},"638d":function(t,n,e){var o=e("24fb"),a=e("1de5"),i=e("1d5a"),r=e("1f28"),c=e("c366");n=o(!1);var d=a(i),p=a(r),u=a(c);n.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.content_top[data-v-52e970f2]{width:100%;height:%?230?%;background:url('+d+");background-size:100% 100%;background-repeat:no-repeat}.content_top .topBox[data-v-52e970f2]{height:%?66?%;margin-top:%?22?%}.content_top uni-image[data-v-52e970f2]:nth-child(1){width:%?66?%;height:%?66?%}.content_top uni-image[data-v-52e970f2]:nth-child(2){width:%?143?%;height:%?33?%;margin:0 %?16?% 0 %?16?%}.content_top .topLine[data-v-52e970f2]{width:%?0?%;height:%?27?%;border:%?1?% solid #fff;margin-right:%?16?%}.content_top .topName[data-v-52e970f2]{font-size:%?33?%;font-family:Source Han Sans CN-Medium,Source Han Sans CN;font-weight:500;color:#fff}.content_box[data-v-52e970f2]{margin-top:%?-124?%;padding:%?24?% %?44?% 0 %?44?%;border-radius:%?13?% %?13?% %?0?% %?0?%;background-image:url("+p+");background-position:50%;background-size:%?750?% auto;background-repeat:repeat;display:grid;justify-content:center;grid-template-columns:repeat(auto-fill,%?206?%);grid-gap:0 %?22?%}.content_box uni-image[data-v-52e970f2]{width:%?206?%;height:%?121?%;display:block;background:#fff;border-radius:%?9?% %?9?% %?9?% %?9?%;margin-bottom:%?22?%;margin-right:%?22?%}@media screen and (max-width:768px){.content .content_top[data-v-52e970f2]{width:100%;height:%?192?%;padding-top:%?40?%;background:url("+u+");background-size:100% 100%;background-repeat:no-repeat}.content .content_top .topBox[data-v-52e970f2]{height:%?75?%}.content .content_top uni-image[data-v-52e970f2]:nth-child(1){width:%?75?%;height:%?75?%}.content .content_top uni-image[data-v-52e970f2]:nth-child(2){width:%?165?%;height:%?38?%;margin:0 %?16?% 0 %?16?%}.content .content_top .topLine[data-v-52e970f2]{width:%?0?%;height:%?31?%;border:%?1?% solid #fff;margin-right:%?16?%}.content .content_top .topName[data-v-52e970f2]{font-size:%?38?%;font-family:Source Han Sans CN-Medium,Source Han Sans CN;font-weight:500;color:#fff}.content .content_box[data-v-52e970f2]{margin-top:%?-44?%;padding:%?44?% %?44?% 0 %?44?%;border-radius:%?13?% %?13?% %?0?% %?0?%;background-image:url("+p+");background-position:50%;background-size:%?750?% auto;background-repeat:repeat;display:grid;justify-content:center;grid-template-columns:repeat(auto-fill,%?288?%);grid-gap:0 %?44?%}.content .content_box uni-image[data-v-52e970f2]{width:%?288?%;height:%?169?%;display:block;background:#fff;border-radius:%?9?% %?9?% %?9?% %?9?%;margin-bottom:%?22?%;margin-right:%?22?%}}.contentPC_top[data-v-52e970f2]{width:100%;height:300px;padding-top:72px;background:url("+u+");background-size:cover;background-repeat:no-repeat;background-position:50%}.contentPC_top .topBox[data-v-52e970f2]{height:120px}.contentPC_top uni-image[data-v-52e970f2]:nth-child(1){width:120px;height:120px}.contentPC_top uni-image[data-v-52e970f2]:nth-child(2){width:260px;height:60px;margin:0 30px 0 30px}.contentPC_top .topLine[data-v-52e970f2]{width:%?0?%;height:50px;border:2px solid #fff;margin-right:30px}.contentPC_top .topName[data-v-52e970f2]{font-size:60px;font-family:Source Han Sans CN-Medium,Source Han Sans CN;font-weight:500;color:#fff}.contentPC_box[data-v-52e970f2]{margin-top:-75px;padding:80px 80px 0 80px;border-radius:24px 24px 0 0;background-image:url("+p+");background-position:50%;background-size:%?750?% auto;background-repeat:repeat;display:grid;justify-content:center;grid-template-columns:repeat(auto-fill,375px);grid-gap:0 40px}.contentPC_box uni-image[data-v-52e970f2]{width:375px;height:240px;display:block;background:#fff;border-radius:16px 16px 16px 16px;margin-bottom:40px;margin-right:40px}@media screen and (max-width:850px){.contentPC .contentPC_top[data-v-52e970f2]{padding-top:40px;height:192px}.contentPC .contentPC_top .topBox[data-v-52e970f2]{height:66px}.contentPC .contentPC_top .topBox uni-image[data-v-52e970f2]:nth-child(1){width:66px!important;height:66px!important}.contentPC .contentPC_top .topBox uni-image[data-v-52e970f2]:nth-child(2){width:143px;height:33px;margin:0 16px 0 16px}.contentPC .contentPC_top .topBox .topLine[data-v-52e970f2]{width:0;height:27px;border:1px solid #fff;margin-right:16px}.contentPC .contentPC_top .topBox .topName[data-v-52e970f2]{font-size:33px}.contentPC .contentPC_box[data-v-52e970f2]{margin-top:-44px;padding:44px 44px 0 44px;border-radius:13px 13px 0 0;background-image:url("+p+");background-position:50%;background-size:750px auto;background-repeat:repeat;display:grid;justify-content:center;grid-template-columns:repeat(auto-fill,206px);grid-gap:0 22px}.contentPC .contentPC_box uni-image[data-v-52e970f2]{width:206px;height:132px;border-radius:9px 9px 9px 9px;margin-bottom:22px;margin-right:22px}}",""]),t.exports=n},"816a":function(t,n,e){t.exports=e.p+"static/img/logo-img.64c2dbf8.png"},"93dc":function(t,n,e){"use strict";var o=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.GetCategory=i,n.GetBook=r,n.resourceTypeMaps=c;var a=o(e("bc57"));function i(t){return(0,a.default)("/library/category",t,"GET")}function r(t){return(0,a.default)("/library/book?cid=1&tid=1",t,"GET")}function c(t){return(0,a.default)("/library/category/resource-type-maps",t,"GET")}},a0fa:function(t,n,e){"use strict";e.r(n);var o=e("c038"),a=e("d09a");for(var i in a)"default"!==i&&function(t){e.d(n,t,(function(){return a[t]}))}(i);e("bfec");var r,c=e("f0c5"),d=Object(c["a"])(a["default"],o["b"],o["c"],!1,null,"52e970f2",null,!1,o["a"],r);n["default"]=d.exports},aa72:function(t,n,e){"use strict";e("4d63"),e("ac1f"),e("25f0"),e("466d"),e("841c"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("93dc"),a=e("be87"),i={data:function(){return{list:[],isH:!1}},onLoad:function(t){this.getList();var n=uni.getSystemInfoSync().uniPlatform;"app"!=n&&(0,a.isPC)()&&(this.isH=!0);var e=this.getUrlParam("cid");e&&uni.reLaunch({url:"../book/book?id="+e})},methods:{getUrlParam:function(t){var n=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),e=window.location.search.substr(1).match(n);return null!=e?decodeURIComponent(e[2]):""},getList:function(){var t=this;(0,o.GetCategory)().then((function(n){t.list=n})).catch((function(t){uni.showToast({title:t,icon:"none"})}))},getBook:function(t){uni.navigateTo({url:"../book/book?id="+t.id+"&name="+t.name})}}};n.default=i},bc57:function(t,n,e){"use strict";e("d3b7"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o="http://library.ximengnaikang.com/api",a=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"POST";return t=o+t,uni.showLoading({title:"加载中"}),new Promise((function(o,a){uni.request({url:t,method:e,data:n,success:function(t){uni.hideLoading();var n=t.data;o(n)},fail:function(t){uni.hideLoading(),uni.showToast({title:t||"网络加载失败",icon:"none",duration:3500}),a(t)}})}))},i=a;n.default=i},bfec:function(t,n,e){"use strict";var o=e("f465"),a=e.n(o);a.a},c038:function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}));var a=function(){var t=this,n=t.$createElement,o=t._self._c||n;return o("v-uni-view",{class:t.isH?"contentPC":"content"},[o("v-uni-view",{staticClass:"flexA",class:t.isH?"contentPC_top":"content_top"},[o("v-uni-view",{staticClass:"topBox flexS"},[o("v-uni-image",{attrs:{src:e("816a")}}),o("v-uni-image",{attrs:{src:e("0092")}}),o("v-uni-view",{staticClass:"topLine"}),o("v-uni-view",{staticClass:"topName"},[t._v("有声图书馆")])],1)],1),o("v-uni-view",{class:t.isH?"contentPC_box":"content_box"},t._l(t.list,(function(n,e){return o("v-uni-image",{key:e,attrs:{src:n.cover_path},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getBook(n)}}})})),1)],1)},i=[]},c366:function(t,n,e){t.exports=e.p+"static/img/banner.1166c935.png"},d09a:function(t,n,e){"use strict";e.r(n);var o=e("aa72"),a=e.n(o);for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=a.a},f465:function(t,n,e){var o=e("638d");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=e("4f06").default;a("05d9811d",o,!0,{sourceMap:!1,shadowMode:!1})}}]);