12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/visualization/components/coupon"],{"422b":function(t,n,e){},"56e6":function(t,n,e){"use strict";(function(t){var i=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=i(e("9523")),o=e("5743"),r=e("86eb"),s=e("26cb"),c=i(e("19b6"));function a(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,i)}return e}var l=getApp(),f={name:"coupon",mixins:[c.default],props:{dataConfig:{type:Object,default:function(){}}},computed:function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?a(Object(e),!0).forEach((function(n){(0,u.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}({},(0,s.mapGetters)(["isLogin"])),watch:{dataConfig:{immediate:!0,handler:function(t,n){t&&(this.numberConfig=t.numConfig.val,this.isShow=t.isShow.val,this.getCoupon())}}},data:function(){return{couponList:[],numberConfig:0,name:this.$options.name,isIframe:l.globalData.isIframe,isShow:!0}},created:function(){},mounted:function(){},methods:{getCoupon:function(){var t=this,n=[];(0,o.getCouponsIndex)({type:-1,num:this.numberConfig}).then((function(e){e.data.forEach((function(t,e,i){t.used||n.push(t)})),t.$set(t,"couponList",n)})).catch((function(n){return t.$util.Tips({title:n})}))},receiveCoupon:function(t){var n=this;n.isLogin?(0,o.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,r.toLogin)()},gopage:function(n){t.navigateTo({url:n})}}};n.default=f}).call(this,e("543d")["default"])},"98f8":function(t,n,e){"use strict";e.r(n);var i=e("be53"),u=e("afe8");for(var o in u)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return u[t]}))}(o);e("b534");var r=e("f0c5"),s=Object(r["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=s.exports},afe8:function(t,n,e){"use strict";e.r(n);var i=e("56e6"),u=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=u.a},b534:function(t,n,e){"use strict";var i=e("422b"),u=e.n(i);u.a},be53:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){}));var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.isIframe&&!t.couponList.length),i=e?t.$t("优惠券,暂无数据"):null,u=t.couponList.length&&t.isShow&&!t.isIframe,o=u?t.$t("优惠券"):null,r=u?t.$t("领取今日好券"):null,s=u?t.$t("更多"):null,c=u?t.__map(t.couponList,(function(n,e){var i=t.__get_orig(n),u=t.$t("¥"),o=t.$t("满"),r=t.$t("可用"),s=!0===n.is_use?t.$t("已领取"):null,c=!0!==n.is_use&&!1===n.is_use?t.$t("领取"):null,a=!0!==n.is_use&&!1!==n.is_use&&2===n.is_use?t.$t("已过期"):null;return{$orig:i,m4:u,m5:o,m6:r,m7:s,m8:c,m9:a}})):null,a=t.couponList.length&&t.isIframe,l=a?t.$t("优惠券"):null,f=a?t.$t("领取今日好券"):null,p=a?t.$t("更多"):null,m=a?t.__map(t.couponList,(function(n,e){var i=t.__get_orig(n),u=t.$t("¥"),o=t.$t("满"),r=t.$t("可用"),s=!0===n.is_use?t.$t("已领取"):null,c=!0!==n.is_use&&!1===n.is_use?t.$t("领取"):null,a=!0!==n.is_use&&!1!==n.is_use&&2===n.is_use?t.$t("已过期"):null;return{$orig:i,m13:u,m14:o,m15:r,m16:s,m17:c,m18:a}})):null;t.$mp.data=Object.assign({},{$root:{g0:e,m0:i,g1:u,m1:o,m2:r,m3:s,l0:c,g2:a,m10:l,m11:f,m12:p,l1:m}})},u=[]}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'pages/index/visualization/components/coupon-create-component',
- {
- 'pages/index/visualization/components/coupon-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('543d')['createComponent'](__webpack_require__("98f8"))
- })
- },
- [['pages/index/visualization/components/coupon-create-component']]
- ]);
|