mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-03-26 23:33:17 +00:00
1 line
3.2 KiB
JavaScript
1 line
3.2 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/columnGoods/HotNewGoods/index"],{"176f":function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var i=function(){var t=this,n=t.$createElement,e=(t._self._c,0!=t.goodsList.length||t.isScroll?null:t.$t("暂无数据"));t.$mp.data=Object.assign({},{$root:{m0:e}})},a=[]},"1a64":function(t,n,e){"use strict";e.r(n);var o=e("176f"),i=e("7da9");for(var a in i)"default"!==a&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("adfc");var c,r=e("f0c5"),s=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);n["default"]=s.exports},5182:function(t,n,e){"use strict";(function(t){e("7b91");o(e("66fd"));var n=o(e("1a64"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},"7da9":function(t,n,e){"use strict";e.r(n);var o=e("e3e0"),i=e.n(o);for(var a in o)"default"!==a&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},adfc:function(t,n,e){"use strict";var o=e("b106"),i=e.n(o);i.a},b106:function(t,n,e){},e3e0:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("768b"),i=e("a43a"),a=c(e("9ad2"));function c(t){return t&&t.__esModule?t:{default:t}}var r=function(){e.e("components/emptyPage").then(function(){return resolve(e("d173"))}.bind(null,e)).catch(e.oe)},s=function(){Promise.all([e.e("common/vendor"),e.e("components/goodList/index")]).then(function(){return resolve(e("7623"))}.bind(null,e)).catch(e.oe)},u=function(){Promise.all([e.e("common/vendor"),e.e("components/pageFooter/index")]).then(function(){return resolve(e("fa6b"))}.bind(null,e)).catch(e.oe)},l=function(){Promise.all([e.e("common/vendor"),e.e("components/home/index")]).then(function(){return resolve(e("a25b"))}.bind(null,e)).catch(e.oe)},d={name:"HotNewGoods",components:{GoodList:s,emptyPage:r,home:l,pageFooter:u},props:{},mixins:[a.default],data:function(){return{imgUrls:[],goodsList:[],name:"",icon:"",type:0,typeName:["",this.$t("精品推荐"),this.$t("热门榜单"),this.$t("首发新品"),this.$t("促销单品")],autoplay:!0,circular:!0,interval:3e3,duration:500,page:1,limit:8,isScroll:!0}},onLoad:function(n){this.type=n.type,this.titleInfo(),this.name=n.name,t.setNavigationBarTitle({title:n.name}),this.getIndexGroomList()},methods:{titleInfo:function(){"1"===this.type?this.icon="icon-jingpintuijian":"2"===this.type?this.icon="icon-remen":("3"===this.type||"4"===this.type)&&(this.icon="icon-xinpin")},goPages:function(n){var e=n.link||"";(0,i.goPage)().then((function(n){-1!=e.indexOf("http")||(["/pages/goods_cate/goods_cate","/pages/order_addcart/order_addcart","/pages/user/index"].indexOf(e),t.navigateTo({url:e}))}))},getIndexGroomList:function(){if(this.isScroll){var t=this,n=this.type;(0,o.getGroomList)(n,{page:this.page,limit:this.limit}).then((function(n){t.imgUrls=n.data.banner,t.goodsList=t.goodsList.concat(n.data.list),t.isScroll=n.data.list.length>=t.limit,t.page++})).catch((function(n){t.$util.Tips({title:n})}))}},onReachBottom:function(){this.getIndexGroomList()}}};n.default=d}).call(this,e("543d")["default"])}},[["5182","common/runtime","common/vendor"]]]); |