zhuliu 1 年間 前
コミット
1d9acd80c7

ファイルの差分が大きいため隠しています
+ 1958 - 0
public/PrivacyPolicy.html


ファイルの差分が大きいため隠しています
+ 2418 - 0
public/UserAgreement.html


ファイルの差分が大きいため隠しています
+ 1910 - 0
public/translate.html


+ 2 - 0
public/updateLog.files/filelist.xml

@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<xml xmlns:o="urn:schemas-microsoft-com:office:office"><o:MainFile HRef="../updateLog.html"/><o:File HRef="filelist.xml"/></xml>

ファイルの差分が大きいため隠しています
+ 346 - 0
public/updateLog.html


+ 9 - 1
src/router/index.js

@@ -27,6 +27,14 @@ const routes = [
     component: () => import("@/views/login/index.vue")
   },
   {
+    path: "/agreeConceal",
+    name:'agreeConceal',
+    meta: {
+      title: '用户须知'
+    },
+    component: () => import('@/views/login/compoments/invite/components/index.vue')
+  },
+  {
     path: "",
     component: () => import('@/views/layout/index.vue'),
     children: [
@@ -573,7 +581,7 @@ const router = new VueRouter({
 })
 
 router.beforeEach((to, from, next) => {
-   if (to.path === '/login'||to.path==='/'){
+   if (to.path === '/login'||to.path==='/' || to.path == '/agreeConceal'){
     if (to.meta.title) {
       document.title = to.meta.title;
     }

+ 41 - 0
src/views/home/components/dialog/updateLog.vue

@@ -0,0 +1,41 @@
+<template>
+    <el-dialog title="更新日志"  :visible.sync="dialogVisible" width="700px" :before-close="handleClose">
+        <div style="">
+            <div style="background: white;padding: 10px;" v-html="html"></div>
+        </div>
+    </el-dialog>
+    
+</template>
+  
+  <script>
+  
+  export default {
+    data() {
+      return {
+        html: '',
+        dialogVisible:false
+      }
+    },
+    watch: {
+    },
+    mounted() { 
+    },
+    methods: {
+        open(){
+            this.dialogVisible  =true
+            this.fetchHtmlFile()
+        },
+        handleClose(){
+            this.dialogVisible  =false
+        },
+      async fetchHtmlFile() {
+        await fetch('/updateLog.html').then(res => res.text()  ).then(data => {
+            console.log(data)
+          this.html = data     
+        })
+      },
+    },
+  }
+  </script>
+  
+  <style scoped></style>

+ 8 - 3
src/views/home/index.vue

@@ -62,12 +62,13 @@
             <el-link :underline="false" class="elLink">实时动态</el-link>
           </div>
           <div class="elLink">
-            <i class="iconfont icon-xinxi font-size_20"></i>
+            <i class="iconfont icon-xinxi font-size_20" @click="updateLog"></i>
           </div>
         </div>
       </div>
     </div>
     <feedback ref="feedback"></feedback>
+    <updateLog ref="updateLog"></updateLog>
   </div>
 </template>
 
@@ -75,11 +76,13 @@
 import carousel from './components/carousel.vue'
 import myEcharts from './components/echarts';
 import feedback from '@/views/layout/components/dialog/feedback.vue';
+import updateLog from './components/dialog/updateLog.vue'
 export default {
   components: {
     carousel,
     myEcharts,
-    feedback
+    feedback,
+    updateLog
   },
   data() {
     return {
@@ -118,7 +121,9 @@ export default {
     }
   },
   methods: {
-    
+    updateLog(){
+      this.$refs.updateLog.open()
+    },
     // 点击搜索
     search(){
       if(!this.queryParams.select){