徐总多门店
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
7.4 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/coupon"],{"31fd":function(t,o,n){"use strict";n.d(o,"b",(function(){return a})),n.d(o,"c",(function(){return e})),n.d(o,"a",(function(){}));var a=function(){var t=this,o=t.$createElement,n=(t._self._c,t.__get_style([t.couponWrapStyle])),a=t.couponList.length,e=a?t.__get_style([t.couponWrapBgColor]):null,i=a&&0==t.dataConfig.styleConfig.tabVal?t.__map(t.couponList,(function(o,n){var a=t.__get_orig(o),e=t.__get_style([t.couponItemFirstStyle]),i=t.__get_style([t.couponMoneyColor]),l=1==o.is_use?t.__get_style([t.bntBgColor]):null,r=1!=o.is_use&&0==o.is_use?t.__get_style([t.bntBgColor]):null,s=1!=o.is_use&&0!=o.is_use&&2==o.is_use?t.__get_style([t.bntBgColor]):null;return{$orig:a,s2:e,s3:i,s4:l,s5:r,s6:s}})):null,l=a&&0!=t.dataConfig.styleConfig.tabVal&&1==t.dataConfig.styleConfig.tabVal?t.__map(t.couponList,(function(o,n){var a=t.__get_orig(o),e=t._f("typeFilter")(o.type),i=t.__get_style([t.couponMoneyColor]),l=1==o.is_use?t.__get_style([t.bntBgColor]):null,r=1!=o.is_use&&0==o.is_use?t.__get_style([t.bntBgColor]):null,s=1!=o.is_use&&0!=o.is_use&&2==o.is_use?t.__get_style([t.bntBgColor]):null;return{$orig:a,f0:e,s7:i,s8:l,s9:r,s10:s}})):null,r=a&&0!=t.dataConfig.styleConfig.tabVal&&1!=t.dataConfig.styleConfig.tabVal&&2==t.dataConfig.styleConfig.tabVal?t.__get_style([t.coupon3Color]):null,s=a&&0!=t.dataConfig.styleConfig.tabVal&&1!=t.dataConfig.styleConfig.tabVal&&2!=t.dataConfig.styleConfig.tabVal&&3==t.dataConfig.styleConfig.tabVal?t.__get_style([t.coupon4Color]):null,u=a&&0!=t.dataConfig.styleConfig.tabVal&&1!=t.dataConfig.styleConfig.tabVal&&2!=t.dataConfig.styleConfig.tabVal&&3==t.dataConfig.styleConfig.tabVal?t.__map(t.couponList,(function(o,n){var a=t.__get_orig(o),e=t.__get_style([t.couponItemStyle]),i=t._f("typeFilter")(o.type),l=t.__get_style([t.couponMoneyColor]);return{$orig:a,s13:e,f1:i,s14:l}})):null,c=a&&0!=t.dataConfig.styleConfig.tabVal&&1!=t.dataConfig.styleConfig.tabVal&&2!=t.dataConfig.styleConfig.tabVal&&3==t.dataConfig.styleConfig.tabVal?t.__get_style([t.bntBgColor]):null,g=a&&0!=t.dataConfig.styleConfig.tabVal&&1!=t.dataConfig.styleConfig.tabVal&&2!=t.dataConfig.styleConfig.tabVal&&3!=t.dataConfig.styleConfig.tabVal&&4==t.dataConfig.styleConfig.tabVal?t.__map(t.couponList,(function(o,n){var a=t.__get_orig(o),e=t.__get_style([t.bntBgColor]),i=t.__get_style([t.couponMoneyColor]),l=t.__get_style([t.couponMoneyColor]);return{$orig:a,s16:e,s17:i,s18:l}})):null;t.$mp.data=Object.assign({},{$root:{s0:n,g0:a,s1:e,l0:i,l1:l,s11:r,s12:s,l2:u,s15:c,l3:g}})},e=[]},"3bd4":function(t,o,n){"use strict";(function(t){var a=n("47a9");Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var e=a(n("7ca3")),i=n("a230"),l=n("8f59");function r(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);o&&(a=a.filter((function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),n.push.apply(n,a)}return n}function s(t){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?r(Object(n),!0).forEach((function(o){(0,e.default)(t,o,n[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))}))}return t}var u={props:{dataConfig:{type:Object,default:function(){}},isSortType:{type:String|Number,default:0}},watch:{isLogin:{handler:function(t,o){t&&this.getCoupon()},deep:!0}},filters:{typeFilter:function(t){return{0:"通用券",1:"品类券",2:"商品券",3:"品牌券"}[t]}},data:function(){return{isAuto:!1,isShowAuth:!1,couponList:[]}},computed:s(s({},(0,l.mapGetters)(["isLogin"])),{},{couponMoneyColor:function(){var t={};return this.dataConfig.toneConfig.tabVal&&(t["color"]=this.dataConfig.couponMoneyColor.color[0].item),t},couponItemFirstStyle:function(){return this.dataConfig.toneConfig.tabVal?{background:this.dataConfig.couponBgColor.color[0].item}:{background:"var(--view-theme)"}},couponItemStyle:function(){return{"margin-right":"".concat(2*this.dataConfig.spacingConfig.val,"rpx")}},typeStyle:function(){return this.dataConfig.toneConfig.tabVal?{background:this.dataConfig.couponMoneyColor.color[0].item,color:this.dataConfig.couponMoneyColor.color[0].item}:{background:"var(--view-theme)",color:"var(--view-theme)"}},bntBgColor:function(){var t={};return this.dataConfig.toneConfig.tabVal&&(t["background"]="linear-gradient(180deg, ".concat(this.dataConfig.bntBgColor.color[0].item," 0%, ").concat(this.dataConfig.bntBgColor.color[1].item," 100%)")),t},coupon3Color:function(){var t={"--coupon3-color":"var(--view-theme)"};return this.dataConfig.toneConfig.tabVal&&(t["--coupon3-color"]=this.dataConfig.couponMoneyColor.color[0].item),t},coupon4Color:function(){var t={"--coupon4-color":"var(--view-theme)"};return this.dataConfig.toneConfig.tabVal&&(t["--coupon4-color"]=this.dataConfig.couponBgColor.color[0].item),t},couponWrapBgColor:function(){var t={"--module-color":this.dataConfig.moduleColor2.color[0].item};1==this.dataConfig.styleConfig.tabVal&&(t["--module-color"]="linear-gradient(90deg,".concat(this.dataConfig.moduleColor.color[0].item," 0%,").concat(this.dataConfig.moduleColor.color[1].item," 100%)"));var o="".concat(2*this.dataConfig.fillet.val,"rpx");return this.dataConfig.fillet.type&&(o="".concat(2*this.dataConfig.fillet.valList[0].val,"rpx ").concat(2*this.dataConfig.fillet.valList[1].val,"rpx ").concat(2*this.dataConfig.fillet.valList[2].val,"rpx ").concat(2*this.dataConfig.fillet.valList[3].val,"rpx")),t["border-radius"]=o,t},couponWrapStyle:function(){return{padding:"".concat(2*this.dataConfig.topConfig.val,"rpx ").concat(2*this.dataConfig.prConfig.val,"rpx ").concat(2*this.dataConfig.bottomConfig.val,"rpx"),"margin-top":"".concat(2*this.dataConfig.mbConfig.val,"rpx"),background:this.dataConfig.bottomBgColor.color[0].item}}}),mounted:function(){this.getCoupon()},methods:{getCoupon:function(){var t=this,o=t.$config.LIMIT;(0,i.getCoupons)({page:1,limit:this.dataConfig.numberConfig.val>=o?o:this.dataConfig.numberConfig.val}).then((function(o){t.$set(t,"couponList",o.data.list)})).catch((function(o){return t.$util.Tips({title:o})}))},receiveCoupon:function(t){var o=this;o.isLogin?(0,i.setCouponReceive)(t.id).then((function(){t.is_use=!0,o.$set(o,"couponList",o.couponList),o.$util.Tips({title:"领取成功"})})).catch((function(t){o.$util.Tips({title:t})})):this.$emit("changeLogin")},goCoupon:function(){t.navigateTo({url:"/pages/activity/coupon/index"})}}};o.default=u}).call(this,n("df3c")["default"])},"63fe":function(t,o,n){"use strict";var a=n("d472"),e=n.n(a);e.a},b65e:function(t,o,n){"use strict";n.r(o);var a=n("3bd4"),e=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(o,t,(function(){return a[t]}))}(i);o["default"]=e.a},d472:function(t,o,n){},df3a:function(t,o,n){"use strict";n.r(o);var a=n("31fd"),e=n("b65e");for(var i in e)["default"].indexOf(i)<0&&function(t){n.d(o,t,(function(){return e[t]}))}(i);n("63fe");var l=n("828b"),r=Object(l["a"])(e["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);o["default"]=r.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pages/index/components/coupon-create-component',
{
'pages/index/components/coupon-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("df3a"))
})
},
[['pages/index/components/coupon-create-component']]
]);