pages-plantGrass-plant_topic-index.5a672136.js 8.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plantGrass-plant_topic-index"],{"2cbc":function(t,e,i){"use strict";i.r(e);var n=i("90f9"),o=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=o.a},6555:function(t,e,i){"use strict";i.r(e);var n=i("8068"),o=i("2cbc");for(var r in o)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(r);i("ca02");var c=i("828b"),a=Object(c["a"])(o["default"],n["b"],n["c"],!1,null,"39f1d865",null,!1,n["a"],void 0);e["default"]=a.exports},8068:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"productSort",style:"height:"+t.winHeight+"px"},[i("v-uni-view",{staticClass:"con-box",style:t.viewColor},[i("v-uni-view",{staticClass:"aside"},[i("v-uni-scroll-view",{staticStyle:{height:"100%",overflow:"hidden"},attrs:{"scroll-y":"true","scroll-with-animation":"true"}},[t._l(t.productList,(function(e,n){return[i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.children&&e.children.length>0,expression:"item.children && item.children.length > 0"}],key:e.category_id+"_0",staticClass:"item acea-row row-center-wrapper",class:n==t.navActive?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tap(n,"b"+n)}}},[i("v-uni-view",{staticClass:"top-ra"},[i("v-uni-text")],1),i("v-uni-text",{staticClass:"item_text"},[t._v(t._s(e.cate_name))]),i("v-uni-view",{staticClass:"bottom-ra"},[i("v-uni-text")],1)],1)]}))],2)],1),i("v-uni-view",{staticClass:"conter"},[i("v-uni-scroll-view",{attrs:{"scroll-y":"true"}},[t._l(t.childList,(function(e,n){return i("v-uni-view",{key:e.topic_id,staticClass:"listw"},[i("v-uni-view",{staticClass:"list"},[i("v-uni-navigator",{staticClass:"item acea-row",attrs:{"hover-class":"none",url:"/pages/plantGrass/plant_search_list/index?id="+e.topic_id}},[i("v-uni-view",{staticClass:"picture"},[i("v-uni-image",{attrs:{src:e.pic}})],1),i("v-uni-view",{staticClass:"text"},[i("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.topic_name))]),i("v-uni-view",{staticClass:"info"},[t._v(t._s(e.count_use||0)+"篇内容")])],1)],1)],1)],1)})),i("v-uni-view",{style:"height:"+(t.height-300)+"rpx;"})],2)],1)],1)],1)},o=[]},"90f9":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("edc0"),o=i("8f59"),r=(getApp(),{computed:(0,o.mapGetters)(["viewColor"]),data:function(){return{productList:[],navActive:0,number:"",height:0,winHeight:0,childList:[]}},watch:{},onLoad:function(t){var e=this;uni.getSystemInfo({success:function(t){e.winHeight=t.windowHeight}})},onShow:function(){this.productList.length||this.getAllCategory()},onReady:function(){},methods:{tap:function(t,e){this.navActive=t,this.childList=this.productList[t].children},getAllCategory:function(){var t=this;(0,n.getTopicList)().then((function(e){t.productList=e.data;for(var i=0;i<t.productList.length;i++)if(t.productList[i].children&&t.productList[i].children.length>0)return t.navActive=i,void(t.childList=t.productList[i].children)}))}}});e.default=r},c2f0:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.productSort[data-v-39f1d865]{display:flex;flex-direction:column;width:100%}.productSort .con-box[data-v-39f1d865]{flex:1;display:flex;overflow:hidden}.productSort .aside[data-v-39f1d865]{overflow-x:hidden;width:%?202?%;height:100%;overflow-y:scroll;background-color:#f5f5f5}.productSort .aside .item[data-v-39f1d865]{height:%?100?%;width:100%;font-size:%?28?%;color:#666}.productSort .aside .item_text[data-v-39f1d865]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.productSort .aside .item.on[data-v-39f1d865]{background-color:#fff;width:100%;text-align:center;color:var(--view-theme);font-weight:700;position:relative}.productSort .aside .item.on .top-ra[data-v-39f1d865]{width:%?32?%;height:%?32?%;background-color:#fff;position:absolute;right:0;top:%?-32?%}.productSort .aside .item.on .top-ra uni-text[data-v-39f1d865]{position:absolute;top:0;right:0;width:100%;height:100%;background-color:#f5f5f5;display:inline-block;border-radius:0 0 %?24?% 0}.productSort .aside .item.on .bottom-ra[data-v-39f1d865]{width:%?32?%;height:%?32?%;background-color:#fff;position:absolute;right:0;bottom:%?-32?%}.productSort .aside .item.on .bottom-ra uni-text[data-v-39f1d865]{position:absolute;top:0;right:0;width:100%;height:100%;background-color:#f5f5f5;display:inline-block;border-radius:0 %?24?% 0 0}.productSort .conter[data-v-39f1d865]{flex:1;height:100%;padding:0 %?30?%;background-color:#fff;overflow-y:scroll}.productSort .conter .list[data-v-39f1d865]{flex-wrap:wrap}.productSort .conter .list .item[data-v-39f1d865]{margin-top:%?26?%;margin-bottom:%?40?%;align-items:center}.productSort .conter .list .item .picture[data-v-39f1d865],\n.productSort .conter .list .item .picture uni-image[data-v-39f1d865]{width:%?110?%;height:%?110?%;border-radius:%?16?%}.productSort .conter .list .item .text[data-v-39f1d865]{margin-left:%?30?%}.productSort .conter .list .text .name[data-v-39f1d865]{font-weight:700;max-width:%?300?%}.productSort .list .item .info[data-v-39f1d865]{font-size:%?24?%;color:#999;margin-top:%?10?%}',""]),t.exports=e},ca02:function(t,e,i){"use strict";var n=i("ee00"),o=i.n(n);o.a},edc0:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.boughtLstApi=function(t){return o.default.get("community/pay_product/lst",t)},e.browseLstApi=function(t){return o.default.get("community/hist_product/lst",t)},e.collectLstApi=function(t){return o.default.get("community/rela_product/lst",t)},e.createPlantApi=function(t){return o.default.post("community/create",t)},e.deletePlantApi=function(t){return o.default.post("community/delete/".concat(t))},e.focusArticleLst=function(t){return o.default.get("community/focuslst",t,{noAuth:!0})},e.followAuthorApi=function(t,e){return o.default.post("community/fans/".concat(t),e)},e.getTopicList=function(){return o.default.get("community/category/lst",{},{noAuth:!0})},e.getVideoCode=function(t,e){return o.default.get("community/qrcode/".concat(t),e,{noAuth:!0})},e.graphicLstApi=function(t){return o.default.get("community/lst",t,{noAuth:!0})},e.graphicProApi=function(t){return o.default.get("product/spu/get/".concat(t),{},{noAuth:!0})},e.graphicStartApi=function(t,e){return o.default.post("community/start/".concat(t),e)},e.hotSearchLst=function(){return o.default.get("common/commuunity/hot_keyword",{},{noAuth:!0})},e.myFansLst=function(t){return o.default.get("community/fans/lst",t)},e.myFocusLst=function(t){return o.default.get("community/focus/lst",t)},e.myVideoList=function(t,e){return o.default.get("community/user/community_video/".concat(t),e,{noAuth:!0})},e.orderAssociatePlantApi=function(t){return o.default.get("community/order/".concat(t),{},{noAuth:!0})},e.plantDetailApi=function(t){return o.default.get("community/show/".concat(t),{},{noAuth:!0})},e.replyCreateApi=function(t,e){return o.default.post("community/reply/create/".concat(t),e)},e.replyLstApi=function(t,e){return o.default.get("community/".concat(t,"/reply"),e,{noAuth:!0})},e.starArticleLst=function(t){return o.default.get("community/start/lst",t)},e.starCommentApi=function(t,e){return o.default.post("community/reply/start/".concat(t),e)},e.updatePlantApi=function(t,e){return o.default.post("community/update/".concat(t),e)},e.userArticleLst=function(t,e){return o.default.get("community/user/community/".concat(t),e)},e.userInfoApi=function(t){return o.default.get("community/user/info/".concat(t))},e.videoList=function(t){return o.default.get("community/video_lst",t,{noAuth:!0})};var o=n(i("fea3"))},ee00:function(t,e,i){var n=i("c2f0");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("967d").default;o("538ea560",n,!0,{sourceMap:!1,shadowMode:!1})}}]);