Commit 809f3f00 authored by zhangyanni's avatar zhangyanni

优化

parent 744f9081
import Vue from 'vue';
import VueI18n from 'vue-i18n';
import api from '../../src/views/loginregister/api/api';
import $ from 'jquery';
import publicFunc from '../../src/common/public'
Vue.use(VueI18n);
const i18n = new VueI18n({
locale: window.sessionStorage.getItem("language")||"zh-CN", // 语言标识
......
......@@ -143,8 +143,7 @@
isShowErrorText4: false,
isShowErrorText5: false,
uploadDisabled: false,//是否禁用上传图片
disabledFlag:0,
isSendPcCode:false
disabledFlag:0
}
},
......@@ -385,16 +384,9 @@
this.getUserInfoFunc();
globalMsg.$on("isSendCode",(data,which)=>{
if(data&&which==10){
this.isSendPcCode = true;
}
})
},
watch:{
isSendPcCode(val){
if(val){
this.getCodeFunc();
}
}
})
}
}
</script>
......
......@@ -81,8 +81,7 @@
message: null
},
fullscreenLoading: false,
showMessageInfo:false,
isSendPcCode:false,
showMessageInfo:false
}
},
methods:{
......@@ -261,16 +260,9 @@
mounted(){
globalMsg.$on("isSendCode",(data,which)=>{
if(data&&which==9){
this.isSendPcCode = true;
}
})
},
watch:{
isSendPcCode(val){
if(val){
this.getCodeFunc();
}
}
})
}
}
</script>
......
......@@ -73,8 +73,7 @@
type: "success",
message: null
},
showMessageInfo:false,
isSendPcCode:false
showMessageInfo:false
}
},
methods:{
......@@ -248,16 +247,9 @@
mounted() {
globalMsg.$on("isSendCode",(data,which)=>{
if(data&&which==7){
this.isSendPcCode = true;
}
})
},
watch:{
isSendPcCode(val){
if(val){
this.getCodeFunc();
}
}
})
}
}
</script>
......
......@@ -73,7 +73,7 @@
// 每次都让盒子移动指定的距离,在我自己做的项目中,这种字符串拼接的方法并没有生效
// outbox.style = 'transform: translateX3d(' + startDis + 'px)'
// 后面换了es6的模板字符串就可以了
outbox.style = `transform: translateX(${startDis}px)`
outbox.style.transform = `translateX(${startDis}px)`
// outbox.style = 'transform: translateX(\' + startDis + \' px)'
// outbox.style.marginLeft = 'startDis'
// console.log('这里:', startDis)
......
......@@ -117,8 +117,7 @@
message:null
},
showMessageInfo:false,
fullscreenLoading:false,
isSendPcCode:false
fullscreenLoading:false
}
},
methods: {
......@@ -323,16 +322,9 @@
if(this.$route.query.refereesId||this.$route.query.registerChannel) this.getActiveName();
globalMsg.$on("isSendCode",(data,which)=>{
if(data&&which==8){
this.isSendPcCode = true;
}
})
},
watch:{
isSendPcCode(val){
if(val){
this.getCodeFunc();
}
}
})
}
}
</script>
......
......@@ -80,8 +80,7 @@
showCount:true,
count:'',
flag:0,
fullscreenLoading:false,
isSendPcCode:false
fullscreenLoading:false
}
},
methods:{
......@@ -241,16 +240,9 @@
mounted(){
globalMsg.$on("isSendCode",(data,which)=>{
if(data&&which==11){
this.isSendPcCode = true;
}
})
},
watch:{
isSendPcCode(val){
if(val){
this.getCodeFunc();
}
}
})
}
}
</script>
......
......@@ -106,8 +106,7 @@
messageObj:{
type:"success",
message:null
},
isSendPcCode:false
}
}
},
methods: {
......@@ -300,16 +299,9 @@
if(this.$route.query.refereesId||this.$route.query.registerChannel) this.getActiveName();
globalMsg.$on("isSendCode",(data,which)=>{
if(data&&which==6){
this.isSendPcCode = true;
}
})
},
watch:{
isSendPcCode(val){
if(val){
this.getCodeFunc();
}
}
})
}
}
</script>
......
......@@ -188,8 +188,7 @@
disabledFlag: 0,
userInfo: window.sessionStorage.getItem("userInfo") ? JSON.parse(this.Base64.decode(window.sessionStorage.getItem("userInfo"))) : null,
imgUrls:[],
isPhoto:true,
isSendCode:false
isPhoto:true
}
},
......@@ -489,16 +488,9 @@
this.getInitData();
globalMsg.$on("isPhoneSendCode",(data,which)=>{
if(data&&which==5){
this.isSendCode = true;
}
})
},
watch:{
isSendCode(val){
if(val){
this.getCodeFunc();
}
}
})
}
}
</script>
......
......@@ -68,8 +68,7 @@
showCount: true,
count: '',
flag: 0,
fullscreenLoading: false,
isSendCode:false
fullscreenLoading: false
}
},
methods:{
......@@ -243,16 +242,9 @@
mounted() {
globalMsg.$on("isPhoneSendCode",(data,which)=>{
if(data&&which==4){
this.isSendCode = true;
}
})
},
watch:{
isSendCode(val){
if(val){
this.getCodeFunc();
}
}
})
}
}
</script>
......
......@@ -97,8 +97,7 @@
count:'',
protocolVisible:false,
className:"height600px",
fullscreenLoading:false,
isSendCode:false
fullscreenLoading:false
}
},
......@@ -271,16 +270,9 @@
mounted() {
globalMsg.$on("isPhoneSendCode",(data,which)=>{
if(data&&which==3){
this.isSendCode = true;
}
})
},
watch:{
isSendCode(val){
if(val){
this.getCodeFunc();
}
}
})
}
}
</script>
......
......@@ -62,8 +62,7 @@
count:'',
flag:0,
fullscreenLoading:false,
lang:this.$i18n.locale=="zh-CN"?1:2,
isSendCode:false
lang:this.$i18n.locale=="zh-CN"?1:2
}
},
methods:{
......@@ -233,17 +232,10 @@
mounted() {
globalMsg.$on("isPhoneSendCode",(data,which)=>{
if(data&&this.$route.path=='/loginByPhone'&&which==2){
this.isSendCode = true;
this.getCodeFunc();
}
})
},
watch:{
isSendCode(val){
if(val){
this.getCodeFunc();
}
}
}
}
</script>
......
......@@ -95,8 +95,7 @@
type:"success",
message:null
},
fullscreenLoading:false,
isSendCode:false
fullscreenLoading:false
}
},
......@@ -273,18 +272,11 @@
mounted() {
globalMsg.$on("isPhoneSendCode",(data,which)=>{
if(data&&this.$route.path=='/mobileRegister'&&which==1){
this.isSendCode = true;
this.getCodeFunc();
}
})
},
watch:{
isSendCode(val){
if(val){
this.getCodeFunc();
}
}
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment