12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/coupon"],{"0a2f":function(t,n,o){"use strict";o.r(n);var e=o("b7ed"),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},"1c86":function(t,n,o){"use strict";var e=o("364b"),i=o.n(e);i.a},"364b":function(t,n,o){},7780: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=1!=n.coupon_type?parseFloat(n.coupon_price):null;return{$orig:e,m0:i}})):null;t.$mp.data=Object.assign({},{$root:{g0:o,l0:e}})},i=[]},"7e0a":function(t,n,o){"use strict";o.r(n);var e=o("7780"),i=o("0a2f");for(var u in i)["default"].indexOf(u)<0&&function(t){o.d(n,t,(function(){return i[t]}))}(u);o("1c86");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},b7ed:function(t,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=o("3c98"),i=o("26cb"),u=o("8e8a"),c={name:"coupon",props:{dataConfig:{type:Object,default:function(){}},isSortType:{type:String|Number,default:0}},computed:(0,i.mapGetters)(["isLogin"]),components:{},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:"领取成功"})})).catch((function(t){n.$util.Tips({title:t})})):(0,u.toLogin)()}}};n.default=c}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'pages/index/components/coupon-create-component',
- {
- 'pages/index/components/coupon-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('543d')['createComponent'](__webpack_require__("7e0a"))
- })
- },
- [['pages/index/components/coupon-create-component']]
- ]);
|