Browse Source

登录界面调整

master
453530270@qq.com 2 years ago
parent
commit
d7fea093eb
  1. 47
      components/popup/popup.vue
  2. 22
      pages/reg/reg.vue

47
components/popup/popup.vue

@ -8,26 +8,37 @@
<script>
export default {
name:"popup",
emits:["open","close"],
props:{
//
popurl:{
Type:String,
default:"",
},
isshow:{
Type:Boolean,
defult:false
data(){
return{
popurl:''
}
},
watch:{
popurl(e){
console.log("popup e",e)
let that = this
return that.popurl = e
}
},
// emits:["open","close"],
// props:{
// //
// popurl:{
// Type:String,
// default:"",
// },
// isshow:{
// Type:Boolean,
// defult:false
// }
// },
// watch:{
// popurl(e){
// console.log("popup e",e)
// let that = this
// return that.popurl = e
// }
// },
onLoad(e) {
if(e){
this.popurl =e
}
}
// created(e) {
// console.log("popup",e)
// //this.popurl =

22
pages/reg/reg.vue

@ -24,7 +24,7 @@
</view>
<!-- 重复密码 -->
<view class="form-item">
<input class="form-item--input" type="password" v-model="vpass" autocomplete="off" placeholder="再次请输入密码" />
<input class="form-item--input" type="password" v-model="repass" autocomplete="off" placeholder="再次请输入密码" />
</view>
<!-- 隐私政策等 -->
@ -81,6 +81,8 @@
mobile: '',
//
vpass:"",
//
repass:"",
//
isTick:false,
// user type
@ -93,13 +95,6 @@
}
},
/**
* 生命周期函数--监听页面加载
*/
created() {
console.log('main created')
},
methods: {
//
@ -119,6 +114,16 @@
this.isTick=!this.isTick
},
//
chkpass(){
let that = this
if (that.vpass != that.repass){
this.$toast('两次输入的密码不一样')
return false
}
return ture;
},
//
formValidation() {
const app = this
@ -223,6 +228,7 @@
//
let xurl="pages/help/"+e
this.$navTo(xurl)
// this.$navTo("pages/");
},
}

Loading…
Cancel
Save