chunk-d86ab3be.a9a9f447.js 17 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d86ab3be"],{"02e3":function(t,s,e){t.exports=e.p+"img/normal-1.429e7ed5.png"},"1b0c":function(t,s,e){"use strict";e("32fb")},"32fb":function(t,s,e){},"3c1f":function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAWCAYAAAAxSueLAAAAAXNSR0IArs4c6QAAAuNJREFUSEu9lb1v00AYxp83bey2guLODPQPQGo7MaE6AwyIIR26VEjYAyABQzJQpBapzQADDGkFLDDkgvgSBRoJ0YWhRmJiShbEglSJP4BUamnjpn7R2TnH+XAahMQt58v73v3uee69C+E/Nopj7cyenGSP8gwywQwikh0gZ6ixmhwEtgDkRt//FHFrdoXtzI1Peoe0SUSGTyDyAf30DLJHX//oCuyA/bLGjWRd3wRhUq0fFSC5R42ZKXX8+XenXWEHbMc+XSbCRHch0kppaZzQIA6iKrzD1DHxrRwFtsB2r04JEC5DnU2c+f3Fy26NU2OiXFXLhLDfN85kQMgHO1cK/rVHeeTR16kW2G7mbJqI1xFKCstOld+/9Ksj+S8ZCfSV7c2nHICn5VApk2ACbXvMVSI6pTYSjUfzGdgm4ES3+MgDx+cEsIVzDhFNd+ihRGpoYL9cq2uysiba482qZHv43iexv3heFkSYp+L6oDtGOacawJYumkTeZoMd3NtgJ0Jf/mjzUtqo4cABYULtUIE9Zns4tyH2li5YRFRojzPz6lBuo2mjTHDvpi0G/OS2JvTFkg90kwiBjUVtbbEkYucyivqdktVRjT7w/qwPDJWpqgSENr9mcz5tuG7SkfcQgK3Nrwk5B6ACyzNu5suzL+q334ag8MyiStz8nEwoNB7BaEho2Zc25y3DRc3Us69KB/lLJkPaHzXP/y5q2RctoK4w+WP9sWV5zIX2+5YgEgMuspQV1YOHlgnCOoON1jwUtZuiAxQL84FPrljMEUubRbPFxFvEZHa5jZ+T156acQ9P7F+MDyxct8BcCB5D9eirj9YxM1cGSTfJXgmfp3ZoT5gPfJaxQNLShrRoaUlpfuNKop7oCeppY3RX/OaW5XkBMHjUo68/VxL6oUkz8Yq6ln6c1/7e3y1YDGlp8/DAqFBCM2kmF2tddM0jbWxR+GE5zeytEGCAUEKdMv2C+raxl+K/if0BBOyZJu80HzgAAAAASUVORK5CYII="},"6d67":function(t,s,e){"use strict";var a=e("5ca1"),n=e("0a49")(1);a(a.P+a.F*!e("2f21")([].map,!0),"Array",{map:function(t){return n(this,t,arguments[1])}})},"75fc":function(t,s,e){"use strict";e.d(s,"a",(function(){return l}));var a=e("a745"),n=e.n(a),i=e("db2a");function o(t){if(n()(t))return Object(i["a"])(t)}var r=e("3953"),c=e("e630");function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t){return o(t)||Object(r["a"])(t)||Object(c["a"])(t)||u()}},"7f7f":function(t,s,e){var a=e("86cc").f,n=Function.prototype,i=/^\s*function ([^ (]*)/,o="name";o in n||e("9e1e")&&a(n,o,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},e40d:function(t,s,e){"use strict";e.r(s);var a=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"wrap"},[a("div",{staticClass:"rightsidebar"},[a("div",{staticClass:"rightsidebar-top"},[a("div",{staticClass:"personal-information-box"},[a("img",{staticClass:"personal-avatar",attrs:{src:t.userInfo.headimg}}),a("div",{staticClass:"personal-information-column"},[a("p",{staticClass:"personal-name"},[t._v(t._s(t.userInfo.name))]),a("div",{staticClass:"personal-tag"},[a("img",{staticClass:"tag-icon",attrs:{src:e("3c1f")}}),t._v("\n\t\t\t\t\t\t"+t._s(t.userInfo.level_name)+"\n\t\t\t\t\t")])])]),a("div",{staticClass:"rightsidebar-top-tabList"},[a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.myAddress}},[t._v("我的收货地址")]),a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.cardVoucher}},[t._v("我的卡券")]),a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.myFans}},[t._v("我的粉丝")]),a("a",{attrs:{href:"javascript:void(0)"},on:{click:t.myCommission}},[t._v("我的佣金")])])]),a("ul",{staticClass:"tab-list"},[a("li",{class:{active:-1==t.status},on:{click:function(s){return t.changeStatus(-1)}}},[a("a",{attrs:{href:"javascript:void(0)"}},[t._v("全部订单")])]),a("li",{class:{active:0==t.status},on:{click:function(s){return t.changeStatus(0)}}},[a("a",{attrs:{href:"javascript:void(0)"}},[t._v("\n\t\t\t\t\t待付款\n\t\t\t\t\t"),a("span",{directives:[{name:"show",rawName:"v-show",value:t.userInfo.no_pay>0,expression:"userInfo.no_pay > 0"}]},[t._v(t._s(t.userInfo.no_pay))])])]),a("li",{class:{active:1==t.status},on:{click:function(s){return t.changeStatus(1)}}},[a("a",{attrs:{href:"javascript:void(0)"}},[t._v("\n\t\t\t\t\t待发货\n\t\t\t\t\t"),a("span",{directives:[{name:"show",rawName:"v-show",value:t.userInfo.no_deliver>0,expression:"userInfo.no_deliver > 0"}]},[t._v(t._s(t.userInfo.no_deliver))])])]),a("li",{class:{active:2==t.status},on:{click:function(s){return t.changeStatus(2)}}},[a("a",{attrs:{href:"javascript:void(0)"}},[t._v("\n\t\t\t\t\t待收货\n\t\t\t\t\t"),a("span",{directives:[{name:"show",rawName:"v-show",value:t.userInfo.no_receive>0,expression:"userInfo.no_receive > 0"}]},[t._v(t._s(t.userInfo.no_receive))])])]),a("li",{class:{active:3==t.status},on:{click:function(s){return t.changeStatus(3)}}},[a("a",{attrs:{href:"javascript:void(0)"}},[t._v("\n\t\t\t\t\t待评价\n\t\t\t\t\t"),a("span",{directives:[{name:"show",rawName:"v-show",value:t.userInfo.no_comment>0,expression:"userInfo.no_comment > 0"}]},[t._v(t._s(t.userInfo.no_comment))])])]),a("li",{class:{active:8==t.status},on:{click:function(s){return t.changeStatus(8)}}},[a("a",{attrs:{href:"javascript:void(0)"}},[t._v("退款售后")])])]),a("div",{staticClass:"product"},[t._m(0),a("ul",{staticClass:"list"},[t._l(t.list,(function(s,e){return a("li",{key:e},[a("div",{staticClass:"list-top"},[a("span",[t._v(t._s(s.create_at))]),a("span",[t._v("订单号: "+t._s(s.order_no))])]),a("ul",{staticClass:"sub-list"},[a("li",[a("div",{staticClass:"goods"},t._l(s.order_item,(function(s,e){return a("div",{key:e,staticClass:"goods-li"},[a("div",{staticClass:"sub-item-first"},[a("img",{staticClass:"product-img",attrs:{src:s.cover}}),a("div",{staticClass:"product-msg-sidebar"},[a("p",{staticClass:"product-name"},[t._v(t._s(s.goods_name))]),t._l(s.goods_spec_arr,(function(s,e){return a("p",{key:e,staticClass:"product-msg"},[t._v(t._s(s[0])+":"+t._s(s[1]))])}))],2)]),a("div",{staticClass:"align-center-box"},[a("div",{staticClass:"sub-item"},[a("span",{staticClass:"product-price"},[t._v("¥ "+t._s(s.sell_price))]),a("span",{staticClass:"product-price-del"},[t._v("¥ "+t._s(s.original_price))])]),a("div",{staticClass:"sub-item"},[a("span",{staticClass:"product-num"},[t._v("x"+t._s(s.num))])])])])})),0),a("div",{staticClass:"product-sidebar-start"},[a("div",{staticClass:"sub-item"},[a("span",{staticClass:"font-2"},[t._v("¥ "+t._s(s.price_total))]),a("span",{staticClass:"font-3"},[t._v("(含运费:"+t._s(s.price_express)+")")])]),a("div",{staticClass:"sub-item"},[0==s.status?a("span",{staticClass:"font-4"},[t._v("等待买家付款")]):t._e(),1==s.status?a("span",{staticClass:"font-4"},[t._v("买家已付款")]):t._e(),2==s.status?a("span",{staticClass:"font-4"},[t._v("卖家已发货")]):t._e(),2==s.status?a("span",{staticClass:"font-5",on:{click:function(e){return t.toLogisticsDetails(s.id)}}},[t._v("查看物流")]):t._e(),4==s.status?a("span",{staticClass:"font-4"},[t._v("交易成功")]):t._e(),4==s.status?a("span",{staticClass:"font-4",on:{click:function(e){return t.toLogisticsDetails(s.id)}}},[t._v("查看物流")]):t._e(),8==s.status?a("span",{staticClass:"font-5"},[t._v("退款成功")]):t._e(),8==s.status?a("span",{staticClass:"font-4"},[t._v("交易关闭")]):t._e(),8==s.status?a("span",{staticClass:"font-4",on:{click:function(e){return t.refundAfter(s.id)}}},[t._v("订单详情")]):t._e(),8!=s.status?a("span",{staticClass:"font-4",on:{click:function(e){return t.myOrderDetails(s.id)}}},[t._v("订单详情")]):t._e()]),a("div",{staticClass:"sub-item"},[0==s.status?a("button",{staticClass:"sub-item-btn border",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.pay(s.id)}}},[t._v("立即付款")]):t._e(),0==s.status?a("button",{staticClass:"sub-item-btn",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.cancelOrder(s.id)}}},[t._v("取消订单")]):t._e(),0==s.status?a("button",{staticClass:"sub-item-btn",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.showUpdateAddress(s)}}},[t._v("修改地址")]):t._e(),1==s.status?a("button",{staticClass:"sub-item-btn",attrs:{type:"button"},on:{click:function(e){return t.applyForInvoice(s.id)}}},[t._v("申请开票")]):t._e(),1==s.status?a("button",{staticClass:"sub-item-btn",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.showUpdateAddress(s)}}},[t._v("修改地址")]):t._e(),2==s.status?a("button",{staticClass:"sub-item-btn border",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.confirmReceipt(s.id)}}},[t._v("确认收货")]):t._e(),2==s.status?a("button",{staticClass:"sub-item-btn",attrs:{type:"button"},on:{click:function(e){return t.applyForInvoice(s.id)}}},[t._v("申请开票")]):t._e(),3==s.status?a("button",{staticClass:"sub-item-btn border",attrs:{type:"button"},on:{click:function(e){return t.evaluation(s.id)}}},[t._v("评价")]):t._e()])])])])])})),0==t.list.length?a("div",{staticClass:"normal-box"},[a("img",{attrs:{src:e("02e3")}}),t._v("\n\t\t\t\t\t暂无订单\n\t\t\t\t\t"),a("button",{attrs:{type:"button"},on:{click:t.goIndex}},[t._v("去逛逛")])]):t._e()],2)])]),a("el-dialog",{attrs:{title:"修改地址",visible:t.edit,width:"30%"},on:{"update:visible":function(s){t.edit=s}}},[a("span",{staticClass:"prompt-msg"},[t._v("修改地址会影响物流时效,只能原价修改且付款后只能修改一次,若商品已发货、换仓、库存及配送变更等原因,可能会导致修改地址失败,请你谅解。")]),a("ul",{staticClass:"select-address-list"},t._l(t.addressList,(function(s,e){return a("li",{key:e,class:{active:t.currentAddress.id==s.id},on:{click:function(e){t.currentAddress=s}}},[a("div",{staticClass:"select-address-sidebar"},[a("p",{staticClass:"people-name"},[t._v(t._s(s.name))]),a("p",{staticClass:"addrss-box"},[a("span",{staticClass:"addrss-msg"},[t._v("\n\t\t\t\t\t\t\t"+t._s(s.pro_name)+"\n\t\t\t\t\t\t\t"+t._s(s.city_name)+"\n\t\t\t\t\t\t\t"+t._s(s.county_name)+"\n\t\t\t\t\t\t\t"+t._s(s.street_name)+"\n\t\t\t\t\t\t\t"+t._s(s.detail)+"\n\t\t\t\t\t\t")]),a("span",{staticClass:"people-phone-num"},[t._v(t._s(s.phone))])])])])})),0),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(s){return t.uppdateAddress()}}},[t._v("确定")]),a("el-button",{on:{click:function(s){t.edit=!1}}},[t._v("取消")])],1)]),a("el-dialog",{staticClass:"cancel-box",attrs:{title:"订单取消",visible:t.cancel},on:{"update:visible":function(s){t.cancel=s}}},[a("p",{staticClass:"cancel-prompt-msg"},[t._v("取消后无法回复,优惠券、红包、积分、可退回,有效期内使用")]),a("p",{staticClass:"cancel-prompt-title"},[t._v("请选择取消订单原因")]),a("ul",{staticClass:"choose-list"},t._l(t.chooseList,(function(s,e){return a("li",{key:s.id,on:{click:function(s){return t.check(e)}}},[a("span",{staticClass:"choose-name"},[t._v(t._s(s.value))]),a("div",{staticClass:"input-radio-wrap"},[a("span",{staticClass:"radio",class:{on:s.isChecked}}),a("input",{staticClass:"input-radio",attrs:{type:"radio"},domProps:{checked:s.isChecked}})])])})),0),a("div",{staticClass:"cancel-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(s){t.cancel=!1}}},[t._v("暂不取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(s){t.cancel=!1}}},[t._v("确定取消")])],1)]),a("el-dialog",{staticClass:"pay-wrap",attrs:{title:"请使用"+t.pay_type_map[t.pay_type]+"扫码支付",visible:t.showPayCode,width:"300px","before-close":t.beforeClosePay},on:{"update:visible":function(s){t.showPayCode=s},close:function(s){return t.closedPay()}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.payCodeLoading,expression:"payCodeLoading"}]},[a("div",{staticClass:"pay-wrap-content"},[a("canvas",{ref:"paycode"})]),a("div",{staticClass:"flex-center-box"},[a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(s){t.$confirm("确认取消支付?").then((function(){return t.showPayCode=!1}))}}},[t._v("取消支付")]),a("el-button",{attrs:{type:"primary"},on:{click:function(s){return t.checkPay()}}},[t._v("我已支付")])],1)])])])],1)},n=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("p",{staticClass:"top-row"},[e("span",[t._v("商品")]),e("span",[t._v("单价")]),e("span",[t._v("数量")]),e("span",[t._v("实付款")]),e("span",[t._v("交易状态")]),e("span",[t._v("交易操作")])])}],i=(e("7f7f"),e("01c8")),o=e("75fc"),r=(e("28a5"),e("ac6a"),e("f3e2"),e("6d67"),e("71c2")),c=e("076e"),u=e("67cf"),l=e("d055"),d=e.n(l),p=e("ca00"),f={components:{Header:r["a"],Footer:c["a"]},data:function(){return{statusMap:{0:"待付款",1:"待发货",2:"待收货",3:"待评论",4:"已完成",8:"已退款",9:"取消"},num:1,edit:!1,cancel:!1,signInfo:{is_sign:0,sign_num:0,sign_card:0},chooseList:[{value:"价格有点贵",isChecked:!0},{value:"规格/款式/数量拍错",isChecked:!1},{value:"收货地址拍错",isChecked:!1},{value:"商家不支持花呗",isChecked:!1},{value:"暂时不需要了",isChecked:!1},{value:"其他",isChecked:!1}],userInfo:{},status:-1,list:[],page:1,page_num:20,currentOrder:{id:0},addressParams:{page:1,page_num:20},addressList:[],currentAddress:{id:0},order_id:0,showPayCode:!1,payCodeLoading:!0,pay_type:5,pay_type_map:{5:"微信",6:"支付宝"}}},mounted:function(){var t=this,s=JSON.parse(localStorage.getItem("USER_INFO")||"{}");this.userInfo=s,this.getUserInfo();var e=this.$route.query,a=parseInt(e.status||-1);this.status=a,this.getList(),this.getAddressList(),Object(p["a"])((function(){return t.getList()}))},methods:{getUserInfo:function(){var t=this;Object(u["ac"])().then((function(s){var e=s.code,a=s.data,n=s.msg;1==e?(localStorage.setItem("USER_INFO",JSON.stringify(a.detail)),t.userInfo=a.detail):t.$message.error(n)}))},getList:function(){var t=this,s=this.page,e=this.page_num,a=this.status,n={page:s,page_num:e};8==a?n["apply_refund"]=1:n["status"]=a,Object(u["Hb"])(n).then((function(e){var a=e.code,n=e.msg,i=e.data;if(1===a){var r=i.list.map((function(t){return t.order_item.forEach((function(t){return t["goods_spec_arr"]=t.goods_spec.split(";;").map((function(t){return t.split("::")}))})),t}));t.list=s>1?[].concat(Object(o["a"])(t.list),Object(o["a"])(r)):r,0===r.length?t.$message.info("没有更多数据了"):t.page=t.page+1}else t.$message.error(n)}))},getAddressList:function(){var t=this,s=this.addressParams,e=s.page,a=void 0===e?1:e,n=s.page_num,r=void 0===n?20:n,c={page:a,page_num:r};Object(u["jc"])(c).then((function(s){var e=s.code,n=s.msg,r=s.data;if(1===e){var c=r.list.map((function(t){var s=t.name.split(""),e=Object(i["a"])(s),a=e[0],n=e.slice(1);return t["first_name"]=a,t["last_name"]=n.join(""),t}));t.addressList=a>1?[].concat(Object(o["a"])(t.list),Object(o["a"])(c)):c,0===c.length?t.$message.info("没有更多数据了"):t.addressParams.page=t.page+1}else t.$message.error(n)}))},pay:function(t){var s=this;this.order_id=t;var e={order_id:t,pay_type:this.pay_type};this.payCodeLoading=!0,this.showPayCode=!0,Object(u["Nb"])(e).then((function(t){var e=t.code,a=t.msg,n=t.data;1==e?d.a.toCanvas(s.$refs["paycode"],n.code_url,{width:200},(function(t){t&&console.error(t),console.log("success!"),s.payCodeLoading=!1})):s.$message.error(a)}))},checkPay:function(){var t=this;Object(u["Gb"])({order_id:this.order_id}).then((function(s){var e=s.code,a=s.msg,n=s.data;1==e?(console.log(n.detail),0==n.detail.status?t.$message.warning("尚未支付!"):(t.$message.success("支付成功!"),setTimeout((function(){t.page=1,t.getList()}),1e3))):t.$message.error(a)}))},beforeClosePay:function(t){this.$confirm("确认取消支付?").then((function(){return t()}))},closedPay:function(){},cancelOrder:function(t){var s=this;this.$confirm("确认取消订单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["wb"])({order_id:t}).then((function(t){var e=t.code,a=t.msg;1==e?(s.page=1,s.getList()):s.$message.error(a)}))}))},del:function(t){var s=this;this.$confirm("确认删除订单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["Db"])({order_id:t}).then((function(t){var e=t.code,a=t.msg;1==e?(s.page=1,s.getList()):s.$message.error(a)}))}))},confirmReceipt:function(t){var s=this;this.$confirm("是否确认收货?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["Ab"])({order_id:t})((function(t){var e=t.code,a=t.msg;1==e?(s.page=1,s.getList()):s.$message.error(a)}))}))},uppdateAddress:function(){var t=this;this.$confirm("确认修改收货地址?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var s={order_id:t.currentOrder.id,add_id:t.currentAddress.id};Object(u["xb"])(s).then((function(s){var e=s.code,a=s.msg;s.data;1==e?(t.$message.success(a),t.edit=!1):t.$message.error(a)}))}))},changeStatus:function(t){this.status=t,this.page=1,this.getList()},showUpdateAddress:function(t){t.id!=this.currentOrder.id&&(this.addressParams.page=1,this.getAddressList()),this.edit=!0,this.currentOrder=t},cardVoucher:function(){this.$router.push("/my/card-voucher")},myFans:function(){this.$router.push("/my/my-fans")},myCommission:function(){this.$router.push("/my/my-commission")},goIndex:function(){this.$router.push("/index")},myAddress:function(){this.$router.push("/my/my-address")},myOrderDetails:function(t){this.$router.push("/my/my-order-details?id=".concat(t))},refundAfter:function(){this.$router.push("/my/refund-after")},evaluation:function(t){this.$router.push("/my/evaluation?id=".concat(t))},applyForInvoice:function(t){this.$router.push("/my/apply-for-invoice?id=".concat(t))},toLogisticsDetails:function(t){this.$router.push("/my/logistics-details?id=".concat(t))},check:function(t){this.chooseList.forEach((function(t){t.isChecked=!1})),this.chooseList[t].isChecked=!0}}},v=f,m=(e("1b0c"),e("2877")),_=Object(m["a"])(v,a,n,!1,null,"6a936705",null);s["default"]=_.exports}}]);
  2. //# sourceMappingURL=chunk-d86ab3be.a9a9f447.js.map