|
|
@@ -33,12 +33,10 @@ Page({
|
|
|
countDown: 0, //倒计时
|
|
|
loading: false
|
|
|
},
|
|
|
-
|
|
|
- /**
|
|
|
- * 生命周期函数--监听页面加载
|
|
|
- */
|
|
|
onLoad(options) {
|
|
|
const that = this;
|
|
|
+ getApp().globalData.Language.getLanguagePackage(this, '个人信息')
|
|
|
+
|
|
|
this.setData({
|
|
|
attinfos: JSON.parse(options.attinfos),
|
|
|
"fromList1[0].value": options.name,
|
|
|
@@ -82,10 +80,7 @@ Page({
|
|
|
/* 开始倒计时 */
|
|
|
startCountDown() {
|
|
|
let countDown = this.data.countDown;
|
|
|
- if (countDown != 0) return wx.showToast({
|
|
|
- title: '已发送验证码,请勿重新发送',
|
|
|
- icon: "none"
|
|
|
- });
|
|
|
+ if (countDown != 0) return;
|
|
|
if (!deletMark.CheckPhoneNumber(this.data.newPhone.trim() - 0)) return;
|
|
|
_Http.basic({
|
|
|
"classname": "common.usercenter.usercenter",
|
|
|
@@ -118,7 +113,7 @@ Page({
|
|
|
if (!deletMark.CheckPhoneNumber(data.phonenumber.trim() - 0)) return;
|
|
|
if (!deletMark.CheckEmail(data.email.trim())) return;
|
|
|
if (this.data.show && this.data.password.length == 0) return wx.showToast({
|
|
|
- title: '请输入短信验证码',
|
|
|
+ title: getApp().globalData.Language.getMapText("请输入短信验证码"),
|
|
|
icon: "none"
|
|
|
});
|
|
|
this.setData({
|
|
|
@@ -142,7 +137,7 @@ Page({
|
|
|
icon: "none"
|
|
|
});
|
|
|
wx.showToast({
|
|
|
- title: '修改成功'
|
|
|
+ title: getApp().globalData.Language.getMapText("修改成功") + '!',
|
|
|
});
|
|
|
this.changeUserMsg();
|
|
|
setTimeout(() => {
|