1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- // index.ts
- // 获取应用实例
- const app = getApp<IAppOption>()
- Page({
- data: {
- login_check_tab: 0,
- loginType: 0,
- showAccPwd: true,
- showUpdatePassWordLayout: false
- },
- onLoad(opention: any) {
- console.log("opention:" + opention.id)
- this.setData({
- login_check_tab: 0,
- loginType: opention.id
- })
- },
- // 点击短信验证码登录
- clickPhoneNumLogin: function (event: any) {
- console.log("短信验证码登录")
- console.log(event)
- this.setData({
- login_check_tab: 0
- })
- },
- // 点击账号密码登录
- clicAccountPasswordLogin: function (event: any) {
- console.log("账号密码登录")
- console.log(event)
- this.setData({
- login_check_tab: 1
- })
- },
- // 获取验证码
- clickGetVCode: function (event: any) {
- console.log("账号密码登录")
- },
- //账号密码登录——---------------------------
- showAccountPwd: function (event: any) {
- if (this.data.showAccPwd) {
- this.setData({
- showAccPwd: false
- })
- } else {
- this.setData({
- showAccPwd: true
- })
- }
- console.log("this.data.showAccPwd:" + this.data.showAccPwd)
- },
- //显示修改密码的框
- showUpdatePwdLayout: function (event: any) {
- if (this.data.showUpdatePassWordLayout) {
- this.setData({
- showUpdatePassWordLayout: false
- })
- } else {
- this.setData({
- showUpdatePassWordLayout: true
- })
- }
- }
- })
|