1 line
7.9 KiB
JavaScript
1 line
7.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9c5f5dd2"],{"0260":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"pay-another"}},[a("c-title",{attrs:{hide:!1,text:"代付详情"}}),1==t.share_type?a("div",{staticClass:"detail-box"},[a("div",{staticClass:"detail-top"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:t.payerImg}})]),a("span",[t._v(t._s(t.payerName)+" 请您帮忙代付一笔订单")])]),a("h1",[t._v(t._s(t.$i18n.t("money"))+t._s(t.money))]),a("div",{staticClass:"line"}),a("h2",[t._v("好友代付说明")]),t._m(0)]):t._e(),a("div",{staticClass:"pay-box"},[1==t.share_type?a("div",{staticClass:"order-info"},[a("span",[t._v("订单信息")])]):t._e(),t._l(t.goodList,(function(e,i){return a("div",{key:i},t._l(e.has_many_order_goods,(function(e,i){return a("div",{key:i,staticClass:"pay-pro"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:e.thumb}})]),a("div",{staticClass:"title"},[a("div",{staticClass:"top"},[a("span",{staticClass:"title-left"},[t._v(t._s(e.title))]),a("br"),a("span",{staticClass:"title-right"},[t._v(t._s(t.$i18n.t("money"))+t._s(e.price))]),a("br")]),a("div",{staticClass:"bottom_spec"},[a("span",{staticClass:"title-left"},[t._v("规格:"+t._s(e.goods_option_title))]),a("br"),a("span",{staticClass:"title-right"},[t._v("X"+t._s(e.total))])])])])})),0)})),a("div",{staticClass:"pay-sum"},[a("span",[t._v("共"+t._s(t.totalNum)+"件商品 实付:"+t._s(t.$i18n.t("money"))),a("span",{staticClass:"money"},[t._v(t._s(t.money))])])])],2),t.isMiniprogram?a("div",{staticClass:"pay-btn"},[a("Button",{staticClass:"dai-btn",on:{click:t.miniPay}},[t._v("点击右上角分享给好友吧")])],1):t._e(),a("div",{staticStyle:{background:"#fff"}},[t.btns.length>0?a("yz_pay",{attrs:{popupSpecs:t.popupSpecs,showQR:t.showQR,qrcode:t.qrcode,payType:t.btns},on:{submit:t.confirm,changePopupSpecs:t.changePopupSpecs,balancePay:t.balancePay}}):t._e()],1)],1)},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",[a("li",{staticStyle:{color:"#f15353","font-weight":"bold"}},[t._v("代付前请和好友确认核实订单详情,以免下错订单")])])}],r=(a("07ac"),a("14d9"),a("d3b7"),a("159b"),a("fa44")),d=a("dca4"),s={mixins:[d["a"]],data:function(){return{payerImg:"",payerName:"",goodList:[],totalNum:0,money:0,btns:[],order_pay_id:"",order_sn:"",popupSpecs:!1,isMiniprogram:!1,share_type:1}},methods:{getPayerInfo:function(){var t=this;$http.get("order.merge-pay.anotherPayOrder",{order_ids:this.$route.query.order_ids,mid:this.$route.query.mid,pid:this.$route.query.pid?this.$route.query.pid:window.localStorage.getItem("uid")}).then((function(e){if(1==e.result){t.payerImg=e.data.member.avatar,t.payerName=e.data.member.nickname;var a=e.data.buttons;!e.data.buttons||e.data.buttons instanceof Array||(a=Object.values(e.data.buttons)),t.btns=a,t.order_pay_id=e.data.order_pay.id,t.money=e.data.order_pay.amount}else 0==e.result&&t.$dialog.alert({message:e.msg}).then((function(){t.$router.push(t.fun.getUrl("home"))}))})).catch((function(t){}))},getOrderDetail:function(){var t=this;$http.get("order.another-pay-detail",{order_id:this.$route.query.order_ids,pid:this.$route.query.pid?this.$route.query.pid:window.localStorage.getItem("uid")}).then((function(e){if(1==e.result){t.goodList=e.data;var a=0;e.data.forEach((function(t){return a+=t.goods_total})),t.totalNum=a,t.order_sn=e.data[0].order_sn}else t.$dialog.alert({message:e.msg}),t.$router.push(t.fun.getUrl("home"))})).catch((function(t){}))},miniPay:function(){this.$dialog.alert({message:"请点击右上角分享!"})},initData:function(){this.payerImg="",this.goodList=[],this.payerName="",this.totalNum=0,this.money=0,this.btns=[],this.order_pay_id=""}},activated:function(){window.isMiniprogram&&(this.isMiniprogram=!0),this.$route.query.share_type&&(this.share_type=this.$route.query.share_type),this.initData(),this.getPayerInfo(),this.getOrderDetail()},components:{yz_pay:r["a"]}},l=s,n=l,p=(a("17bb"),a("2877")),c=Object(p["a"])(n,i,o,!1,null,"e91d1fac",null);e["default"]=c.exports},"17bb":function(t,e,a){"use strict";a("42b1")},"42b1":function(t,e,a){var i=a("ace6");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("47164853",i,!0,{sourceMap:!1,shadowMode:!1})},9218:function(t,e,a){t.exports=a.p+"static/app/img/consume_packet.af6936ca.png"},ace6:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#pay-another[data-v-e91d1fac]{padding-bottom:3rem}.ispaskey .van-number-keyboard[data-v-e91d1fac]{position:relative}.top-spare[data-v-e91d1fac]{width:100%;height:2.75rem}.detail-box[data-v-e91d1fac]{border-top:.0625rem solid #e2e2e2;border-bottom:.0625rem solid #e2e2e2;padding:.625rem;width:100%;background-color:#fff}.detail-box .detail-top[data-v-e91d1fac]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.detail-box .detail-top .img[data-v-e91d1fac]{width:3rem;height:3rem;background-color:#888;border-radius:50%;margin-right:.625rem}.detail-box .detail-top .img img[data-v-e91d1fac]{width:100%;height:100%;overflow:hidden;border-radius:50%}.detail-box .detail-top span[data-v-e91d1fac]{line-height:3rem;-webkit-box-flex:3;-webkit-flex:3;-ms-flex:3;flex:3;text-align:left}.detail-box h1[data-v-e91d1fac]{font-size:24px;color:#f15353;font-weight:700;margin:20px 0}.detail-box .line[data-v-e91d1fac]{width:100%;height:.0625rem;background-color:#e2e2e2;margin-bottom:.25rem}.detail-box h2[data-v-e91d1fac]{line-height:1.75rem}.detail-box h2[data-v-e91d1fac],.detail-box ul[data-v-e91d1fac]{text-align:left}.pay-box[data-v-e91d1fac]{border-top:.0625rem solid #e2e2e2;background-color:#fff;padding:0 .75rem;margin-top:.25rem}.pay-box[data-v-e91d1fac],.pay-box .order-info[data-v-e91d1fac]{border-bottom:.0625rem solid #e2e2e2;width:100%}.pay-box .order-info[data-v-e91d1fac]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.pay-box .order-info span[data-v-e91d1fac]{line-height:2.75rem;text-align:start;font-size:14px;color:#333}.pay-box .pay-pro[data-v-e91d1fac]{width:100%;margin-top:.75rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-bottom:.0625rem solid #e2e2e2;padding-bottom:.75rem}.pay-box .pay-pro .img[data-v-e91d1fac]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:4rem;height:5.5rem;background-color:green}.pay-box .pay-pro .img img[data-v-e91d1fac]{width:100%;height:100%}.pay-box .pay-pro .title[data-v-e91d1fac]{-webkit-box-flex:3;-webkit-flex:3;-ms-flex:3;flex:3;margin-left:.5rem}.pay-box .pay-pro .title .top[data-v-e91d1fac]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%}.pay-box .pay-pro .title .top .title-left[data-v-e91d1fac]{-webkit-box-flex:3;-webkit-flex:3;-ms-flex:3;flex:3;text-align:left}.pay-box .pay-pro .title .top .title-right[data-v-e91d1fac]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right}.pay-box .pay-pro .title .bottom_spec[data-v-e91d1fac]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:.625rem;width:100%;color:#888}.pay-box .pay-pro .title .bottom_spec .title-left[data-v-e91d1fac]{-webkit-box-flex:3;-webkit-flex:3;-ms-flex:3;flex:3;text-align:left}.pay-box .pay-pro .title .bottom_spec .title-right[data-v-e91d1fac]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right}.pay-box .pay-sum[data-v-e91d1fac]{line-height:2.75rem;text-align:right;font-size:14px}.pay-box .pay-sum .money[data-v-e91d1fac]{font-weight:700;color:#f15353;font-size:16px}.pay-btn[data-v-e91d1fac]{margin:.625rem .75rem}.pay-btn button[data-v-e91d1fac]{border:none;width:100%;height:2.25rem;border-radius:.25rem;color:#fff;font-size:14px}.wei-btn[data-v-e91d1fac]{background-color:#13ce66}.zhi-btn[data-v-e91d1fac]{background-color:#46b4ed}.yu-btn[data-v-e91d1fac]{background-color:#f15353}.dai-btn[data-v-e91d1fac]{background-color:#36db36}",""]),t.exports=e},e236:function(t,e,a){t.exports=a.p+"static/app/img/alipay-bg.64de79e8.png"}}]); |