index.js 3.5 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/store/newcomers/index"],{"3fd1":function(n,t,o){"use strict";var e=o("cddf"),i=o.n(e);i.a},"490c":function(n,t,o){"use strict";o.r(t);var e=o("faa3"),i=o("7f7e");for(var a in i)["default"].indexOf(a)<0&&function(n){o.d(t,n,(function(){return i[n]}))}(a);o("3fd1");var r=o("f0c5"),c=Object(r["a"])(i["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);t["default"]=c.exports},"735a":function(n,t,o){"use strict";(function(n,t){var e=o("4ea4");o("59a4");e(o("66fd"));var i=e(o("490c"));n.__webpack_require_UNI_MP_PLUGIN__=o,t(i.default)}).call(this,o("bc2e")["default"],o("543d")["createPage"])},"7f7e":function(n,t,o){"use strict";o.r(t);var e=o("bb5b"),i=o.n(e);for(var a in e)["default"].indexOf(a)<0&&function(n){o.d(t,n,(function(){return e[n]}))}(a);t["default"]=i.a},bb5b:function(n,t,o){"use strict";(function(n){var e=o("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=e(o("5c3b")),a=o("8bb5"),r={mixins:[i.default],components:{countDown:function(){o.e("components/countDown/index").then(function(){return resolve(o("8030"))}.bind(null,o)).catch(o.oe)},home:function(){Promise.all([o.e("common/vendor"),o.e("components/home/index")]).then(function(){return resolve(o("377d"))}.bind(null,o)).catch(o.oe)}},data:function(){return{info:{},newList:[],loading:!1,loadend:!1,loadTitle:"加载更多",page:1,limit:9}},onLoad:function(){this.getNewcomerInfo(),this.productList()},onReady:function(){},onShow:function(){},methods:{goDetail:function(t){n.navigateTo({url:"/pages/goods_details/index?id=".concat(t.id,"&fromPage='newVip'")})},goRule:function(t){n.setStorageSync("infos",this.info.newcomer_agreement),n.navigateTo({url:"/pages/store/ruleInfo/index"})},getNewcomerInfo:function(){var n=this;(0,a.newcomerInfo)().then((function(t){t.data.last_time=parseInt(t.data.last_time),n.info=t.data})).catch((function(t){n.$util.Tips({title:t})}))},productList:function(){var n=this,t=this;t.loading||t.loadend||(t.loading=!0,t.loadTitle="",(0,a.newcomerList)({page:t.page,limit:t.limit}).then((function(n){var o=n.data,e=o.length<t.limit;t.newList=t.$util.SplitArray(o,t.newList),t.$set(t,"newList",t.newList),t.loadend=e,t.loadTitle=e?"没有更多内容啦~":"加载更多",t.page=t.page+1,t.loading=!1})).catch((function(o){t.loading=!1,t.loadTitle="加载更多",n.$util.Tips({title:o})})))},goGoodList:function(){n.navigateTo({url:"/pages/goods/goods_list/index"})}},onReachBottom:function(){this.productList()}};t.default=r}).call(this,o("543d")["default"])},cddf:function(n,t,o){},faa3:function(n,t,o){"use strict";o.d(t,"b",(function(){return e})),o.d(t,"c",(function(){return i})),o.d(t,"a",(function(){}));var e=function(){var n=this,t=n.$createElement,o=(n._self._c,n.info.first_order_status?parseFloat(n.info.first_order_discount)/10||10:null),e=n.info.register_give_coupon?n.info.register_give_coupon.length:null,i=n.info.register_give_coupon&&e?n.__map(n.info.register_give_coupon,(function(t,o){var e=n.__get_orig(t),i=1==t.coupon_type?t.coupon_price.toString().split("."):null,a=t.coupon_price.toString().split(".").length>1&&1==t.coupon_type,r=a?t.coupon_price.toString().split("."):null,c=2==t.coupon_type?parseFloat(t.coupon_price):null;return{$orig:e,g1:i,g2:a,g3:r,m1:c}})):null,a=n.info.first_order_status?parseFloat(n.info.first_order_discount)/10||10:null,r=n.info.first_order_status?parseFloat(n.info.first_order_discount)/10||10:null,c=n.newList.length,u=n.newList.length;n.$mp.data=Object.assign({},{$root:{m0:o,g0:e,l0:i,m2:a,m3:r,g4:c,g5:u}})},i=[]}},[["735a","common/runtime","common/vendor"]]]);