(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesM/pages/claim_goods"],{"0188":function(e,t,n){"use strict";var a=n("999e"),r=n.n(a);r.a},"374b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("a34a"));function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,a,r,i,o){try{var u=e[i](o),c=u.value}catch(s){return void n(s)}u.done?t(c):Promise.resolve(c).then(a,r)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var o=e.apply(t,n);function u(e){i(o,a,r,u,c,"next",e)}function c(e){i(o,a,r,u,c,"throw",e)}u(void 0)}))}}var u=function(){n.e("pagesM/comps/dt_empty").then(function(){return resolve(n("fe70"))}.bind(null,n)).catch(n.oe)},c=function(){n.e("pagesM/comps/dt_no_more").then(function(){return resolve(n("a46f"))}.bind(null,n)).catch(n.oe)},s={components:{DtEmpty:u,DtNoMore:c},data:function(){return{memberId:null,dataList:[],param:"SHIPPED",organizationInfo:null}},methods:{makePhone:function(){this.makePhoneCall(this.organizationInfo.phone)},onLoadPage:function(e){wx.hideShareMenu(),this.memberId=this.$auth.getMemberId(),this.getOrganizationInfo(),this.requestData(this.param)},onTapBtn:function(){var e=this;this.$dialog.confirm({content:"确认收货吗？",success:function(){var t=o(a.default.mark((function t(n){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n.confirm&&e.receiveOrder();case 1:case"end":return t.stop()}}),t)})));function n(e){return t.apply(this,arguments)}return n}()})},receiveOrder:function(){var e=this;return o(a.default.mark((function t(){var n,r;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=[],e.dataList.map((function(e){n.push(e.sn)})),t.next=4,e.$api.userAgentConfirmOrder({orderIds:n});case 4:r=t.sent,r&&e.$dialog.success("确认完成",(function(){requestData(e.param)}));case 6:case"end":return t.stop()}}),t)})))()},claimCode:function(e){return e.substring(e.length-6)},getOrganizationInfo:function(){var e=this;return o(a.default.mark((function t(){var n;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.getOrganizationInfo({memberId:e.memberId});case 2:n=t.sent,e.organizationInfo=n;case 4:case"end":return t.stop()}}),t)})))()},requestData:function(e){var t=this;return o(a.default.mark((function n(){var r,i,o,u;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.isNoMore=!1,t.pageIndex=0,t.dataList.length=0,t.param=e,"SHIPPED"!=e){n.next=12;break}return n.next=7,t.$api.userAgentOrder({_isShowLoading:!0,_isPull:t.isPull,memberId:t.memberId,pageNo:t.pageIndex,pageSize:t.pageSize});case 7:r=n.sent,i=t.getDataList(r),t.dataList=t.dataList.concat(i),n.next=17;break;case 12:return n.next=14,t.$api.userAgentAlreadyOrder({_isShowLoading:!0,_isPull:t.isPull,memberId:t.memberId,pageNo:t.pageIndex,pageSize:t.pageSize});case 14:o=n.sent,u=t.getDataList(o),t.dataList=t.dataList.concat(u);case 17:case"end":return n.stop()}}),n)})))()}},onReachBottom:function(){this.onReachBottomPage()}};t.default=s},"4a68":function(e,t,n){"use strict";n.r(t);var a=n("903a"),r=n("5222");for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("0188");var o,u=n("f0c5"),c=Object(u["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],o);t["default"]=c.exports},5222:function(e,t,n){"use strict";n.r(t);var a=n("374b"),r=n.n(a);for(var i in a)"default"!==i&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=r.a},"903a":function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var r=function(){var e=this,t=e.$createElement,n=(e._self._c,0==e.emptyType?e.__map(e.dataList,(function(t,n){var a=e.__get_orig(t),r=e.claimCode(t.sn);return{$orig:a,m0:r}})):null);e.$mp.data=Object.assign({},{$root:{l0:n}})},i=[]},"999e":function(e,t,n){},a41e:function(e,t,n){"use strict";(function(e){n("4518");a(n("66fd"));var t=a(n("4a68"));function a(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])}},[["a41e","common/runtime","common/vendor"]]]);