bindCompanyUser.js 940 B

1
  1. "use strict";var n=require("../common/vendor.js"),e=require("../api/companyUser.js");require("../common/request.js");const i={data:()=>({baseUrl:n.index.getStorageSync("requestPath"),btnLodaing:!1,companyUserId:""}),onLoad(n){let e={};n.q&&(e=decodeURIComponent(n.q)),this.companyUserId=e.companyUserId||n.companyUserId},methods:{handleBind(){this.$isLogin().then((e=>{e?this.submit():n.index.navigateTo({url:"/pages/auth/login"})}))},submit(){this.btnLodaing=!0,n.index.showLoading({title:"绑定中..."}),e.bindCompanyFsUser(this.companyUserId).then((e=>{this.btnLodaing=!1,n.index.hideLoading(),n.index.showToast({title:e.msg,icon:"none"})})).catch((()=>{this.btnLodaing=!1,n.index.hideLoading()}))}}};var a=n._export_sfc(i,[["render",function(e,i,a,o,t,d){return{a:t.baseUrl+"/images/bindComUser.png",b:t.btnLodaing,c:t.btnLodaing,d:n.o(((...n)=>d.handleBind&&d.handleBind(...n)))}}],["__scopeId","data-v-2528ab6c"]]);wx.createPage(a);