|
|
@@ -2,9 +2,6 @@ const md5 = require("../../../../utils/md5");
|
|
|
const _Http = getApp().globalData.http;
|
|
|
import Toast from '@vant/weapp/toast/toast';
|
|
|
Page({
|
|
|
- /**
|
|
|
- * 页面的初始数据
|
|
|
- */
|
|
|
data: {
|
|
|
from: {
|
|
|
password: "", //原密码
|
|
|
@@ -15,12 +12,24 @@ Page({
|
|
|
loading: false,
|
|
|
confirmPassword: "",
|
|
|
},
|
|
|
-
|
|
|
- /**
|
|
|
- * 生命周期函数--监听页面加载
|
|
|
- */
|
|
|
onLoad(options) {
|
|
|
-
|
|
|
+ console.log(options)
|
|
|
+ let site = wx.getStorageSync('siteP');
|
|
|
+ if (options.token) {
|
|
|
+ _Http.base({
|
|
|
+ "classname": "webmanage.site.site",
|
|
|
+ "method": "querySite_Parameter",
|
|
|
+ "content": {},
|
|
|
+ accesstoken: options.token
|
|
|
+ }).then(res => {
|
|
|
+ console.log("获取站点数据", res)
|
|
|
+ if (res.msg != '成功') return wx.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ site = res.data;
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
/* 修改密码 */
|
|
|
changePassword() {
|
|
|
@@ -49,10 +58,6 @@ Page({
|
|
|
title: res.msg,
|
|
|
icon: "none"
|
|
|
})
|
|
|
- /* Toast({
|
|
|
- message: res.msg,
|
|
|
- position: 'bottom'
|
|
|
- }); */
|
|
|
this.setData({
|
|
|
disabled: true
|
|
|
})
|