index.js 4.7 KB

1
  1. require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/payment_on_behalf/index"],{"17f5":function(t,e,a){},2283:function(t,e,a){"use strict";a.r(e);var n=a("e78d"),i=a("d225");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("b6e7");var s=a("f0c5"),r=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"777880f4",null,!1,n["a"],void 0);e["default"]=r.exports},"49d2":function(t,e,a){"use strict";(function(t,e){var n=a("4ea4");a("4789");n(a("66fd"));var i=n(a("2283"));t.__webpack_require_UNI_MP_PLUGIN__=a,e(i.default)}).call(this,a("bc2e")["default"],a("543d")["createPage"])},b6e7:function(t,e,a){"use strict";var n=a("17f5"),i=a.n(n);i.a},d225:function(t,e,a){"use strict";a.r(e);var n=a("e23a"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},e23a:function(t,e,a){"use strict";(function(t){var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("19b6")),o=a("d1ea"),s=(a("00a0"),a("86eb")),r=a("26cb"),d={mixins:[i.default],components:{orderGoods:function(){a.e("components/orderGoods/index").then(function(){return resolve(a("cf6a"))}.bind(null,a)).catch(a.oe)},payment:function(){Promise.all([a.e("common/vendor"),a.e("components/payment/index")]).then(function(){return resolve(a("470a"))}.bind(null,a)).catch(a.oe)},home:function(){Promise.all([a.e("common/vendor"),a.e("components/home/index")]).then(function(){return resolve(a("3b71"))}.bind(null,a)).catch(a.oe)}},computed:(0,r.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,e){1==t&&this.getDetail()},deep:!0}},onReady:function(){},onLoad:function(t){this.oid=t.oid},onShow:function(){this.isLogin?this.getDetail():(0,s.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,e=this;(0,o.friendDetail)(this.oid).then((function(e){t.resData=e.data.info,t.order_id=e.data.info.order_id,t.resData.paid&&!t.resData.type&&t.goOrderDetail()})).catch((function(t){e.$util.Tips({title:t},{tab:4,url:"/pages/index/index"})}))},shareFriend:function(){},onChangeFun:function(t){var e=t,a=e.action||null,n=void 0!=e.value?e.value:null;a&&this[a]&&this[a](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?oid="+this.oid})}}};e.default=d}).call(this,a("543d")["default"])},e78d:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=(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,s=(t.resData.type||t.resData.paid)&&t.resData.pay_uid!==t.resData.uid&&t.resData.paid&&!t.resData.type?t.$t("我已为你代付成功,商家正在努力发货中~"):null,r=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(e){t.shareModal=!1},t.e1=function(e){t.shareModal=!1}),t.$mp.data=Object.assign({},{$root:{m0:a,m1:n,m2:i,m3:o,m4:s,m5:r,m6:d,m7:u,m8:l,m9:p,m10:c,m11:f,m12:D,m13:h}})},i=[]}},[["49d2","common/runtime","common/vendor"]]]);