zzzz
2024-04-15 136d5835ef62ecfb9932526c5f48a434988b1be7
1
"use strict";(self["webpackChunkexchange"]=self["webpackChunkexchange"]||[]).push([[8842],{48853:function(t,s,e){e.r(s),e.d(s,{default:function(){return p}});var i=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{attrs:{id:"adDetails"}},[e("order-nav",{attrs:{title:t.$t("广告详情")}}),e("div",{staticClass:"border_top px-32 box-border mb-28"},[e("div",{staticClass:"flex justify-between mt-40"},[e("span",{staticClass:"font-400 font-28 text-grey"},[t._v(t._s(t.$t("广告编号")))]),e("span",{staticClass:"font-600 font-28"},[t._v(t._s(t.info.id))])]),e("div",{staticClass:"flex justify-end mt-44"},[t.info.on_sale/1===0?e("div",{staticClass:"text-grey bg-grey px-12 py-6 font-24"},[t._v(t._s(t.$t("已下架")))]):t._e(),t.info.on_sale/1===1?e("div",{staticClass:"bg-grey px-12 py-6 font-24",class:{grey:t.checked}},[t._v(t._s(t.$t("已上架"))+" ")]):t._e(),e("van-switch",{staticClass:"ml-28",attrs:{disabled:"",size:"24"},model:{value:t.info.on_sale/1===1,callback:function(s){t.$set(t.info,"on_sale / 1 === 1 ? true : false",s)},expression:"info.on_sale / 1 === 1 ? true : false"}})],1),e("div",{staticClass:"flex justify-between items-center mt-70"},[e("div",{staticClass:"flex flex-col"},[e("span",{staticClass:"font-400 font-28 text-grey mb-40"},[t._v(t._s(t.$t("价格")))]),e("span",{staticClass:"font-400 font-28 text-grey "},[t._v(t._s(t.$t("固定价格")))])]),e("div",{staticClass:"font-600 font-52"},[t._v(t._s(t.$store.state.home.currency.currency_symbol)+" "+t._s(t.info.symbol_value))])])]),e("div",{staticClass:"w-full h-16 bg-grey"}),e("div",{staticClass:"border_top px-32 box-border mb-28"},[e("div",{staticClass:"flex justify-between mt-40"},[e("span",{staticClass:"font-400 font-28 text-grey"},[t._v(t._s(t.$t("交易总额")))]),e("span",{staticClass:"font-600 font-28"},[t._v(t._s(t.info.symbol_value*t.info.coin_amount)+" "+t._s(t.info.symbol?t.info.symbol.toUpperCase():""))])]),e("div",{staticClass:"flex justify-between mt-40"},[e("span",{staticClass:"font-400 font-28 text-grey"},[t._v(t._s(t.$t("限额")))]),e("span",{staticClass:"font-600 font-28"},[t._v(t._s(t.info.investment_min+" - "+t.info.investment_max+" "+t.info.currency))])]),e("div",{staticClass:"mt-40 flex justify-between"},[e("span",{staticClass:"font-400 font-28 text-grey"},[t._v(t._s(t.$t("付款方式")))]),e("div",[t._v(t._s(t.info.pay_type_name))])]),e("div",{staticClass:"flex justify-between mt-40"},[e("span",{staticClass:"font-400 font-28 text-grey"},[t._v(t._s(t.$t("付款限时")))]),e("span",{staticClass:"font-600 font-28"},[t._v(t._s(t.info.expire_time)+" "+t._s(t.$t("分钟")))])]),e("div",{staticClass:"w-full h-120 mt-40 text-left lh-120"},[e("span",{staticClass:"font-400 font-28 text-grey mr-10"},[t._v(" "+t._s(t.$t("用户需要")))]),e("span",{staticClass:"font-400 font-28 "},[t._v(t._s(t.$t("认证 KYC 才可以交易")))])])]),e("div",{staticClass:"h-16 w-full bg-grey"}),e("div",{staticClass:"mt-50 px-32 flex justify-between items-center"},[e("div",{staticClass:"w-252 h-100 font-36 bg-grey rounded-lg mr-22 text-center lh-100",on:{click:t.handleClose}},[t._v(t._s(t.$t("关闭"))+" ")]),e("div",{staticClass:"flex-1 h-100 font-36 bg-blue rounded-lg text-white text-center lh-100",on:{click:function(s){return t.$router.push({path:"/editAd",query:Object.assign({},t.info,{type:"1"})})}}},[t._v(t._s(t.$t("編輯詳情")))])]),e("transition",{attrs:{name:"left"}},[t.show?e("payPwdInput",{staticClass:"bg-white absolute left-0 top-0 w-full h-full",on:{submit:t.handPwd,close:t.handleClosePwd}}):t._e()],1)],1)},n=[],a=(e(74884),e(91981)),o=(e(72161),e(9471)),l=(e(22367),e(85324)),c=(e(63212),e(96874)),r=(e(57352),e(99502)),f=(e(94156),e(84458)),d=(e(44114),e(92266)),h=e(80668),u=e(43410),v={name:"Ad_Details",components:{payPwdInput:u.A,[f.A.name]:f.A,[r.A.name]:r.A,[c.A.name]:c.A,[l.A.name]:l.A,[o.A.name]:o.A,OrderNav:d.A},data(){return{type:"left",show:!1,checked:!1,form:{id:"",safeword:""},info:{}}},created(){this.form.id=this.$route.query.id,(0,h.xB)({id:this.form.id,language:this.$i18n.locale}).then((t=>{this.info=t}))},methods:{click(){this.checked=!this.checked},handleClosePwd(){this.show=!1},handleClose(){this.form.safeword?this.submitDel():this.show=!0},handPwd(t){this.handleClosePwd(),this.form.safeword=t,this.submitDel()},submitDel(){a.A.loading(),(0,h.eT)(this.form).then((t=>{(0,a.A)(this.$t("广告关闭成功!")),this.$router.push("/c2c/advertise"),this.form.safeword=""})).catch((()=>{this.form.safeword=""}))}}},_=v,m=e(81656),C=(0,m.A)(_,i,n,!1,null,"160f7741",null),p=C.exports},85324:function(t,s,e){e.d(s,{A:function(){return d}});var i=e(47456),n=e(83462),a={size:[Number,String],value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1}},o=e(77965),l=e(90689),c=(0,i.Y)("switch"),r=c[0],f=c[1],d=r({mixins:[o.Y],props:a,computed:{checked:function(){return this.value===this.activeValue},style:function(){return{fontSize:(0,n._)(this.size),backgroundColor:this.checked?this.activeColor:this.inactiveColor}}},methods:{onClick:function(t){if(this.$emit("click",t),!this.disabled&&!this.loading){var s=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",s),this.$emit("change",s)}},genLoading:function(){var t=this.$createElement;if(this.loading){var s=this.checked?this.activeColor:this.inactiveColor;return t(l.A,{class:f("loading"),attrs:{color:s}})}}},render:function(){var t=arguments[0],s=this.checked,e=this.loading,i=this.disabled;return t("div",{class:f({on:s,loading:e,disabled:i}),attrs:{role:"switch","aria-checked":String(s)},style:this.style,on:{click:this.onClick}},[t("div",{class:f("node")},[this.genLoading()])])}})},22367:function(t,s,e){e(76952),e(45396)}}]);