浏览代码

修改首页链接

任一存 3 年之前
父节点
当前提交
c224646e99

+ 4 - 11
web/src/main.js

@@ -7,18 +7,11 @@ import 'element-ui/lib/theme-chalk/index.css';
 import './assets/css/base.css'
 import './assets/css/base.css'
 Vue.use(ElementUI);
 Vue.use(ElementUI);
 
 
-// 封装一个mixin,用来为所有dom添加一个 accessible 的类
-const addClass = {
-  mounted() {
-    let nodes = document.all;
-    for (let i = 0; i < nodes.length; i++) {
-      let o = nodes[i];
-      o.classList.add('accessible')
-    }
-  }
-}
-Vue.mixin(addClass)
+Vue.mixin({
+})
 
 
+// 不能通过location去判断
+Vue.prototype.$homePageUrl = 'http://192.168.0.81:8081/main'
 
 
 Vue.config.productionTip = false
 Vue.config.productionTip = false
 new Vue({
 new Vue({

+ 1 - 1
web/src/views/About/index.vue

@@ -88,7 +88,7 @@
       />
       />
     </div>
     </div>
     <div class="contact">
     <div class="contact">
-      <p>Official website of Capital Museum: <span>首页(地址待定)</span></p>
+      <p>Official website of Capital Museum: <a :href="$homePageUrl">{{$homePageUrl}}</a></p>
       <p>
       <p>
         Telephone reservation (individual visitors):
         Telephone reservation (individual visitors):
         <span>+86 (10) 63393339</span>
         <span>+86 (10) 63393339</span>

+ 3 - 3
web/src/views/Visit/Visit2.vue

@@ -67,9 +67,9 @@
                   text-decoration: none;
                   text-decoration: none;
                 "
                 "
                 ><a
                 ><a
-                  href="/"
+                  :href="$homePageUrl"
                   style="color: rgb(255, 0, 0)"
                   style="color: rgb(255, 0, 0)"
-                  >首页(地址待定)</a
+                  >{{$homePageUrl}}</a
                 ></span
                 ></span
               >
               >
               <span
               <span
@@ -519,7 +519,7 @@
                     font-family: arial, helvetica, sans-serif;
                     font-family: arial, helvetica, sans-serif;
                     color: rgb(255, 0, 0);
                     color: rgb(255, 0, 0);
                   "
                   "
-                  >首页(地址待定)</span
+                  >{{$homePageUrl}}</span
                 >&nbsp; &nbsp; &nbsp; &nbsp;Phone:
                 >&nbsp; &nbsp; &nbsp; &nbsp;Phone:
                 <span
                 <span
                   style="
                   style="

+ 1 - 1
web/src/views/Visit/Visit7.vue

@@ -20,7 +20,7 @@
     </div>
     </div>
     <div class="thank">Thank you for your cooperation.</div>
     <div class="thank">Thank you for your cooperation.</div>
     <div class="bottom">
     <div class="bottom">
-      <p>Official website of Capital Museum <span>首页(地址待定)</span></p>
+      <p>Official website of Capital Museum <a :href="$homePageUrl">{{$homePageUrl}}</a></p>
       <p>Telephone reservation (individual visitors) <span>+86 (10) 63393339</span></p>
       <p>Telephone reservation (individual visitors) <span>+86 (10) 63393339</span></p>
       <p>Telephone reservation (group visitors) <span>+86 (10) 63370458</span></p>
       <p>Telephone reservation (group visitors) <span>+86 (10) 63370458</span></p>
       <p>Inquiry Hotline <span>+86 (10) 63370491</span></p>
       <p>Inquiry Hotline <span>+86 (10) 63370491</span></p>

+ 1 - 1
web/src/views/accessibility.vue

@@ -409,7 +409,7 @@ export default {
         Prop3=19,2
         Prop3=19,2
         [InternetShortcut]
         [InternetShortcut]
         IDList=
         IDList=
-        URL=${location.origin}/main/index.html
+        URL=${this.$homePageUrl}
       `),
       `),
 
 
       audioPlayer: null,
       audioPlayer: null,

+ 2 - 2
web/src/views/bottom/Use.vue

@@ -47,13 +47,13 @@
             <p>
             <p>
               (1) For non-commercial, non-profit and non-advertising uses,
               (1) For non-commercial, non-profit and non-advertising uses,
               author's name and source of the used article or picture,
               author's name and source of the used article or picture,
-              "首都博物馆网站" or "首页(地址待定)", should be attached.
+              "首都博物馆网站" or "{{$homePageUrl}}", should be attached.
             </p>
             </p>
             <p>
             <p>
               (2) For business, profit-making and advertising use, you should
               (2) For business, profit-making and advertising use, you should
               obtain consent of the original author, and attach the name of that
               obtain consent of the original author, and attach the name of that
               author, limits of authority and the source, "首都博物馆网站"or
               author, limits of authority and the source, "首都博物馆网站"or
-              "首页(地址待定)".
+              "{{$homePageUrl}}".
             </p>
             </p>
             <p>
             <p>
               (3) Any modification and cancellation of any articles or pictures
               (3) Any modification and cancellation of any articles or pictures