wbspool %!s(int64=3) %!d(string=hai) anos
pai
achega
c2b885a022

BIN=BIN
favicon.ico


+ 1 - 1
index.html

@@ -8,7 +8,7 @@
       content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
     />
     <link rel="icon" href="/favicon.ico" />
-    <title>周刊</title>
+    <title>亞太防務</title>
   </head>
   <body>
     <div id="app"></div>

BIN=BIN
public/favicon.ico


+ 1 - 0
src/common/locales/zh-TW.js

@@ -157,6 +157,7 @@ export default {
   '您现在正在进行取消订阅操作, 是否继续?': '您現在正在進行取消訂閱操作, 是否繼續?',
   '您现在正在进行取消点赞操作, 是否继续?': '您現在正在進行取消點贊操作, 是否繼續?',
   '产品介绍': '產品詳情',
+  '区号': '區號',
 
 
 

+ 1 - 0
src/pc/components.d.ts

@@ -19,6 +19,7 @@ declare module '@vue/runtime-core' {
     LoginBox: typeof import('./components/login-box/login-box.vue')['default']
     Navbar: typeof import('./components/Navbar.vue')['default']
     PayBox: typeof import('./components/pay-box/pay-box.vue')['default']
+    PhoneCodeSelector: typeof import('./components/phone-code-selector/phone-code-selector.vue')['default']
     RouterLink: typeof import('vue-router')['RouterLink']
     RouterView: typeof import('vue-router')['RouterView']
     UiBanner: typeof import('./components/ui-banner/ui-banner.vue')['default']

+ 3 - 1
src/pc/components/login-box/login-box.vue

@@ -261,6 +261,8 @@
 
                 if(resp.data.status === 200){
                     this.$message.success(this.$t('注册成功'));
+                    this.activeName = 'first'
+                    this.verifyCount = 0
                 }else{
                     this.$message.error(resp.data.desc);
                 }
@@ -299,7 +301,7 @@
 
     .login-box{
         background-color: rgba(0,0,0,0.5);
-        z-index: 9999;
+        z-index: 3;
         position: fixed;
         display: flex;
         justify-content: center;

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1625 - 0
src/pc/components/phone-code-selector/phone-code-selector.vue


+ 7 - 4
src/pc/pages/auth/profile-complete.vue

@@ -43,10 +43,8 @@
         <user-account-setting-info-item :required="true" label="电话">
             <ui-input v-model="userinfo.phone" placeholder="请输入电话" class="!w-345px">
                 <div slot="suffix" class="flex items-center h-full">
-                    <div class="text-black">+86</div>
-                    <div class="w-12px"></div>
-                    <img src="/imgs/menu-arrow.png" class="w-6px h-auto"/>
-                    <div class="w-16px"></div>
+                    <phone-code-selector v-model="userinfo.areaCode"   :placeholder="$t('区号')"></phone-code-selector>
+
                 </div>
             </ui-input
             >
@@ -87,6 +85,7 @@
                     gender: "",
                     name: "",
                     phone: "",
+                    areaCode: "86",
                     job: "",
                     workOrg: "",
                     address: "",
@@ -105,6 +104,10 @@
             }
 
 
+            if(!this.userinfo["areaCode"]){
+                this.userinfo["areaCode"] = "86"
+            }
+
         },
         methods:{
             handleUpload(){

+ 4 - 4
src/pc/pages/user/user-account-setting.vue

@@ -37,10 +37,9 @@
         >
             <ui-input v-model="userinfo.phone" class="!w-345px">
                 <div slot="suffix" class="flex items-center h-full">
-                    <div class="text-black">+86</div>
-                    <div class="w-12px"></div>
-                    <img src="/imgs/menu-arrow.png" class="w-6px h-auto"/>
-                    <div class="w-16px"></div>
+<!--                    <div class="text-black">+<input v-model="userinfo.areaCode" style="border: none;width: 30px;text-align:left;display: inline-block;" :placeholder="$t('区号')"></input></div>-->
+                    <phone-code-selector v-model="userinfo.areaCode"   :placeholder="$t('区号')"></phone-code-selector>
+
                 </div>
             </ui-input
             >
@@ -88,6 +87,7 @@
                     gender: "",
                     name: "",
                     phone: "",
+                    areaCode:"",
                     job: "",
                     workOrg: "",
                     address: "",

+ 1 - 1
src/pc/pages/user/user-personal-center.vue

@@ -26,7 +26,7 @@
       </div>
       <div class="info-item">
         <div class="info-item-label">{{$t('电话')}}:</div>
-        <div class="text-size-16px text-black mr-20px">{{userinfo.phone}}</div>
+        <div class="text-size-16px text-black mr-20px"> ({{userinfo.areaCode ? userinfo.areaCode : '86'}}) {{userinfo.phone}}</div>
       </div>
       <div class="info-item">
         <div class="info-item-label">{{$t('性别')}}:</div>

+ 2 - 2
vite.config.pc.ts

@@ -31,8 +31,8 @@ const config = defineConfig(({ command, mode, ssrBuild }) => {
             port: 3333,
             proxy: {
                 '/api': {
-                    // target: 'http://www.apdmagazine.com/', //测试服务器的
-                    target: 'http://127.0.0.1:9011/', //测试服务器的
+                    target: 'https://www.apdmagazine.com/', //测试服务器的
+                    // target: 'http://127.0.0.1:9011/', //测试服务器的
                     changeOrigin: true,
                     ws: true,
                     pathRewrite: {