1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/coupon"],{1173:function(n,t,o){"use strict";o.r(t);var e=o("650a"),u=o("851f");for(var c in u)["default"].indexOf(c)<0&&function(n){o.d(t,n,(function(){return u[n]}))}(c);o("4e87");var i=o("f0c5"),a=Object(i["a"])(u["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);t["default"]=a.exports},"4e87":function(n,t,o){"use strict";var e=o("9f10"),u=o.n(e);u.a},"650a":function(n,t,o){"use strict";o.d(t,"b",(function(){return e})),o.d(t,"c",(function(){return u})),o.d(t,"a",(function(){}));var e=function(){var n=this.$createElement;this._self._c},u=[]},"7d9e":function(n,t,o){"use strict";(function(n,t){var e=o("4ea4");o("d1cd");e(o("66fd"));var u=e(o("1173"));n.__webpack_require_UNI_MP_PLUGIN__=o,t(u.default)}).call(this,o("bc2e")["default"],o("543d")["createPage"])},"851f":function(n,t,o){"use strict";o.r(t);var e=o("9f66"),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},"9f10":function(n,t,o){},"9f66":function(n,t,o){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;o("0d17");var e=o("da1f"),u={data:function(){return{height:"",couponArray:[]}},onLoad:function(){this.loadData()},onShow:function(){},onReachBottom:function(){},onReady:function(){var t=this;n.getSystemInfo({success:function(o){var e=n.createSelectorQuery();e.select(".coupon-box").boundingClientRect(),e.exec((function(n){console.log(n,"ddddddddddddd"),t.height=o.windowHeight-n[0].top+"px",console.log("打印页面的剩余高度",t.height)}))},fail:function(n){}})},methods:{loadData:function(){var n=this;(0,e.getwCouponsList)({}).then((function(t){var o=t.data;n.couponArray=o}))},setCoupons:function(t){n.showModal({title:"领取提示",content:"是否领取优惠券",success:function(o){o.confirm&&(0,e.setCoupons)({couponId:t.id}).then((function(o){t.is_use=!0,n.showToast({title:"领取成功",type:"top",duration:2e3})}))}})}}};t.default=u}).call(this,o("543d")["default"])}},[["7d9e","common/runtime","common/vendor"]]]);
|