1 line
19 KiB
JavaScript
1 line
19 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_invoice_list-index"],{"0044":function(t,e,i){"use strict";var n=i("2d4f"),r=i.n(n);r.a},"21a7":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.nav[data-v-318c2023]{position:fixed;top:0;left:0;z-index:9;width:100%;height:%?90?%;background-color:#fff}.nav .acea-row[data-v-318c2023]{flex:1;border-top:%?3?% solid transparent;border-bottom:%?3?% solid transparent;font-size:%?30?%;color:#282828}.nav .on[data-v-318c2023]{border-bottom-color:var(--view-theme);color:var(--view-theme)}.list[data-v-318c2023]{padding:%?14?% %?32?%;margin-top:%?90?%;padding-bottom:%?220?%}.list .item[data-v-318c2023]{padding:%?28?% %?32?%;background-color:#fff}.list .item ~ .item[data-v-318c2023]{margin-top:%?14?%}.list .item-hd .acea-row[data-v-318c2023]{flex:1;min-width:0}.list .name[data-v-318c2023]{font-weight:600;font-size:%?30?%;color:#282828;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:%?400?%}.list .label[data-v-318c2023]{width:%?70?%;height:%?28?%;border:%?1?% solid var(--view-theme);margin-left:%?18?%;font-size:%?20?%;line-height:%?26?%;text-align:center;color:var(--view-theme)}.list .type[data-v-318c2023]{width:%?124?%;height:%?42?%;background-color:#fcf0e0;font-size:%?24?%;line-height:%?42?%;text-align:center;color:#d67300}.list .type.special[data-v-318c2023]{background-color:var(--view-minorColor);color:var(--view-theme)}.list .item-bd[data-v-318c2023]{margin-top:%?18?%}.list .cell[data-v-318c2023]{font-size:%?26?%;color:#666}.list .cell ~ .cell[data-v-318c2023]{margin-top:%?12?%}.list .item-ft[data-v-318c2023]{margin-top:%?11?%}.list .btn[data-v-318c2023]{font-size:%?26?%;color:#282828;cursor:pointer}.list .btn ~ .btn[data-v-318c2023]{margin-left:%?35?%}.list .btn .iconfont[data-v-318c2023]{margin-right:%?10?%;font-size:%?24?%;color:#000}.add-btn[data-v-318c2023]{position:fixed;right:%?30?%;bottom:%?20?%;left:%?30?%;z-index:9;height:%?86?%;border-radius:%?43?%;background-color:var(--view-theme);font-size:%?30?%;line-height:%?86?%;color:#fff}.nothing[data-v-318c2023]{margin-top:%?200?%;text-align:center}.nothing_text[data-v-318c2023]{margin-top:%?20?%;color:#999}.store-list[data-v-318c2023]{margin-top:%?110?%;padding:0 %?30?% %?30?%}.store-list .item[data-v-318c2023]{padding:%?30?%;margin-bottom:%?20?%;background:#fff;border-radius:%?6?%}.store-list .item .hd[data-v-318c2023]{display:flex}.store-list .item .hd uni-image[data-v-318c2023]{width:%?78?%;height:%?78?%}.store-list .item .hd .name[data-v-318c2023]{flex:1;margin-left:%?24?%;line-height:1.8;font-size:%?26?%;color:#282828}.store-list .item .bd[data-v-318c2023]{position:relative;padding:%?25?% %?36?%;margin-top:%?36?%;background:#f5f6f7;border-radius:%?20?%}.store-list .item .bd .title[data-v-318c2023]{font-size:%?26?%;color:#282828;font-weight:700}.store-list .item .bd .time[data-v-318c2023]{margin-top:%?8?%;font-size:%?26?%;color:#818181}.store-list .item .bd .price[data-v-318c2023]{position:absolute;right:%?30?%;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);color:#282828;font-size:%?32?%;font-weight:700}.store-list .item .bd .price uni-text[data-v-318c2023]{font-weight:400;font-size:%?24?%}.store-list .item .ft[data-v-318c2023]{display:flex;align-items:center;justify-content:space-between;margin-top:%?39?%}.store-list .item .ft uni-text[data-v-318c2023]{color:#282828;font-size:%?28?%;font-weight:700}.store-list .item .ft .btn[data-v-318c2023]{display:flex;align-items:center;justify-content:center;width:%?150?%;height:%?57?%;background:#fff;border:1px solid #707070;border-radius:%?29?%;font-size:%?26?%}',""]),t.exports=e},"250c":function(t,e,i){var n=i("2616");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("967d").default;r("50f5ff2f",n,!0,{sourceMap:!1,shadowMode:!1})},2616:function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,".pictrueBox[data-v-50bf5845]{width:%?130?%;height:%?120?%}\n/*返回主页按钮*/.home[data-v-50bf5845]{position:fixed;color:#fff;text-align:center;z-index:9999;right:%?15?%;display:flex}.home .homeCon[data-v-50bf5845]{border-radius:%?50?%;opacity:0;height:0;color:#e93323;width:0}.home .homeCon.on[data-v-50bf5845]{opacity:1;-webkit-animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);width:%?300?%;height:%?86?%;margin-bottom:%?20?%;display:flex;justify-content:center;align-items:center;background:var(--view-theme)}.home .homeCon .iconfont[data-v-50bf5845]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-50bf5845]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto;background-color:var(--view-theme);box-shadow:0 %?5?% %?12?% rgba(0,0,0,.5)}.home .pictrue .image[data-v-50bf5845]{width:100%;height:100%}.pictruea[data-v-50bf5845]{width:100%;height:100%;display:block;object-fit:cover;vertical-align:middle}",""]),t.exports=e},"2d4f":function(t,e,i){var n=i("21a7");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("967d").default;r("4311a544",n,!0,{sourceMap:!1,shadowMode:!1})},"4c0c":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("8f59"),r=i("aa10"),o={name:"Home",props:{},data:function(){return{domain:r.HTTP_REQUEST_URL,top:"",bottom:""}},computed:(0,n.mapGetters)(["homeActive","viewColor","keyColor"]),methods:{setTouchMove:function(t){t.touches[0].clientY<545&&t.touches[0].clientY>66&&(this.top=t.touches[0].clientY,this.bottom="auto")},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){this.bottom="50px"}};e.default=o},5603:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.viewColor},[i("v-uni-view",{staticClass:"acea-row nav"},[i("v-uni-view",{staticClass:"acea-row row-center-wrapper",class:{on:1==t.tabCur},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tab(1)}}},[t._v("发票记录")]),i("v-uni-view",{staticClass:"acea-row row-center-wrapper",class:{on:2==t.tabCur},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tab(2)}}},[t._v("抬头管理")])],1),1==t.tabCur?[t.orderList.length?i("v-uni-view",{staticClass:"store-list"},t._l(t.orderList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"item"},[i("v-uni-view",{staticClass:"hd"},[e.storeOrder.orderProduct[0].cart_info.productAttr.image?i("v-uni-image",{attrs:{src:e.storeOrder.orderProduct[0].cart_info.productAttr.image,mode:""}}):i("v-uni-image",{attrs:{src:e.storeOrder.orderProduct[0].cart_info.product.image,mode:""}}),i("v-uni-view",{staticClass:"line2 name"},[t._v(t._s(e.storeOrder.orderProduct[0].cart_info.product.store_name))])],1),i("v-uni-view",{staticClass:"bd"},[i("v-uni-view",{staticClass:"title"},[t._v(t._s(1==e.receipt_info.receipt_type?"普通发票":"专用发票"))]),i("v-uni-view",{staticClass:"time"},[t._v("申请时间 "+t._s(e.create_time))]),i("v-uni-view",{staticClass:"price"},[i("v-uni-text",[t._v("¥")]),t._v(t._s(e.order_price))],1)],1),i("v-uni-view",{staticClass:"ft"},[i("v-uni-text",[t._v(t._s(t._f("filterTxt")(e.status)))]),1==e.storeOrder.paid?i("v-uni-view",{staticClass:"btn",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goOrderDetail(e)}}},[t._v("查看详情")]):t._e()],1)],1)})),1):i("v-uni-view",{staticClass:"nothing"},[i("v-uni-image",{attrs:{src:t.domain+"/static/images/noInvoice.png"}}),i("v-uni-view",{staticClass:"nothing_text"},[t._v("您还没有发票记录哟~")])],1)]:t._e(),2==t.tabCur?[t.invoiceList&&t.invoiceList.length?i("v-uni-view",{staticClass:"list"},t._l(t.invoiceList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"item"},[i("v-uni-view",{staticClass:"acea-row item-hd"},[i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(e.receipt_title))]),e.is_default?i("v-uni-view",{staticClass:"label"},[t._v("默认")]):t._e()],1),i("v-uni-view",{staticClass:"type",class:1==e.receipt_type?"":"special"},[t._v(t._s(1==e.receipt_type?"普通发票":"专用发票"))])],1),i("v-uni-view",{staticClass:"item-bd"},[1==e.receipt_title_type?i("v-uni-view",{staticClass:"cell"},[t._v("邮箱 "+t._s(e.email))]):i("v-uni-view",[i("v-uni-view",{staticClass:"cell"},[t._v("企业税号 "+t._s(e.duty_paragraph))])],1)],1),i("v-uni-view",{staticClass:"acea-row row-right item-ft"},[i("v-uni-view",{staticClass:"btn",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.editInvoice(e.user_receipt_id)}}},[i("v-uni-text",{staticClass:"iconfont icon-bianji"}),t._v("编辑")],1),i("v-uni-view",{staticClass:"btn",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.deleteInvoice(e.user_receipt_id,n)}}},[i("v-uni-text",{staticClass:"iconfont icon-shanchu"}),t._v("删除")],1)],1)],1)})),1):i("v-uni-view",{staticClass:"nothing"},[i("v-uni-image",{attrs:{src:t.domain+"/static/images/noInvoice.png"}}),i("v-uni-view",{staticClass:"nothing_text"},[t._v("您还没有添加发票信息哟~")])],1),i("v-uni-button",{staticClass:"add-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addInvoice.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"iconfont icon-fapiao"}),t._v("添加新发票抬头")],1)]:t._e(),i("home")],2)},r=[]},5676:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.applyInvoiceApi=function(t,e){return r.default.post("order/receipt/".concat(t),e)},e.cartDel=function(t){return r.default.post("user/cart/delete",t)},e.cartProductAttr=function(t){return r.default.get("store/product/get_attr_value/".concat(t))},e.changeCartNum=function(t,e){return r.default.post("user/cart/change/"+t,e)},e.createOrder=function(t){return r.default.post("v2/order/create",t,{noAuth:!0})},e.develiveryDetail=function(t){return r.default.get("order/delivery/".concat(t))},e.express=function(t){return r.default.post("order/express/"+t)},e.expressList=function(){return r.default.get("common/express")},e.getCallBackUrlApi=function(t){return r.default.get("common/pay_key/"+t,{},{noAuth:!0})},e.getCartCounts=function(){return r.default.get("user/cart/count")},e.getCartList=function(){return r.default.get("user/cart/lst")},e.getCouponsOrderPrice=function(t,e){return r.default.get("coupons/order/"+t,e)},e.getOrderConfirm=function(t){return r.default.post("v2/order/check",t)},e.getOrderDetail=function(t){return r.default.get("order/detail/"+t)},e.getOrderList=function(t){return r.default.get("order/list",t)},e.getPayOrder=function(t){return r.default.get("order/status/"+t)},e.getReceiptOrder=function(t){return r.default.get("user/receipt/order/"+t)},e.groupOrderDetail=function(t){return r.default.get("order/group_order_detail/"+t)},e.groupOrderList=function(t){return r.default.get("order/group_order_list",t,{noAuth:!0})},e.integralOrderPay=function(t,e){return r.default.post("order/points/pay/"+t,e)},e.ordeRefundReason=function(){return r.default.get("order/refund/reason")},e.orderAgain=function(t){return r.default.post("user/cart/again",t)},e.orderComment=function(t,e){return r.default.post("reply/"+t,e)},e.orderConfirm=function(t){return r.default.post("order/check",t)},e.orderCreate=function(t){return r.default.post("order/create",t,{noAuth:!0})},e.orderData=function(){return r.default.get("order/number")},e.orderDel=function(t){return r.default.post("order/del/"+t)},e.orderPay=function(t,e){return r.default.post("order/pay/"+t,e)},e.orderProduct=function(t){return r.default.get("reply/product/"+t)},e.orderRefundVerify=function(t){return r.default.post("order/refund/verify",t)},e.orderTake=function(t){return r.default.post("order/take/"+t)},e.postOrderComputed=function(t,e){return r.default.post("/order/computed/"+t,e)},e.presellOrderPay=function(t,e){return r.default.post("presell/pay/"+t,e)},e.receiptOrder=function(t){return r.default.get("user/receipt/order",t)},e.refundApply=function(t,e){return r.default.post("refund/apply/"+t,e,{noAuth:!0})},e.refundBackGoods=function(t,e){return r.default.post("refund/back_goods/"+t,e,{noAuth:!0})},e.refundBatch=function(t){return r.default.get("refund/batch_product/"+t,{noAuth:!0})},e.refundCancelApi=function(t){return r.default.post("refund/cancel/".concat(t))},e.refundDel=function(t){return r.default.post("refund/del/"+t,{noAuth:!0})},e.refundDetail=function(t){return r.default.get("refund/detail/"+t,{noAuth:!0})},e.refundExpress=function(t){return r.default.get("refund/express/"+t,{noAuth:!0})},e.refundList=function(t){return r.default.get("refund/list",t,{noAuth:!0})},e.refundMessage=function(){return r.default.get("common/refund_message",{noAuth:!0})},e.refundOrderExpress=function(t,e){return r.default.get("server/".concat(t,"/refund/express/").concat(e))},e.refundProduct=function(t,e){return r.default.get("refund/product/"+t,e,{noAuth:!0})},e.unOrderCancel=function(t){return r.default.post("order/cancel/"+t)},e.verifyCode=function(t){return r.default.get("order/verify_code/"+t)},i("c223");var r=n(i("fea3"))},7935:function(t,e,i){"use strict";i.r(e);var n=i("4c0c"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},"897e":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticStyle:{"touch-action":"none"},style:t.viewColor},[i("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:t.top+"px",bottom:t.bottom},attrs:{id:"right-nav"},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.setTouchMove.apply(void 0,arguments)}}},[t.homeActive?i("v-uni-view",{staticClass:"homeCon",class:!0===t.homeActive?"on":""},[i("v-uni-navigator",{staticClass:"iconfont icon-shouye-xianxing",attrs:{"hover-class":"none",url:"/pages/index/index","open-type":"switchTab"}}),i("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none",url:"/pages/order_addcart/order_addcart","open-type":"switchTab"}}),i("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",attrs:{"hover-class":"none",url:"/pages/user/index","open-type":"switchTab"}})],1):t._e(),i("v-uni-view",{staticClass:"pictrueBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{staticClass:"image pictruea",attrs:{src:!0===t.homeActive?t.domain+"/static/images/navbtn_open.gif":t.domain+"/static/images/navbtn_close.gif"}})],1)],1)],1)],1)},r=[]},9627:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c223"),i("dd2b");var r=n(i("defc")),o=i("8f59"),a=i("672a"),c=i("5676"),s=i("aa10"),u={components:{home:r.default},props:{},filters:{filterTxt:function(t){return{0:"未开票",1:"已开票",10:"未寄出"}[t]}},data:function(){return{domain:s.HTTP_REQUEST_URL,tabCur:1,invoiceList:[],query:{page:1,limit:20},loading:!1,finished:!1,isScroll:!1,orderList:[],orderPage:1}},computed:(0,o.mapGetters)(["isLogin","viewColor"]),watch:{loading:function(t){t?uni.showLoading({title:"加载中"}):uni.hideLoading()}},onLoad:function(t){if(t.type)this.tabCur=t.type;else try{this.tabCur=uni.getStorageSync("user_invoice_list")?uni.getStorageSync("user_invoice_list"):1,uni.removeStorageSync("user_invoice_list")}catch(e){}},onShow:function(){this.orderPage=1,this.orderList=[],this.query.page=1,this.invoiceList=[],this.finished=!1,this.isScroll=!1,this.receiptOrder(),this.getInvoiceList()},methods:{goOrderDetail:function(t){uni.navigateTo({url:"/pages/users/user_invoice_order/index?order_id=".concat(t.storeOrder.group_order_id,"&invoice_id=").concat(t.order_receipt_id)})},tab:function(t){this.tabCur!==t&&(this.tabCur=t,uni.setStorageSync("user_invoice_list",t))},receiptOrder:function(){var t=this;this.isScroll||(0,c.receiptOrder)({page:this.orderPage,limit:this.query.limit}).then((function(e){t.orderList=t.orderList.concat(e.data.list),t.isScroll=t.orderList.length>=e.data.count,t.orderPage++}))},getInvoiceList:function(t){var e=this;t&&(this.invoiceList=[],this.query.page=1,this.finished=!1),this.loading||this.finished||(this.loading=!0,(0,a.invoice)().then((function(t){var i=t.data;e.loading=!1,e.invoiceList=t.data,e.finished=i.length<e.query.limit,e.query.page++})).catch((function(t){e.loading=!1,e.$util.Tips({title:t})})))},addInvoice:function(){uni.navigateTo({url:"/pages/users/user_invoice_form/index"})},editInvoice:function(t){uni.navigateTo({url:"/pages/users/user_invoice_form/index?id=".concat(t)})},deleteInvoice:function(t,e){var i=this;uni.showModal({content:"删除该发票?",confirmColor:"#E93323",success:function(n){n.confirm&&(0,a.invoiceDelete)(t).then((function(){i.$util.Tips({title:"删除成功",icon:"success"},(function(){i.invoiceList.splice(e,1)}))})).catch((function(t){return i.$util.Tips({title:t})}))}})}},onReachBottom:function(){this.receiptOrder()}};e.default=u},d176:function(t,e,i){"use strict";var n=i("250c"),r=i.n(n);r.a},defc:function(t,e,i){"use strict";i.r(e);var n=i("897e"),r=i("7935");for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("d176");var a=i("828b"),c=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"50bf5845",null,!1,n["a"],void 0);e["default"]=c.exports},e65e:function(t,e,i){"use strict";i.r(e);var n=i("9627"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},f03f:function(t,e,i){"use strict";i.r(e);var n=i("5603"),r=i("e65e");for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("0044");var a=i("828b"),c=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"318c2023",null,!1,n["a"],void 0);e["default"]=c.exports}}]); |