浏览代码

set up some links

night-cherry 7 月之前
父节点
当前提交
65f64bae8e
共有 11 个文件被更改,包括 117 次插入7 次删除
  1. 0 0
      common/Banner.vue
  2. 0 0
      common/Footer.vue
  3. 0 0
      common/Header.vue
  4. 29 0
      component/About.vue
  5. 26 0
      component/Home.vue
  6. 13 0
      component/certification/Login.vue
  7. 29 0
      component/certification/Register.vue
  8. 13 0
      component/test.vue
  9. 1 1
      index.html
  10. 3 3
      index.js
  11. 3 3
      router.js

+ 0 - 0
vue/test.vue → common/Banner.vue


+ 0 - 0
vue/Home.vue → common/Footer.vue


+ 0 - 0
vue/About.vue → common/Header.vue


+ 29 - 0
component/About.vue

@@ -0,0 +1,29 @@
+<template>
+<div>
+  <h4 style="color:orange;">about vue component!!!</h4>
+<!--  <h4>{{number}}</h4>-->
+<!--
+  <p>Louis_Wiki ---- we are a team to provide the service to gift customization</p>
+-->
+  <p>contact:19970419890</p>
+</div>
+</template>
+<script type="module">
+export default {
+  methods:{
+    add_number(){
+
+    }
+  },
+  setup(){
+    console.log("about vue component setup");
+  },
+  mounted(el){
+    console.log("about vue under mounted ---");
+  }
+}
+</script>
+
+
+
+

+ 26 - 0
component/Home.vue

@@ -0,0 +1,26 @@
+<template>
+<div>
+  <h4 style="color:oranged;">this is home vue component!!!</h4>
+  <button @click="add_number">add number</button>
+<!--  <h4>{{number}}</h4>-->
+</div>
+</template>
+<script type="module">
+export default {
+  emits:["op"],
+  methods:{
+    add_number(){
+      this.$emit("op");
+    }
+  },
+  setup(){
+    console.log("home vue component setup");
+  },
+  mounted(el){
+    console.log("home vue under mounted ---");
+  }
+}
+</script>
+
+
+

+ 13 - 0
component/certification/Login.vue

@@ -0,0 +1,13 @@
+<script>
+export default {
+  data() {
+    return {
+      count: 0
+    }
+  }
+}
+</script>
+
+<template>
+  <button @click="count++">You clicked me {{ count }} times.</button>
+</template>

+ 29 - 0
component/certification/Register.vue

@@ -0,0 +1,29 @@
+<template>
+<div>
+  <h4 style="color:orange;">about vue component!!!</h4>
+<!--  <h4>{{number}}</h4>-->
+<!--
+  <p>Louis_Wiki ---- we are a team to provide the service to gift customization</p>
+-->
+  <p>contact:19970419890</p>
+</div>
+</template>
+<script type="module">
+export default {
+  methods:{
+    add_number(){
+
+    }
+  },
+  setup(){
+    console.log("about vue component setup");
+  },
+  mounted(el){
+    console.log("about vue under mounted ---");
+  }
+}
+</script>
+
+
+
+

+ 13 - 0
component/test.vue

@@ -0,0 +1,13 @@
+<script>
+export default {
+  data() {
+    return {
+      count: 0
+    }
+  }
+}
+</script>
+
+<template>
+  <button @click="count++">You clicked me {{ count }} times.</button>
+</template>

+ 1 - 1
index.html

@@ -23,7 +23,7 @@
 		</div>
 		</div>
 		
 		
 		<div>
 		<div>
-			<h3>{{$t('messages.pages.title')}} : </h3>
+			<h3>{{$t('messages.pages.craft.title')}} : </h3>
 			<span><a href="{{$t('messages.pages.craft.software_customization_link')}}">{{$t('messages.pages.craft.software_customization')}}</a></span>
 			<span><a href="{{$t('messages.pages.craft.software_customization_link')}}">{{$t('messages.pages.craft.software_customization')}}</a></span>
 			<span><a href="{{$t('messages.pages.craft.uv_product_customization_link')}}">{{$t('messages.pages.craft.uv_product_customization')}}</a></span>
 			<span><a href="{{$t('messages.pages.craft.uv_product_customization_link')}}">{{$t('messages.pages.craft.uv_product_customization')}}</a></span>
 			<span><a href="{{$t('messages.pages.craft.lazer_marking_and_cutting_link')}}">{{$t('messages.pages.craft.lazer_marking_and_cutting')}}</a></span>
 			<span><a href="{{$t('messages.pages.craft.lazer_marking_and_cutting_link')}}">{{$t('messages.pages.craft.lazer_marking_and_cutting')}}</a></span>

+ 3 - 3
index.js

@@ -23,9 +23,9 @@ import {createApp } from 'vue';
 //import { createApp } from './js/vue.esm-browser.js';
 //import { createApp } from './js/vue.esm-browser.js';
 //import { createApp } from './js/vue.global.js';
 //import { createApp } from './js/vue.global.js';
 //import { Home } from "./vue/Home.vue";
 //import { Home } from "./vue/Home.vue";
-import Home from "./vue/Home.vue";
-import test from "./vue/test.vue";
-import About from "./vue/About.vue";
+import Home from "./component/Home.vue";
+import test from "./component/test.vue";
+import About from "./component/About.vue";
 import i18n from "./i18n.js";
 import i18n from "./i18n.js";
 import { useI18n } from 'vue-i18n';
 import { useI18n } from 'vue-i18n';
 
 

+ 3 - 3
router.js

@@ -1,7 +1,7 @@
 import { createRouter , createWebHashHistory } from 'vue-router';
 import { createRouter , createWebHashHistory } from 'vue-router';
-import Home from "./vue/Home.vue";
-import test from "./vue/test.vue";
-import About from "./vue/About.vue";
+import Home from "./component/Home.vue";
+import test from "./component/test.vue";
+import About from "./component/About.vue";
 const routes=[
 const routes=[
   { path:'/',redirect:'/home' },
   { path:'/',redirect:'/home' },
   { path:'/home',component:Home },
   { path:'/home',component:Home },