mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-03-27 15:50:54 +00:00
1 line
3.1 KiB
JavaScript
1 line
3.1 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/columnGoods/HotNewGoods/index"],{"23a7":function(t,n,e){"use strict";(function(t,n){var i=e("47a9");e("89bd");i(e("3240"));var o=i(e("79e8"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"40fe":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,0==this.goodsList.length&&!this.isScroll),e=n?this.$t("暂无数据"):null;this.$mp.data=Object.assign({},{$root:{g0:n,m0:e}})},o=[]},"575b":function(t,n,e){"use strict";(function(t){var i=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("8ede"),a=e("8633"),c=i(e("0110")),s={name:"HotNewGoods",components:{GoodList:function(){Promise.all([e.e("common/vendor"),e.e("components/goodList/index")]).then(function(){return resolve(e("e2a9"))}.bind(null,e)).catch(e.oe)},emptyPage:function(){e.e("components/emptyPage").then(function(){return resolve(e("5c67"))}.bind(null,e)).catch(e.oe)},home:function(){Promise.all([e.e("common/vendor"),e.e("components/home/index")]).then(function(){return resolve(e("4f1d"))}.bind(null,e)).catch(e.oe)},pageFooter:function(){Promise.all([e.e("common/vendor"),e.e("components/pageFooter/index")]).then(function(){return resolve(e("cc15"))}.bind(null,e)).catch(e.oe)}},props:{},mixins:[c.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(t){var n=this,e=t.link||"";(0,a.goPage)().then((function(t){n.$util.JumpPath(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=s}).call(this,e("df3c")["default"])},"731b":function(t,n,e){},"79e8":function(t,n,e){"use strict";e.r(n);var i=e("40fe"),o=e("f202");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("d72b");var c=e("828b"),s=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=s.exports},d72b:function(t,n,e){"use strict";var i=e("731b"),o=e.n(i);o.a},f202:function(t,n,e){"use strict";e.r(n);var i=e("575b"),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}},[["23a7","common/runtime","common/vendor"]]]); |