root před 2 roky
rodič
revize
ca82755477
3 změnil soubory, kde provedl 126 přidání a 76 odebrání
  1. 2 1
      lang/en-US.js
  2. 119 74
      pages/login/login-json.js
  3. 5 1
      public/static/css/login.css

+ 2 - 1
lang/en-US.js

@@ -10,7 +10,8 @@ function enUs() {
       '验证码': 'Verification Code',
       '平台': 'Platform',
       '登 录': 'Sign in',
-      '退出登录': 'Log out'
+      '退出登录': 'Log out',
+      '忘记密码': 'Forgot password'
     },
     register: {
         'Action.countDown': 'Wait for ${timeLeft}s',

+ 119 - 74
pages/login/login-json.js

@@ -19,75 +19,6 @@ function getLoginJson() {
             "redirect": "/",
             "wrapWithPanel": false,
             "body": [
-                {
-                  "type": "wrapper",
-                  "body": [
-                  {
-                    "type": "flex",
-                    "justify": "flex-end",
-                    "items": [
-                      {
-                        "type": "dropdown-button",
-                        "label": "",
-                        "className": "header-menu",
-                        "buttons": [
-                          {
-                            "type": "button",
-                            "label": "中文",
-                            "id": "u:6911502c8fcc",
-                            "onEvent": {
-                              "click": {
-                                "actions": [
-                                  {
-                                    "script": "localStorage.setItem('language', 'zh-CN')\nlocation.reload()",
-                                    "actionType": "custom",
-                                    "args": {
-                                    }
-                                  }
-                                ],
-                                "weight": 0
-                              }
-                            }
-                          },
-                          {
-                            "type": "button",
-                            "label": "English",
-                            "id": "u:e702685a7a45",
-                            "onEvent": {
-                              "click": {
-                                "actions": [
-                                  {
-                                    "script": "localStorage.setItem('language', 'en-US')\r\nlocation.reload()",
-                                    "actionType": "custom"
-                                  }
-                                ],
-                                "weight": 0
-                              }
-                            },
-                            "actionType": "",
-                            "link": "/view/user_info"
-                          }
-                        ],
-                        "id": "u:4fedf7a987bf",
-                        "size": "md",
-                        "level": "default",
-                        "align": "right",
-                        "block": false,
-                        "hideCaret": true,
-                        "trigger": "hover",
-                        "icon": "./public/static/icon/language-change.png",
-                        "btnClassName": "no-border"
-                      }
-                    ],
-                    "id": "u:e7752d0c1dbe"
-                  }
-                  ],
-                  "id": "u:d16525b6aae6",
-                  "asideResizor": false,
-                  "pullRefresh": {
-                  "disabled": true
-                  }
-                },
                 {
                     "type":"html",
                     "className":"text-center",
@@ -165,11 +96,125 @@ function getLoginJson() {
                     "level": "primary",
                     "className":"w-full h-2.5",
                 },
-                // {
-                //     "type":"html",
-                //     "className":"text-center",
-                //     "html":"<p class='mt-10 text-gray-600'>Roma平台</p>"
-                // },
+                {
+                  "type": "wrapper",
+                  "body": [
+                    {
+                      "type": "flex",
+                      "id": "u:e7752d0c1dbe",
+                      "justify": "flex-end",
+                      "items": [
+                        {
+                          "type": "container",
+                          "body": [
+                            {
+                              "type": "tooltip-wrapper",
+                              "tooltip": "请联系管理员,邮箱xxxxx@xxx.com",
+                              "body": [
+                                {
+                                  "type": "tpl",
+                                  "tpl": "忘记密码?",
+                                  "id": "u:47f172268df5",
+                                  "wrapperComponent": "",
+                                  "hidden": false,
+                                  "className": "m-l-none"
+                                }
+                              ],
+                              "enterable": true,
+                              "showArrow": true,
+                              "offset": [
+                                8,
+                                6
+                              ],
+                              "id": "u:3878dcf435b8",
+                              "trigger": [
+                                "hover"
+                              ],
+                              "mouseEnterDelay": 0,
+                              "mouseLeaveDelay": 0,
+                              "placement": "bottom",
+                              "inline": true
+                            }
+                          ],
+                          "size": "xs",
+                          "style": {
+                            "position": "static",
+                            "display": "block",
+                            "flex": "1 1 auto",
+                            "flexGrow": 1,
+                            "flexBasis": "auto"
+                          },
+                          "wrapperBody": false,
+                          "isFixedHeight": false,
+                          "isFixedWidth": false,
+                          "id": "u:ec685674b43d"
+                        },
+                        {
+                          "type": "dropdown-button",
+                          "label": "",
+                          "className": "header-menu",
+                          "buttons": [
+                            {
+                              "type": "button",
+                              "label": "中文",
+                              "id": "u:6911502c8fcc",
+                              "onEvent": {
+                                "click": {
+                                  "actions": [
+                                    {
+                                      "script": "localStorage.setItem('language', 'zh-CN')\nlocation.reload()",
+                                      "actionType": "custom",
+                                      "args": {
+                                      }
+                                    }
+                                  ],
+                                  "weight": 0
+                                }
+                              }
+                            },
+                            {
+                              "type": "button",
+                              "label": "English",
+                              "id": "u:e702685a7a45",
+                              "onEvent": {
+                                "click": {
+                                  "actions": [
+                                    {
+                                      "script": "localStorage.setItem('language', 'en-US')\r\nlocation.reload()",
+                                      "actionType": "custom"
+                                    }
+                                  ],
+                                  "weight": 0
+                                }
+                              },
+                              "actionType": "",
+                              "link": "/view/user_info"
+                            }
+                          ],
+                          "id": "u:4fedf7a987bf",
+                          "size": "md",
+                          "level": "default",
+                          "align": "right",
+                          "block": false,
+                          "hideCaret": true,
+                          "trigger": "hover",
+                          "icon": "./public/static/icon/language-change.png",
+                          "btnClassName": "no-border"
+                        }
+                      ]
+                    }
+                  ],
+                  "id": "u:d16525b6aae6",
+                  "asideResizor": false,
+                  "pullRefresh": {
+                    "disabled": true
+                  }
+                },
+                {
+                    "type":"html",
+                    "className":"text-center",
+                    "html":"<p class='mt-10 text-gray-600'>© 2023, Roma Services LLC. All Rights Reserved. An Roma Company</p>"
+                },
             ]
         }
     };

+ 5 - 1
public/static/css/login.css

@@ -74,13 +74,17 @@ body,
     outline: none;
 }
 .amis-scope .m-r-xs {
-    margin-top:-5px;
     width: 30px;
     height: 30px;
+    margin-right: -10px
 }
 .amis-scope .cxd-Form .cxd-Wrapper--md, .amis-scope .cxd-Container--md {
     height: 1%;
 }
 .amis-scope .cxd-Wrapper .cxd-DropDown .cxd-Button:not(:disabled):not(.is-disabled){
     pointer-events:none;
+}
+.amis-scope .cxd-Form .cxd-Wrapper--md, .amis-scope .cxd-Container--md {
+    padding-left: 0;
+    padding-right: 0;
 }