You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
10 KiB
1 line
10 KiB
10 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-payment_on_behalf-index"],{"0e97":function(a,e,t){"use strict";t("7a82");var i=t("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(t("7c5c")),n=i(t("66ca")),s=i(t("b647")),o=i(t("03ff")),d=t("8ba8"),c=(t("989b"),t("666f")),u=t("26cb"),l={mixins:[n.default],components:{orderGoods:r.default,payment:s.default,home:o.default},computed:(0,u.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,order_id:""}},watch:{isLogin:{handler:function(a,e){1==a&&this.getDetail()},deep:!0}},onReady:function(){},onLoad:function(a){this.order_id=a.order_id},onShow:function(){this.isLogin?this.getDetail():(0,c.toLogin)()},methods:{payOpen:function(){this.pay_close=!0},getDetail:function(){var a=this,e=this;(0,d.friendDetail)(this.order_id).then((function(e){a.resData=e.data.info,a.resData.paid&&!a.resData.type&&a.goOrderDetail(),a.ShareInfo(a.resData)})).catch((function(a){e.$util.Tips({title:a},{tab:4,url:"/pages/index/index"})}))},ShareInfo:function(a){var e=location.href;if(this.$wechat.isWeixin()){var t={desc:this.$t("帮我付一下这件商品了,谢谢~"),title:this.$t("好友代付"),link:e,imgUrl:a.avatar};this.$wechat.wechatEvevt(["updateAppMessageShareData","updateTimelineShareData","onMenuShareAppMessage","onMenuShareTimeline"],t).then((function(a){})).catch((function(a){}))}},shareFriend:function(){this.shareModal=!0},onChangeFun:function(a){var e=a,t=e.action||null,i=void 0!=e.value?e.value:null;t&&this[t]&&this[t](i)},payClose:function(){this.pay_close=!1},pay_fail:function(){this.pay_close=!1},pay_complete:function(){this.pay_close=!1,this.getDetail(),uni.navigateTo({url:"/pages/users/payment_on_behalf/pay_status?order_id="+this.order_id})},goOrderDetail:function(){uni.navigateTo({url:"/pages/goods/order_details/index?order_id="+this.order_id})}}};e.default=l},1869:function(a,e,t){"use strict";t.r(e);var i=t("eccc"),r=t("48e6");for(var n in r)["default"].indexOf(n)<0&&function(a){t.d(e,a,(function(){return r[a]}))}(n);t("58d7");var s=t("f0c5"),o=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"b130e5a0",null,!1,i["a"],void 0);e["default"]=o.exports},"48e6":function(a,e,t){"use strict";t.r(e);var i=t("0e97"),r=t.n(i);for(var n in i)["default"].indexOf(n)<0&&function(a){t.d(e,a,(function(){return i[a]}))}(n);e["default"]=r.a},"58d7":function(a,e,t){"use strict";var i=t("dbac"),r=t.n(i);r.a},dbac:function(a,e,t){var i=t("ff99");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[a.i,i,""]]),i.locals&&(a.exports=i.locals);var r=t("4f06").default;r("043066ea",i,!0,{sourceMap:!1,shadowMode:!1})},eccc:function(a,e,t){"use strict";t.d(e,"b",(function(){return i})),t.d(e,"c",(function(){return r})),t.d(e,"a",(function(){}));var i=function(){var a=this,e=a.$createElement,i=a._self._c||e;return i("v-uni-view",{staticClass:"main",style:a.colorStyle},[a.resData.type||a.resData.paid?i("v-uni-view",{staticClass:"head-other"},[i("v-uni-view",{staticClass:"user-img"},[i("v-uni-image",{attrs:{src:a.resData.paid&&!a.resData.type&&a.resData.pay_uid===a.$store.state.app.uid?a.resData.pay_avatar:a.resData.avatar,mode:""}})],1),i("v-uni-view",{staticClass:"order-status"},[i("v-uni-view",{staticClass:"head-other-nickname"},[a._v(a._s(a.resData.paid&&!a.resData.type&&a.resData.pay_uid===a.$store.state.app.uid?a.resData.pay_nickname:a.resData.nickname))]),!a.resData.paid&&a.resData.type?i("v-uni-view",{staticClass:"head-other-trip"},[a._v(a._s(a.$t("帮我付一下这件商品了,谢谢~")))]):a._e(),a.resData.pay_uid!==a.$store.state.app.uid&&a.resData.paid&&a.resData.type?i("v-uni-view",{staticClass:"head-other-trip"},[a._v(a._s(a.$t("已经有人替我代付,谢谢啦~")))]):a._e(),a.resData.pay_uid===a.$store.state.app.uid&&a.resData.paid&&a.resData.type?i("v-uni-view",{staticClass:"head-other-trip"},[a._v(a._s(a.$t("谢谢你帮我支付,么么哒~
|