forked from php-danfu.shenzhenbenwo.com

lefengyang
2025-09-10 9753a88eceb52a0f2e3084cf72f3474d2d7d7f1b
1
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/payment_on_behalf/index"],{1258: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=[]},"16da":function(t,a,e){"use strict";e.r(a);var n=e("ee42"),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},"1d46":function(t,a,e){"use strict";var n=e("c433"),i=e.n(n);i.a},7506:function(t,a,e){"use strict";(function(t,a){var n=e("47a9");e("2ea2");n(e("3240"));var i=n(e("afed"));t.__webpack_require_UNI_MP_PLUGIN__=e,a(i.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},afed:function(t,a,e){"use strict";e.r(a);var n=e("1258"),i=e("16da");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(o);e("1d46");var r=e("828b"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"4a137e6c",null,!1,n["a"],void 0);a["default"]=s.exports},c433:function(t,a,e){},ee42:function(t,a,e){"use strict";(function(t){var n=e("47a9");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=n(e("0cf0")),o=e("a05e"),r=(e("9ad6"),e("d7f8")),s=e("8f59"),d={mixins:[i.default],components:{orderGoods:function(){e.e("components/orderGoods/index").then(function(){return resolve(e("a51a"))}.bind(null,e)).catch(e.oe)},payment:function(){Promise.all([e.e("common/vendor"),e.e("components/payment/index")]).then(function(){return resolve(e("4e69"))}.bind(null,e)).catch(e.oe)},home:function(){Promise.all([e.e("common/vendor"),e.e("components/home/index")]).then(function(){return resolve(e("05b1"))}.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?order_id="+this.oid})},goOrderDetail:function(){t.navigateTo({url:"/pages/goods/order_details/index?order_id="+this.order_id})}}};a.default=d}).call(this,e("df3c")["default"])}},[["7506","common/runtime","common/vendor"]]]);