12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- 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,
- },
- 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 () {
- },
- })
|