123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- const app = require('../../utils/util.js');
- var util = require('../../utils/md5.js')
- Page({
- data: {
- defaultType1: true,
- passwordType1: true,
- defaultType2: true,
- passwordType2: true,
- defaultType3: true,
- passwordType3: true,
- info:{},
- },
- eyeStatus1() {
- if (this.data.defaultType1) {
- this.setData({
- passwordType1: false,
- defaultType1: false,
- })
- } else {
- this.setData({
- passwordType1: true,
- defaultType1: true,
- })
- }
- },
- eyeStatus2() {
- if (this.data.defaultType2) {
- this.setData({
- passwordType2: false,
- defaultType2: false,
- })
- } else {
- this.setData({
- passwordType2: true,
- defaultType2: true,
- })
- }
- },
- eyeStatus3() {
- if (this.data.defaultType3) {
- this.setData({
- passwordType3: false,
- defaultType3: false,
- })
- } else {
- this.setData({
- passwordType3: true,
- defaultType3: true,
- })
- }
- },
- formSubmit(e) {
- console.log(e.detail, "daying");
- var password = e.detail.value.pwd;
- wx.request({
- url: app.globalData.publicUrl + '/applet/updatePwd',
- method: "GET",
- header: {
- appletsId: wx.getStorageSync('openId')
- },
- data: e.detail.value,
- success: (res) => {
-
- }
- })
- // wx.switchTab({
- // url: '/pages/index/index',
- // })
- },
- onLoad: function () {
- wx.request({
- url: app.globalData.publicUrl + '/sys/login/session',
- method: "GET",
- header: {
- appletsId: wx.getStorageSync('openId')
- },
- success: (res) => {
- console.log(res,"000");
- this.setData({
- info:res.data.data
- })
- }
- })
- },
- })
|