1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plantGrass-plant_search_list-index"],{2847:function(t,e,n){"use strict";n.r(e);var a=n("49df"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"38ef":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(){return a}));var a={WaterfallsFlow:n("0389").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{style:t.viewColor},[n("v-uni-view",{staticClass:"main"},[n("v-uni-view",{staticClass:"search acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"input acea-row row-between-wrapper"},[n("v-uni-text",{staticClass:"iconfont icon-sousuo2"}),n("v-uni-input",{attrs:{type:"text",focus:t.focus,placeholder:"请输入关键字","placeholder-class":"placeholder","confirm-type":"search"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.setValue.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.searchBut()}},model:{value:t.where.keyword,callback:function(e){t.$set(t.where,"keyword",e)},expression:"where.keyword"}}),t.where.keyword?n("i",{staticClass:"iconfont icon-guanbi1 icon-zhanwei",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.where.keyword=""}}}):n("i",{staticClass:"iconfont icon-zhanwei"})],1),n("v-uni-view",{staticClass:"bnt",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.searchBut.apply(void 0,arguments)}}},[t._v("搜索")])],1),n("v-uni-view",{staticClass:"search-tabs acea-row"},t._l(t.tabList,(function(e,a){return n("v-uni-view",{key:a,staticClass:"item",class:{on:t.activeIndex==a},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.getList(e,a)}}},[t._v(t._s(e.title))])})),1),2==t.activeIndex?n("v-uni-view",{staticClass:"tab-cont"},[n("v-uni-view",{staticClass:"author-wrap"},t._l(t.goods,(function(e,a){return n("v-uni-view",{key:a,staticClass:"user_plant_item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goAuthor(e)}}},[n("v-uni-image",{attrs:{src:e.author&&e.author.avatar||"/static/images/f.png",mode:""}}),e.author?n("v-uni-view",{staticClass:"info"},[n("v-uni-view",{staticClass:"line1"},[n("v-uni-text",{staticClass:"name line1"},[t._v(t._s(e.author.nickname))])],1),n("v-uni-view",{staticClass:"acea-row plant-des"},[n("v-uni-view",{staticClass:"des"},[t._v("内容"),n("v-uni-text",[t._v(t._s(e.author.count_content<1e4&&e.author.count_content>0?e.author.count_content:e.author.count_content>1e3?(e.author.count_content/1e4).toFixed(2)+"万":0))])],1),n("v-uni-view",{staticClass:"des"},[t._v("粉丝"),n("v-uni-text",[t._v(t._s(e.author.count_fans<1e4&&e.author.count_fans>0?e.author.count_fans:e.author.count_fans>1e3?(e.author.count_fans/1e4).toFixed(2)+"万":0))])],1)],1),n("v-uni-view",{staticClass:"btn",class:e.is_fans?"":"focusBtn",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.focusToggle(e)}}},[e.is_fans?t._e():n("v-uni-text",{staticClass:"iconfont icon-jiahao2"}),t._v(t._s(e.is_fans?"已关注":"关注"))],1)],1):t._e()],1)})),1),n("v-uni-view",{staticClass:"acea-row row-center-wrapper loadingicon",attrs:{hidden:!t.loading}},[n("v-uni-text",{staticClass:"iconfont icon-jiazai loading"})],1),0!=t.authorList.length||t.loading?t._e():n("emptyPage",{attrs:{title:"暂无作者~"}})],1):n("v-uni-view",{staticClass:"tab-cont"},[t.goods.length?n("v-uni-view",{staticClass:"goods-wrap"},[n("v-uni-view",{staticClass:"goods"},[n("WaterfallsFlow",{attrs:{wfList:t.goods,isFind:!1,isAuth:0}})],1)],1):t._e()],1),n("v-uni-view",{staticClass:"acea-row row-center-wrapper loadingicon",attrs:{hidden:!t.loading}},[n("v-uni-text",{staticClass:"iconfont icon-jiazai loading"})],1),0!=t.goods.length||t.loading?t._e():n("emptyPage",{attrs:{title:"暂无内容~"}})],1)],1)},o=[]},"49df":function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("9b1b")),o=a(n("c09f")),s=n("edc0b"),r=n("e44d"),c=n("8f59"),u=n("96e0"),l=a(n("8329")),f=(getApp(),{components:{emptyPage:l.default,WaterfallsFlow:o.default},data:function(){return{focus:!1,goods:[],authorList:[{avatar:"",nickname:"爱吃酥脆紫菜的小西",count:35,count_fans:0,is_fans:1},{avatar:"https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKZw2XnQEyK8f1BIcNGVegibE9tPZBtjyu0AgyaPDEEwmyZnWydhXwXUnbrtGnXmam6WTzichTBcLgQ/132",nickname:"猪猪甜甜圈",count:35,count_fans:951,is_fans:0},{avatar:"",nickname:"爱吃酥脆紫菜的小西",count:35,count_fans:951,is_fans:1}],keyword:"",loaded:!1,loading:!1,loadTitle:"加载更多",where:{keyword:"",search_type:"all",page:1,limit:30,topic_id:""},searchValue:"",activeIndex:0,tabList:[{title:"全部",value:0,type:"all"},{title:"内容",value:1,type:"content"},{title:"用户",value:2,type:"user"}]}},created:function(){},computed:(0,i.default)((0,i.default)({},(0,c.mapGetters)(["isLogin","uid","viewColor"])),(0,u.configMap)({community_status:0})),watch:{},onLoad:function(t){this.where.keyword=this.searchValue=t.searchValue?t.searchValue:"",this.where.topic_id=t.id?t.id:"",this.getGoods()},onShow:function(){},mounted:function(){},methods:{setValue:function(t){this.$set(this.where,"keyword",t.detail.value)},searchBut:function(){this.loadend=this.loading=!1,this.where.page=1,this.goods=[],this.getGoods()},goAuthor:function(t){this.isLogin&&1==this.community_status?uni.navigateTo({url:"/pages/plantGrass/plant_user/index?id="+t.uid}):(0,r.toLogin)()},getList:function(t,e){this.activeIndex=e,this.where={keyword:this.where.keyword,search_type:t.type,page:1,limit:30,topic_id:""},this.goods=[],this.loadend=!1,this.loading=!1,this.getGoods()},getGoods:function(){var t=this;t.loadend||t.loading||(t.loading=!0,t.loadTitle="",(0,s.graphicLstApi)(t.where).then((function(e){t.loading=!1;var n=e.data.list,a=t.$util.SplitArray(n,t.goods),i=n.length<t.where.limit;t.loadend=i,t.loading=!1,t.loadTitle=i?"已全部加载":"加载更多",t.$set(t,"goods",a),t.$set(t.where,"page",t.where.page+1)})).catch((function(e){t.loading=!1,t.goodsLoading=!1,uni.showToast({title:e,icon:"none"})})))},focusToggle:function(t){var e=this,n=t.is_fans?0:1;(0,s.followAuthorApi)(t.author.uid,{status:n}).then((function(n){200===n.status&&(t.is_fans=!t.is_fans),e.$util.Tips({title:n.message})})).catch((function(t){e.$util.Tips({title:t})}))}},onReachBottom:function(){this.getGoods()},onPageScroll:function(t){uni.$emit("scroll")}});e.default=f},5382:function(t,e,n){"use strict";var a=n("c690"),i=n.n(a);i.a},"5dce":function(t,e,n){var a=n("c86c");e=a(!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/* 文章场景相关 */.empty-box[data-v-f1a26612]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:%?200?%}.empty-box uni-image[data-v-f1a26612]{width:%?414?%;height:%?240?%}.empty-box .txt[data-v-f1a26612]{font-size:%?26?%;color:#999}',""]),t.exports=e},"676c":function(t,e,n){"use strict";var a=n("9da7"),i=n.n(a);i.a},"7a2b":function(t,e,n){"use strict";n.r(e);var a=n("38ef"),i=n("2847");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("5382");var s=n("828b"),r=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"70fbf290",null,!1,a["a"],void 0);e["default"]=r.exports},8329:function(t,e,n){"use strict";n.r(e);var a=n("d98d"),i=n("c4bf1");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("676c");var s=n("828b"),r=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"f1a26612",null,!1,a["a"],void 0);e["default"]=r.exports},"9da7":function(t,e,n){var a=n("5dce");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("967d").default;i("773f4a1f",a,!0,{sourceMap:!1,shadowMode:!1})},b7b2:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={props:{title:{type:String,default:"暂无记录"}}};e.default=a},c4bf1:function(t,e,n){"use strict";n.r(e);var a=n("b7b2"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},c690:function(t,e,n){var a=n("eb15");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("967d").default;i("f9825d7c",a,!0,{sourceMap:!1,shadowMode:!1})},d98d:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"empty-box"},[e("v-uni-image",{attrs:{src:"/static/images/empty-box.png"}}),e("v-uni-view",{staticClass:"txt"},[this._v(this._s(this.title))])],1)},i=[]},eb15:function(t,e,n){var a=n("c86c");e=a(!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/* 文章场景相关 */.user_plant_item[data-v-70fbf290]{position:relative;display:flex;padding:%?30?% %?20?%;background-color:#fff;align-items:center}.user_plant_item[data-v-70fbf290]::after{content:" ";position:absolute;bottom:0;left:%?30?%;right:0;height:1px;background:#f0f0f0}.user_plant_item uni-image[data-v-70fbf290]{width:%?120?%;height:%?120?%;border-radius:50%}.user_plant_item .info[data-v-70fbf290]{flex:1;display:flex;flex-direction:column;justify-content:space-between;margin-left:%?20?%;position:relative}.user_plant_item .info .name[data-v-70fbf290]{width:%?410?%;font-size:%?30?%;color:#282828}.user_plant_item .info .plant-des[data-v-70fbf290]{color:#999;font-size:%?24?%;margin-top:%?16?%}.user_plant_item .info .plant-des .des[data-v-70fbf290]{margin-right:%?15?%}.user_plant_item .info .plant-des .des + .des[data-v-70fbf290]{margin-left:%?15?%}.user_plant_item .info .plant-des .des + .des[data-v-70fbf290]::before{content:"";display:inline-block;width:%?1?%;height:%?16?%;background:#999;position:relative;left:%?-15?%;top:%?-2?%}.user_plant_item .info .plant-des .des uni-text[data-v-70fbf290]{padding-left:%?8?%}.user_plant_item .info .plant-des .des uni-text[data-v-70fbf290]::before{content:".";position:relative;top:%?-6?%;left:%?-3?%}.user_plant_item .info .btn[data-v-70fbf290]{display:flex;align-items:center;justify-content:center;position:absolute;right:0;top:50%;width:%?126?%;height:%?50?%;-webkit-transform:translateY(-50%);transform:translateY(-50%);border:1px solid #999;color:#999;border-radius:%?33?%;font-size:%?26?%}.user_plant_item .info .btn.focusBtn .iconfont[data-v-70fbf290]{font-size:%?20?%;margin-right:%?10?%}.main .search[data-v-70fbf290]{padding:%?20?% 0 0 %?10?%}.main .search .input[data-v-70fbf290]{width:%?580?%;background-color:#f7f7f7;border-radius:%?33?%;padding:0 %?20?% 0 %?30?%;box-sizing:border-box;height:%?66?%;position:relative}.main .search .input uni-input[data-v-70fbf290]{width:%?440?%;font-size:%?28?%}.main .search .input .placeholder[data-v-70fbf290]{color:#bbb}.main .search .input .iconfont[data-v-70fbf290]{color:#000;font-size:%?35?%}.main .search .input .icon-guanbi1[data-v-70fbf290]{font-size:%?32?%;color:#ccc}.main .search .bnt[data-v-70fbf290]{width:%?120?%;text-align:center;height:%?66?%;line-height:%?66?%;font-size:%?28?%;color:#282828}.search-tabs[data-v-70fbf290]{align-items:center;padding:%?40?% %?30?% %?30?%}.search-tabs .item[data-v-70fbf290]{color:#999;font-size:%?30?%;position:relative}.search-tabs .item + .item[data-v-70fbf290]{margin-left:%?55?%}.search-tabs .item.on[data-v-70fbf290]{color:var(--view-theme);font-size:%?34?%;font-weight:700}.search-tabs .item.on[data-v-70fbf290]::after{content:"";display:block;width:%?40?%;height:%?5?%;background:var(--view-theme);position:absolute;left:50%;margin-left:%?-20?%;bottom:%?-18?%}.author-wrap .focusBtn[data-v-70fbf290]{color:var(--view-theme)!important;border-color:var(--view-theme)!important}.main[data-v-70fbf290]{background:#fff;padding:0 %?20?%;min-height:100vh}.main .goods-wrap[data-v-70fbf290]{margin-top:%?20?%}.goods[data-v-70fbf290]{display:flex;flex-wrap:wrap;justify-content:space-between}.empty-box[data-v-70fbf290]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:0;padding-top:%?200?%}.empty-box uni-image[data-v-70fbf290]{width:%?414?%;height:%?240?%}.empty-box .txt[data-v-70fbf290]{font-size:%?26?%;color:#999}',""]),t.exports=e}}]); |