chunk-a3e79f08.fb4127c5.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a3e79f08"],{3698:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"list-wrap"},[a("div",{staticClass:"list"},[a("el-tabs",{staticClass:"haoyou",on:{"tab-click":t.handleClick}},[a("el-tab-pane",{attrs:{label:"待支付"}},[t.data.cueShow?t._e():a("ul",{staticClass:"list-group list-group-flush"},t._l(t.data.list,(function(e,s){return a("li",{staticClass:"list-group-item m-2 mb-0"},[a("div",{staticClass:"header d-flex align-items-center"},[a("span",[t._v(t._s(e["order_sn"]))]),a("span",{staticClass:"ml-auto"},[t._v(t._s(e["create_timestamp"]))])]),a("hr"),a("div",{staticClass:"section"},[a("p",{staticClass:"d-flex align-items-center"},[a("span",[t._v("办理进度")]),a("span",{staticClass:"ml-auto",staticStyle:{color:"#fb2e2e"}},[t._v(t._s(e["status"]))])]),a("p",{staticClass:"d-flex align-items-center"},[a("span",[t._v("实付金额")]),a("span",{staticClass:"ml-auto"},[t._v("¥"+t._s(e["payment"]))])])]),a("hr"),a("div",{staticClass:"footer align-items-center"},[a("button",{staticClass:"btn btn-info",staticStyle:{background:"#10c09c"},on:{click:t.open}},[t._v("联系我们")]),a("button",{staticClass:"btn btn-info",staticStyle:{background:"#FF903B"},attrs:{"data-id":e["id"],"data-key":s},on:{click:t.cancel}},[t._v("取消订单")]),a("a",{staticClass:"btn btn-info",staticStyle:{background:"#0caf8e"},attrs:{"data-id":e["id"],"data-key":s,"data-type":e["order_type"]},on:{click:t.goDetail}},[t._v("订单详情")]),a("button",{staticClass:"btn btn-info",staticStyle:{background:"#ff5224"},attrs:{"data-id":e["order_sn"],"data-key":s,"data-type":e["order_type"]},on:{click:t.gopay}},[t._v("去付款")])])])})),0),t.data.cueShow?a("div",{staticClass:"cuewords"},[a("p",[t._v("您暂时还没有订单")])]):t._e()]),a("el-tab-pane",{attrs:{label:"已支付",name:"second"}},[t.data.cueShow2?t._e():a("ul",{staticClass:"list-group list-group-flush"},t._l(t.data.list,(function(e,s){return a("li",{staticClass:"list-group-item m-2 mb-0"},[a("div",{staticClass:"header d-flex align-items-center"},[a("span",[t._v(t._s(e["order_sn"]))]),a("span",{staticClass:"ml-auto"},[t._v(t._s(e["create_timestamp"]))])]),a("hr"),a("div",{staticClass:"section"},[a("p",{staticClass:"d-flex align-items-center"},[a("span",[t._v("办理进度")]),a("span",{staticClass:"ml-auto",staticStyle:{color:"#999999"}},[t._v("已支付")])]),a("p",{staticClass:"d-flex align-items-center"},[a("span",[t._v("实付金额")]),a("span",{staticClass:"ml-auto"},[t._v("¥"+t._s(e["payment"]))])])]),a("hr"),a("div",{staticClass:"footer align-items-center"},[a("button",{staticClass:"btn btn-info",staticStyle:{background:"#10c09c"},on:{click:t.open}},[t._v("联系我们")]),a("a",{staticClass:"btn btn-info",staticStyle:{background:"#0caf8e"},attrs:{"data-id":e["id"],"data-key":s,"data-type":e["order_type"]},on:{click:t.goDetail}},[t._v("查看信息")])])])})),0),t.data.cueShow2?a("div",{staticClass:"cuewords"},[a("p",[t._v("您暂时还没有订单")])]):t._e()]),a("el-tab-pane",{attrs:{label:"代缴完成",name:"third"}},[t.data.cueShow3?t._e():a("ul",{staticClass:"list-group list-group-flush"},t._l(t.data.list,(function(e,s){return a("li",{staticClass:"list-group-item m-2 mb-0"},[a("div",{staticClass:"header d-flex align-items-center"},[a("span",[t._v(t._s(e["order_sn"]))]),a("span",{staticClass:"ml-auto"},[t._v(t._s(e["create_timestamp"]))])]),a("hr"),a("div",{staticClass:"section"},[a("p",{staticClass:"d-flex align-items-center"},[a("span",[t._v("办理进度")]),a("span",{staticClass:"ml-auto",staticStyle:{color:"#666666"}},[t._v("代缴完成")])]),a("p",{staticClass:"d-flex align-items-center"},[a("span",[t._v("实付金额")]),a("span",{staticClass:"ml-auto"},[t._v("¥"+t._s(e["payment"]))])]),a("div",{staticClass:"seal-img"},[a("span",[t._v(t._s(e["month"])+"月份")])])]),a("hr"),a("div",{staticClass:"footer align-items-center"},[a("button",{staticClass:"btn btn-info",staticStyle:{background:"#10c09c"},on:{click:t.open}},[t._v("联系我们")]),a("a",{staticClass:"btn btn-info",staticStyle:{background:"#0caf8e"},attrs:{"data-id":e["id"],"data-key":s,"data-type":e["order_type"]},on:{click:t.goDetail}},[t._v("查看信息")])])])})),0),t.data.cueShow3?a("div",{staticClass:"cuewords"},[a("p",[t._v("您暂时还没有订单")])]):t._e()])],1),t.data.moreShow?a("div",{staticClass:"more"},[t.hasMore?a("a",{staticClass:"btn btn-light btn-block m-2 pt-3 pb-3",attrs:{href:"javascript:void(0);"},on:{click:t.loadMore}},[t._v("点击加载更多")]):t._e(),t.hasMore?t._e():a("p",{staticClass:"text-center"},[t._v("没有更多了")])]):t._e()],1)])},n=[],i=(a("2b45"),a("fc58"),a("ccd9"),a("a0f8"),a("baf1")),r=a.n(i),o=(a("f548"),a("e4f7"),a("a529")),c=a.n(o),l=(a("b449"),a("5d83")),u=a("3231"),d=a("064d"),h=a("46d7"),p=a("04e2"),f=a("52ce"),m=a("4a81"),g=a("b2e6"),v=a("f3cf"),_=a("afbc");function y(t){var e=b();return function(){var a,s=Object(f["a"])(t);if(e){var n=Object(f["a"])(this).constructor;a=Reflect.construct(s,arguments,n)}else a=s.apply(this,arguments);return Object(p["a"])(this,a)}}function b(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}var w=function(t){Object(h["a"])(a,t);var e=y(a);function a(){var t;return Object(u["a"])(this,a),t=e.apply(this,arguments),t.data={list:[],activeName:"",isChildUpdate1:!0,isChildUpdate2:!0,isChildUpdate3:!0,status:1,cueShow:!1,cueShow2:!1,cueShow3:!1,moreShow:!1},t.page=0,t.hasMore=!0,t}return Object(d["a"])(a,[{key:"created",value:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.page=1,t.next=3,v["a"].getInstance().getOrderList({page:this.page,status:this.data.status});case 3:e=t.sent,0==e.data.length?(this.data.cueShow=!0,this.data.cueShow2=!0,this.data.cueShow3=!0,this.data.moreShow=!1):(this.data.list=e.data,this.hasMore=e.data.length>9,this.data.moreShow=!0);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"updated",value:function(){}},{key:"open",value:function(){c.a.alert('<a href="tel:'+v["a"].PHONE+'">'+v["a"].PHONE+"</a><p>手机号同步微信</p>","请联系客服",{dangerouslyUseHTMLString:!0,confirmButtonText:"拨打"}).then((function(t){window.location.href="tel://"+v["a"].PHONE}))}},{key:"gopay",value:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(e){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=this.data.list[e.target.getAttribute("data-key")],t.next=3,v["a"].getInstance().savelistOrder({order_sn:a.order_sn});case 3:s=t.sent,console.log(s),1==a.order_type?localStorage.setItem("order_paying",JSON.stringify(s.data)):localStorage.setItem("order_payings",JSON.stringify(s.data)),_["a"].replace({name:"opayment",params:{order_sn:s.data.order_sn,type:a.order_type}});case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"loadMore",value:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,v["a"].getInstance().getOrderList({page:this.page,status:this.data.status});case 2:e=t.sent,this.hasMore=e.data.length>9,this.data.list=[].concat(this.data.list.concat(e.data)),this.page++;case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"handleClick",value:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(e,a){var s,n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("待支付"!=e.label){t.next=8;break}return this.data.list="",this.data.status=1,t.next=5,v["a"].getInstance().getOrderList({page:this.page,status:this.data.status});case 5:s=t.sent,this.data.list=s.data,0==s.data.length?(this.data.cueShow=!0,this.data.cueShow2=!0,this.data.cueShow3=!0,this.data.moreShow=!1):(this.data.list=s.data,this.hasMore=s.data.length>9,this.data.moreShow=!0,this.data.cueShow=!1,this.data.cueShow2=!1,this.data.cueShow3=!1);case 8:if("已支付"!=e.label){t.next=16;break}return this.page=1,this.data.list="",this.data.status=3,t.next=14,v["a"].getInstance().getOrderList({page:this.page,status:this.data.status});case 14:n=t.sent,0==n.data.length?(this.data.cueShow=!0,this.data.cueShow2=!0,this.data.cueShow3=!0,this.data.moreShow=!1):(this.data.list=n.data,this.hasMore=n.data.length>9,this.data.moreShow=!0,this.data.cueShow=!1,this.data.cueShow2=!1,this.data.cueShow3=!1);case 16:if("代缴完成"!=e.label){t.next=25;break}return this.page=1,this.data.list="",this.data.status=5,t.next=22,v["a"].getInstance().getOrderList({page:this.page,status:this.data.status});case 22:i=t.sent,this.data.list=i.data,0==i.data.length?(this.data.cueShow=!0,this.data.cueShow2=!0,this.data.cueShow3=!0,this.data.moreShow=!1):(this.data.list=i.data,this.hasMore=i.data.length>9,this.data.moreShow=!0,this.data.cueShow=!1,this.data.cueShow2=!1,this.data.cueShow3=!1);case 25:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}()},{key:"cancel",value:function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(e){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=this.data.list[e.target.getAttribute("data-key")],console.log(a),t.next=4,v["a"].getInstance().cancelOrder({oid:a.id});case 4:s=t.sent,1==s.code&&(r()({message:"订单已取消",duration:2e3,type:"success"}),setTimeout((function(){location.reload()}),1e3));case 6:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"goDetail",value:function(t){var e=this.data.list[t.target.getAttribute("data-key")];1==e.order_type?_["a"].push({name:"odetail",params:{id:e.id,order_sn:e.order_sn,status:e.status,payment:e.payment,create_timestamp:e.create_timestamp}}):_["a"].push({name:"bujiaodetail",params:{id:e.id,order_sn:e.order_sn,status:e.status,payment:e.payment,create_timestamp:e.create_timestamp}})}}]),a}(g["b"]);w=Object(m["a"])([Object(g["a"])({})],w);var C=w,S=C,k=(a("f30f"),a("4023")),x=Object(k["a"])(S,s,n,!1,null,null,null);e["default"]=x.exports},baf1:function(t,e,a){t.exports=function(t){var e={};function a(s){if(e[s])return e[s].exports;var n=e[s]={i:s,l:!1,exports:{}};return t[s].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=t,a.c=e,a.d=function(t,e,s){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(a.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(s,n,function(e){return t[e]}.bind(null,n));return s},a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="/dist/",a(a.s=75)}({0:function(t,e,a){"use strict";function s(t,e,a,s,n,i,r,o){var c,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=a,l._compiled=!0),s&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),r?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},l._ssrRegister=c):n&&(c=o?function(){n.call(this,this.$root.$options.shadowRoot)}:n),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:l}}a.d(e,"a",(function(){return s}))},15:function(t,e){t.exports=a("d1a3")},23:function(t,e){t.exports=a("03d8")},7:function(t,e){t.exports=a("0261")},75:function(t,e,a){"use strict";a.r(e);var s=a(7),n=a.n(s),i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":t.handleAfterLeave}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],class:["el-message",t.type&&!t.iconClass?"el-message--"+t.type:"",t.center?"is-center":"",t.showClose?"is-closable":"",t.customClass],style:t.positionStyle,attrs:{role:"alert"},on:{mouseenter:t.clearTimer,mouseleave:t.startTimer}},[t.iconClass?a("i",{class:t.iconClass}):a("i",{class:t.typeClass}),t._t("default",[t.dangerouslyUseHTMLString?a("p",{staticClass:"el-message__content",domProps:{innerHTML:t._s(t.message)}}):a("p",{staticClass:"el-message__content"},[t._v(t._s(t.message))])]),t.showClose?a("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:t.close}}):t._e()],2)])},r=[];i._withStripped=!0;var o={success:"success",info:"info",warning:"warning",error:"error"},c={data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+o[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(t){t&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var t=this;this.duration>0&&(this.timer=setTimeout((function(){t.closed||t.close()}),this.duration))},keydown:function(t){27===t.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},l=c,u=a(0),d=Object(u["a"])(l,i,r,!1,null,null,null);d.options.__file="packages/message/src/main.vue";var h=d.exports,p=a(15),f=a(23),m=n.a.extend(h),g=void 0,v=[],_=1,y=function t(e){if(!n.a.prototype.$isServer){e=e||{},"string"===typeof e&&(e={message:e});var a=e.onClose,s="message_"+_++;e.onClose=function(){t.close(s,a)},g=new m({data:e}),g.id=s,Object(f["isVNode"])(g.message)&&(g.$slots.default=[g.message],g.message=null),g.$mount(),document.body.appendChild(g.$el);var i=e.offset||20;return v.forEach((function(t){i+=t.$el.offsetHeight+16})),g.verticalOffset=i,g.visible=!0,g.$el.style.zIndex=p["PopupManager"].nextZIndex(),v.push(g),g}};["success","warning","info","error"].forEach((function(t){y[t]=function(e){return"string"===typeof e&&(e={message:e}),e.type=t,y(e)}})),y.close=function(t,e){for(var a=v.length,s=-1,n=void 0,i=0;i<a;i++)if(t===v[i].id){n=v[i].$el.offsetHeight,s=i,"function"===typeof e&&e(v[i]),v.splice(i,1);break}if(!(a<=1||-1===s||s>v.length-1))for(var r=s;r<a-1;r++){var o=v[r].$el;o.style["top"]=parseInt(o.style["top"],10)-n-16+"px"}},y.closeAll=function(){for(var t=v.length-1;t>=0;t--)v[t].close()};var b=y;e["default"]=b}})},c9b6:function(t,e,a){},ccd9:function(t,e,a){},f30f:function(t,e,a){"use strict";var s=a("c9b6"),n=a.n(s);n.a}}]);