chunk-db5cab6a.40571cc2.js 3.6 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-db5cab6a"],{"0bfe":function(t,i,e){},"50fb":function(t,i,e){},"7e74":function(t,i,e){"use strict";var s=function(){var t=this,i=t._self._c;return i("div",{staticClass:"title"},[i("div",{staticClass:"top"},[i("div",{staticClass:"left"},[t._v(t._s(t.title))]),i("div",{staticClass:"center"},[t.showSearch?i("el-input",{attrs:{clearable:"",placeholder:"搜索"},on:{change:function(i){return t.$emit("handleChange",i)}},model:{value:t.content,callback:function(i){t.content=i},expression:"content"}},[i("i",{staticClass:"el-icon-search el-input__icon",attrs:{slot:"suffix"},slot:"suffix"})]):t._e()],1),i("div",{staticClass:"right"},[t._t("control")],2)]),i("div",{staticClass:"bottom"},[t._t("bottom")],2)])},n=[],a={name:"TitleControl",props:{title:{type:String,required:!0},showSearch:{type:Boolean,default:!0}},data:function(){return{content:""}}},l=a,c=(e("e6d2"),e("2877")),o=Object(c["a"])(l,s,n,!1,null,"52e2b05d",null);i["a"]=o.exports},8739:function(t,i,e){"use strict";e("d284")},d284:function(t,i,e){},e560:function(t,i,e){"use strict";e.r(i);var s=function(){var t=this,i=t._self._c;return i("div",{staticClass:"wrap"},[i("div",{staticClass:"wrap-title"},[i("TitleControl",{attrs:{title:"充值订单"},on:{handleChange:t.handleSearch}})],1),i("div",{staticClass:"wrap-list"},[t._l(t.list,(function(t){return i("div",{staticClass:"list-item"},[i("OrderCard",{attrs:{info:t}})],1)})),t.finished?i("el-empty",{attrs:{description:"没有更多数据"}}):t._e()],2)])},n=[],a=(e("6762"),e("2fdb"),e("d25f"),e("2909")),l=e("7e74"),c=function(){var t=this,i=t._self._c;return i("div",{staticClass:"order-card"},[i("div",{staticClass:"card-header"},[i("div",{staticClass:"order-no"},[t._v("订单号 "+t._s(t.info.order_no))]),i("div",{staticClass:"time"},[t._v(t._s(t.info.create_at))])]),i("div",{staticClass:"card-center"},[i("div",{staticClass:"type"},[t._v(t._s(t.info.level_name)+t._s(t.info.level_title))]),i("div",{staticClass:"price"},[i("div",[t._v("实付款")]),i("div",{staticClass:"red"},[t._v("¥")]),i("div",{staticClass:"price-num"},[t._v(t._s(t.info.price_total))])])]),i("div",{staticClass:"card-footer"},[i("div",{staticClass:"btn",on:{click:t.toInvoice}},[t._v("\n "+t._s(t.info.bill_info?t.info.bill_info.bill_img?"查看发票":"开票中":"申请开票")+"\n ")]),i("div",{staticClass:"btn",on:{click:function(i){return t.$router.push("contact-online")}}},[t._v("联系客服")])])])},o=[],r={name:"OrderCard",props:{info:{type:Object}},methods:{toInvoice:function(){this.$router.push({path:this.info.bill_info?"/vip-invoice-detail":"/vip-invoice-apply",query:{order_id:this.info.id}})}}},d=r,u=(e("8739"),e("2877")),f=Object(u["a"])(d,c,o,!1,null,"3e88f3b1",null),p=f.exports,_=e("f523"),v={components:{TitleControl:l["a"],OrderCard:p},data:function(){return{params:{page:1,page_num:10},list:[],finished:!1,list_copy:""}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;_["h"].getOrderList(this.params).then((function(i){var e=i.data,s=e.list;t.list=1===t.params.page?s:[].concat(Object(a["a"])(t.list),Object(a["a"])(s)),s.length<t.params.page_num?t.finished=!0:t.params.page++}))},handleSearch:function(t){this.list_copy||(this.list_copy=this.list),t?this.list=this.list_copy.filter((function(i){return i.order_no&&i.order_no.includes(t)||i.level_name&&i.level_name.includes(t)||i.level_title&&i.level_title.includes(t)})):(this.list=this.list_copy,this.list_copy="")}}},h=v,C=(e("f7fe"),Object(u["a"])(h,s,n,!1,null,null,null));i["default"]=C.exports},e6d2:function(t,i,e){"use strict";e("0bfe")},f7fe:function(t,i,e){"use strict";e("50fb")}}]);
  2. //# sourceMappingURL=chunk-db5cab6a.40571cc2.js.map