1 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/annex/vip_coupon/index"],{"0b96":function(n,e,t){},"15bb":function(n,e,t){"use strict";t.d(e,"b",(function(){return o})),t.d(e,"c",(function(){return i})),t.d(e,"a",(function(){}));var o=function(){var n=this,e=n.$createElement,t=(n._self._c,n.couponsList.length),o=t?n.__map(n.couponsList,(function(e,t){var o=n.__get_orig(e),i=e.is_fail||e.status===n.$t("已使用"),u=n.$t("¥"),a=n._f("money")(e.coupon_price),c=e.use_min_price>0?n.$t("满"):null,s=e.use_min_price>0?n._f("money")(e.use_min_price):null,r=e.use_min_price>0?n.$t("元可用"):null,l=e.use_min_price>0?null:n.$t("无门槛券"),f=0===e.applicable_type?n.$t("通用劵"):null,p=0!==e.applicable_type&&1===e.applicable_type?n.$t("品类券"):null,d=0!==e.applicable_type&&1!==e.applicable_type?n.$t("商品券"):null;return{$orig:o,m0:i,m1:u,f0:a,m2:c,f1:s,m3:r,m4:l,m5:f,m6:p,m7:d}})):null,i=!n.couponsList.length&&1==n.loading;n.$mp.data=Object.assign({},{$root:{g0:t,l0:o,g1:i}})},i=[]},"27cb":function(n,e,t){"use strict";t.r(e);var o=t("15bb"),i=t("fa7d");for(var u in i)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(u);t("9a4b");var a=t("f0c5"),c=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"21d2aef4",null,!1,o["a"],void 0);e["default"]=c.exports},"9a4b":function(n,e,t){"use strict";var o=t("0b96"),i=t.n(o);i.a},aee5:function(n,e,t){"use strict";(function(n,e){var o=t("4ea4");t("4789");o(t("66fd"));var i=o(t("27cb"));n.__webpack_require_UNI_MP_PLUGIN__=t,e(i.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])},d51a:function(n,e,t){"use strict";var o=t("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t("d1ea"),u=t("86eb"),a=o(t("224b")),c=t("26cb"),s=t("00a0"),r={components:{authorize:function(){t.e("components/Authorize").then(function(){return resolve(t("ad23"))}.bind(null,t)).catch(t.oe)},home:function(){Promise.all([t.e("common/vendor"),t.e("components/home/index")]).then(function(){return resolve(t("3b71"))}.bind(null,t)).catch(t.oe)}},data:function(){return{imgHost:s.HTTP_REQUEST_URL,couponsList:[],loading:!1,isAuto:!1,isShowAuth:!1}},filters:{format:function(n){return n?(0,a.default)(1e3*n).format("YYYY-MM-DD"):""},money:function(n){return n?parseFloat(n):"0"}},computed:(0,c.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(n,e){n&&this.getUseCoupons()},deep:!0}},onLoad:function(){this.isLogin?this.getUseCoupons():(0,u.toLogin)()},methods:{onLoadFun:function(){this.getUseCoupons()},authColse:function(n){this.isShowAuth=n},getUseCoupons:function(){var n=this;(0,i.memberCouponsList)().then((function(e){n.loading=!0,n.$set(n,"couponsList",e.data)}))}}};e.default=r},fa7d:function(n,e,t){"use strict";t.r(e);var o=t("d51a"),i=t.n(o);for(var u in o)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(u);e["default"]=i.a}},[["aee5","common/runtime","common/vendor"]]]);
|