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

2 lines
9.0 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([5],{S28v: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,"times",""),i()(t,"skins",localStorage.getItem("skin")||"days"),t},created:function(){var t=window.localStorage.getItem("token")||"";t&&(this.token=t,this.id=this.$route.query.id||"",this.getMsg())},methods:{getMsg:function(){var t=this,s=layer.load();this.$http({url:"/api/legal_deal",params:{id:t.id},headers:{Authorization:t.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=e.data.message.cancel_time;e.data.message.cancel_time&&(a-0<3600?setInterval(function(){$(".time-order").show(),a--;var s=parseInt(a/60),e=a%60;s>0&&e>0?t.times=s+t.$t("fat.minute")+e+t.$t("fat.second"):e>0?t.times=e+t.$t("fat.second"):0==s&&0==e&&(window.history.go(-1),t.$http({url:"/api/handle_one",method:"post",data:{id:t.id},headers:{Authorization:t.token}}).then(function(t){window.history.go(-1)}).then(function(){}))},1e3):setInterval(function(){$(".time-order").show(),a--;var s=parseInt(a/60/60),e=parseInt(a/60)-60*s,i=a%60;s>0&&i>0&&e>0?t.times=s+t.$t("fat.hour")+e+t.$t("fat.minute")+i+t.$t("fat.second"):i>0&&e>0?t.times=e+t.$t("fat.minute")+i+t.$t("fat.second"):i>0?t.times=i+t.$t("fat.second"):0==s&&0==i&&0==e&&t.$http({url:"/api/handle_one",method:"post",data:{id:t.id},headers:{Authorization:t.token}}).then(function(t){window.history.go(-1)}).then(function(){})},1e3))}})},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;this.$http({url:"/api/user_legal_pay_cancel",method:"post",data:{id:this.id},headers:{Authorization:this.token}}).then(function(s){layer.msg(s.data.message),t.showCancel=!1,setTimeout(function(){location.reload()},1e3)})},confirm:function(){var t=this;this.$http({url:"/api/legal_deal_sure",method:"post",data:{id:this.id},headers:{Authorization:this.token}}).then(function(t){layer.msg(t.data.message),setTimeout(function(){location.reload()},1e3)}).then(function(){t.showConfirm=!1})},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(t.$t("fat.imgUp")))}})},confirmPay:function(){var t=this;this.$http({url:"/api/user_legal_pay",method:"post",data:{id:this.id,pay_voucher:this.src},headers:{Authorization:this.token}}).then(function(t){layer.msg(t.data.message),setTimeout(function(){location.reload()},1e3)}).then(function(){t.showPay=!1})},evimgs:function(t){return layer.open({type:1,area:["100%","100%"],title:"",shade:.6,anim:1,skin:"show-img",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",{class:"days"==t.skins?"whites":"whites balck",attrs:{id:"legal-pay-detail"}},[e("div",{staticClass:"title 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(" "),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 ft14 radius4"},[e("div",[e("span",[t._v(t._s(t.$t("td.tradeTotal"))+"")]),t._v(" "),e("span",[t._v(t._s(t._f("numFilters")(t.msg.deal_money||"0.000",3)))])]),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("numFilters")(t.msg.price||"0.000",3)))])]),t._v(" "),e("div",[e("span",[t._v(t._s(t.$t("td.num"))+"")]),t._v(" "),e("span",[t._v(t._s(t._f("numFilters")(t.msg.number||"0.000",3))+t._s(t.msg.currency_name))])]),t._v(" "),"sell"==t.msg.type?e("div",[e("span",[t._v(t._s(t.$t("ctc.name"))+"")]),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.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(" "),0==t.msg.is_sure?e("div",[t.msg.user_cash_info.alipay_qr_code||t.msg.user_cash_info.wechat_qr_code?e("div",{staticClass:"pay-code flex"},[e("span",[t._v(t._s(t.$t("fat.QRcode")))]),t._v(" "),t.msg.user_cash_info.alipay_qr_code?e("p",[e("b",[t._v(t._s(t.$t("miscro.alipayCode")))]),t._v(" "),e("img",{attrs:{width:"150",height:"150",src:t.msg.user_cash_info.alipay_qr_code,alt:""}})]):t._e(),t._v(" "),t.msg.user_cash_info.wechat_qr_code?e("p",[e("b",[t._v(t._s(t.$t("miscro.wechatCode")))]),t._v(" "),e("img",{attrs:{width:"150",height:"150",src:t.msg.user_cash_info.wechat_qr_code,alt:""}})]):t._e()]):t._e()]):t._e(),t._v(" "),3==t.msg.is_sure&&"sell"==t.msg.type?e("div",{staticClass:"flex alcenter"},[e("span",[t._v(t._s(t.$t("miscro.text11")))]),t._v(" "),e("img",{attrs:{width:"150",height:"150",src:t.msg.pay_orders_img,alt:""},on:{click:function(s){t.evimgs(t.msg.pay_orders_img)}}})]):t._e(),t._v(" "),0==t.msg.is_sure&&"buy"==t.msg.type?e("div",{staticClass:"red bold"},[t._v(t._s(t.$t("fat.please"))+t._s(t.times)+t._s(t.$t("fat.Introvert"))+t._s(t.user.real_name)+t._s(t.$t("fat.payment")))]):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(" "),e("el-dialog",{attrs:{title:"",visible:t.showCancel,width:"300px",center:""},on:{"update:visible":function(s){t.showCancel=s}}},[e("div",{staticClass:"transfer-content"},[e("h3",[t._v(t._s(t.$t("fat.tdCeil")))]),t._v(" "),e("div",{staticClass:"transfer-list"},[e("p",[t._v(t._s(t.$t("fat.pCeil")))])])]),t._v(" "),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary"},on:{click:t.cancel}},[t._v(t._s(t.$t("cuy.confirm")))])],1)]),t._v(" "),e("el-dialog",{attrs:{title:"",visible:t.showConfirm,width:"300px",center:""},on:{"update:visible":function(s){t.showConfirm=s}}},[e("div",{staticClass:"transfer-content"},[e("h3",[t._v(t._s(t.$t("fat.receivePay")))]),t._v(" "),e("div",{staticClass:"transfer-list"},[e("p",[t._v(t._s(t.$t("fat.payReceive")))]),t._v(" "),e("p",[t._v(t._s(t.$t("fat.badClick")))])])]),t._v(" "),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary"},on:{click:t.confirm}},[t._v(t._s(t.$t("cuy.confirm")))])],1)]),t._v(" "),e("el-dialog",{attrs:{title:"",visible:t.showPay,width:"300px",center:""},on:{"update:visible":function(s){t.showPay=s}}},[e("div",{staticClass:"transfer-content"},[e("h3",[t._v(t._s(t.$t("fat.paySure")))]),t._v(" "),e("div",{staticClass:"transfer-list"},[e("p",[t._v(t._s(t.$t("fat.pdopay")))]),t._v(" "),e("p",[t._v(t._s(t.$t("fat.badClick")))])])]),t._v(" "),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary"},on:{click:t.confirmPay}},[t._v(t._s(t.$t("cuy.confirm")))])],1)])],1)},staticRenderFns:[]};var o=e("VU/8")(n,_,!1,function(t){e("S28v")},"data-v-a7cbeb2c",null);s.default=o.exports}});
//# sourceMappingURL=5.b9b12d10ff6c791fcb9f.js.map