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.2 KiB
1 lines
3.2 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/new_customer/index"],{"0342":function(t,e,n){"use strict";n.r(e);var i=n("c4e0"),o=n("2556");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("83ae");var r=n("828b"),c=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports},2556:function(t,e,n){"use strict";n.r(e);var i=n("92a8"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"83ae":function(t,e,n){"use strict";var i=n("a1f0"),o=n.n(i);o.a},"92a8":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("c267"),o=n("bad7"),a=t.getSystemInfoSync().statusBarHeight,r={components:{countDown:function(){n.e("components/countDown/index").then(function(){return resolve(n("b347"))}.bind(null,n)).catch(n.oe)}},data:function(){return{sysHeight:a,imgHost:o.HTTP_REQUEST_URL,info:{},newList:[],loading:!1,loadend:!1,loadTitle:"加载更多",page:1,limit:9,showMore:!1}},filters:{typeFilter:function(t){return{0:"通用券",1:"品类券",2:"商品券",3:"品牌券"}[t]}},computed:{headerBg:function(){return"url("+this.imgHost+"/statics/images/newcomer/header.png)"}},onLoad:function(){this.getNewcomerInfo(),this.productList()},methods:{getNewcomerInfo:function(){var t=this;(0,i.newcomerInfo)().then((function(e){e.data.last_time=parseInt(e.data.last_time),t.info=e.data})).catch((function(e){t.$util.Tips({title:e})}))},productList:function(){var t=this,e=this;e.loading||e.loadend||(e.loading=!0,e.loadTitle="",(0,i.newcomerList)({page:e.page,limit:e.limit}).then((function(t){var n=t.data,i=n.length<e.limit;e.newList=e.$util.SplitArray(n,e.newList),e.$set(e,"newList",e.newList),e.loadend=i,e.loadTitle=i?"没有更多内容啦~":"加载更多",e.page=e.page+1,e.loading=!1})).catch((function(n){e.loading=!1,e.loadTitle="加载更多",t.$util.Tips({title:n})})))},goPage:function(e,n){1==n?t.navigateTo({url:e}):3==n&&t.navigateBack()},showMoreChange:function(){this.showMore=!this.showMore}},onReachBottom:function(){this.productList()}};e.default=r}).call(this,n("df3c")["default"])},a1f0:function(t,e,n){},c4e0:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.info.register_give_coupon?t.info.register_give_coupon.length:null),i=t.info.register_give_coupon&&n?t.__map(t.showMore?t.info.register_give_coupon:t.info.register_give_coupon.slice(0,6),(function(e,n){var i=t.__get_orig(e),o=1!=e.coupon_type?parseFloat(e.coupon_price):null,a=t._f("typeFilter")(e.applicable_type);return{$orig:i,m0:o,f0:a}})):null,o=t.info.register_give_coupon&&n?t.info.register_give_coupon.length:null,a=t.info.first_order_status?parseFloat(t.info.first_order_discount)/10||10:null,r=t.newList.length;t.$mp.data=Object.assign({},{$root:{g0:n,l0:i,g1:o,m1:a,g2:r}})},o=[]},e73f:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("7561");i(n("3240"));var o=i(n("0342"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["e73f","common/runtime","common/vendor"]]]); |