(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/page/wipe","components/uni-load-more/uni-load-more"],{"026e":function(n,e,t){"use strict";t.r(e);var o=t("f05b"),i=t.n(o);for(var c in o)"default"!==c&&function(n){t.d(e,n,(function(){return o[n]}))}(c);e["default"]=i.a},"13b8":function(n,e,t){"use strict";t.r(e);var o=t("2fea"),i=t.n(o);for(var c in o)"default"!==c&&function(n){t.d(e,n,(function(){return o[n]}))}(c);e["default"]=i.a},"20fd":function(n,e,t){"use strict";t.r(e);var o=t("52a6"),i=t("13b8");for(var c in i)"default"!==c&&function(n){t.d(e,n,(function(){return i[n]}))}(c);t("c0dc");var u,r=t("f0c5"),a=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);e["default"]=a.exports},"2e7e":function(n,e,t){},"2fea":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={name:"uni-load-more",props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"}}}},data:function(){return{}}};e.default=o},"3dfb":function(n,e,t){},4917:function(n,e,t){"use strict";(function(n){t("5935");o(t("66fd"));var e=o(t("8d6c"));function o(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=t,n(e.default)}).call(this,t("543d")["createPage"])},"52a6":function(n,e,t){"use strict";var o;t.d(e,"b",(function(){return i})),t.d(e,"c",(function(){return c})),t.d(e,"a",(function(){return o}));var i=function(){var n=this,e=n.$createElement;n._self._c},c=[]},5948:function(n,e,t){"use strict";t.d(e,"b",(function(){return i})),t.d(e,"c",(function(){return c})),t.d(e,"a",(function(){return o}));var o={uniLoadMore:function(){return Promise.resolve().then(t.bind(null,"20fd"))},uniPopup:function(){return t.e("components/uni-popup/uni-popup").then(t.bind(null,"ebf3"))}},i=function(){var n=this,e=n.$createElement,t=(n._self._c,n.__map(n.goodList,(function(e,t){var o=n.__get_orig(e),i=(1*e.total_price+1*e.deposit).toFixed(2);return{$orig:o,g0:i}})));n.$mp.data=Object.assign({},{$root:{l0:t}})},c=[]},"8d6c":function(n,e,t){"use strict";t.r(e);var o=t("5948"),i=t("026e");for(var c in i)"default"!==c&&function(n){t.d(e,n,(function(){return i[n]}))}(c);t("cb63");var u,r=t("f0c5"),a=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"958dd562",null,!1,o["a"],u);e["default"]=a.exports},c0dc:function(n,e,t){"use strict";var o=t("2e7e"),i=t.n(o);i.a},cb63:function(n,e,t){"use strict";var o=t("3dfb"),i=t.n(o);i.a},f05b:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t("2681");i(t("20fd"));function i(n){return n&&n.__esModule?n:{default:n}}var c=function(){t.e("components/empty").then(function(){return resolve(t("de8d"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/uni-popup/uni-popup").then(function(){return resolve(t("ebf3"))}.bind(null,t)).catch(t.oe)},r={components:{empty:c,uniPopup:u},data:function(){return{height:"",code:"",limit:10,page:1,goodList:[],loadingType:"more",loaded:""}},onLoad:function(){this.loadData()},onReady:function(e){var t=this;n.getSystemInfo({success:function(e){var o=n.createSelectorQuery();o.select(".good-content").boundingClientRect(),o.exec((function(n){console.log(n,"ddddddddddddd"),t.height=e.windowHeight-n[0].top+"px",console.log("打印页面的剩余高度",t.height)}))},fail:function(n){}})},methods:{loadData:function(){var n=this;"loading"!=n.loadingType&&"noMore"!=n.loadingType&&(n.loadingType="loading",(0,o.getAllList)({status:5,limit:n.limit,page:n.page}).then((function(e){var t=e.data;n.page++,n.goodList=n.goodList.concat(t),console.log(t.length),n.limit==t.length?n.loadingType="more":n.loadingType="noMore"})))},srhx:function(){this.$refs.popuphx.open()},close:function(){this.$refs.popuphx.close()},smsh:function(){var e=this;n.scanCode({success:function(n){e.code=n.result,e.srhx()}})},qhx:function(){var e=this;if(""==this.code)return this.$api.msg("请输入核销码");n.showLoading({title:"核销中...",mask:!0}),-1!=this.code.indexOf("ticket:")?(0,o.exchangeOrderVerific)({verify_code:this.code,is_confirm:1}).then((function(t){n.hideLoading(),console.log(t,"++++++++++++++++++++++++++++++"),e.$refs.popuphx.close(),e.code="",e.page=1,e.loadingType="more",e.goodList=[],n.showToast({title:"核销成功",duration:2e3}),e.loadData()})).catch((function(n){console.log("dddd")})):(0,o.orderVerific)({verify_code:this.code,is_confirm:1}).then((function(t){n.hideLoading(),console.log(t,"++++++++++++++++++++++++++++++"),e.$refs.popuphx.close(),e.code="",e.page=1,e.loadingType="more",e.goodList=[],n.showToast({title:"核销成功",duration:2e3}),e.loadData()})).catch((function(n){console.log("dddd")}))}}};e.default=r}).call(this,t("543d")["default"])}},[["4917","common/runtime","common/vendor"]]]);