1 line
8.8 KiB
JavaScript
1 line
8.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-plantGrass-plant_show-index"],{"18e1":function(t,n,e){"use strict";e.r(n);var i=e("2b95"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},"1aed":function(t,n,e){"use strict";e.r(n);var i=e("baed"),o=e("3ba7f");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("98ca");var s=e("f0c5"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"25886798",null,!1,i["a"],void 0);n["default"]=r.exports},"1e9b":function(t,n,e){var i=e("5e9a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=e("4f06").default;o("7684bad0",i,!0,{sourceMap:!1,shadowMode:!1})},"2b95":function(t,n,e){"use strict";e("7a82");var i=e("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("5530")),a=i(e("1313")),s=e("52dc"),r=e("26cb"),u=i(e("104c")),c=i(e("1aed")),d=(getApp(),{components:{authorize:u.default,emptyPage:c.default,WaterfallsFlow:a.default},data:function(){return{focus:!1,goods:[],count:0,keyword:"",loaded:!1,loading:!1,loadTitle:"加载更多",isShowAuth:!1,isAuto:!1,proInfo:{},where:{keyword:"",page:1,limit:30,topic_id:"",spu_id:""}}},created:function(){},computed:(0,o.default)({},(0,r.mapGetters)(["isLogin","uid","scrollTop","viewColor"])),watch:{},onLoad:function(t){this.where.spu_id=t.spu_id,this.getGoods(),this.getProDetail()},onShow:function(){},mounted:function(){},methods:{onLoadFun:function(){this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},authOpen:function(){!1===this.isLogin&&(this.isAuto=!0,this.isShowAuth=!0)},getGoods:function(){var t=this;t.loadend||t.loading||(t.loading=!0,t.loadTitle="",(0,s.graphicLstApi)(t.where).then((function(n){t.loading=!1;var e=n.data.list,i=t.$util.SplitArray(e,t.goods),o=e.length<t.where.limit;t.loadend=o,t.loading=!1,t.count=n.data.count,t.loadTitle=o?"已全部加载":"加载更多",t.$set(t,"goods",i),t.$set(t.where,"page",t.where.page+1)})).catch((function(n){t.loading=!1,t.goodsLoading=!1,uni.showToast({title:n,icon:"none"})})))},getProDetail:function(){var t=this;(0,s.graphicProApi)(t.where.spu_id).then((function(n){t.proInfo=n.data})).catch((function(t){uni.showToast({title:t,icon:"none"})}))}},onReachBottom:function(){this.getGoods()},onPageScroll:function(t){uni.$emit("scroll")}});n.default=d},"3ba7f":function(t,n,e){"use strict";e.r(n);var i=e("f700"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},"46b5":function(t,n,e){"use strict";var i=e("7ef1"),o=e.n(i);o.a},5390:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return i}));var i={WaterfallsFlow:e("a825").default},o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{style:t.viewColor},[e("v-uni-view",{staticClass:"main"},[e("v-uni-view",{staticClass:"show_main area-row"},[e("v-uni-view",{staticClass:"picture"},[e("v-uni-image",{attrs:{src:t.proInfo.image}})],1),e("v-uni-view",{staticClass:"show_info"},[e("v-uni-view",{staticClass:"show_name line1"},[t._v(t._s(t.proInfo.store_name))]),e("v-uni-view",{staticClass:"show_count"},[e("v-uni-text",{staticClass:"num"},[t._v(t._s(t.count))]),t._v("条买家秀")],1)],1)],1),e("v-uni-view",{staticClass:"tab-cont"},[t.goods.length?e("v-uni-view",{staticClass:"goods-wrap"},[e("v-uni-view",{staticClass:"goods"},[e("WaterfallsFlow",{attrs:{wfList:t.goods,isFind:!1,isShow:!0,isAuth:!1}})],1)],1):t._e(),e("v-uni-view",{staticClass:"acea-row row-center-wrapper loadingicon",attrs:{hidden:!t.loading}},[e("v-uni-text",{staticClass:"iconfont icon-jiazai loading"})],1),0!=t.goods.length||t.loading?t._e():e("emptyPage",{attrs:{title:"暂无文章~"}})],1)],1),e("authorize",{attrs:{isAuto:t.isAuto,isShowAuth:t.isShowAuth},on:{onLoadFun:function(n){arguments[0]=n=t.$handleEvent(n),t.onLoadFun.apply(void 0,arguments)},authColse:function(n){arguments[0]=n=t.$handleEvent(n),t.authColse.apply(void 0,arguments)}}})],1)},a=[]},"5e9a":function(t,n,e){var i=e("24fb");n=i(!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/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.empty-box[data-v-25886798]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:%?200?%}.empty-box uni-image[data-v-25886798]{width:%?414?%;height:%?240?%}.empty-box .txt[data-v-25886798]{font-size:%?26?%;color:#999}',""]),t.exports=n},7736:function(t,n,e){"use strict";e.r(n);var i=e("5390"),o=e("18e1");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("46b5");var s=e("f0c5"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"29e3fb57",null,!1,i["a"],void 0);n["default"]=r.exports},"7ef1":function(t,n,e){var i=e("a679");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=e("4f06").default;o("622ef796",i,!0,{sourceMap:!1,shadowMode:!1})},"98ca":function(t,n,e){"use strict";var i=e("1e9b"),o=e.n(i);o.a},a679:function(t,n,e){var i=e("24fb");n=i(!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/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.main[data-v-29e3fb57]{padding:%?20?% %?20?% 0;min-height:100vh}.main .goods-wrap[data-v-29e3fb57]{margin-top:%?20?%}.show_main[data-v-29e3fb57]{padding:%?20?% %?30?%;background:#fff;border-radius:%?16?%;justify-content:space-between;display:flex}.show_main .picture[data-v-29e3fb57]{width:%?108?%;height:%?108?%}.show_main .show_info[data-v-29e3fb57]{width:%?510?%;position:relative}.show_main .show_name[data-v-29e3fb57]{color:#282828;font-size:%?28?%;font-weight:700;font-family:PingFang SC}.show_main .show_count[data-v-29e3fb57]{position:absolute;bottom:%?4?%;color:#282828;font-size:%?24?%}.show_main .show_count .num[data-v-29e3fb57]{font-size:%?30?%;font-weight:700;color:var(--view-theme)}.show_main .picture uni-image[data-v-29e3fb57]{width:100%;height:100%}.goods[data-v-29e3fb57]{display:flex;flex-wrap:wrap;justify-content:space-between}.empty-box[data-v-29e3fb57]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:0;padding-top:%?200?%}.empty-box uni-image[data-v-29e3fb57]{width:%?414?%;height:%?240?%}.empty-box .txt[data-v-29e3fb57]{font-size:%?26?%;color:#999}',""]),t.exports=n},baed:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var i=function(){var t=this.$createElement,n=this._self._c||t;return n("v-uni-view",{staticClass:"empty-box",style:{"margin-top":this.mt}},[n("v-uni-image",{attrs:{src:"/static/images/empty-box.png"}}),n("v-uni-view",{staticClass:"txt",style:{color:this.color}},[this._v(this._s(this.title))])],1)},o=[]},f700:function(t,n,e){"use strict";e("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={props:{title:{type:String,default:"暂无记录"},color:{type:String,default:"#999"},mt:{type:String,default:"200rpx"}}};n.default=i}}]); |