zx/public/static/js/pages-plantGrass-plant_topi...

1 line
8.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plantGrass-plant_topic-index"],{"089e":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"productSort",style:"height:"+t.winHeight+"px"},[n("v-uni-view",{staticClass:"con-box",style:t.viewColor},[n("v-uni-view",{staticClass:"aside"},[n("v-uni-scroll-view",{staticStyle:{height:"100%",overflow:"hidden"},attrs:{"scroll-y":"true","scroll-with-animation":"true"}},t._l(t.productList,(function(e,i){return n("v-uni-view",{key:e.category_id},[n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.children&&e.children.length>0,expression:"item.children && item.children.length > 0"}],staticClass:"item acea-row row-center-wrapper",class:i==t.navActive?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tap(i,"b"+i)}}},[n("v-uni-text",{staticClass:"item_text"},[t._v(t._s(e.cate_name))])],1)],1)})),1)],1),n("v-uni-view",{staticClass:"conter"},[n("v-uni-scroll-view",{attrs:{"scroll-y":"true"}},[t._l(t.childList,(function(e,i){return n("v-uni-view",{key:e.topic_id,staticClass:"listw"},[n("v-uni-view",{staticClass:"list"},[n("v-uni-navigator",{staticClass:"item acea-row",attrs:{"hover-class":"none",url:"/pages/plantGrass/plant_search_list/index?id="+e.topic_id}},[n("v-uni-view",{staticClass:"picture"},[n("v-uni-image",{attrs:{src:e.pic}})],1),n("v-uni-view",{staticClass:"text"},[n("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.topic_name))]),n("v-uni-view",{staticClass:"info"},[t._v(t._s(e.count_use||0)+"篇内容")])],1)],1)],1)],1)})),n("v-uni-view",{style:"height:"+(t.height-300)+"rpx;"})],2)],1)],1)],1)},o=[]},1512:function(t,e,n){"use strict";var i=n("1b7f"),o=n.n(i);o.a},"1b7f":function(t,e,n){var i=n("611b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("967d").default;o("328dfcea",i,!0,{sourceMap:!1,shadowMode:!1})},"2cbc":function(t,e,n){"use strict";n.r(e);var i=n("90f9"),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=o.a},"611b":function(t,e,n){var i=n("c86c");e=i(!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-4066048a]{display:flex;flex-direction:column;width:100%}.productSort .con-box[data-v-4066048a]{flex:1;display:flex;overflow:hidden}.productSort .aside[data-v-4066048a]{background-color:#f5f5f5;overflow-y:auto;overflow-x:hidden;width:%?202?%;height:100%;overflow-y:scroll}.productSort .aside .item[data-v-4066048a]{height:%?100?%;width:100%;font-size:%?28?%;color:#666}.productSort .aside .item_text[data-v-4066048a]{padding-left:%?20?%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.productSort .aside .item.on[data-v-4066048a]{background-color:#fff;border-left:%?4?% solid var(--view-theme);width:100%;text-align:center;color:var(--view-theme);font-weight:700}.productSort .conter[data-v-4066048a]{flex:1;height:100%;padding:0 %?30?%;background-color:#fff;overflow-y:scroll}.productSort .conter .list[data-v-4066048a]{flex-wrap:wrap}.productSort .conter .list .item[data-v-4066048a]{margin-top:%?26?%;margin-bottom:%?40?%;align-items:center}.productSort .conter .list .item .picture[data-v-4066048a]{width:%?110?%;height:%?110?%;border-radius:%?8?%}.productSort .conter .list .item .picture uni-image[data-v-4066048a]{width:100%;height:100%;border-radius:%?8?%}.productSort .conter .list .item .text[data-v-4066048a]{margin-left:%?30?%}.productSort .conter .list .text .name[data-v-4066048a]{font-size:%?28?%;color:#282828;font-weight:700;max-width:%?300?%}.productSort .list .item .info[data-v-4066048a]{font-size:%?24?%;color:#999;margin-top:%?10?%}',""]),t.exports=e},6555:function(t,e,n){"use strict";n.r(e);var i=n("089e"),o=n("2cbc");for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("1512");var c=n("828b"),a=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"4066048a",null,!1,i["a"],void 0);e["default"]=a.exports},"90f9":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("edc0b"),o=n("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,i.getTopicList)().then((function(e){t.productList=e.data;for(var n=0;n<t.productList.length;n++)if(t.productList[n].children&&t.productList[n].children.length>0)return t.navActive=n,void(t.childList=t.productList[n].children)}))}}});e.default=r},edc0b:function(t,e,n){"use strict";n("6a54");var i=n("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=i(n("fea3"))}}]);