require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/payment_on_behalf/index"],{2283:function(t,a,e){"use strict";e.r(a);var n=e("3229"),i=e("d225");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);e("f756");var r=e("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"3eae5536",null,!1,n["a"],void 0);a["default"]=s.exports},3229:function(t,a,e){"use strict";e.d(a,"b",(function(){return n})),e.d(a,"c",(function(){return i})),e.d(a,"a",(function(){}));var n=function(){var t=this,a=t.$createElement,e=(t._self._c,t.resData.type||t.resData.paid||t.resData.paid||t.resData.type?null:t.$t("代付订单创建成功,发给好友帮你付款吧~")),n=(t.resData.type||t.resData.paid)&&!t.resData.paid&&t.resData.type?t.$t("帮我付一下这件商品了,谢谢~"):null,i=(t.resData.type||t.resData.paid)&&t.resData.pay_uid!==t.$store.state.app.uid&&t.resData.paid&&t.resData.type?t.$t("已经有人替我代付,谢谢啦~"):null,o=(t.resData.type||t.resData.paid)&&t.resData.pay_uid===t.$store.state.app.uid&&t.resData.paid&&t.resData.type?t.$t("谢谢你帮我支付,么么哒~"):null,r=(t.resData.type||t.resData.paid)&&t.resData.pay_uid!==t.resData.uid&&t.resData.paid&&!t.resData.type?t.$t("我已为你代付成功,商家正在努力发货中~"):null,s=t.resData.paid&&!t.resData.type?t.$t("好友代付成功,商家正在努力发货中~"):null,d=!t.resData.paid||t.resData.type?t.$t("代付金额"):null,u=!t.resData.paid||t.resData.type?t.$t("¥"):null,l=t.resData.paid||t.resData.type?null:t.$t("发送给微信好友"),p=t.resData.paid||t.resData.type?null:t.$t("查看订单详情"),c=!t.resData.paid&&t.resData.type?t.$t("立即付款"):null,f=t.resData.paid&&t.resData.type?t.$t("订单已支付"):null,D=t.resData.paid&&!t.resData.type?t.$t("查看订单详情"):null,h=t.resData.pay_uid===t.$store.state.app.uid&&t.resData.type?t.$t("如果订单申请退款,已支付金额将原路退还给您"):null;t._isMounted||(t.e0=function(a){t.shareModal=!1},t.e1=function(a){t.shareModal=!1}),t.$mp.data=Object.assign({},{$root:{m0:e,m1:n,m2:i,m3:o,m4:r,m5:s,m6:d,m7:u,m8:l,m9:p,m10:c,m11:f,m12:D,m13:h}})},i=[]},"49d2":function(t,a,e){"use strict";(function(t,a){var n=e("4ea4");e("4789");n(e("66fd"));var i=n(e("2283"));t.__webpack_require_UNI_MP_PLUGIN__=e,a(i.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},d225:function(t,a,e){"use strict";e.r(a);var n=e("e23a"),i=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(o);a["default"]=i.a},d31a:function(t,a,e){},e23a:function(t,a,e){"use strict";(function(t){var n=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=n(e("19b6")),o=e("d1ea"),r=(e("00a0"),e("86eb")),s=e("26cb"),d={mixins:[i.default],components:{orderGoods:function(){e.e("components/orderGoods/index").then(function(){return resolve(e("cf6a"))}.bind(null,e)).catch(e.oe)},payment:function(){Promise.all([e.e("common/vendor"),e.e("components/payment/index")]).then(function(){return resolve(e("470a"))}.bind(null,e)).catch(e.oe)},home:function(){Promise.all([e.e("common/vendor"),e.e("components/home/index")]).then(function(){return resolve(e("3b71"))}.bind(null,e)).catch(e.oe)}},computed:(0,s.mapGetters)(["isLogin"]),data:function(){return{shareModal:!1,cartInfo:[],resData:{},payMode:[{name:this.$t("微信支付"),icon:"icon-weixinzhifu",value:"weixin",title:this.$t("使用微信快捷支付"),payStatus:!0}],pay_close:!1,oid:"",order_id:""}},watch:{isLogin:{handler:function(t,a){1==t&&this.getDetail()},deep:!0}},onReady:function(){},onLoad:function(t){this.oid=t.oid},onShow:function(){this.isLogin?this.getDetail():(0,r.toLogin)()},onShareAppMessage:function(){return{title:"",imageUrl:"",path:"/pages/users/payment_on_behalf/index?oid="+this.oid+"&spread="+this.$store.state.app.uid}},methods:{payOpen:function(){this.pay_close=!0},getDetail:function(){var t=this,a=this;(0,o.friendDetail)(this.oid).then((function(a){t.resData=a.data.info,t.order_id=a.data.info.order_id,t.resData.paid&&!t.resData.type&&t.goOrderDetail()})).catch((function(t){a.$util.Tips({title:t},{tab:4,url:"/pages/index/index"})}))},shareFriend:function(){},onChangeFun:function(t){var a=t,e=a.action||null,n=void 0!=a.value?a.value:null;e&&this[e]&&this[e](n)},payClose:function(){this.pay_close=!1},pay_fail:function(){this.pay_close=!1},pay_complete:function(){this.pay_close=!1,this.getDetail(),t.navigateTo({url:"/pages/users/payment_on_behalf/pay_status?oid="+this.oid})},goOrderDetail:function(){t.navigateTo({url:"/pages/goods/order_details/index?order_id="+this.order_id})}}};a.default=d}).call(this,e("543d")["default"])},f756:function(t,a,e){"use strict";var n=e("d31a"),i=e.n(n);i.a}},[["49d2","common/runtime","common/vendor"]]]);