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.
 
 
 
 
 
 

10 lines
2.9 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/diy/components/coupon"],{"17e9":function(t,n,o){"use strict";o.r(n);var e=o("4aa0"),i=o("31c3");for(var u in i)["default"].indexOf(u)<0&&function(t){o.d(n,t,(function(){return i[t]}))}(u);o("f5d1");var c=o("f0c5"),a=Object(c["a"])(i["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);n["default"]=a.exports},1884:function(t,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=o("d322"),i=o("26cb"),u=o("666f"),c={name:"coupon",props:{dataConfig:{type:Object,default:function(){}},isSortType:{type:String|Number,default:0}},computed:(0,i.mapGetters)(["isLogin"]),components:{authorize:function(){o.e("components/Authorize").then(function(){return resolve(o("b29f"))}.bind(null,o)).catch(o.oe)}},watch:{isLogin:{handler:function(t,n){t&&this.getCoupon()},deep:!0}},data:function(){return{isAuto:!1,isShowAuth:!1,couponList:[],bgColor:this.dataConfig.bgColor.color[0].item,themeColor:this.dataConfig.themeColor.color[0].item,mbConfig:this.dataConfig.mbConfig.val,bgStyle:this.dataConfig.bgStyle.type,prConfig:this.dataConfig.prConfig.val}},created:function(){},mounted:function(){this.getCoupon()},methods:{getCoupon:function(){var t=this,n=t.$config.LIMIT;(0,e.getCoupons)({page:1,limit:n,type:-1}).then((function(n){t.$set(t,"couponList",n.data.list)})).catch((function(n){return t.$util.Tips({title:n})}))},receiveCoupon:function(t){var n=this;n.isLogin?(0,e.setCouponReceive)(t.id).then((function(){t.is_use=!0,n.$set(n,"couponList",n.couponList),n.$util.Tips({title:n.$t("领取成功")})})).catch((function(t){n.$util.Tips({title:t})})):(0,u.toLogin)()}}};n.default=c},"31c3":function(t,n,o){"use strict";o.r(n);var e=o("1884"),i=o.n(e);for(var u in e)["default"].indexOf(u)<0&&function(t){o.d(n,t,(function(){return e[t]}))}(u);n["default"]=i.a},"4aa0":function(t,n,o){"use strict";o.d(n,"b",(function(){return e})),o.d(n,"c",(function(){return i})),o.d(n,"a",(function(){}));var e=function(){var t=this,n=t.$createElement,o=(t._self._c,t.couponList.length),e=o?t.__map(t.couponList,(function(n,o){var e=t.__get_orig(n),i=t.$t("¥"),u=t.$t("满"),c=t.$t("元可用"),a=1==n.is_use?t.$t("已领取"):null,s=1==n.is_use||n.is_use?null:t.$t("立即领取"),r=1!=n.is_use&&n.is_use&&2==n.is_use?t.$t("已过期"):null;return{$orig:e,m0:i,m1:u,m2:c,m3:a,m4:s,m5:r}})):null,i=o?t.$t("更多"):null;t.$mp.data=Object.assign({},{$root:{g0:o,l0:e,m6:i}})},i=[]},f5d1:function(t,n,o){"use strict";var e=o("faeb"),i=o.n(e);i.a},faeb:function(t,n,o){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pages/index/diy/components/coupon-create-component',
{
'pages/index/diy/components/coupon-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("17e9"))
})
},
[['pages/index/diy/components/coupon-create-component']]
]);