wbspool пре 4 година
родитељ
комит
7ded8b7a18

BIN
public/imgs/login-banner.png


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

@@ -67,7 +67,7 @@ export default {
   点赞: "點贊",
   点赞BTN: "點贊",
   收藏: "收藏",
-  收藏BTN: "分享",
+  收藏BTN: "收藏",
   分享: "Share",
   '开启订阅,将为您推荐同类精彩内容!': "開啟訂閱,將為您推薦同類精彩內容!",
   '文明上网,理性发言!': "文明上網,理性發言!",

+ 3 - 2
src/pc/App.vue

@@ -1,7 +1,8 @@
 <template>
-    <div id="app">
+    <div id="app" >
         <!-- <div style="width: 960px; backgroundcolor: black">12</div> -->
         <RouterView/>
+        <login-box></login-box>
     </div>
 </template>
 <script>
@@ -14,7 +15,7 @@
                 return $t(e) ? $t(e) : e;
             }
 
-            let resp = await this.$http.post(this.$api.mzUser.userinfo);
+            let resp = await this.$http.post(this.$api.mzUser.userinfo,this.$qs.stringify({unAuth:false}));
 
             if (resp.data.status === 200) {
                 this.$store.commit('UPDATE_LOGIN_INFO', resp.data.data.mzUser)

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

@@ -16,6 +16,7 @@ declare module '@vue/runtime-core' {
     LayoutUser: typeof import('./components/layout-user/layout-user.vue')['default']
     LayoutUserHeader: typeof import('./components/layout-user/layout-user-header.vue')['default']
     LayoutUserMenu: typeof import('./components/layout-user/layout-user-menu.vue')['default']
+    LoginBox: typeof import('./components/login-box/login-box.vue')['default']
     Navbar: typeof import('./components/Navbar.vue')['default']
     RouterLink: typeof import('vue-router')['RouterLink']
     RouterView: typeof import('vue-router')['RouterView']

+ 2 - 2
src/pc/components/layout-basic/layout-basic.vue

@@ -18,12 +18,12 @@
         <div class="flex justify-between mt-42px">
           <div class="w-250px">
             <div class="text-white font-extralight text-size-20px">{{$t('隐私说明')}}</div>
-            <div class="text-size-14px mt-12px text-white">{{$t('隐私说明')}}</div>
+            <div @click="$router.push('/yssm')" class="text-size-14px mt-12px text-white">{{$t('隐私说明')}}</div>
 
           </div>
           <div class="w-250px">
             <div class="text-white font-extralight text-size-20px">{{$t('支付说明')}}</div>
-            <div class="text-size-14px mt-12px text-white">{{$t('支付说明')}}</div>
+            <div @click="$router.push('/zfsm')" class="text-size-14px mt-12px text-white">{{$t('支付说明')}}</div>
 
           </div>
           <div class="w-250px">

+ 346 - 0
src/pc/components/login-box/login-box.vue

@@ -0,0 +1,346 @@
+<template>
+   <div v-if="$store.state.showLoginBox" class="login-box">
+       <div
+               class="w-1200px ml-auto mr-auto mt-100px  bg-white flex login overflow-hidden mb-0 shadow-2xl relative"
+       >
+
+           <img @click="handleClose" src="/imgs/logion-close.png" class="absolute right-20px top-20px w-30px h-30px">
+
+           <div class="w-700px h-540px">
+               <img src="/imgs/login-banner.png" class="w-full h-540px"/>
+           </div>
+
+
+
+           <div class="flex-1 flex justify-center pb-24px">
+               <el-tabs
+                       v-model="activeName"
+                       @tab-click="handleClick"
+                       class="w-410px mt-50px first"
+               >
+                   <el-tab-pane :label="$t('登录')" name="first" class="tab-pane">
+                       <div
+                               class="w-400px h-38px rounded-full border-[#E7E7E7] border-1px border-solid mb-24px flex"
+                       >
+                           <div
+                                   @click="loginForm.loginType = '2'"
+                                   :class="`custom-tab ${loginForm.loginType === '2' ? 'select' : ''}`"
+                           >
+                               {{ $t("邮箱验证登录") }}
+                           </div>
+                           <div
+                                   @click="loginForm.loginType = '1'"
+                                   :class="`custom-tab ${loginForm.loginType === '1' ? 'select' : ''}`"
+                           >
+                               {{ $t("账号密码登录") }}
+                           </div>
+                       </div>
+                       <div v-if="loginForm.loginType === '2'">
+                           <ui-input v-model="loginForm.email" class="!h-60px !w-400px mb-24px" :placeholder="$t('请输入邮箱号码')">
+                               <div slot="prefix" class="flex items-center h-full ml-20px">
+                                   <img slot="prefix" src="/imgs/email_icon.png" class="w-30px h-auto"/>
+                               </div>
+                           </ui-input>
+                           <ui-input
+                                   v-model="loginForm.verifyCode"
+                                   class="!h-60px !w-400px mb-58px"
+                                   :placeholder="$t('请输入邮箱验证码')"
+                           >
+                               <div slot="prefix" class="flex items-center h-full ml-20px">
+                                   <img src="/imgs/vcode_icon.png" class="w-30px h-auto"/>
+                               </div>
+
+                               <div slot="suffix" class="flex items-center h-full">
+                                   <el-button
+                                           v-if="verifyCount <= 0"
+                                           @click="handleSendVerifyCode"
+                                           class="h-40px w-120px !text-size-14px !font-normal !px-0"
+                                           type="primary"
+                                           round
+                                   >{{ $t("获取邮箱验证码") }}
+                                   </el-button
+                                   >
+                                   <el-button
+                                           v-else
+                                           class="h-40px w-120px !text-size-14px !font-normal !px-0"
+                                           type="primary"
+                                           :disabled="true"
+                                           round
+                                   >{{ verifyCount}}S
+                                   </el-button
+                                   >
+                               </div>
+                           </ui-input>
+                       </div>
+                       <div v-if="loginForm.loginType === '1'" class="flex flex-col items-end">
+                           <ui-input v-model="loginForm.email" class="!h-60px !w-400px mb-24px" :placeholder="$t('请输入账号')">
+                               <div slot="prefix" class="flex items-center h-full ml-20px">
+                                   <img slot="prefix" src="/imgs/email_icon.png" class="w-30px h-auto"/>
+                               </div>
+                           </ui-input>
+                           <ui-input v-model="loginForm.password" :type="showPassword ? '' : 'password'" class="!h-60px !w-400px mb-15px" :placeholder="$t('请输入账号密码')">
+                               <div slot="prefix" class="flex items-center h-full ml-20px">
+                                   <img src="/imgs/password_icon.png" class="w-30px h-auto"/>
+                               </div>
+                               <div @click="showPassword=!showPassword" slot="suffix" class="flex items-center h-full mr-20px">
+                                   <img v-if="showPassword" src="/imgs/eye_icon.png" class="w-30px h-auto" />
+                                   <img
+                                           v-else
+                                           src="/imgs/eye_close_icon.png"
+                                           class="w-30px h-auto cursor-pointer"
+                                   />
+                               </div>
+                           </ui-input>
+                           <el-button
+                                   @click="()=>{show=false;$router.push('/change-pass')}"
+                                   type="text"
+                                   class="!font-normal !mb-27px !p-0"
+                           >
+                               {{ $t("忘记密码?") }}
+                           </el-button>
+                       </div>
+
+                       <el-button
+                               v-if="loginForm.loginType === '2'"
+                               class="h-60px w-400px !rounded-50px !text-size-24px !font-normal "
+                               :class="loginForm.email && (loginForm.verifyCode) ? '' : '!bg-[#F1F1F1] !color-[#686868] !pointer'"
+                               :type="loginForm.email && ( loginForm.verifyCode) ? 'primary' : ''"
+                               @click="handleLogin"
+                               round
+                       >{{ $t("登录") }}
+                       </el-button
+                       >
+                       <el-button
+                               v-if="loginForm.loginType === '1'"
+                               class="h-60px w-400px !rounded-50px !text-size-24px !font-normal "
+                               :class="loginForm.email && (loginForm.password ) ? '' : '!bg-[#F1F1F1] !color-[#686868] !pointer'"
+                               :type="loginForm.email && (loginForm.password ) ? 'primary' : ''"
+                               @click="handleLogin"
+                               round
+                       >{{ $t("登录") }}
+                       </el-button
+                       >
+                   </el-tab-pane>
+                   <el-tab-pane class="tab-pane" :label="$t('注册')" name="second">
+                       <div >
+                           <ui-input v-model="regForm.nickname" class="!h-60px !w-400px mb-24px" :placeholder="$t('请输入昵称')">
+                               <div slot="prefix" class="flex items-center h-full ml-20px">
+                                   <img slot="prefix" src="/imgs/user_icon.png" class="w-30px h-auto"/>
+                               </div>
+                           </ui-input>
+                           <ui-input  v-model="regForm.email" class="!h-60px !w-400px mb-24px" :placeholder="$t('请输入邮箱号码')">
+                               <div slot="prefix" class="flex items-center h-full ml-20px">
+                                   <img slot="prefix" src="/imgs/email_icon.png" class="w-30px h-auto"/>
+                               </div>
+                           </ui-input>
+                           <ui-input
+                                   class="!h-60px !w-400px mb-24px"
+                                   :placeholder="$t('请输入邮箱验证码')"
+                                   v-model="regForm.verifyCode"
+                           >
+                               <div slot="prefix" class="flex items-center h-full ml-20px">
+                                   <img src="/imgs/vcode_icon.png" class="w-30px h-auto"/>
+                               </div>
+
+                               <div slot="suffix" class="flex items-center h-full">
+                                   <el-button
+                                           v-if="verifyCount <= 0"
+                                           @click="handleSendVerifyCode"
+                                           class="h-40px w-120px !text-size-14px !font-normal !px-0"
+                                           type="primary"
+                                           round
+                                   >{{ $t("获取邮箱验证码") }}
+                                   </el-button
+                                   >
+                                   <el-button
+                                           v-else
+                                           class="h-40px w-120px !text-size-14px !font-normal !px-0"
+                                           type="primary"
+                                           :disabled="true"
+                                           round
+                                   >{{ verifyCount}}S
+                                   </el-button
+                                   >
+                               </div>
+                           </ui-input>
+                           <ui-input v-model="regForm.password" :type="showPassword ? '' : 'password'" class="!h-60px !w-400px mb-15px" :placeholder="$t('请输入账号密码')">
+                               <div slot="prefix" class="flex items-center h-full ml-20px">
+                                   <img src="/imgs/password_icon.png" class="w-30px h-auto"/>
+                               </div>
+                               <div @click="showPassword=!showPassword" slot="suffix" class="flex items-center h-full mr-20px">
+                                   <img v-if="!showPassword" src="/imgs/eye_icon.png" class="w-30px h-auto"/>
+                                   <img v-else src="/imgs/eye_close_icon.png" class="w-30px h-auto" />
+                               </div>
+                           </ui-input>
+
+                           <el-button
+                                   class="h-60px w-400px !rounded-50px !text-size-24px !font-normal"
+                                   type="primary"
+                                   round
+                                   :disabled="!regValid"
+                                   @click="handleRegister"
+                           >{{ $t("确定") }}
+                           </el-button
+                           >
+                       </div>
+                   </el-tab-pane>
+               </el-tabs>
+           </div>
+       </div>
+   </div>
+</template>
+
+<script>
+    export default {
+        data() {
+            return {
+                show:true,
+                activeName: "first",
+                loginType: "email",
+                regForm:{
+                    nickname:'',
+                    email:'',
+                    verifyCode:'',
+                    password:''
+                },
+                loginForm:{
+                    loginType:'2',
+                    email:'',
+                    password:''
+                },
+                verifyCount:0,
+                showPassword:false
+            };
+        },
+        methods:{
+            async handleClose(){
+               this.$store.commit('HIDE_LOGIN_BOX')
+            },
+            async handleSendVerifyCode(){
+
+                if(this.verifyCount > 0){
+                    return ;
+                }
+                let email = "";
+                if(this.activeName === "first"){
+                    email = this.loginForm.email;
+                }
+
+                if(this.activeName === "second"){
+                    email = this.regForm.email;
+                }
+
+                if(!email){
+                    this.$message.warning(this.$t('邮箱不能为空'));
+                    return;
+                }
+
+
+
+                let resp = await this.$http.post(this.$api.mzUser.sendVerifyCode,this.$qs.stringify({email:email}));
+
+                if(resp.data.status === 200){
+                    this.$message.success(this.$t('发送验证码成功'));
+
+                    this.verifyCount = 60;
+                    let inv = setInterval(()=>{
+                        this.verifyCount--;
+                        if(this.verifyCount <= 0){
+                            clearInterval(inv);
+                        }
+                    },1000);
+
+                }else{
+                    this.$message.error(this.$t('发送验证码失败'));
+                }
+
+            },
+            async handleRegister(){
+
+                let resp = await  this.$http.post(this.$api.mzUser.register,this.$qs.stringify(this.regForm));
+
+                if(resp.data.status === 200){
+                    this.$message.success(this.$t('注册成功'));
+                }else{
+                    this.$message.error(resp.data.desc);
+                }
+
+            },
+            async handleLogin(){
+                let resp = await  this.$http.post(this.$api.mzUser.login,this.$qs.stringify(this.loginForm));
+
+                if(resp.data.status === 200){
+                    this.$store.commit('UPDATE_LOGIN_INFO',resp.data.data.mzUser);
+                    this.$message.success(this.$t('登录成功'));
+                    this.$store.commit('HIDE_LOGIN_BOX');
+                    // if(this.$route.query.routeBack){
+                    //     this.$router.back();
+                    // }else{
+                    //     this.$router.push('/profile-complete')
+                    // }
+
+                }else{
+                    this.$message.error(resp.data.desc);
+                }
+            }
+        },
+        computed:{
+            regValid(){
+                return this.regForm.nickname && this.regForm.email && this.regForm.verifyCode  && this.regForm.password;
+            }
+        }
+    };
+</script>
+
+<style>
+
+    .login-box{
+        background-color: rgba(0,0,0,0.5);
+        z-index: 9999;
+        position: fixed;
+        display: flex;
+        justify-content: center;
+        align-items: center;
+        width: 100vw;
+        height: 100vh;
+        top: 0;
+        left: 0;
+    }
+
+    .login .el-input__inner {
+        background: #f7f7f7;
+        font-size: 16px;
+        padding-left: 60px !important;
+    }
+    .login .tab-pane {
+        @apply flex flex-col items-center pt-10px;
+    }
+    .login .el-tabs__nav {
+        @apply !w-full;
+    }
+
+    .login
+    .first
+    > .el-tabs__header
+    > .el-tabs__nav-wrap
+    > .el-tabs__nav-scroll
+    > .el-tabs__nav
+    > .el-tabs__item {
+        @apply text-size-24px font-normal !w-1/2 text-center !px-0;
+    }
+    .login .el-tabs .el-tabs__item.is-active {
+        @apply !text-size-36px font-normal;
+    }
+    .login .custom-tab {
+        @apply flex-1 flex justify-center items-center bg-[#F7F7F7] text-size-16px cursor-pointer;
+    }
+    .login .custom-tab.select {
+        @apply bg-white text-primary;
+    }
+    .login .custom-tab:first-child {
+        @apply border-r-1px border-solid border-r-[#E7E7E7] rounded-l-full;
+    }
+    .login .custom-tab:nth-child(2) {
+        @apply border-r-1px border-solid border-r-[#E7E7E7] rounded-r-full;
+    }
+</style>

+ 7 - 6
src/pc/components/ui-main-article/ui-main-article.vue

@@ -13,14 +13,14 @@
             <div class="w-19px"></div>
             <div class="flex flex-col flex-1 h-full">
                 <div class="h-18px"></div>
-                <div class="text-size-20px text-[#000A04] font-thin">
+                <div class="text-size-20px text-[#000A04] font-thin " style="font-weight: normal">
                     {{item.title}}
                 </div>
-                <div class="h-23px"></div>
-                <div class="text-[#686868] text-size-16px font-normal leading-20px h-40px description-ec">
+                <div class="h-24px"></div>
+                <div class="text-[#686868] text-size-16px font-normal leading-20px  description-ec" style="line-height: 1.5">
                     {{item.description ? item.description : ''}}
                 </div>
-                <div class="h-32px"></div>
+                <div class="h-24px"></div>
                 <div class="flex w-full items-center">
                     <div class="text-[#B8B8B8] text-size-14px font-normal w-100px">{{item.author ? item.author :'匿名'}}
                     </div>
@@ -68,11 +68,12 @@
 
                 if(!this.$store.state.userinfo.code){
                     this.$message.warning(this.$t('当前为付费资源,需登录后再阅读'));
-                    this.$router.push('/login?routeBack=true');
+                    // this.$router.push('/login?routeBack=true');
+                    this.$store.commit('SHOW_LOGIN_BOX');
                     return;
                 }
 
-                if (this.$store.state.userinfo.exipreVip) {
+                if (!this.$store.state.userinfo.exipreVip) {
                     this.$refs.vsb.open();
                     return;
                 }

+ 8 - 8
src/pc/components/ui-nav-bar/ui-nav-bar.vue

@@ -7,14 +7,14 @@
       <div class="flex h-full items-center" >
         <div
                 @click="$router.push('/home')"
-                class="transform hover:scale-110  ml-12px mr-12px"
+                class="transform hover:scale-110  ml-20px mr-20px"
                 :class="`menu-item ${currentPath === '/home' ? 'selected' : ''}`"
         >
           {{ $t("首页") }}
         </div>
         <div
                 @click="$router.push('/recommend')"
-                class="transform hover:scale-110 ml-12px mr-12px"
+                class="transform hover:scale-110 ml-20px mr-20px"
 
                 :class="`menu-item ${currentPath === '/recommend' ? 'selected' : ''}`"
         >
@@ -23,7 +23,7 @@
         <div
                 @mouseenter="typeVisible = true"
                 @mouseleave="handleAutoCloseSuggest"
-                class="transform hover:scale-110 ml-12px mr-12px"
+                class="transform hover:scale-110 ml-20px mr-20px"
                 :class="`menu-item ${currentPath === '/specific-article' ? 'selected' : ''}`"
         >
           {{ $t("分类浏览") }}
@@ -31,14 +31,14 @@
         </div>
         <div
                 @click="$router.push('/realtime-news')"
-                class="transform hover:scale-110 ml-12px mr-12px"
+                class="transform hover:scale-110 ml-20px mr-20px"
                 :class="`menu-item ${currentPath === '/realtime-news' ? 'selected' : ''}`"
         >
           {{ $t("实时新闻") }}
         </div>
         <div
                 @click="$router.push('/vip')"
-                class="transform hover:scale-110 ml-12px mr-12px"
+                class="transform hover:scale-110 ml-20px mr-20px"
 
                 :class="`menu-item ${currentPath === '/vip' ? 'selected' : ''}`"
         >
@@ -46,7 +46,7 @@
         </div>
         <div
                 @click="$router.push('/aboutus')"
-                class="transform hover:scale-110 ml-12px mr-12px"
+                class="transform hover:scale-110 ml-20px mr-20px"
 
                 :class="`menu-item ${currentPath === '/aboutus' ? 'selected' : ''}`"
         >
@@ -77,7 +77,7 @@
         <div class="w-40px"></div>
         <div
                 v-if="!$store.state.userinfo"
-                @click="$router.push('/login')"
+                @click="$store.commit('SHOW_LOGIN_BOX')"
                 class="transform hover:scale-110"
 
                 :class="`menu-item ${currentPath === '/login' ? 'selected' : ''}`"
@@ -93,7 +93,7 @@
 
                 class="-align-center"
         >
-          <img class="w-40px h-40px rounded-full mr-12px" v-if="$store.state.userinfo.avatar" :src="$store.state.userinfo.avatarUrl">
+          <img class="w-40px h-40px rounded-full mr-20px" v-if="$store.state.userinfo.avatar" :src="$store.state.userinfo.avatarUrl">
           <span class="font-size-20px">{{$store.state.userinfo.nickname}}</span>
         </div>
 

+ 20 - 0
src/pc/main.js

@@ -21,6 +21,26 @@ Vue.config.productionTip = false;
 Vue.config.devtools = true;
 Vue.prototype.$api = api;
 Vue.prototype.$http = axios;
+//http响应拦截器
+Vue.prototype.$http.interceptors.response.use(async (resp) => {
+
+  console.log(resp);
+  //如果未授权,则跳转至授权页面
+  if(resp.data.status === 401 && !qs.parse(resp.config.data)['unAuth']){
+
+    store.commit('SHOW_LOGIN_BOX');
+
+
+  }
+
+
+
+  return resp;
+
+}, error => {
+  console.log(error);
+  return Promise.reject(error)
+});
 Vue.prototype.$qs = qs;
 Vue.use(VueI18n);
 const messages = {

+ 40 - 5
src/pc/pages/article-detail/article-detail.vue

@@ -134,7 +134,7 @@
               <div class="text-size-16px text-[#000A04] mb-32px">
                  {{article.title}}
               </div>
-              <div v-html="article.description" class="text-size-14px text-[#686868] mb-24px">
+              <div v-html="article.description" class="text-size-14px text-[#686868] mb-24px" style="line-height: 1.5">
 
               </div>
               <div class="flex items-center w-full justify-end">
@@ -166,14 +166,43 @@ import domtoimage from "dom-to-image";
 export default {
   methods: {
     async exportPost() {
+      let vm = this;
+      function copyImage(url){
+        const image = new Image()
+        // 执行跨域请求获取图片
+        image.setAttribute('crossOrigin', 'anonymous')
+        image.onload = function () {
+          const canvas = document.createElement('canvas')
+          canvas.width = image.width
+          canvas.height = image.height
+          const context = canvas.getContext('2d')
+          context.drawImage(image, 0, 0, image.width, image.height)
+          // 使用canvas 将图片转换成为image/png的blob数据
+          canvas.toBlob(function (data) {
+            // clipboard.write 仅支持image/png的blob数据
+            navigator.clipboard.write([
+              new window.ClipboardItem({
+                [data.type]: data,
+              }),
+            ])
+            vm.$message.success(vm.$t('已复制到剪贴板'));
+          }, 'image/png')
+        }
+        image.src = url
+      }
+
+
+
       console.log(
         "%c [ this.$refs.post ]-245",
         "font-size:13px; background:pink; color:#bf2c9f;",
         this.$refs.post.$el
       );
       const url = await domtoimage.toPng(this.$refs.post.$el, { filter: false });
+      copyImage(url);
+
+
 
-      FileSaver.saveAs(url, "post.png");
     },
     async handleCollect(){
 
@@ -203,9 +232,15 @@ export default {
       }
     },
     async handleCopyLink(){
-      var url =document.getElementById("share-link");
-      url.select(); // 选择对象
-      document.execCommand("Copy"); // 执行浏览器复制命令
+      const str = window.location.href;
+      const inputo = document.createElement("input");
+      document.body.appendChild(inputo);
+      inputo.value = str;
+      inputo.setAttribute('readOnly', 'readOnly')
+      inputo.select();
+      document.execCommand("Copy");
+      document.body.removeChild(inputo);
+      this.$message.success(this.$t('已复制到剪贴板'));
     },
     async handleComment(){
 

+ 10 - 0
src/pc/pages/publish/publish.vue

@@ -9,6 +9,11 @@
             </div>
             <div class="mt-80px" v-html="simpleArticle.content"></div>
         </div>
+
+        <div class="flex justify-center items-center pt-30px">
+            <div @click="handleSubmit" class="w-400px h-40px bg-[#124026] rounded-full text-[#ffffff] flex justify-center items-center">我要投稿</div>
+        </div>
+
     </div>
 </template>
 
@@ -26,6 +31,11 @@
                 ],
             };
         },
+        methods:{
+           handleSubmit(){
+               window.open('mailto:test@example.com');
+           }
+        },
         async created() {
             let resp = await this.$http.post(this.$api.common.simpleArticle, this.$qs.stringify({flag: '投稿说明'}));
             if (resp.data.status === 200) {

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

@@ -107,7 +107,7 @@
 
               let resp = await  this.$http.post(this.$api.mzUser.logout);
               if(resp.data.status === 200){
-                this.$router.push('/login');
+                this.$router.push('/');
               }
             }
         },

+ 39 - 0
src/pc/pages/yssm/yssn.vue

@@ -0,0 +1,39 @@
+<template>
+  <div>
+
+    <ui-banner flag="关于我们"  :showPagination="true" banner-class="w-screen h-350px"></ui-banner>
+
+
+    <div class="w-1200px m-auto">
+      <div class="mt-68px text-[#000A04] text-size-36px text-center font-light">
+        {{simpleArticle.title}}
+      </div>
+      <div class="mt-80px" v-html="simpleArticle.content"></div>
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      simpleArticle:{},
+      banner1: [
+        { url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題" },
+        { url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題" },
+        { url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題" },
+        { url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題" },
+        { url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題" },
+      ],
+    };
+  },
+  async created() {
+      let resp = await  this.$http.post(this.$api.common.simpleArticle,this.$qs.stringify({flag:'隐私说明'}));
+      if(resp.data.status === 200){
+        this.simpleArticle = resp.data.data.simpleArticle;
+      }
+
+  }
+};
+</script>
+<style></style>

+ 39 - 0
src/pc/pages/zfsm/zfsm.vue

@@ -0,0 +1,39 @@
+<template>
+  <div>
+
+    <ui-banner flag="关于我们"  :showPagination="true" banner-class="w-screen h-350px"></ui-banner>
+
+
+    <div class="w-1200px m-auto">
+      <div class="mt-68px text-[#000A04] text-size-36px text-center font-light">
+        {{simpleArticle.title}}
+      </div>
+      <div class="mt-80px" v-html="simpleArticle.content"></div>
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      simpleArticle:{},
+      banner1: [
+        { url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題" },
+        { url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題" },
+        { url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題" },
+        { url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題" },
+        { url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題" },
+      ],
+    };
+  },
+  async created() {
+      let resp = await  this.$http.post(this.$api.common.simpleArticle,this.$qs.stringify({flag:'支付说明'}));
+      if(resp.data.status === 200){
+        this.simpleArticle = resp.data.data.simpleArticle;
+      }
+
+  }
+};
+</script>
+<style></style>

+ 6 - 0
src/pc/router/index.ts

@@ -25,7 +25,11 @@ import VipList from "@pc/pages/vip-list/vip-list.vue";
 import Vip from "@pc/pages/vip/vip.vue";
 import Search from "@pc/pages/search/search.vue";
 import Aboutus from "@pc/pages/aboutus/aboutus.vue";
+import Yssn from "@pc/pages/yssm/yssn.vue";
+import Zfsm from "@pc/pages/zfsm/zfsm.vue";
 import Publish from "@pc/pages/publish/publish.vue";
+import yssn from "@pc/pages/yssm/yssn.vue";
+import zfsm from "@pc/pages/zfsm/zfsm.vue";
 
 Vue.use(VueRouter);
 
@@ -52,6 +56,8 @@ export const routes: RouteConfig[] = [
       { path: "/vip", component: Vip },
       { path: "/search", component: Search },
       { path: "/aboutus", component: Aboutus },
+      { path: "/yssm", component: yssn },
+      { path: "/zfsm", component: zfsm },
       { path: "/publish", component: Publish },
       {
         path: "/user",

+ 7 - 0
src/pc/store.js

@@ -5,6 +5,7 @@ Vue.use(Vuex)
 
 export default new Vuex.Store({
   state: {
+      showLoginBox:false,
       userinfo:'',
       banners:[],
       cart:[]
@@ -18,6 +19,12 @@ export default new Vuex.Store({
       },
       ADD_CART(state,param){
           state.cart.push(param);
+      },
+      HIDE_LOGIN_BOX(state,param){
+          state.showLoginBox = false;
+      },
+      SHOW_LOGIN_BOX(state,param){
+          state.showLoginBox = true;
       }
   },
   actions: {

+ 1 - 1
vite.config.pc.ts

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