浏览代码

fix: “登录/注册页面优化”

ritchie 2 年之前
父节点
当前提交
6040190140
共有 6 个文件被更改,包括 13 次插入9289 次删除
  1. 0 12
      postcss.config.js
  2. 5 5
      src/assets/language/en.json
  3. 2 2
      src/assets/language/zh.json
  4. 4 0
      src/utils/config.js
  5. 2 2
      src/views/login.vue
  6. 0 9268
      yarn.lock

+ 0 - 12
postcss.config.js

@@ -1,12 +0,0 @@
-// postcss.config.js
-// 用 vite 创建项目,配置 postcss 需要使用 post.config.js,之前使用的 .postcssrc.js 已经被抛弃
-// 具体配置可以去 postcss-pxtorem 仓库看看文档
-module.exports = {
-  "plugins": {
-    "postcss-pxtorem": {
-      rootValue: 37.5, // Vant 官方根字体大小是 37.5
-      propList: ['*'],
-      selectorBlackList: ['.norem'] // 过滤掉.norem-开头的class,不进行rem转换
-    }
-  }
-}

+ 5 - 5
src/assets/language/en.json

@@ -1038,17 +1038,17 @@
     "passwordCheckLabel": "Confirm Password",
     "passwordCheckPlaceholder": "Please enter the password again to confirm",
     "passwordCheckRequired": "Please enter the password again to confirm",
-    "country": "country",
-    "chinese": "Chinese Mainland",
-    "other": "other",
-    "phoneLabel": "phone number",
+    "country": "Country/region",
+    "chinese": "中国大陆",
+    "other": "Abroad/HKMT",
+    "phoneLabel": "Phone number",
     "phonePlaceholder": "Please enter your mobile number",
     "phoneRequired": "Please enter your mobile number",
     "seedVerCode": "Send verification code",
     "codeLabel": "SMS verification code",
     "codePlaceholder": "Please enter SMS verification code",
     "codeRequired": "Please enter SMS verification code",
-    "emailLabel": "mailbox",
+    "emailLabel": "Mailbox",
     "emailPlaceholder": "Please enter your email address",
     "emailRequired": "Please enter your email address",
     "emailCodeLabel": "Email verification code",

+ 2 - 2
src/assets/language/zh.json

@@ -1039,9 +1039,9 @@
     "passwordCheckLabel": "确认密码",
     "passwordCheckPlaceholder": "请再次输入密码进行确认",
     "passwordCheckRequired": "请再次输入密码进行确认",
-    "country": "国家",
+    "country": "国家/地区",
     "chinese": "中国大陆",
-    "other": "其他",
+    "other": "海外/港澳台",
     "phoneLabel": "手机号码",
     "phonePlaceholder": "请输入手机号码",
     "phoneRequired": "请输入手机号码",

+ 4 - 0
src/utils/config.js

@@ -1,7 +1,11 @@
 let baseURL;
 // 开发环境
 if (process.env.NODE_ENV === 'development') {
+    // 测试的
     baseURL = 'https://szwl.sunzee.com.cn/'
+    // 正式的
+    // baseURL = 'https://sz.sunzee.com.cn/'
+    
     // baseURL = 'http://120.25.151.99:49002/'
     // 编译环境
 } else {

+ 2 - 2
src/views/login.vue

@@ -106,9 +106,9 @@ export default {
     };
     const compLang = computed(() => {
       if (languageName.value === "en") {
-        return "zh";
+        return "中文";
       } else {
-        return "en";
+        return "English";
       }
     });
     const checked = ref(false); // 是否记住密码状态

文件差异内容过多而无法显示
+ 0 - 9268
yarn.lock