(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/myyhq"],{"0f28":function(e,t,n){},"2b05":function(e,t,n){"use strict";(function(e){n("4c14");o(n("66fd"));var t=o(n("2e35"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n("543d")["createPage"])},"2e35":function(e,t,n){"use strict";n.r(t);var o=n("c6bc"),r=n("8206");for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);n("9bfa");var i,c=n("f0c5"),u=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,"3311b240",null,!1,o["a"],i);t["default"]=u.exports},"55ba":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("26cb"),r=n("763d");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(){n.e("components/empty").then(function(){return resolve(n("3abd"))}.bind(null,n)).catch(n.oe)},d={components:{empty:u},data:function(){return{height:"",tabCurrentIndex:0,navList:[{type:0,text:"未使用",list:[],page:1,limit:10,loadingType:"more",loaded:!1},{type:1,text:"已使用",list:[],page:1,limit:10,loadingType:"more",loaded:!1},{type:2,text:"已过期",list:[],page:1,limit:10,loadingType:"more",loaded:!1}]}},onLoad:function(){},onShow:function(){this.getMyex()},onReachBottom:function(){},computed:i({},(0,o.mapState)("user",["hasLogin","userInfo"])),onReady:function(){var t=this;e.getSystemInfo({success:function(n){var o=e.createSelectorQuery();o.select(".swiper-box").boundingClientRect(),o.exec((function(e){console.log(e,"ddddddddddddd"),t.height=n.windowHeight-e[0].top+"px",console.log("打印页面的剩余高度",t.height)}))},fail:function(e){}})},methods:{userNow:function(t){e.navigateTo({url:"/pages/shop/djqQm?code="+t.code})},shareF:function(t){e.navigateTo({url:"/pages/shop/shareF?code="+t.code+"&type=1&logo="+this.userInfo.avatar+"&nickname="+encodeURI(this.userInfo.nickname)+"&goodname="+encodeURI(t.coupon_title)})},changeTab:function(e){this.tabCurrentIndex=e.target.current,this.getMyex("tab")},tabClick:function(e){this.tabCurrentIndex=e,this.getMyex("tab")},getMyex:function(e){var t=this,n=t.tabCurrentIndex,o=t.navList[n];"loading"!=o.loadingType&&"noMore"!=o.loadingType&&("tab"==e&&o.loaded||(o.loadingType="loading",(0,r.getMyYhq)({page:o.page,limit:o.limit,status:o.type}).then((function(e){var n=e.data;o.list=o.list.concat(n),o.page++,n.length!=o.limit?(o.loadingType="noMore",t.$set(o,"loaded",!0)):o.loadingType="more"}))))}}};t.default=d}).call(this,n("543d")["default"])},8206:function(e,t,n){"use strict";n.r(t);var o=n("55ba"),r=n.n(o);for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=r.a},"9bfa":function(e,t,n){"use strict";var o=n("0f28"),r=n.n(o);r.a},c6bc:function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var r=function(){var e=this,t=e.$createElement;e._self._c},a=[]}},[["2b05","common/runtime","common/vendor"]]]);