bztang-admin/addons/yun_shop/static/app/js/chunk-5fbc62f6.bf5fed50.js

1 line
15 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5fbc62f6"],{7781:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"transfer"}},[s("c-title",{attrs:{hide:!1,text:"转让"}}),s("div",{attrs:{id:"content"}},[s("div",{staticClass:"top"},[s("ul",{staticClass:"box"},[s("li",[s("h1",[t._v(t._s(t.transfer.digitization_name))])]),s("li",[s("span",[t._v("可用:"+t._s(t.transfer.member_usable))]),s("span",[t._v("冻结:"+t._s(t.transfer.member_froze))])])])]),s("div",{staticClass:"sale_number"},[s("div",{staticClass:"number"},[s("span",[t._v("转出数量:")]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.transferNum,expression:"transferNum"}],class:Number(t.transferNum)>t.transfer.member_usable?"more":"",attrs:{type:"tel",placeholder:"请输入转出数量"},domProps:{value:t.transferNum},on:{keyup:function(e){t.transferNum=t.transferNum.replace(/[^\d]/g,"")},input:function(e){e.target.composing||(t.transferNum=e.target.value)}}}),s("p",{directives:[{name:"show",rawName:"v-show",value:Number(t.transferNum)>t.transfer.member_usable,expression:"Number(transferNum)>transfer.member_usable"}],staticClass:"red"},[t._v("超出可用数量")])]),s("div",{staticClass:"number"},[s("span",[t._v("转入方资产账户:")]),s("input",{directives:[{name:"model",rawName:"v-model",value:t.transferAddress,expression:"transferAddress"}],attrs:{type:"text",placeholder:"请输入转入方资产账户"},domProps:{value:t.transferAddress},on:{input:function(e){e.target.composing||(t.transferAddress=e.target.value)}}})])]),s("div",{staticClass:"sum"},[s("ul",{staticClass:"box"},[s("li",[s("span",[t._v("当前手续费")]),s("span",[t._v(t._s(t.poundage||0))])]),s("li",[s("span",[t._v("需要扣除数量")]),s("span",[t._v(t._s(t.total||0))])])])]),s("div",{staticClass:"sale_btn"},[s("van-button",{attrs:{type:"primary"},nativeOn:{click:function(e){return t.Transfer.apply(null,arguments)}}},[t._v("确认转让")])],1),s("transition",{attrs:{name:"scale"}},[t.show2?s("div",{staticClass:"m-dialog",on:{touchmove:function(t){t.preventDefault()}}},[t.show2?s("div",{staticClass:"popup_box_b"},[s("h1",[s("i",{staticClass:"iconfont icon-guanbi",on:{click:function(e){t.show2=!1}}}),t._v("提示")]),s("ul",{staticClass:"sale_info"},[s("li",[t._v("请先设置支付密码,再继续交易")])]),s("div",{staticClass:"set_password",on:{click:t.toSetPassword}},[t._v(" 设置密码 ")])]):t._e()]):t._e()]),s("transition",{attrs:{name:"scale"}},[t.popupSpecs?s("div",{staticClass:"m-dialog",on:{touchmove:function(t){t.preventDefault()}}},[s("div",{staticClass:"pay-psw-info"},[s("div",{staticClass:"popup_box"},[s("h1",[s("i",{staticClass:"iconfont icon-guanbi",on:{click:t.clearPassword}}),t._v("请输入支付密码")]),s("ul",{staticClass:"sale_info"},[s("li",[s("span",[t._v("转入资产账户:")]),s("p",[t._v(t._s(t.transferAddress))])]),s("li",[s("span",[t._v("转出数量:")]),s("p",[t._v(t._s(t.total))])])])]),s("div",{staticClass:"pay_content"},[s("div",{staticClass:"pay_content_view"},[s("div",{staticClass:"ipt_pay"},[s("div",{staticClass:"ipt_pay_p"},[t._v(t._s(t._f("pwd_filter")(t.pw1)))])]),s("div",{staticClass:"ipt_pay"},[s("div",{staticClass:"ipt_pay_p"},[t._v(t._s(t._f("pwd_filter")(t.pw2)))])]),s("div",{staticClass:"ipt_pay"},[s("div",{staticClass:"ipt_pay_p"},[t._v(t._s(t._f("pwd_filter")(t.pw3)))])]),s("div",{staticClass:"ipt_pay"},[s("div",{staticClass:"ipt_pay_p"},[t._v(t._s(t._f("pwd_filter")(t.pw4)))])]),s("div",{staticClass:"ipt_pay"},[s("div",{staticClass:"ipt_pay_p"},[t._v(t._s(t._f("pwd_filter")(t.pw5)))])]),s("div",{staticClass:"ipt_pay"},[s("div",{staticClass:"ipt_pay_p"},[t._v(t._s(t._f("pwd_filter")(t.pw6)))])])])]),s("footer",[s("ul",{staticClass:"pay_btn"},[s("li",{on:{click:function(e){return t.onPassword("1")}}},[t._v("1")]),s("li",{on:{click:function(e){return t.onPassword("2")}}},[t._v("2")]),s("li",{on:{click:function(e){return t.onPassword("3")}}},[t._v("3")]),s("li",{on:{click:function(e){return t.onPassword("4")}}},[t._v("4")]),s("li",{on:{click:function(e){return t.onPassword("5")}}},[t._v("5")]),s("li",{on:{click:function(e){return t.onPassword("6")}}},[t._v("6")]),s("li",{on:{click:function(e){return t.onPassword("7")}}},[t._v("7")]),s("li",{on:{click:function(e){return t.onPassword("8")}}},[t._v("8")]),s("li",{on:{click:function(e){return t.onPassword("9")}}},[t._v("9")]),s("li",{staticClass:"b9"}),s("li",{on:{click:function(e){return t.onPassword("0")}}},[t._v("0")]),s("li",{staticClass:"b9",on:{click:t.pwdDelete}},[t._v("删除")])])])])]):t._e()])],1)],1)},n=[],i=(s("e7e5"),s("d399")),r=(s("b680"),s("a9e3"),s("14d9"),s("6968")),o={data:function(){return{show2:!1,transfer:{},transferNum:"",transferAddress:"",popupSpecs:!1,pwds:[],pwd:"",pw1:"",pw2:"",pw3:"",pw4:"",pw5:"",pw6:""}},activated:function(){this.asset_id=this.$route.params.asset_id,this.getBuying(),this.isSetPassword()},deactivated:function(){this.initData()},computed:{poundage:function(){return(Number(this.transferNum)*Number(this.transfer.poundage_rate)).toFixed(2)},total:function(){return(Number(this.transferNum)+Number(this.poundage)).toFixed(2)}},methods:{initPop:function(){this.pwds=[],this.pwd="",this.pw1="",this.pw2="",this.pw3="",this.pw4="",this.pw5="",this.pw6=""},onPassword:function(t){this.pwd.length<6&&(this.pwd=this.pwd+t,this.setPwdView()),6===this.pwd.length&&(this.popupSpecs=!1,this.getVerifyPassword(this.pwd),this.initPop())},clearPassword:function(){this.popupSpecs=!1,this.initPop()},setPwdView:function(){var t=this.pwd.length;if(!(t<=0))switch(t){case 1:this.pw1=this.pwd.substring(0,1);break;case 2:this.pw2=this.pwd.substring(1,2);break;case 3:this.pw3=this.pwd.substring(2,3);break;case 4:this.pw4=this.pwd.substring(3,4);break;case 5:this.pw5=this.pwd.substring(4,5);break;case 6:this.pw6=this.pwd.substring(5,6);break;default:break}},pwdDelete:function(){var t=this.pwd.length;if(!(t<=0))switch(t){case 1:this.pwd=this.pwd.substring(0,0),this.pw1="";break;case 2:this.pwd=this.pwd.substring(0,1),this.pw2="";break;case 3:this.pwd=this.pwd.substring(0,2),this.pw3="";break;case 4:this.pwd=this.pwd.substring(0,3),this.pw4="";break;case 5:this.pwd=this.pwd.substring(0,4),this.pw5="";break;case 6:this.pwd=this.pwd.substring(0,5),this.pw6="";break;default:break}},getVerifyPassword:function(t){var e=this,s=this;$http.get("plugin.asset.Frontend.Modules.Password.Controllers.validate.index",{password:t}," ").then((function(t){1==t.result?e.sureTransfer():s.$dialog.confirm({message:t.msg}).then((function(){2001==t.data.code||(2002==t.data.code?s.$router.push(s.fun.getUrl("SetPassword",{})):t.data.code)})).catch((function(){}))}),(function(t){s.$dialog.alert({message:t.msg})}))},toSetPassword:function(){this.$router.push(this.fun.getUrl("SetPassword",{}))},Transfer:function(){this.transferNum?Number(this.transferNum)>Number(this.transfer.member_usable)||(this.transferAddress?this.has_mobile?this.has_password?this.popupSpecs=!0:this.show2=!0:(Object(i["a"])("请先绑定手机"),this.$router.push(this.fun.getUrl("editmobile"))):Object(i["a"])("请输入转入方资产账户")):Object(i["a"])("请输入转出数量")},sureTransfer:function(){var t=this,e={asset_id:this.asset_id,total:this.transferNum,recipient:this.transferAddress};$http.post("plugin.asset.Frontend.Modules.Digitization.Controllers.transfer.retract",e,"加载中").then((function(e){1===e.result?(t.getBuying(),t.transferNum="",t.transferAddress="",t.$dialog.alert({message:e.msg})):Object(i["a"])(e.msg)})).catch((function(t){}))},initData:function(){this.transfer={},this.transferNum="",this.transferAddress="",this.pwds=[],this.pwd="",this.popupSpecs=!1,this.show2=!1},getBuying:function(){var t=this;$http.get("plugin.asset.Frontend.Modules.Digitization.Controllers.transfer.index",{asset_id:this.asset_id},"加载中").then((function(e){1===e.result?t.transfer=e.data:(Object(i["a"])(e.msg),t.$router.go(-1))})).catch((function(t){}))},isSetPassword:function(){var t=this;$http.get("plugin.asset.Frontend.Modules.Password.Controllers.has.index",{},"加载中").then((function(e){1===e.result?(t.has_mobile=e.data.has_mobile,t.has_password=e.data.has_password):Object(i["a"])(e.msg)})).catch((function(t){}))}},components:{cTitle:r["a"]}},d=o,p=d,l=(s("c9401"),s("2877")),c=Object(l["a"])(p,a,n,!1,null,"16816bd9",null);e["default"]=c.exports},b745:function(t,e,s){var a=s("f0af");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=s("499e").default;n("3f2a0c25",a,!0,{sourceMap:!1,shadowMode:!1})},c9401:function(t,e,s){"use strict";s("b745")},f0af:function(t,e,s){var a=s("24fb");e=a(!1),e.push([t.i,"#transfer #content .top[data-v-16816bd9]{background:#fff;padding:.625rem .875rem}#transfer #content .top .box li[data-v-16816bd9]{text-align:left}#transfer #content .top .box li h1[data-v-16816bd9]{font-size:18px;line-height:2.25rem}#transfer #content .top .box li[data-v-16816bd9]:nth-child(2){line-height:1.25rem;color:#8c8c8c;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#transfer #content .sale_number[data-v-16816bd9]{background:#fff;margin-top:.625rem}#transfer #content .sale_number .more[data-v-16816bd9]{color:red}#transfer #content .sale_number .red[data-v-16816bd9]{margin:.5rem 0 0 .5rem;text-align:left;font-size:12px;color:red}#transfer #content .sale_number .number[data-v-16816bd9]{background:#fff;padding:.625rem .875rem}#transfer #content .sale_number .number span[data-v-16816bd9]{display:block;line-height:2.25rem;font-size:16px;text-align:left}#transfer #content .sale_number .number input[data-v-16816bd9]{line-height:2.5rem;padding:0 .625rem;background:#f5f5f5;border:none;width:100%;font-size:18px}#transfer #content .sum[data-v-16816bd9]{margin-top:.625rem;background:#fff;padding:.625rem .875rem}#transfer #content .sum .box li[data-v-16816bd9]{line-height:1.875rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:14px}#transfer #content .sum .box li span[data-v-16816bd9]:first-child{color:#8c8c8c}#transfer #content .discount[data-v-16816bd9]{margin-top:.625rem;background:#fff;padding:.625rem .875rem}#transfer #content .discount .list li[data-v-16816bd9]{line-height:2.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#transfer #content .sale_btn[data-v-16816bd9]{margin:1.25rem auto}#transfer #content .sale_btn button[data-v-16816bd9]{padding:0;width:18.75rem;height:2.625rem;border-radius:.3125rem;background:#f7a145;color:#fff;font-size:16px;border:none}#transfer #content .sub_btn[data-v-16816bd9]{background:#fff;width:100%;height:3.125rem;line-height:3.125rem;position:fixed;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;bottom:0}#transfer #content .sub_btn p[data-v-16816bd9]{text-align:right;width:16.5625rem;border-top:.0625rem solid #ebebeb;padding-right:.625rem;font-size:16px}#transfer #content .sub_btn p span[data-v-16816bd9]{font-size:18px}#transfer #content .sub_btn button[data-v-16816bd9]{width:6.875rem;background:#f7a145;color:#fff;border:none;font-size:18px}#transfer #content .popup_box[data-v-16816bd9]{background:#fff;border-radius:.375rem;padding-bottom:1.25rem}#transfer #content .popup_box h1[data-v-16816bd9]{height:2.5rem;line-height:2.5rem;font-size:16px;border-bottom:.0625rem solid #ebebeb}#transfer #content .popup_box h1 i[data-v-16816bd9]{position:absolute;left:.875rem;line-height:2.5rem;font-size:1rem;color:#999}#transfer #content .popup_box .sale_info[data-v-16816bd9]{text-align:left;padding:.625rem 1.25rem}#transfer #content .popup_box .sale_info li[data-v-16816bd9]{line-height:1.875rem;font-size:16px}#transfer #content .popup_box .sale_info li span[data-v-16816bd9]{color:#8c8c8c}#transfer #content .popup_box .sale_info li p[data-v-16816bd9]{word-break:break-all;padding:0 1.25rem;line-height:1.25rem}#transfer #content .popup_box_b[data-v-16816bd9]{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:18.75rem;background:#fff;border-radius:.375rem}#transfer #content .popup_box_b h1[data-v-16816bd9]{height:2.5rem;line-height:2.5rem;font-size:16px;border-bottom:.0625rem solid #ebebeb}#transfer #content .popup_box_b h1 i[data-v-16816bd9]{position:absolute;left:.875rem;line-height:2.5rem;font-size:1rem;color:#999}#transfer #content .popup_box_b .sale_info[data-v-16816bd9]{text-align:left;padding:.625rem 1.25rem}#transfer #content .popup_box_b .sale_info li[data-v-16816bd9]{line-height:1.875rem;font-size:16px}#transfer #content .popup_box_b .set_password[data-v-16816bd9]{margin-top:2.25rem;border-top:.0625rem solid #ebebeb;height:2.5rem;line-height:2.5rem;color:#469de2;font-size:16px}#transfer #content .m-dialog[data-v-16816bd9]{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;z-index:100;background:rgba(0,0,0,.5)}#transfer #content .pay-psw-info[data-v-16816bd9]{position:absolute;bottom:0;width:100vw;height:auto;background:#fff;max-height:100%;padding-top:.625rem}#transfer #content footer[data-v-16816bd9]{width:100vw;font-weight:600}#transfer #content .pay_btn[data-v-16816bd9]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;border-top:.0625rem solid #ddd;width:100vw;height:auto}#transfer #content .pay_btn li[data-v-16816bd9]{width:33.333333%;height:3rem;line-height:3rem;text-align:center;background:#fff;font-size:14px;border-right:.0625rem solid #ddd;border-bottom:.0625rem solid #ddd}#transfer #content .pay_btn li[data-v-16816bd9]:active{background:#c2c2c2}#transfer #content .b9[data-v-16816bd9]:active{background:#fff!important}#transfer #content .b9[data-v-16816bd9]{background:#c2c2c2!important}#transfer #content .pay_content[data-v-16816bd9]{width:100vw;height:3.125rem;margin-bottom:.625rem}#transfer #content .pay_content_title[data-v-16816bd9]{width:100vw;height:1.875rem;line-height:1.875rem;margin-bottom:.625rem;font-size:18px}#transfer #content .pay_content_view[data-v-16816bd9]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100vw;height:3.125rem;border-bottom:.0625rem solid #ddd;border-top:.0625rem solid #ddd;border-right:.0625rem solid #ddd}#transfer #content .ipt_pay_p[data-v-16816bd9]{line-height:3.125rem;height:3.125rem;font-size:20px}#transfer #content .ipt_pay[data-v-16816bd9]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:3.125rem;text-align:center;border-left:.0625rem solid #ddd}",""]),t.exports=e}}]);