1 line
7.5 KiB
JavaScript
1 line
7.5 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[7,18],{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)}}},l=(r(490),r(9)),component=Object(l.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},501:function(t,e,r){"use strict";r.d(e,"d",(function(){return n})),r.d(e,"e",(function(){return l})),r.d(e,"c",(function(){return o})),r.d(e,"b",(function(){return c})),r.d(e,"a",(function(){return f}));var n=5,l={SMS:0,ACCOUNT:1},o={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"}},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})},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},608:function(t,e,r){"use strict";r.r(e);var n=r(8),l=(r(56),r(501)),o={props:{type:{type:String,default:l.a.NORMAL},lists:{type:Array,default:function(){return[]}}},data:function(){return{}},methods:{goToDetail:function(t){switch(this.type){case l.a.NORMAL:this.$router.push("/goods_details/"+t);break;case l.a.HANDLING:case l.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)(o,(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,l){return e("div",{key:l,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})}}]); |