1 line
18 KiB
JavaScript
1 line
18 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[50,7,15,16,18,20],{488:function(t,e,r){var content=r(491);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(18).default)("d7ac674a",content,!0,{sourceMap:!1})},489:function(t,e,r){"use strict";r.r(e);r(300);var n={data:function(){return{priceSlice:{}}},components:{},props:{firstSize:{type:Number,default:14},secondSize:{type:Number,default:14},color:{type:String},weight:{type:[String,Number],default:400},price:{type:[String,Number],default:""},showSubscript:{type:Boolean,default:!0},subscriptSize:{type:Number,default:14},lineThrough:{type:Boolean,default:!1}},created:function(){this.priceFormat()},watch:{price:function(t){this.priceFormat()}},methods:{priceFormat:function(){var t=this.price,e={};null!==t&&(t=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e)}}},o=(r(490),r(9)),component=Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("span",{class:(t.lineThrough?"line-through":"")+"price-format",style:{color:t.color,"font-weight":t.weight}},[t.showSubscript?e("span",{style:{"font-size":t.subscriptSize+"px","margin-right":"1px"}},[t._v("¥")]):t._e(),t._v(" "),e("span",{style:{"font-size":t.firstSize+"px","margin-right":"1px"}},[t._v(t._s(t.priceSlice.first))]),t._v(" "),t.priceSlice.second?e("span",{style:{"font-size":t.secondSize+"px"}},[t._v("."+t._s(t.priceSlice.second))]):t._e()])}),[],!1,null,null,null);e.default=component.exports},490:function(t,e,r){"use strict";r(488)},491:function(t,e,r){var n=r(17)((function(i){return i[1]}));n.push([t.i,".price-format{align-items:baseline;display:flex}",""]),n.locals={},t.exports=n},492:function(t,e,r){var content=r(494);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(18).default)("1e01d57a",content,!0,{sourceMap:!1})},493:function(t,e,r){"use strict";r(492)},494:function(t,e,r){var n=r(17)((function(i){return i[1]}));n.push([t.i,".null-data[data-v-93598fb0]{padding:100px}.null-data .img-null[data-v-93598fb0]{height:150px;width:150px}",""]),n.locals={},t.exports=n},495:function(t,e,r){"use strict";r.r(e);var n={components:{},props:{img:{type:String},text:{type:String,default:"暂无数据"},imgStyle:{type:String,default:""}},methods:{}},o=(r(493),r(9)),component=Object(o.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg-white flex-col col-center null-data"},[e("img",{staticClass:"img-null",style:t.imgStyle,attrs:{src:t.img,alt:""}}),t._v(" "),e("div",{staticClass:"muted mt8"},[t._v(t._s(t.text))])])}),[],!1,null,"93598fb0",null);e.default=component.exports},500:function(t,e,r){var content=r(514);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(18).default)("cfbdabb4",content,!0,{sourceMap:!1})},501:function(t,e,r){"use strict";r.d(e,"d",(function(){return n})),r.d(e,"e",(function(){return o})),r.d(e,"c",(function(){return l})),r.d(e,"b",(function(){return c})),r.d(e,"a",(function(){return f}));var n=5,o={SMS:0,ACCOUNT:1},l={REGISTER:"ZCYZ",FINDPWD:"ZHMM",LOGIN:"YZMDL",SJSQYZ:"SJSQYZ",CHANGE_MOBILE:"BGSJHM",BIND:"BDSJHM"},c={NONE:"",SEX:"sex",NICKNAME:"nickname",AVATAR:"avatar",MOBILE:"mobile"},f={NORMAL:"normal",HANDLING:"apply",FINISH:"finish"}},513:function(t,e,r){"use strict";r(500)},514:function(t,e,r){var n=r(17)((function(i){return i[1]}));n.push([t.i,".v-upload .el-upload--picture-card[data-v-9cabb86c]{height:76px;line-height:76px;width:76px}.v-upload .el-upload-list--picture-card .el-upload-list__item[data-v-9cabb86c]{height:76px;width:76px}",""]),n.locals={},t.exports=n},515:function(t,e,r){"use strict";r.r(e);r(300),r(30);var n=r(195),o={components:{},props:{limit:{type:Number,default:1},isSlot:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},onChange:{type:Function,default:function(){}}},watch:{},data:function(){return{url:n.a.baseUrl}},created:function(){},computed:{},methods:{success:function(t,e,r){this.autoUpload&&(this.$message({message:"上传成功",type:"success"}),this.$emit("success",r))},remove:function(t,e){this.$emit("remove",e)},error:function(t){this.$message({message:"上传失败,请重新上传",type:"error"})},beforeAvatarUpload:function(t){var e=t.name.substring(t.name.lastIndexOf(".")+1);console.log("fdsadsf");var r="jpg"===e,n="png"===e;return r||n?r||n||"jpeg"===e:(this.$message({message:"上传文件只能是 jpg, jpeg, png格式!",type:"warning"}),!1)}}},l=(r(513),r(9)),component=Object(l.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"v-upload"},[e("el-upload",{attrs:{"list-type":"picture-card",action:t.url+"/api/file/formimage",limit:t.limit,"on-success":t.success,"on-error":t.error,"on-remove":t.remove,"on-change":t.onChange,headers:{token:t.$store.state.token},"auto-upload":t.autoUpload,accept:"image/jpg,image/jpeg,image/png","before-upload":t.beforeAvatarUpload}},[t.isSlot?t._t("default"):e("div",[e("div",{staticClass:"muted xs"},[t._v("上传图片")])])],2)],1)}),[],!1,null,"9cabb86c",null);e.default=component.exports},517:function(t,e,r){"use strict";var n=r(2),o=r(110).find,l=r(194),c="find",f=!0;c in[]&&Array(1)[c]((function(){f=!1})),n({target:"Array",proto:!0,forced:f},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),l(c)},521:function(t,e,r){var content=r(537);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(18).default)("7fecf36c",content,!0,{sourceMap:!1})},535:function(t,e,r){var content=r(556);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(18).default)("710062e8",content,!0,{sourceMap:!1})},536:function(t,e,r){"use strict";r(521)},537:function(t,e,r){var n=r(17)((function(i){return i[1]}));n.push([t.i,".input-express .dialog-footer[data-v-13601821]{text-align:center}.input-express .dialog-footer .el-button[data-v-13601821]{width:160px}",""]),n.locals={},t.exports=n},548:function(t,e,r){"use strict";r.r(e);var n=r(8),o=(r(56),r(300),r(12),r(21),{components:{},data:function(){return{showDialog:!1,form:{business:"",number:"",desc:""},rules:{business:[{required:!0,message:"请输入物流公司"}],number:[{required:!0,message:"请输入快递单号"}]},fileList:[]}},props:{value:{type:Boolean,default:!1},aid:{type:[String,Number],default:-1}},methods:{submitForm:function(){var t=this;console.log(this.$refs),this.$refs.inputForm.validate(function(){var e=Object(n.a)(regeneratorRuntime.mark((function e(r){var n,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=10;break}return n=[],t.fileList.forEach((function(t){n.push(t.response.data)})),data={id:t.aid,express_name:t.form.business,invoice_no:t.form.number,express_remark:t.form.desc,express_image:n.length<=0?"":n[0].base_url},e.next=6,t.$post("after_sale/express",data);case 6:1==e.sent.code&&(t.$message({message:"提交成功",type:"success"}),t.showDialog=!1,t.$emit("success")),e.next=11;break;case 10:return e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},uploadSuccess:function(t){var e=Object.assign([],t);this.fileList=e}},watch:{value:function(t){this.showDialog=t},showDialog:function(t){this.$emit("input",t)}}}),l=o,c=(r(536),r(9)),component=Object(c.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"input-express"},[e("el-dialog",{attrs:{title:"填写快递单号",visible:t.showDialog,width:"926px"},on:{"update:visible":function(e){t.showDialog=e}}},[e("el-form",{ref:"inputForm",attrs:{inline:"","label-width":"100px",model:t.form,rules:t.rules}},[e("el-form-item",{attrs:{label:"物流公司:",prop:"business"}},[e("el-input",{attrs:{size:"small",placeholder:"请输入物流公司名称"},model:{value:t.form.business,callback:function(e){t.$set(t.form,"business",e)},expression:"form.business"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"快递单号:",prop:"number"}},[e("el-input",{attrs:{size:"small",placeholder:"请输入快递单号"},model:{value:t.form.number,callback:function(e){t.$set(t.form,"number",e)},expression:"form.number"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"备注说明:",prop:"desc"}},[e("el-input",{staticStyle:{width:"632px"},attrs:{type:"textarea",placeholder:"请输入详细内容,选填",resize:"none",rows:"5"},model:{value:t.form.desc,callback:function(e){t.$set(t.form,"desc",e)},expression:"form.desc"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"上传凭证:",prop:"upload"}},[e("div",{staticClass:"xs muted"},[t._v("请上传快递单号凭证,选填")]),t._v(" "),e("upload",{attrs:{isSlot:"","file-list":t.fileList,limit:3},on:{success:t.uploadSuccess}},[e("div",{staticClass:"column-center",staticStyle:{height:"100%"}},[e("i",{staticClass:"el-icon-camera xs",staticStyle:{"font-size":"24px"}})])])],1)],1),t._v(" "),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确定")]),t._v(" "),e("el-button",{on:{click:function(e){t.showDialog=!1}}},[t._v("取消")])],1)],1)],1)}),[],!1,null,"13601821",null);e.default=component.exports;installComponents(component,{Upload:r(515).default})},554:function(t,e,r){t.exports=r.p+"img/order_null.df79063.png"},555:function(t,e,r){"use strict";r(535)},556:function(t,e,r){var n=r(17)((function(i){return i[1]}));n.push([t.i,".after-sales-list .after-sales-header[data-v-37284714]{background-color:#f2f2f2;border:1px solid #e5e5e5;padding:13px 16px}.after-sales-list .after-sales-content .goods-item[data-v-37284714]{padding:10px 20px}.after-sales-list .after-sales-content .goods-item .goods-info[data-v-37284714]{margin-left:10px;width:500px}.after-sales-list .after-sales-content .goods-item .apply-btn[data-v-37284714]{align-self:flex-start;border:1px solid #ccc;border-radius:2px;height:32px;width:100px}.after-sales-list .after-sales-content .goods-item .apply-btn[data-v-37284714]:nth-of-type(2n),.after-sales-list .after-sales-content .goods-item .apply-btn[data-v-37284714]:nth-of-type(3){margin-left:10px}.after-sales-list .shadow[data-v-37284714]{box-shadow:0 3px 4px rgba(0,0,0,.08)}.after-sales-list .border[data-v-37284714]{border-bottom:1px solid #e5e5e5}",""]),n.locals={},t.exports=n},590:function(t,e,r){var content=r(670);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(18).default)("b25c4062",content,!0,{sourceMap:!1})},607:function(t,e,r){"use strict";r.r(e);var n=r(8),o=(r(56),r(501)),l={props:{type:{type:String,default:o.a.NORMAL},lists:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{goToDetail:function(t){switch(this.type){case o.a.NORMAL:this.$router.push("/goods_details/"+t);break;case o.a.HANDLING:case o.a.FINISH:this.$router.push("/user/after_sales/after_sale_details?afterSaleId="+t)}},goPage:function(t,e){this.$router.push("/user/after_sales/apply_sale?order_id="+t+"&item_id="+e)},showInput:function(t){this.$emit("show",t)},cancelApply:function(t){var e=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.$post("after_sale/cancel",{id:t});case 2:1==(n=r.sent).code&&(e.$message({message:n.msg,type:"success"}),e.$emit("refresh"));case 4:case"end":return r.stop()}}),r)})))()}}},c=(r(555),r(9)),component=Object(c.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"after-sales-list"},t._l(t.lists,(function(r){return e("div",{key:r.order_id,staticClass:"m-b-20"},[e("div",{staticClass:"after-sales-header m-t-30 flex row-between",staticStyle:{border:"0"}},[e("div",{staticClass:"flex row-around"},[e("div",{staticClass:"lighter sm flex",staticStyle:{"margin-right":"100px"}},[e("img",{staticClass:"m-r-5",staticStyle:{width:"20px",height:"20px"},attrs:{src:r.shop_logo,alt:""}}),t._v("\n "+t._s(r.shop_name)+"\n ")]),t._v(" "),"normal"==t.type?e("div",{staticClass:"lighter sm"},[t._v("\n 申请时间:"+t._s(r.create_time)+"\n ")]):e("div",{staticClass:"lighter sm",staticStyle:{"margin-left":"110px"}},[t._v("\n 下单时间:"+t._s(r.after_sale.status_text)+"\n ")]),t._v(" "),"normal"==t.type?e("div",{staticClass:"lighter sm",staticStyle:{"margin-left":"110px"}},[t._v("\n 订单编号:"+t._s(r.after_sale.sn)+"\n ")]):e("div",{staticClass:"lighter sm",staticStyle:{"margin-left":"110px"}},[t._v("\n 退款编号:"+t._s(r.after_sale.sn)+"\n ")])]),t._v(" "),e("div",{staticClass:"primary sm",staticStyle:{"margin-right":"12px"}},[t._v("\n "+t._s(r.after_sale.type_text)+"\n ")])]),t._v(" "),e("div",{staticClass:"after-sales-content",class:{shadow:"normal"!=t.type,border:"normal"==t.type}},t._l(r.order_goods,(function(n,o){return e("div",{key:o,staticClass:"goods-item flex row-between"},[e("div",{staticClass:"flex"},[e("el-image",{staticStyle:{width:"72px",height:"72px"},attrs:{src:n.image}}),t._v(" "),e("div",{staticClass:"goods-info"},[e("div",{staticClass:"goods-name noraml line1"},[t._v("\n "+t._s(n.goods_name)+"\n ")]),t._v(" "),e("div",{staticClass:"muted sm m-t-8 m-b-8"},[t._v("\n "+t._s(n.spec_value_str)+"\n ")]),t._v(" "),e("price-formate",{attrs:{price:n.goods_price,showSubscript:"",color:"#FF2C3C"}})],1)],1),t._v(" "),e("div",{staticClass:"flex row-right",style:{width:"apply"!=t.type?null:"340px"}},["normal"==t.type?e("el-button",{staticClass:"apply-btn row-center mr20 sm",attrs:{size:"small"},on:{click:function(e){return e.stopPropagation(),t.goPage(r.order_id,n.item_id)}}},[t._v("申请售后\n ")]):t._e(),t._v(" "),"normal"!=t.type?e("el-button",{staticClass:"apply-btn row-center mr20 sm",attrs:{size:"small"},on:{click:function(e){return t.goToDetail(r.after_sale.after_sale_id)}}},[t._v("查看详情")]):t._e(),t._v(" "),"apply"==t.type?e("el-button",{staticClass:"apply-btn row-center mr20 sm",attrs:{size:"small"},on:{click:function(e){return e.stopPropagation(),t.cancelApply(r.after_sale.after_sale_id)}}},[t._v("撤销申请")]):t._e(),t._v(" "),2==r.after_sale.status?e("el-button",{staticClass:"apply-btn row-center mr20 sm",attrs:{size:"small"},on:{click:function(e){return e.stopPropagation(),t.showInput(r.after_sale.after_sale_id)}}},[t._v("填写快递单号")]):t._e()],1)])})),0)])})),0)}),[],!1,null,"37284714",null);e.default=component.exports;installComponents(component,{PriceFormate:r(489).default})},669:function(t,e,r){"use strict";r(590)},670:function(t,e,r){var n=r(17)((function(i){return i[1]}));n.push([t.i,".after-sales .after-sales-header[data-v-52261be6]{padding:15px}.after-sales[data-v-52261be6] .el-tabs__header{margin-left:5px}.after-sales[data-v-52261be6] .el-tabs .el-tabs__nav-scroll{padding:0}",""]),n.locals={},t.exports=n},728:function(t,e,r){"use strict";r.r(e);r(30);var n=r(8),o=(r(12),r(517),r(56),r(501)),l={head:function(){return{title:this.$store.getters.headTitle,link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters.favicon}]}},layout:"user",data:function(){return{activeName:o.a.NORMAL,afterSale:[{type:o.a.NORMAL,list:[],name:"售后申请",count:0,page:1},{type:o.a.HANDLING,list:[],name:"处理中",count:0,page:1},{type:o.a.FINISH,list:[],name:"已处理",count:0,page:1}],showInput:!1,aid:-1}},asyncData:function(t){return Object(n.a)(regeneratorRuntime.mark((function e(){var r,n,o,l,c,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.$get,t.$post,n=[],e.next=4,r("after_sale/lists",{params:{page_no:1,page_size:10}});case 4:return 1==(o=e.sent).code&&(l=o.data,c=l.list,f=l.count,n={list:c,count:f}),e.abrupt("return",{afterList:n});case 7:case"end":return e.stop()}}),e)})))()},methods:{handleClick:function(){this.getAfterSaleList()},onInputShow:function(t){this.aid=t,this.showInput=!0},changePage:function(t){var e=this;this.afterSale.some((function(r){r.type==e.activeName&&(r.page=t)})),this.getAfterSaleList()},getAfterSaleList:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r,n,o,l,c,f,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.activeName,n=t.afterSale,o=n.find((function(t){return t.type==r})),e.next=4,t.$get("after_sale/lists",{params:{page_size:10,page_no:o.page,type:r}});case 4:l=e.sent,c=l.data,f=c.list,d=c.count,1==l.code&&(t.afterList={list:f,count:d});case 10:case"end":return e.stop()}}),e)})))()}},watch:{afterList:{immediate:!0,handler:function(t){var e=this;this.afterSale.some((function(r){if(r.type==e.activeName)return Object.assign(r,t),!0}))}}}},c=(r(669),r(9)),component=Object(c.a)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"after-sales"},[e("div",{staticClass:"after-sales-header"},[e("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},t._l(t.afterSale,(function(n,o){return e("el-tab-pane",{key:o,attrs:{label:n.name,name:n.type}},[n.list.length?[e("after-sales-list",{attrs:{type:n.type,lists:n.list},on:{refresh:t.getAfterSaleList,show:t.onInputShow}}),t._v(" "),n.count?e("div",{staticClass:"pagination row-center"},[e("el-pagination",{attrs:{"hide-on-single-page":"",background:"",layout:"prev, pager, next",total:n.count,"prev-text":"上一页","next-text":"下一页","page-size":10},on:{"current-change":t.changePage}})],1):t._e()]:[e("null-data",{attrs:{img:r(554),text:"暂无售后~"}})]],2)})),1)],1),t._v(" "),e("input-express",{attrs:{aid:t.aid},on:{success:t.getAfterSaleList},model:{value:t.showInput,callback:function(e){t.showInput=e},expression:"showInput"}})],1)}),[],!1,null,"52261be6",null);e.default=component.exports;installComponents(component,{AfterSalesList:r(607).default,NullData:r(495).default,InputExpress:r(548).default})}}]); |