require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/refund_details/index"],{3336:function(e,n,t){"use strict";(function(e,n){var o=t("47a9");t("1d3c");o(t("3240"));var r=o(t("89b5"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},"53bf":function(e,n,t){},6701:function(e,n,t){"use strict";(function(e){var o=t("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=t("9ecc"),i=t("0466"),u=t("28e0"),f=(o(t("ac21")),t("cef1")),a=t("8f59"),d=(o(t("bdc6")),t("d5b1")),s=getApp(),c={components:{orderGoods:function(){Promise.all([t.e("common/vendor"),t.e("components/orderGoods/index")]).then(function(){return resolve(t("f469"))}.bind(null,t)).catch(t.oe)}},data:function(){return{merAddress:null,refundOrderNo:"",refundInfo:{},theme:s.globalData.theme,chatConfig:{consumer_hotline:"",telephone_service_switch:"false"}}},computed:(0,a.mapGetters)(["isLogin","chatUrl","userInfo"]),onLoad:function(n){var t=(0,d.setThemeColor)();if(e.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:t}),void 0==n.type||null==n.type?this.type="normal":this.type=n.type,!n.refundOrderNo)return this.$util.Tips({title:"缺少参数"},{tab:3,url:1});this.$set(this,"refundOrderNo",n.refundOrderNo),this.bgColor=(0,d.setThemeColor)(),this.$set(this,"chatConfig",this.$Cache.getItem("chatConfig"))},onShow:function(){this.isLogin?this.orderRefundInfo():(0,f.toLogin)()},onHide:function(){this.isClose=!0},onPageScroll:function(n){e.$emit("scroll")},onReady:function(){},methods:{getMerAddress:function(){var e=this;(0,u.getMerAddressApi)(this.refundInfo.merId).then((function(n){e.$set(e,"merAddress",n.data)})).catch((function(n){return e.$util.Tips({title:n})}))},handleRevokeRefund:function(e){var n=this;(0,i.onRevokeRefund)(e).then((function(){n.orderRefundInfo()}))},handleReturningRefund:function(n){this.$Cache.set("productInfo",n),e.navigateTo({url:"/pages/goods/returns_and_refunds/index?refundOrderNo=".concat(n.refundOrderNo,"&returnGoodsType=").concat(n.returnGoodsType)})},serviceClick:function(){"true"===this.chatConfig.telephone_service_switch?e.makePhoneCall({phoneNumber:this.chatConfig.consumer_hotline}):location.href=this.chatUrl},makePhone:function(n){e.makePhoneCall({phoneNumber:n})},orderRefundInfo:function(){var n=this;e.showLoading({title:"正在加载中"}),(0,r.orderRefundInfoApi)(n.refundOrderNo).then((function(t){e.hideLoading();var o=t.data;n.$set(n,"refundInfo",o),2===n.refundInfo.returnGoodsType&&n.getMerAddress()})).catch((function(e){n.$util.Tips({title:e},{tab:4,url:"/pages/user/index"})}))},handleCopy:function(n){e.setClipboardData({data:n})},goTel:function(){e.makePhoneCall({phoneNumber:this.refundInfo.deliveryId})}}};n.default=c}).call(this,t("df3c")["default"])},"89b5":function(e,n,t){"use strict";t.r(n);var o=t("e7ca"),r=t("e184");for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);t("a9b2");var u=t("828b"),f=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,"4a538e3e",null,!1,o["a"],void 0);n["default"]=f.exports},a9b2:function(e,n,t){"use strict";var o=t("53bf"),r=t.n(o);r.a},e184:function(e,n,t){"use strict";t.r(n);var o=t("6701"),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},e7ca:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){}));var o=function(){var e=this,n=e.$createElement,t=(e._self._c,e._f("refundStatusFilter")(e.refundInfo.refundStatus)),o=1!==e.refundInfo.refundStatus?e._f("orderRefundTipsStatusFilter")(e.refundInfo.refundStatus):null,r=e.refundInfo.refundReasonWapImg?e.refundInfo.refundReasonWapImg.split(","):null;e.$mp.data=Object.assign({},{$root:{f0:t,f1:o,l0:r}})},r=[]}},[["3336","common/runtime","common/vendor"]]]);