| | |
| | | class="Ttop flex flex-center flex-wrap" |
| | | style="flex-direction: column" |
| | | > |
| | | <view class=""></view> |
| | | <view class="" ref="Rtop"> |
| | | <view ></view> |
| | | <view ref="Rtop"> |
| | | <text class="login"></text> |
| | | <text |
| | | style=" |
| | |
| | | align-items: center; |
| | | " |
| | | > |
| | | <!-- <view class="" style="color: #244A7B;padding-bottom: .47rem;font-size: .3rem;font-weight: bold;">用户注册</view> --> |
| | | <!-- <view style="color: #244A7B;padding-bottom: .47rem;font-size: .3rem;font-weight: bold;">用户注册</view> --> |
| | | <view class="LoginBg"></view> |
| | | <view |
| | | class="" |
| | | |
| | | @click="BacktoLogin" |
| | | style=" |
| | | cursor: pointer; |
| | |
| | | }, |
| | | // 列表项跳转 |
| | | listDataClick(item) { |
| | | console.log(item); |
| | | // 在当前页面设置全局变量 |
| | | // uni.setStorageSync('globalData', { id: 123, name: 'example' }); |
| | | if (item.id == 1) { |
| | |
| | | url: "/pages/character/detail?id=" + item.id, |
| | | }); |
| | | } else if (item.id == 2) { |
| | | console.log(item.name); |
| | | // uni.navigateTo({ |
| | | // url:'/pages/character/detail?id='+item.id |
| | | // }) |
| | |
| | | validateContact(rule, value, callback) { |
| | | const regPhone = /^1[0-9]{10}$/; |
| | | const regEmail = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/; |
| | | console.log(value, regPhone.test(value), regEmail.test(value)); |
| | | if (regPhone.test(value) || regEmail.test(value)) { |
| | | callback(); // 校验通过 |
| | | } else { |
| | |
| | | this.$nextTick(() => { |
| | | var width = this.$refs.Rtop.$el.clientWidth; |
| | | this.Rtop1 = width + 50; |
| | | console.log("Element width:", width); |
| | | }); |
| | | }, |
| | | // 忘记密码 |
| | |
| | | verifyCode: this.resetDataPass.verifyCode, //验证码 |
| | | newPassword: encryptAES(this.resetDataPass.newPass), //新密码 |
| | | }; |
| | | console.log(Obj); |
| | | this.$refs[formName].validate(async (valid) => { |
| | | if (valid) { |
| | | await getRestPassword(Obj).then((res) => { |
| | | console.log(res, "接口"); |
| | | if (res.success) { |
| | | console.log("忘记密码的接口拿到数据了"); |
| | | uni.navigateTo({ |
| | | url: "/pages/Login/Login", |
| | | }); |