1 line
7.6 KiB
JavaScript
1 line
7.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a3cb7cd"],{"0fc0":function(t,e,a){var i=a("4812");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("0f9b08c2",i,!0,{sourceMap:!1,shadowMode:!1})},"3df9":function(t,e,a){"use strict";a("0fc0")},4812:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".top-spare[data-v-e47b5438]{width:100%;height:2.75rem}.pay-box[data-v-e47b5438]{background-color:#fff;border-top:.0625rem solid #e2e2e2;padding:0 .75rem}.pay-box[data-v-e47b5438],.pay-box .order-info[data-v-e47b5438]{border-bottom:.0625rem solid #e2e2e2;width:100%}.pay-box .order-info[data-v-e47b5438]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.pay-box .order-info span[data-v-e47b5438]{line-height:2.75rem;text-align:start;font-size:14px;color:#333}.pay-box .pay-pro[data-v-e47b5438]{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-e47b5438]{-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-e47b5438]{width:100%;height:100%}.pay-box .pay-pro .title[data-v-e47b5438]{-webkit-box-flex:3;-webkit-flex:3;-ms-flex:3;flex:3;margin-left:.625rem;font-size:14px}.pay-box .pay-pro .title .top[data-v-e47b5438]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%}.pay-box .pay-pro .title .top .title-left[data-v-e47b5438]{-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-e47b5438]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right}.pay-box .pay-pro .title .bottom[data-v-e47b5438]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:.625rem;width:100%;color:#888}.pay-box .pay-pro .title .bottom .title-left[data-v-e47b5438]{-webkit-box-flex:3;-webkit-flex:3;-ms-flex:3;flex:3;text-align:left}.pay-box .pay-pro .title .bottom .title-right[data-v-e47b5438]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right}.pay-box .pay-sum[data-v-e47b5438]{line-height:2.75rem;text-align:right;font-size:14px}.pay-box .pay-sum .money[data-v-e47b5438]{font-weight:700;color:#f15353;font-size:18px}.massage-box[data-v-e47b5438]{border-bottom:.0625rem solid #e2e2e2;border-top:.0625rem solid #e2e2e2;margin-top:.25rem;background-color:#fff;width:100%;padding:1.25rem .625rem .625rem}.massage-box textarea[data-v-e47b5438]{background-color:#f9f9f9;border:.0625rem solid #e2e2e2;border-radius:.25rem;width:100%;line-height:1.5rem;height:6.25rem;color:#333;margin-top:1.25rem;padding-left:.375rem}.bottom-but[data-v-e47b5438]{padding:0 .9375rem}.bottom-but button[data-v-e47b5438]{border:none;width:100%;height:2.25rem;line-height:2.25rem;background-color:#f15353;border-radius:.25rem;color:#fff;font-size:14px;margin-top:.625rem}",""]),t.exports=e},"7ff7":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:"代付"}}),a("div",{staticClass:"pay-box"},[t._m(0),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(t._f("escapeTitle")(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"},[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.totalPrice))])])])],2),t.styleTwo?a("div",{staticClass:"massage-box"},[a("img",{attrs:{src:t.code_url,alt:""}})]):a("div",{staticClass:"massage-box"},[a("van-steps",{attrs:{active:0,"inactive-icon":"arrow","active-icon":"success"}},[a("van-step",[t._v("留言并分享")]),a("van-step",[t._v("好友参与并付款")]),a("van-step",[t._v("代付成功")])],1),a("textarea",{directives:[{name:"model",rawName:"v-model.lazy",value:t.shareContent,expression:"shareContent",modifiers:{lazy:!0}}],attrs:{name:"留言给好友",id:"",cols:"30",rows:"10"},domProps:{value:t.shareContent},on:{change:function(e){t.shareContent=e.target.value}}})],1),a("div",{staticClass:"bottom-but"},[t.isMiniprogram||5==t.fun.getTyep()?t._e():a("Button",{on:{click:t.shareTip}},[t._v("找小伙伴帮忙付款")]),t.isMiniprogram||5!=t.fun.getTyep()?t._e():a("Button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.another_pay_url,expression:"another_pay_url",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"}]},[t._v("找小伙伴帮忙付款")]),t.isMiniprogram?a("Button",{on:{click:t.miniPay}},[t._v("找小伙伴帮忙付款")]):t._e()],1)],1)},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"order-info"},[a("span",[t._v("订单信息")])])}],r=(a("e7e5"),a("d399")),s=(a("d3b7"),a("159b"),a("6968")),n={data:function(){return{goodList:[],totalNum:0,goodNum:0,totalPrice:0,shareContent:"",shareTit:"",shareUrl:"",shareImg:"",isMiniprogram:!1,another_pay_url:"",styleTwo:!1,code_url:""}},watch:{shareContent:function(t,e){t!=e&&(this.fun.isTextEmpty(t)||(this.another_pay_url=t+":"+this.shareUrl,this.fun.wxShare("",{},{title:this.shareTit,imgUrl:this.shareImg,description:t,link:this.shareUrl},(function(t){}))))}},methods:{getOrderDetail:function(){var t=this;$http.get("order.another-pay-detail",{order_id:this.$route.params.order_id,pid:window.localStorage.getItem("uid")}).then((function(e){if(1===e.result){t.getShareInfo(),t.goodList=e.data;var a=0;e.data.forEach((function(t){return a+=t.goods_total})),t.totalNum=a,t.getPrice()}else t.$dialog.alert({message:e.msg}),t.$router.go(-1)})).catch((function(t){}))},shareTip:function(){this.$dialog.alert({message:"请点击右上角分享!"})},onCopy:function(){Object(r["a"])({message:"复制成功",duration:3e3})},miniPay:function(){window.location.href=this.shareUrl},getShareInfo:function(){var t=this;window.isMiniprogram&&(this.isMiniprogram=!0),$http.get("member.member.anotherShare",{order_ids:this.$route.params.order_id}).then((function(e){1===e.result&&(t.shareTit=e.data.title,t.shareUrl=e.data.url,t.shareImg=e.data.img,t.shareContent=e.data.content,e.data.code_url&&(t.code_url=e.data.code_url),t.another_pay_url=t.shareContent+":"+t.shareUrl,t.fun.wxShare("",{},{title:t.shareTit,imgUrl:t.shareImg,description:t.shareContent,link:t.shareUrl},(function(t){})),t.fun.isCPS()&&window.history.replaceState("","",t.shareUrl))})).catch((function(t){}))},init:function(){this.goodList=[],this.totalNum=0,this.totalPrice=0,this.goodNum=0,this.shareContent="",this.shareTit="",this.shareUrl="",this.shareImg=""},getPrice:function(){var t=this;$http.get("order.merge-pay.anotherPayOrder",{order_ids:this.$route.params.order_id,pid:window.localStorage.getItem("uid")}).then((function(e){1===e.result&&(t.totalPrice=e.data.order_pay.amount)})).catch((function(t){}))}},activated:function(){this.init(),this.$route.params.style&&(this.styleTwo=!0),this.getOrderDetail()},components:{cTitle:s["a"]}},l=n,d=l,p=(a("3df9"),a("2877")),c=Object(p["a"])(d,i,o,!1,null,"e47b5438",null);e["default"]=c.exports}}]); |