11 lines
2.5 KiB
JavaScript
11 lines
2.5 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/get-coupon/get-coupon"],{2537:function(n,t,o){"use strict";var e=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=e(o("7eb4")),c=e(o("ee10")),i=o("0956"),s={name:"get-coupon",props:{goodsId:{type:[Number,String]},shopId:{type:[Number,String]},type:{type:String},wrapStyle:Object},data:function(){return{showCoupon:!1,list:[]}},watch:{goodsId:function(n){this.getGoodsCouponFun()},shopId:function(){this.getGoodsCouponFun()}},methods:{getGoodsCouponFun:function(){var n=this;return(0,c.default)(u.default.mark((function t(){var o,e,c;return u.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log(n.goodsId),t.next=3,(0,i.getCouponList)({goods_id:n.goodsId,shop_id:n.shopId});case 3:o=t.sent,e=o.data,c=o.code,console.log(e),1==c&&(n.list=e.lists);case 8:case"end":return t.stop()}}),t)})))()}}};t.default=s},"7d0c":function(n,t,o){"use strict";o.r(t);var e=o("dc35"),u=o("a53e");for(var c in u)["default"].indexOf(c)<0&&function(n){o.d(t,n,(function(){return u[n]}))}(c);o("e019");var i=o("828b"),s=Object(i["a"])(u["default"],e["b"],e["c"],!1,null,"3167ea9f",null,!1,e["a"],void 0);t["default"]=s.exports},a53e:function(n,t,o){"use strict";o.r(t);var e=o("2537"),u=o.n(e);for(var c in e)["default"].indexOf(c)<0&&function(n){o.d(t,n,(function(){return e[n]}))}(c);t["default"]=u.a},cd17:function(n,t,o){},dc35:function(n,t,o){"use strict";o.d(t,"b",(function(){return u})),o.d(t,"c",(function(){return c})),o.d(t,"a",(function(){return e}));var e={uIcon:function(){return o.e("components/uview-ui/components/u-icon/u-icon").then(o.bind(null,"8f08"))},uPopup:function(){return o.e("components/uview-ui/components/u-popup/u-popup").then(o.bind(null,"b12c"))},couponList:function(){return Promise.all([o.e("common/vendor"),o.e("components/coupon-list/coupon-list")]).then(o.bind(null,"ca64"))}},u=function(){var n=this,t=n.$createElement,o=(n._self._c,n.__get_style([n.wrapStyle])),e=n.list.length;n._isMounted||(n.e0=function(t){n.showCoupon=!0}),n.$mp.data=Object.assign({},{$root:{s0:o,g0:e}})},c=[]},e019:function(n,t,o){"use strict";var e=o("cd17"),u=o.n(e);u.a}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'components/get-coupon/get-coupon-create-component',
|
|
{
|
|
'components/get-coupon/get-coupon-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('df3c')['createComponent'](__webpack_require__("7d0c"))
|
|
})
|
|
},
|
|
[['components/get-coupon/get-coupon-create-component']]
|
|
]);
|