Files
repo-backend/public/static/js/4.40972a520d235e3b9af6.js
2026-04-29 07:00:00 +08:00

2 lines
9.9 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
webpackJsonp([4],{"6y+U":function(t,s){},"q/5l":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=e("bOdI"),i=e.n(a),n={data:function(){var t;return t={msg:"",user:"",token:"",showConfirm:!1,showCancel:!1,hasPay:!1,showPay:!1,id:""},i()(t,"msg",{}),i()(t,"src",""),i()(t,"password",""),i()(t,"timer","--"),t},filters:{toFixeds:function(t){return(t=Number(t)).toFixed(3)}},created:function(){var t=window.localStorage.getItem("token")||"";t&&(this.token=t,this.id=this.$route.query.id||"",this.getMsg())},methods:{checkTime:function(t){return t<10&&(t="0"+t),t},downTime:function(t){var s=this,e=Date.parse(new Date)/1e3;t=t;setInterval(function(){var a=t-e,i=parseInt(a/60/60%24,10),n=parseInt(a/60%60,10),_=parseInt(a%60,10);i=s.checkTime(i),n=s.checkTime(n),_=s.checkTime(_),a>0?(s.timer=i+"时"+n+"分"+_+"秒",e++):a<0&&(s.timer="00:00:00")},1e3)},apply:function(){this.$http({url:"/api/legal/arbitrate",method:"post",data:{id:this.id},headers:{Authorization:this.token}}).then(function(t){layer.msg(t.data.message),"ok"==t.data.type&&setTimeout(function(){location.reload()},1e3)})},getMsg:function(){var t=this,s=layer.load();this.$http({url:"/api/legal_deal",params:{id:this.id},headers:{Authorization:this.token}}).then(function(e){if(layer.close(s),"ok"==e.data.type){t.msg=e.data.message,t.user=e.data.message.user_cash_info;var a,i=e.data.message;if("buy"==i.type&&0==i.is_sure)a=new Date(i.payment_at.replace(/-/g,"/")).getTime()/1e3,t.downTime(a);if("sell"==i.type&&3==i.is_sure)a=new Date(i.comp_at.replace(/-/g,"/")).getTime()/1e3,t.downTime(a)}})},getData:function(){var t=this,s=layer.load();this.$http({url:"/api/legal_deal",params:{id:this.id},headers:{Authorization:this.token}}).then(function(e){layer.close(s),"ok"==e.data.type&&(t.msg=e.data.message)})},cancel:function(){var t=this;t.showCancel=!1,layer.prompt({title:t.$t("td.pwd"),formType:1,btn:[t.$t("td.confirm"),t.$t("td.canceil")]},function(s,e){t.password=s,t.$http({url:"/api/user_legal_pay_cancel",method:"post",data:{id:t.id,password:t.password},headers:{Authorization:t.token}}).then(function(s){layer.msg(s.data.message),t.showCancel=!1,"ok"==s.data.type&&location.reload()}),layer.close(e)})},confirm:function(){var t=this;t.showConfirm=!1,layer.prompt({title:t.$t("td.pwd"),formType:1,btn:[t.$t("td.confirm"),t.$t("td.canceil")]},function(s,e){t.password=s,t.$http({url:"/api/legal_deal_sure",method:"post",data:{id:t.id,password:t.password},headers:{Authorization:t.token}}).then(function(t){layer.msg(t.data.message),"ok"==t.data.type&&setTimeout(function(){location.reload()},1e3)}).then(function(){t.showConfirm=!1}),layer.close(e)})},file:function(){var t=this,s=new FormData;s.append("file",$("#file")[0].files[0]);var e=layer.load();$.ajax({url:"/api/upload",type:"post",data:s,processData:!1,contentType:!1,success:function(s){layer.close(e),"ok"==s.type&&(t.src=s.message,t.src?t.showPay=!0:layer.msg("图片上传失败"))}})},confirmPay:function(){var t=this;t.showPay=!1,layer.prompt({title:t.$t("td.pwd"),formType:1,btn:[t.$t("td.confirm"),t.$t("td.canceil")]},function(s,e){t.password=s,t.$http({url:"/api/user_legal_pay",method:"post",data:{id:t.id,password:t.password},headers:{Authorization:t.token}}).then(function(t){layer.msg(t.data.message),"ok"==t.data.type&&setTimeout(function(){location.reload()},2e3)}).then(function(){t.showPay=!1}),layer.close(e)})},evimgs:function(t){return layer.open({type:1,area:["375px","500px"],title:"",shade:.6,anim:1,content:"<img src='"+t+"' alt='' class='openimg'>",btn:["关闭"],yes:function(t){layer.close(t)}})}}},_={render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"whites",attrs:{id:"legal-pay-detail"}},[e("div",{staticClass:"title bg-part radius4"},[0==t.msg.is_sure?e("span",[t._v(t._s(t.$t("td.nofinish")))]):t._e(),t._v(" "),1==t.msg.is_sure?e("span",[t._v(t._s(t.$t("td.finished")))]):t._e(),t._v(" "),2==t.msg.is_sure?e("span",[t._v(t._s(t.$t("td.ceiled")))]):t._e(),t._v(" "),3==t.msg.is_sure?e("span",[t._v(t._s(t.$t("td.payed")))]):t._e(),t._v(" "),4==t.msg.is_sure?e("span",[t._v(t._s(t.$t("fat.protection")))]):t._e(),t._v(" "),0==t.msg.is_sure?e("div",[t._v(t._s(t.$t("fat.pwaitPay")))]):t._e(),t._v(" "),1==t.msg.is_sure?e("div",[t._v(t._s(t.$t("fat.odFinish")))]):t._e(),t._v(" "),2==t.msg.is_sure?e("div",[t._v(t._s(t.$t("fat.odCeil")))]):t._e(),t._v(" "),3==t.msg.is_sure?e("div",[t._v(t._s(t.$t("fat.payedWait")))]):t._e()]),t._v(" "),e("div",{staticClass:"info bg-part ft14 radius4"},[e("div",[e("span",[t._v(t._s(t.$t("td.tradeTotal"))+"")]),t._v(" "),e("span",[t._v(t._s(t._f("toFixeds")(t.msg.deal_money||"0.000"))+" "+t._s(t.msg.coin_code))])]),t._v(" "),0==t.msg.is_seller?e("div",{staticClass:"column"},[e("div",[e("span",[t._v(t._s(t.$t("td.seller"))+":")]),t._v(" "),"buy"==t.msg.type?e("span",[t._v(t._s(t.user.account_number))]):e("span",[t._v(t._s(t.msg.seller_name))])]),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("fat.bank"))+":")]),t._v(" "),e("span",[t._v(t._s(t.user.bank_name)+":"+t._s(t.user.bank_account))])]),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("fat.alipay"))+":")]),t._v(" "),e("span",[t._v(t._s(t.user.alipay_account))])]),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("fat.wechat"))+":")]),t._v(" "),e("span",[t._v(t._s(t.user.wechat_account))])]),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("fat.realName"))+":")]),t._v(" "),e("span",[t._v(t._s(t.user.real_name))])])]):t._e(),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("td.price"))+"")]),t._v(" "),e("span",[t._v(t._s(t._f("toFixeds")(t.msg.price||"0.000"))+" "+t._s(t.msg.coin_code))])]),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("td.num"))+"")]),t._v(" "),e("span",[t._v(t._s(t._f("toFixeds")(t.msg.number||"0.000")))])]),t._v(" "),"sell"==t.msg.type?e("div",[e("span",[t._v(t._s(t.$t("auth.name"))+"")]),t._v(" "),e("span",[t._v(t._s(t.user.real_name))])]):t._e(),t._v(" "),"sell"==t.msg.type?e("div",[e("span",[t._v(t._s(t.$t("lever.rate"))+"")]),t._v(" "),e("span",[t._v(t._s(t.msg.out_fee))])]):t._e(),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("td.placeTime"))+"")]),t._v(" "),e("span",[t._v(t._s(t.msg.format_create_time))])]),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("td.callWay"))+"")]),t._v(" "),e("span",[t._v(t._s("sell"==t.msg.type?t.msg.phone:t.msg.seller_phone))])]),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("td.renum"))+"")]),t._v(" "),e("span",[t._v(t._s(t.msg.id))])]),t._v(" "),"buy"==t.msg.type?e("div",["微信"==t.msg.way_name?e("div",{staticClass:"flex alcenter"},[e("span",[t._v(t._s(t.$t("td.paycode"))+"")]),t._v(" "),e("img",{staticClass:"mt10 ",staticStyle:{width:"150px"},attrs:{src:t.msg.user_cash_info.wechat_collect,alt:""}})]):t._e(),t._v(" "),"支付宝"==t.msg.way_name?e("div",{staticClass:"flex alcenter"},[e("span",[t._v(t._s(t.$t("td.paycode"))+"")]),t._v(" "),e("img",{staticClass:"mt10",staticStyle:{width:"150px"},attrs:{src:t.msg.user_cash_info.alipay_collect,alt:""}})]):t._e()]):t._e(),t._v(" "),"sell"==t.msg.type?e("div",["微信"==t.msg.way_name?e("div",{staticClass:"flex alcenter"},[e("span",[t._v(t._s(t.$t("td.paycode"))+"")]),t._v(" "),e("img",{staticClass:"mt10 ",staticStyle:{width:"150px"},attrs:{src:t.msg.sell_info.wechat_collect,alt:""}})]):t._e(),t._v(" "),"支付宝"==t.msg.way_name?e("div",{staticClass:"flex alcenter"},[e("span",[t._v(t._s(t.$t("td.paycode"))+"")]),t._v(" "),e("img",{staticClass:"mt10",staticStyle:{width:"150px"},attrs:{src:t.msg.sell_info.alipay_collect,alt:""}})]):t._e()]):t._e(),t._v(" "),0==t.msg.is_sure&&"buy"==t.msg.type?e("div",{staticClass:"ptb10"},[t._v("请在 "),e("a",{staticClass:"redColor plr5",attrs:{href:"javascript:;"}},[t._v(t._s(t.timer))]),t._v(" 内付款")]):t._e(),t._v(" "),3==t.msg.is_sure&&"sell"==t.msg.type?e("div",{staticClass:"ptb10"},[t._v("请在 "),e("a",{staticClass:"redColor plr5",attrs:{href:"javascript:;"}},[t._v(t._s(t.timer))]),t._v(" 内收款")]):t._e(),t._v(" "),e("div",{staticClass:"btns"},[0==t.msg.is_sure&&"buy"==t.msg.type?e("div",{staticClass:"btn cancelBtn",on:{click:function(s){t.showCancel=!0}}},[t._v(t._s(t.$t("fat.odCeil")))]):t._e(),t._v(" "),3==t.msg.is_sure&&"sell"==t.msg.type?e("div",{staticClass:"btn",on:{click:function(s){t.showConfirm=!0}}},[t._v(t._s(t.$t("fat.receivePays")))]):t._e(),t._v(" "),0==t.msg.is_sure&&"buy"==t.msg.type?e("div",{staticClass:"btn imgbtn",on:{click:function(s){t.showPay=!0}}},[t._v("\n "+t._s(t.$t("fat.imPay"))+"\n ")]):t._e(),t._v(" "),3==t.msg.is_sure&&"sell"==t.msg.type?e("div",{staticClass:"btn",on:{click:t.apply}},[t._v(t._s(t.$t("fat.apply")))]):t._e()])]),t._v(" "),t.showCancel?e("div",{staticClass:"cancel-box white"},[e("div",{staticClass:"content"},[e("div",[t._v(t._s(t.$t("fat.tdCeil")))]),t._v(" "),e("div",[t._v(t._s(t.$t("fat.pCeil")))]),t._v(" "),e("div",{staticClass:"yes-no flex"},[e("div",{on:{click:function(s){t.showCancel=!1}}},[t._v(t._s(t.$t("td.canceil")))]),t._v(" "),e("div",{on:{click:t.cancel}},[t._v(t._s(t.$t("td.confirm")))])])])]):t._e(),t._v(" "),t.showConfirm?e("div",{staticClass:"confirm-box"},[e("div",{staticClass:"content"},[e("div",[t._v(t._s(t.$t("fat.receivePay")))]),t._v(" "),e("div",[t._v(t._s(t.$t("fat.payReceive")))]),t._v(" "),e("div",[t._v(t._s(t.$t("fat.badClick")))]),t._v(" "),e("div",{staticClass:"yes-no flex"},[e("div",{on:{click:function(s){t.showConfirm=!1}}},[t._v(t._s(t.$t("td.canceil")))]),t._v(" "),e("div",{on:{click:t.confirm}},[t._v(t._s(t.$t("td.confirm")))])])])]):t._e(),t._v(" "),t.showPay?e("div",{staticClass:"confirm-box"},[e("div",{staticClass:"content"},[e("div",[t._v(t._s(t.$t("fat.paySure")))]),t._v(" "),e("div",[t._v(t._s(t.$t("fat.pdopay")))]),t._v(" "),e("div",[t._v(t._s(t.$t("fat.badClick")))]),t._v(" "),e("div",{staticClass:"yes-no flex"},[e("div",{on:{click:function(s){t.showPay=!1}}},[t._v(t._s(t.$t("td.canceil")))]),t._v(" "),e("div",{on:{click:t.confirmPay}},[t._v(t._s(t.$t("td.confirm")))])])])]):t._e()])},staticRenderFns:[]};var o=e("VU/8")(n,_,!1,function(t){e("6y+U")},null,null);s.default=o.exports}});
//# sourceMappingURL=4.40972a520d235e3b9af6.js.map