pages-users-payment_on_behalf-index.ece26d11.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-payment_on_behalf-index"],{"0f2e":function(a,t,e){"use strict";var i=e("2a31"),n=e.n(i);n.a},2283:function(a,t,e){"use strict";e.r(t);var i=e("b8ed"),n=e("d225");for(var r in n)["default"].indexOf(r)<0&&function(a){e.d(t,a,(function(){return n[a]}))}(r);e("0f2e");var s=e("f0c5"),o=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"2bb4767c",null,!1,i["a"],void 0);t["default"]=o.exports},"2a31":function(a,t,e){var i=e("aa89");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[a.i,i,""]]),i.locals&&(a.exports=i.locals);var n=e("4f06").default;n("edcad5f0",i,!0,{sourceMap:!1,shadowMode:!1})},"95b8":function(a,t,e){a.exports=e.p+"static/img/share-info2.06c85b52.png"},a4ec:function(a,t,e){"use strict";e("7a82");var i=e("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(e("cf6a")),r=i(e("19b6")),s=i(e("470a")),o=i(e("3b71")),d=e("d1ea"),c=(e("00a0"),e("86eb")),u=e("26cb"),l={mixins:[r.default],components:{orderGoods:n.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,oid:"",order_id:""}},watch:{isLogin:{handler:function(a,t){1==a&&this.getDetail()},deep:!0}},onReady:function(){},onLoad:function(a){this.oid=a.oid},onShow:function(){this.isLogin?this.getDetail():(0,c.toLogin)()},methods:{payOpen:function(){this.pay_close=!0},getDetail:function(){var a=this,t=this;(0,d.friendDetail)(this.oid).then((function(t){a.resData=t.data.info,a.order_id=t.data.info.order_id,a.resData.paid&&!a.resData.type&&a.goOrderDetail(),a.ShareInfo(a.resData)})).catch((function(a){t.$util.Tips({title:a},{tab:4,url:"/pages/index/index"})}))},ShareInfo:function(a){var t=location.href;if(this.$wechat.isWeixin()){var e={desc:this.$t("帮我付一下这件商品了,谢谢~"),title:this.$t("好友代付"),link:t,imgUrl:a.avatar};this.$wechat.wechatEvevt(["updateAppMessageShareData","updateTimelineShareData","onMenuShareAppMessage","onMenuShareTimeline"],e).then((function(a){})).catch((function(a){}))}},shareFriend:function(){this.shareModal=!0},onChangeFun:function(a){var t=a,e=t.action||null,i=void 0!=t.value?t.value:null;e&&this[e]&&this[e](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?oid="+this.oid})},goOrderDetail:function(){uni.navigateTo({url:"/pages/goods/order_details/index?oid="+this.oid})}}};t.default=l},aa89:function(a,t,e){var i=e("24fb");t=i(!1),t.push([a.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.main[data-v-2bb4767c]{background-color:#f5f5f5}.main .head[data-v-2bb4767c]{background-color:var(--view-theme);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:%?60?% 0 %?62?% 0}.main .head .user-img uni-image[data-v-2bb4767c]{width:%?68?%;height:%?68?%;border-radius:50%}.main .head .order-status[data-v-2bb4767c]{margin-top:%?20?%;font-size:%?28?%;color:#fff}.main .head-other[data-v-2bb4767c]{background-color:var(--view-theme);display:flex;align-items:center;padding:%?60?% 0 %?60?% %?30?%}.main .head-other .user-img[data-v-2bb4767c]{display:flex;align-items:center}.main .head-other .user-img uni-image[data-v-2bb4767c]{width:%?100?%;height:%?100?%;border-radius:50%}.main .head-other .order-status[data-v-2bb4767c]{margin-left:%?20?%;color:#fff;display:flex;flex-direction:column;justify-content:space-between;height:%?100?%;position:relative}.main .head-other .order-status .head-other-nickname[data-v-2bb4767c]{font-size:%?28?%}.main .head-other .order-status .head-other-trip[data-v-2bb4767c]{padding:%?6?% %?13?%;font-size:%?26?%;background-color:hsla(0,0%,100%,.2);border-radius:%?6?%}.main .head-other .order-status .head-other-trip[data-v-2bb4767c]::after{content:"";width:%?0?%;height:%?0?%;border:%?10?% solid hsla(0,0%,100%,.2);border-bottom:%?10?% solid transparent;border-left:%?10?% solid transparent;border-top:%?10?% solid transparent;position:absolute;left:%?-20?%;bottom:%?15?%}.main .order-msg[data-v-2bb4767c]{background-color:#fff;border-radius:%?14?% %?14?% 0 0;display:flex;flex-direction:column;align-items:center;padding:%?40?% 0;margin:%?-30?% %?30?% 0 %?30?%}.main .order-msg .pay--box[data-v-2bb4767c]{text-align:center}.main .order-msg .pay-success[data-v-2bb4767c]{font-size:%?30?%;color:#333;font-weight:700}.main .order-msg .order-num[data-v-2bb4767c]{font-size:%?66?%;color:#333;font-weight:700}.main .order-msg .order-num .icon[data-v-2bb4767c]{font-size:%?30?%}.main .order-msg .order-btn[data-v-2bb4767c]{width:90%;background-color:var(--view-theme);border-radius:%?80?%;padding:%?26?% 0;color:#fff;font-size:%?30?%;text-align:center;margin-top:%?60?%}.main .order-msg .order-btn.detail[data-v-2bb4767c]{margin-top:%?20?%;color:var(--view-theme);background-color:#fff;border:1px solid var(--view-theme)}.main .order-msg .order-btn.on-pay[data-v-2bb4767c]{background-color:#ccc}.main .order-msg .order-trip[data-v-2bb4767c]{color:#999;font-size:%?26?%;margin-top:%?32?%}.main .order-list[data-v-2bb4767c]{margin:%?30?%;border-radius:%?14?%;overflow:hidden}.main .order-list .orderGoods[data-v-2bb4767c]{margin-top:0}.main .order-list[data-v-2bb4767c] .text .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.main .share-box[data-v-2bb4767c]{z-index:1000;position:fixed;left:0;top:0;width:100%;height:100%}.main .share-box uni-image[data-v-2bb4767c]{width:100%;height:100%}',""]),a.exports=t},b8ed:function(a,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return n})),e.d(t,"a",(function(){}));var i=function(){var a=this,t=a.$createElement,i=a._self._c||t;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("谢谢你帮我支付,么么哒~")))]):a._e(),a.resData.pay_uid!==a.resData.uid&&a.resData.paid&&!a.resData.type?i("v-uni-view",{staticClass:"head-other-trip"},[a._v(a._s(a.$t("我已为你代付成功,商家正在努力发货中~")))]):a._e()],1)],1):i("v-uni-view",{staticClass:"head"},[i("v-uni-view",{staticClass:"user-img"},[i("v-uni-image",{attrs:{src:a.resData.avatar,mode:""}})],1),a.resData.paid||a.resData.type?a._e():i("v-uni-view",{staticClass:"order-status"},[a._v(a._s(a.$t("代付订单创建成功,发给好友帮你付款吧~")))])],1),i("v-uni-view",{staticClass:"order-msg"},[a.resData.paid&&!a.resData.type?i("v-uni-view",{staticClass:"pay-success"},[a._v(a._s(a.$t("好友代付成功,商家正在努力发货中~")))]):i("v-uni-view",{staticClass:"pay--box"},[i("v-uni-view",{staticClass:"order-top"},[a._v(a._s(a.$t("代付金额")))]),i("v-uni-view",{staticClass:"order-num"},[i("v-uni-text",{staticClass:"icon"},[a._v(a._s(a.$t("¥")))]),a._v(a._s(a.resData.pay_price||0))],1)],1),a.resData.paid||a.resData.type?a._e():i("v-uni-view",{staticClass:"order-btn",on:{click:function(t){arguments[0]=t=a.$handleEvent(t),a.shareFriend.apply(void 0,arguments)}}},[a._v(a._s(a.$t("发送给微信好友")))]),a.resData.paid||a.resData.type?a._e():i("v-uni-button",{staticClass:"order-btn detail",on:{click:function(t){arguments[0]=t=a.$handleEvent(t),a.goOrderDetail()}}},[a._v(a._s(a.$t("查看订单详情")))]),!a.resData.paid&&a.resData.type?i("v-uni-button",{staticClass:"order-btn",on:{click:function(t){arguments[0]=t=a.$handleEvent(t),a.payOpen()}}},[a._v(a._s(a.$t("立即付款")))]):a._e(),a.resData.paid&&a.resData.type?i("v-uni-button",{staticClass:"order-btn on-pay"},[a._v(a._s(a.$t("订单已支付")))]):a._e(),a.resData.paid&&!a.resData.type?i("v-uni-button",{staticClass:"order-btn",on:{click:function(t){arguments[0]=t=a.$handleEvent(t),a.goOrderDetail()}}},[a._v(a._s(a.$t("查看订单详情")))]):a._e(),a.resData.pay_uid===a.$store.state.app.uid&&a.resData.type?i("v-uni-view",{staticClass:"order-trip"},[a._v(a._s(a.$t("如果订单申请退款,已支付金额将原路退还给您")))]):a._e()],1),i("v-uni-view",{staticClass:"order-list"},[i("orderGoods",{attrs:{cartInfo:a.resData.cartInfo,is_confirm:!0,pay_price:a.resData.pay_price,is_behalf:!(!a.resData.paid||a.resData.type)}})],1),a.shareModal?i("v-uni-view",{staticClass:"share-box"},[i("v-uni-image",{attrs:{src:e("95b8")},on:{click:function(t){arguments[0]=t=a.$handleEvent(t),a.shareModal=!1}}})],1):a._e(),i("payment",{attrs:{payMode:a.payMode,pay_close:a.pay_close,friendPay:!0,order_id:a.order_id,totalPrice:a.resData.pay_price},on:{onChangeFun:function(t){arguments[0]=t=a.$handleEvent(t),a.onChangeFun.apply(void 0,arguments)}}}),i("home")],1)},n=[]},d225:function(a,t,e){"use strict";e.r(t);var i=e("a4ec"),n=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(a){e.d(t,a,(function(){return i[a]}))}(r);t["default"]=n.a}}]);