From 437634b6c3f4fb1fd05a64f62feb0d8501e0360d Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期五, 29 三月 2024 16:03:20 +0800
Subject: [PATCH] yangshi

---
 packagePersonal/pages/userSetting/index.js |   42 +++++++++++++++++++++++++-----------------
 1 files changed, 25 insertions(+), 17 deletions(-)

diff --git a/packagePersonal/pages/userSetting/index.js b/packagePersonal/pages/userSetting/index.js
index ef9ce44..eefb2a4 100644
--- a/packagePersonal/pages/userSetting/index.js
+++ b/packagePersonal/pages/userSetting/index.js
@@ -97,7 +97,9 @@
   },
   //淇敼鐢ㄦ埛绫诲瀷
   editUserInfo(e) {
-    let { info } = e.currentTarget.dataset
+    let {
+      info
+    } = e.currentTarget.dataset
     if (!this.data.userInfoBox) {
       this.setData({
         userInfoBox: true,
@@ -154,13 +156,14 @@
                       'userInfoForm.icon': app.config.requestCtx + `/file/GetPreViewImage?md5=` + e,
                     });
                     let userTypeInfo = {
-                      requests: [
-                        {
-                          data: JSON.stringify({ nickName: that.data.userInfo.nickName, icon: that.data.userInfoForm.icon }),
-                          name: '鐢ㄦ埛鏄电О澶村儚',
-                          type: 'nickName'
-                        }
-                      ]
+                      "requests": [{
+                        data: JSON.stringify({
+                          nickName: that.data.userInfo.nickName,
+                          icon: that.data.userInfoForm.icon
+                        }),
+                        name: '鐢ㄦ埛鏄电О澶村儚',
+                        type: 'nickName'
+                      }]
                     }
                     app.MG.identity.setAppUserInfo(userTypeInfo).then((res) => {
                       if (res) {
@@ -194,7 +197,9 @@
   },
   //杈撳叆鎵嬫満鍙�
   onPhoneInput(e) {
-    const { phoneError } = this.data;
+    const {
+      phoneError
+    } = this.data;
     const isPhoneNumber = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/.test(e.detail.value);
     if (phoneError === isPhoneNumber) {
       this.setData({
@@ -205,7 +210,9 @@
   },
 
   onEmailInput(e) {
-    const { emailError } = this.data;
+    const {
+      emailError
+    } = this.data;
     const isPhoneNumber = /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/.test(e.detail.value);
     if (emailError === isPhoneNumber) {
       this.setData({
@@ -328,13 +335,14 @@
   confirmInfo() {
     if (this.data.editType == 'nickName') {
       let userTypeInfo = {
-        requests: [
-          {
-            data: JSON.stringify({ nickName: this.data.userInfoForm.nickName, icon: this.data.userInfo.icon }),
-            name: '鐢ㄦ埛鏄电О澶村儚',
-            type: 'nickName'
-          }
-        ]
+        "requests": [{
+          data: JSON.stringify({
+            nickName: this.data.userInfoForm.nickName,
+            icon: this.data.userInfo.icon
+          }),
+          name: '鐢ㄦ埛鏄电О澶村儚',
+          type: 'nickName'
+        }]
       }
       app.MG.identity.setAppUserInfo(userTypeInfo).then((res) => {
         if (res) {

--
Gitblit v1.9.1