text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-invoice-invoice"],{"0469":function(e,t,i){"use strict";var n=i("1ada"),a=i.n(n);a.a},"1ada":function(e,t,i){var n=i("8720");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("0791e977",n,!0,{sourceMap:!1,shadowMode:!1})},"1af1":function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"content b-t"},[e._l(e.invoiceList,(function(t,n){return i("v-uni-view",{key:n,staticClass:"list b-b",on:{click:function(i){i=e.$handleEvent(i),e.checkAddress(t)}}},[i("v-uni-view",{staticClass:"wrapper",on:{touchstart:function(i){i=e.$handleEvent(i),e.goTouchStart(t.id)},touchmove:function(t){t=e.$handleEvent(t),e.goTouchMove(t)},touchend:function(t){t=e.$handleEvent(t),e.goTouchEnd(t)}}},[i("v-uni-view",{staticClass:"address-box"},[1===parseInt(t.is_default,10)?i("v-uni-text",{staticClass:"tag"},[e._v("默认")]):e._e(),i("v-uni-text",{staticClass:"address"},[e._v(e._s(t.title))])],1),i("v-uni-view",{staticClass:"u-box"},[i("v-uni-text",{staticClass:"name"},[e._v(e._s(1===parseInt(t.type,10)?"公司":"个人"))]),i("v-uni-text",{staticClass:"mobile"},[e._v(e._s(t.duty_paragraph||"个人发票无税号"))])],1)],1),i("i",{staticClass:"iconfont iconbianji",on:{click:function(i){i.stopPropagation(),i=e.$handleEvent(i),e.addInvoice("edit",t)}}})],1)})),e.invoiceList.length>0?i("v-uni-text",{staticClass:"tips"},[e._v("提示：长按可删除当前发票。最多只能存在一个默认发票。")]):e._e(),0!==e.invoiceList.length||e.loading?e._e():i("rf-empty",{attrs:{info:"暂无收货地址，请添加地址"}}),e.invoiceList.length>0?i("rf-load-more",{attrs:{status:e.loadingType}}):e._e(),i("v-uni-button",{staticClass:"add-btn",on:{click:function(t){t=e.$handleEvent(t),e.addInvoice("add")}}},[e._v("新增发票")]),e.loading?i("rf-loading"):e._e()],2)},a=[];i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return a}))},"1af6":function(e,t,i){var n=i("63b6");n(n.S,"Array",{isArray:i("9003")})},"20fd":function(e,t,i){"use strict";var n=i("d9f6"),a=i("aebd");e.exports=function(e,t,i){t in e?n.f(e,t,a(0,i)):e[t]=i}},2759:function(e,t,i){"use strict";i.r(t);var n=i("1af1"),a=i("c081");for(var o in a)"default"!==o&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("eebb");var r=i("2877"),d=Object(r["a"])(a["default"],n["a"],n["b"],!1,null,"64d06f92",null);t["default"]=d.exports},"549b":function(e,t,i){"use strict";var n=i("d864"),a=i("63b6"),o=i("241e"),r=i("b0dc"),d=i("3702"),s=i("b447"),c=i("20fd"),l=i("7cd6");a(a.S+a.F*!i("4ee1")((function(e){Array.from(e)})),"Array",{from:function(e){var t,i,a,u,v=o(e),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,b=void 0!==m,h=0,y=l(v);if(b&&(m=n(m,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&d(y))for(t=s(v.length),i=new f(t);t>h;h++)c(i,h,b?m(v[h],h):v[h]);else for(u=y.call(v),i=new f;!(a=u.next()).done;h++)c(i,h,b?r(u,m,[a.value,h],!0):a.value);return i.length=h,i}})},"54a1":function(e,t,i){i("6c1c"),i("1654"),e.exports=i("95d5")},6872:function(e,t,i){"use strict";i.r(t);var n=i("b9cb"),a=i.n(n);for(var o in n)"default"!==o&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},"75fc":function(e,t,i){"use strict";i.r(t);var n=i("a745"),a=i.n(n);function o(e){if(a()(e)){for(var t=0,i=new Array(e.length);t<e.length;t++)i[t]=e[t];return i}}var r=i("774e"),d=i.n(r),s=i("c8bb"),c=i.n(s);function l(e){if(c()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return d()(e)}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function v(e){return o(e)||l(e)||u()}i.d(t,"default",(function(){return v}))},"774e":function(e,t,i){e.exports=i("d2d5")},"802d":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.orderCustomerRefundClose=t.orderCustomerRefundApply=t.orderCustomerSalesReturn=t.rechargeConfigIndex=t.thirdPartyAuthDelete=t.thirdPartyAuthList=t.opinionDetail=t.opinionCreate=t.opinionList=t.uploadBase64Image=t.uploadImage=t.orderInvoiceList=t.invoiceDel=t.invoiceDefault=t.invoiceDetail=t.invoiceUpdate=t.invoiceCreate=t.invoiceList=t.evaluateAgain=t.evaluateCreate=t.creditsLogList=t.collectList=t.footPrintDel=t.footPrintList=t.couponReceive=t.orderTakeDelivery=t.orderDelete=t.orderDetail=t.orderProductSalesReturn=t.closeOrderRefundApply=t.orderRefundApply=t.orderList=t.couponDetail=t.couponClear=t.myCouponList=t.couponList=t.addressDelete=t.addressUpdate=t.addressDetail=t.addressDefault=t.addressCreate=t.addressList=t.memberUpdate=t.memberInfo=void 0;var n=i("3e3e"),a="/tiny-shop/v1/member/member/index";t.memberInfo=a;var o="/tiny-shop/v1/member/member/update";t.memberUpdate=o;var r="/tiny-shop/v1/member/address/index";t.addressList=r;var d="/tiny-shop/v1/member/address/default";t.addressDefault=d;var s="/tiny-shop/v1/member/address/view";t.addressDetail=s;var c="/tiny-shop/v1/member/address/create";t.addressCreate=c;var l="/tiny-shop/v1/member/address/update";t.addressUpdate=l;var u="/tiny-shop/v1/member/address/delete";t.addressDelete=u;var v="/tiny-shop/v1/marketing/coupon-type/index";t.couponList=v;var f="/tiny-shop/v1/member/coupon/index";t.myCouponList=f;var p="/tiny-shop/v1/marketing/coupon-type/view";t.couponDetail=p;var m="/tiny-shop/v1/marketing/coupon-type/create";t.couponReceive=m;var b="/tiny-shop/v1/member/coupon/clear";t.couponClear=b;var h="/tiny-shop/v1/member/order/index";t.orderList=h;var y="/tiny-shop/v1/member/order/take-delivery";t.orderTakeDelivery=y;var g="/tiny-shop/v1/member/order-product/refund-apply";t.orderRefundApply=g;var w="/tiny-shop/v1/member/order-product/refund-sales-return";t.orderProductSalesReturn=w;var x="/tiny-shop/v1/member/order-product/refund-close";t.closeOrderRefundApply=x;var k="/tiny-shop/v1/member/order/view";t.orderDetail=k;var _="/tiny-shop/v1/member/order/delete";t.orderDelete=_;var L="/tiny-shop/v1/member/footprint/index";t.footPrintList=L;var C="/tiny-shop/v1/member/footprint/delete";t.footPrintDel=C;var D="/tiny-shop/v1/member/collect/index";t.collectList=D;var A="/tiny-shop/v1/member/credits-log/index";t.creditsLogList=A;var I="/tiny-shop/v1/member/evaluate/create";t.evaluateCreate=I;var O="/tiny-shop/v1/member/evaluate/again";t.evaluateAgain=O;var E="/tiny-shop/v1/member/invoice/index";t.invoiceList=E;var R="/tiny-shop/v1/member/invoice/create";t.invoiceCreate=R;var T="/tiny-shop/v1/member/invoice/update";t.invoiceUpdate=T;var P="/tiny-shop/v1/member/invoice/view";t.invoiceDetail=P;var j="/tiny-shop/v1/member/invoice/default";t.invoiceDefault=j;var M="/tiny-shop/v1/member/invoice/delete";t.invoiceDel=M;var S="/tiny-shop/v1/member/order-invoice/index";t.orderInvoiceList=S;var $="/tiny-shop/v1/member/opinion/index";t.opinionList=$;var z="/tiny-shop/v1/member/opinion/create";t.opinionCreate=z;var U="/tiny-shop/v1/member/opinion/view";t.opinionDetail=U;var B="/tiny-shop/v1/member/auth/index";t.thirdPartyAuthList=B;var J="/tiny-shop/v1/member/auth/delete";t.thirdPartyAuthDelete=J;var F="/tiny-shop/v1/member/recharge-config/index";t.rechargeConfigIndex=F;var q="/tiny-shop/v1/member/order-customer/apply";t.orderCustomerRefundApply=q;var G="/tiny-shop/v1/member/order-customer/sales-return";t.orderCustomerSalesReturn=G;var H="/tiny-shop/v1/member/order-customer/close";t.orderCustomerRefundClose=H;var K="".concat(n.baseUrl,"/tiny-shop/v1/common/file/images");t.uploadImage=K;var N="".concat(n.baseUrl,"/tiny-shop/v1/common/file/base64");t.uploadBase64Image=N},8720:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,".rf-load-more[data-v-e1666968]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?80?%;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center\n\t/*position: fixed;*/\n\t/*bottom: 5upx;*/\n\t/*text-align: center;*/}.rf-load-more__text[data-v-e1666968]{font-size:%?28?%;color:#999}.rf-load-more__img[data-v-e1666968]{height:24px;width:24px;margin-right:10px}.rf-load-more__img>uni-view[data-v-e1666968]{position:absolute}.rf-load-more__img>uni-view uni-view[data-v-e1666968]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#999;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-e1666968 1.56s ease infinite;animation:load-data-v-e1666968 1.56s ease infinite}.rf-load-more__img>uni-view uni-view[data-v-e1666968]:first-child{-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.rf-load-more__img>uni-view uni-view[data-v-e1666968]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.rf-load-more__img>uni-view uni-view[data-v-e1666968]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.rf-load-more__img>uni-view uni-view[data-v-e1666968]:nth-child(4){top:11px;left:0}.load1[data-v-e1666968],.load2[data-v-e1666968],.load3[data-v-e1666968]{height:24px;width:24px}.load2[data-v-e1666968]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-e1666968]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 uni-view[data-v-e1666968]:first-child{-webkit-animation-delay:0s;animation-delay:0s}.load2 uni-view[data-v-e1666968]:first-child{-webkit-animation-delay:.13s;animation-delay:.13s}.load3 uni-view[data-v-e1666968]:first-child{-webkit-animation-delay:.26s;animation-delay:.26s}.load1 uni-view[data-v-e1666968]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 uni-view[data-v-e1666968]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 uni-view[data-v-e1666968]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 uni-view[data-v-e1666968]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 uni-view[data-v-e1666968]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 uni-view[data-v-e1666968]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 uni-view[data-v-e1666968]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 uni-view[data-v-e1666968]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 uni-view[data-v-e1666968]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-e1666968{0%{opacity:1}to{opacity:.2}}",""]),e.exports=t},"87aa":function(e,t,i){"use strict";var n=i("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(i("75fc"));i("96cf");var o=n(i("3b8d")),r=i("802d"),d=n(i("f97d")),s={components:{rfLoadMore:d.default},data:function(){return{timeOutEvent:0,source:0,invoiceList:[],page:1,loadingType:"more",loading:!0}},onShow:function(){this.initData()},onLoad:function(e){this.source=e.source},onPullDownRefresh:function(){this.page=1,this.invoiceList.length=0,this.getInvoiceList("refresh")},onReachBottom:function(){this.page++,this.getInvoiceList()},methods:{goTouchStart:function(e){var t=this;clearTimeout(this.timeOutEvent),this.timeOutEvent=0,this.timeOutEvent=setTimeout((function(){uni.showModal({content:"确定要删除该收货地址吗",success:function(i){i.confirm&&t.$del("".concat(r.invoiceDel,"?id=").concat(e)).then((function(e){t.page=1,t.invoiceList.length=0,t.getInvoiceList()}))}})}),500)},goTouchEnd:function(){clearTimeout(this.timeOutEvent),this.timeOutEvent},goTouchMove:function(){clearTimeout(this.timeOutEvent),this.timeOutEvent=0},initData:function(){this.page=1,this.invoiceList.length=0,this.getInvoiceList()},getInvoiceList:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$get("".concat(r.invoiceList),{page:this.page}).then((function(e){t.loading=!1,t.loadingType=10===e.data.length?"more":"nomore",t.invoiceList=[].concat((0,a.default)(t.invoiceList),(0,a.default)(e.data))})).catch((function(){t.loading=!1}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),checkAddress:function(e){1==this.source&&(this.$api.prePage().invoiceItem=e,uni.navigateBack())},addInvoice:function(e,t){uni.navigateTo({url:"/pages/set/invoice/invoiceManage?type=".concat(e,"&id=").concat(t&&t.id||void 0)})},refreshList:function(e,t){this.invoiceList.unshift(e)}}};t.default=s},"95d5":function(e,t,i){var n=i("40c3"),a=i("5168")("iterator"),o=i("481b");e.exports=i("584a").isIterable=function(e){var t=Object(e);return void 0!==t[a]||"@@iterator"in t||o.hasOwnProperty(n(t))}},a745:function(e,t,i){e.exports=i("f410")},b327:function(e,t,i){var n=i("dc0f");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("30ed3fcc",n,!0,{sourceMap:!1,shadowMode:!1})},b9cb:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={name:"rf-load-more",props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{}}}},data:function(){return{}}};t.default=n},c081:function(e,t,i){"use strict";i.r(t);var n=i("87aa"),a=i.n(n);for(var o in n)"default"!==o&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},c8bb:function(e,t,i){e.exports=i("54a1")},d2d5:function(e,t,i){i("1654"),i("549b"),e.exports=i("584a").Array.from},dc0f:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,"uni-page-body[data-v-64d06f92]{padding-bottom:%?120?%}.content[data-v-64d06f92]{position:relative}.list[data-v-64d06f92]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:%?20?% %?30?%;background:#fff;position:relative}.list .iconfont[data-v-64d06f92]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?80?%;font-size:%?40?%;color:#909399;padding-left:%?30?%}.wrapper[data-v-64d06f92]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-webkit-flex:1;flex:1}.address-box[data-v-64d06f92]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.address-box .tag[data-v-64d06f92]{font-size:%?24?%;color:#fa436a;margin-right:%?10?%;background:#fffafb;border:1px solid #ffb4c7;border-radius:%?4?%;padding:%?4?% %?10?%;line-height:1}.address-box .address[data-v-64d06f92]{font-size:%?30?%;color:#303133}.u-box[data-v-64d06f92]{font-size:%?28?%;color:#909399;margin-top:%?16?%}.u-box .name[data-v-64d06f92]{margin-right:%?30?%}.icon-bianji[data-v-64d06f92]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?80?%;font-size:%?40?%;color:#909399;padding-left:%?30?%}.add-btn[data-v-64d06f92]{position:fixed;left:%?30?%;right:%?30?%;bottom:%?16?%;z-index:95;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:%?690?%;height:%?80?%;font-size:%?32?%;color:#fff;background-color:#fa436a;border-radius:%?10?%;box-shadow:1px 2px 5px rgba(219,63,96,.4)}.tips[data-v-64d06f92]{display:block;padding:%?16?% %?30?% %?10?%;color:#fa436a;font-size:%?24?%}",""]),e.exports=t},eebb:function(e,t,i){"use strict";var n=i("b327"),a=i.n(n);a.a},f410:function(e,t,i){i("1af6"),e.exports=i("584a").Array.isArray},f97d:function(e,t,i){"use strict";i.r(t);var n=i("fe5e"),a=i("6872");for(var o in a)"default"!==o&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("0469");var r=i("2877"),d=Object(r["a"])(a["default"],n["a"],n["b"],!1,null,"e1666968",null);t["default"]=d.exports},fe5e:function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"rf-load-more"},["loading"===e.status&&e.showIcon?i("v-uni-view",{staticClass:"rf-load-more__img"},[i("v-uni-view",{staticClass:"load1"},[i("v-uni-view",{style:{background:e.color}}),i("v-uni-view",{style:{background:e.color}}),i("v-uni-view",{style:{background:e.color}}),i("v-uni-view",{style:{background:e.color}})],1),i("v-uni-view",{staticClass:"load2"},[i("v-uni-view",{style:{background:e.color}}),i("v-uni-view",{style:{background:e.color}}),i("v-uni-view",{style:{background:e.color}}),i("v-uni-view",{style:{background:e.color}})],1),i("v-uni-view",{staticClass:"load3"},[i("v-uni-view",{style:{background:e.color}}),i("v-uni-view",{style:{background:e.color}}),i("v-uni-view",{style:{background:e.color}}),i("v-uni-view",{style:{background:e.color}})],1)],1):e._e(),i("v-uni-view",{staticClass:"cu-load",class:"more"===e.status?"loading":"over"})],1)},a=[];i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return a}))}}]);