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 lines
6.8 KiB
1 lines
6.8 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-study-index"],{"089d":function(t,n,i){"use strict";i.r(n);var e=i("1a85"),a=i("0fa6");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(n,t,(function(){return a[t]}))}(s);i("acc8");var o=i("828b"),u=Object(o["a"])(a["default"],e["b"],e["c"],!1,null,"fa4855f4",null,!1,e["a"],void 0);n["default"]=u.exports},"0fa6":function(t,n,i){"use strict";i.r(n);var e=i("c88a"),a=i.n(e);for(var s in e)["default"].indexOf(s)<0&&function(t){i.d(n,t,(function(){return e[t]}))}(s);n["default"]=a.a},"1a85":function(t,n,i){"use strict";i.d(n,"b",(function(){return a})),i.d(n,"c",(function(){return s})),i.d(n,"a",(function(){return e}));var e={uEmpty:i("7018").default},a=function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("v-uni-view",{staticClass:"study"},[t._l(t.list,(function(n,e){return i("v-uni-view",{key:e,staticClass:"li"},[n.children&&0==n.children.length?[i("v-uni-view",{staticClass:"study-section",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.openPage(n)}}},[i("v-uni-view",{staticClass:"study-section-left"},[i("v-uni-view",{staticClass:"dot"}),i("v-uni-view",{staticClass:"con"},[i("v-uni-view",{staticClass:"text"},[t._v(t._s(n.name)),n.question_count>0?i("v-uni-text",{staticClass:"num"},[t._v(t._s(n.question_count))]):t._e()],1)],1)],1),n.question_count>0?i("v-uni-view",{staticClass:"study-section-right"},[i("v-uni-view",{staticClass:"btn"},[t._v("练习")])],1):t._e()],1)]:[i("v-uni-view",{staticClass:"hd",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.openPage(n)}}},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(n.name)),n.question_count>0?i("v-uni-text",{staticClass:"num"},[t._v(t._s(n.question_count))]):t._e()],1),n.question_count>0?i("v-uni-view",{staticClass:"btn"},[t._v("练习")]):t._e()],1),t._l(n.children,(function(e,a){return i("v-uni-view",{key:"idx",staticClass:"study-section study-section-on",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.openPage(n.children[a])}}},[i("v-uni-view",{staticClass:"study-section-left"},[i("v-uni-view",{staticClass:"dot"}),i("v-uni-view",{staticClass:"con"},[i("v-uni-view",{staticClass:"text"},[t._v(t._s(e.name)),e.question_count>0?i("v-uni-text",{staticClass:"num"},[t._v(t._s(e.question_count))]):t._e()],1)],1)],1),e.question_count>0?i("v-uni-view",{staticClass:"study-section-right"},[i("v-uni-view",{staticClass:"btn"},[t._v("练习")])],1):t._e()],1)}))]],2)})),0==t.total?i("v-uni-view",{staticClass:"empty",staticStyle:{"margin-top":"250rpx"}},[i("u-empty",{attrs:{mode:"data",text:"暂无相关信息"}})],1):t._e()],2)},s=[]},"58d1":function(t,n,i){var e=i("c86c");n=e(!1),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/* 文章场景相关 */.study[data-v-fa4855f4]{width:100%;padding:0 %?25?% %?20?%;overflow:hidden;box-sizing:border-box}.study .li[data-v-fa4855f4]{padding:0 %?25?%;margin-top:%?20?%;overflow:hidden}.study .hd[data-v-fa4855f4]{display:flex;align-items:flex-start;justify-content:space-between;padding:0 %?30?%}.study .hd .name[data-v-fa4855f4]{max-width:%?460?%;font-size:%?34?%;font-weight:700}.study .hd .name uni-text[data-v-fa4855f4]{font-size:%?30?%;font-weight:400;color:#f01b1b;margin-left:%?10?%}.study .hd .btn[data-v-fa4855f4]{width:%?111?%;font-size:%?28?%;line-height:%?51?%;color:#2080f9;text-align:center;background:#fff;border:1px solid #2080f9;border-radius:%?25?%}.study-section[data-v-fa4855f4]{width:100%;margin:0 auto;padding:%?30?%;box-sizing:border-box;background:#fff;border-radius:%?20?%;display:flex;align-items:center;justify-content:space-between;overflow:hidden}.study-section-on[data-v-fa4855f4]{width:100%;float:right;padding:%?15?% %?30?%;margin-top:%?20?%}.study-section-left[data-v-fa4855f4]{width:100%;display:flex;line-height:%?42?%}.study-section-left .dot[data-v-fa4855f4]{width:%?12?%;height:%?12?%;margin:%?15?% %?17?% 0 0;background:#2080f9;border-radius:50%}.study-section-left .con[data-v-fa4855f4]{flex:1;max-width:%?450?%}.study-section-left .con .text[data-v-fa4855f4]{font-size:%?30?%;color:#222}.study-section-left .con .num[data-v-fa4855f4]{margin:0 0 0 %?17?%;font-size:%?30?%;color:#f01b1b}.study-section-right .btn[data-v-fa4855f4]{width:%?111?%;font-size:%?28?%;line-height:%?51?%;color:#2080f9;text-align:center;background:#fff;border:1px solid #2080f9;border-radius:%?25?%}',""]),t.exports=n},acc8:function(t,n,i){"use strict";var e=i("c88b"),a=i.n(e);a.a},c88a:function(t,n,i){"use strict";i("6a54");var e=i("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,i("c223"),i("473f"),i("bf0f"),i("aa9c");var a=e(i("2634")),s=e(i("2fdc")),o={data:function(){return{list:[],page:1,total:1,category_id:"",type:0}},onLoad:function(t){this.type=t.type,this.category_id=t.id,this.getList(),uni.setNavigationBarTitle({title:0==t.type?"章节练习":"章节错误题"})},methods:{getList:function(){var t=this;return(0,s.default)((0,a.default)().mark((function n(){var i,e,s,o;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return uni.showLoading({title:"加载中"}),n.next=3,t.$api.chapterList({is_free:0==t.type?1:t.type,category_id:t.category_id,page:t.page});case 3:i=n.sent,e=i.code,s=i.data,o=i.msg,200==e?(uni.hideLoading(),t.list=t.arrayUnique(t.list.concat(s.list),"id"),t.total=t.list.length):(uni.hideLoading(),t.total=0,uni.showToast({icon:"none",title:o}));case 8:case"end":return n.stop()}}),n)})))()},arrayUnique:function(t,n){var i={};return t.reduce((function(t,e){return!i[e[n]]&&(i[e[n]]=t.push(e)),t}),[])},openPage:function(t){0!=t.question_count&&uni.navigateTo({url:"/pages/study/detail?type="+this.type+"&cid="+this.category_id+"&id="+t.id})}}};n.default=o},c88b:function(t,n,i){var e=i("58d1");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var a=i("967d").default;a("0dd24de5",e,!0,{sourceMap:!1,shadowMode:!1})}}]); |