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
3.0 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/life/index"],{6650:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("2df4"),a=n("b6d1"),i=n("2f62"),u=function(){n.e("tabbarComponent/tabbar").then(function(){return resolve(n("594c"))}.bind(null,n)).catch(n.oe)},r={components:{tabbar:u},name:"GoodsClass",computed:(0,i.mapGetters)(["userInfo"]),props:{},data:function(){return{category:[],navActive:0,search:"",lock:!1,currentTabIndex:3,flowList:[],isFixed:!1}},watch:{"$yroute.query.id":function(t){t&&this.activeCateId(t)}},onShow:function(t){this.getProducts()},mounted:function(){},onPullDownRefresh:function(){this.getProducts()},methods:{tabBarClick:function(t){this.currentTabIndex=t},goShoppingCart:function(){this.$yrouter.push("/pages/shop/ShoppingCart/index")},goGoodSearch:function(){this.$yrouter.push("/pages/shop/GoodSearch/index")},goGoodsList:function(t){this.$yrouter.push({path:"/pages/shop/GoodsList/index",query:{id:t.id,title:t.cateName}})},toGoodsDetail:function(t){this.$yrouter.push({path:"/pages/shop/GoodsCon/index",query:{id:t}})},activeCateId:function(t){var e=0;t=parseInt(t),t&&(this.category.forEach((function(n,o){n.id===t&&(e=o)})),e!==this.navActive&&this.asideTap(e))},loadCategoryData:function(){var t=this;(0,o.getCategory)().then((function(e){t.category=e.data,t.$nextTick((function(){t.$yroute.query.id&&t.activeCateId(t.$yroute.query.id)}))}))},getProducts:function(){var e=this;(0,o.getProducts)().then((function(n){e.flowList=n.data,t.stopPullDownRefresh()}))},submitForm:function(){var t=this,e=(0,a.trim)(this.search);e&&(this.$yrouter.push({path:"/pages/shop/GoodsList/index",query:{s:e}}),setTimeout((function(){return t.search=""}),500))},asideTap:function(t){this.navActive=t},alertMessage:function(e){t.showToast({title:e,icon:"none"})}},beforeDestroy:function(){}};e.default=r}).call(this,n("543d")["default"])},"6ea0":function(t,e,n){"use strict";var o=n("cfd5"),a=n.n(o);a.a},a175: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(){return o}));var o={uWaterfall:function(){return n.e("node-modules/uview-ui/components/u-waterfall/u-waterfall").then(n.bind(null,"4e25"))}},a=function(){var t=this,e=t.$createElement;t._self._c},i=[]},b1ca:function(t,e,n){"use strict";n.r(e);var o=n("a175"),a=n("e4b0");for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("6ea0");var u,r=n("f0c5"),c=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"14b0e055",null,!1,o["a"],u);e["default"]=c.exports},cfd5:function(t,e,n){},e4b0:function(t,e,n){"use strict";n.r(e);var o=n("6650"),a=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},f4ae:function(t,e,n){"use strict";(function(t){n("ef82");o(n("66fd"));var e=o(n("b1ca"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["f4ae","common/runtime","common/vendor"]]]);