Browse Source

登录界面调整

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

43
components/popup/popup.vue

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

22
pages/reg/reg.vue

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

Loading…
Cancel
Save