zhuf 1 рік тому
батько
коміт
f2d4d756f2
4 змінених файлів з 147 додано та 9 видалено
  1. 8 2
      index.html
  2. 133 1
      src/components/TheFooter.vue
  3. 2 2
      src/components/TheHeader.vue
  4. 4 4
      src/store/user.ts

+ 8 - 2
index.html

@@ -1,5 +1,6 @@
 <!DOCTYPE html>
-<html lang="en">
+<html lang="zh-CN">
+
 <head>
   <meta charset="UTF-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -7,11 +8,16 @@
   <title>宜昌市乡村教育振兴网络扶智课堂</title>
   <meta name="description" content="Opinionated Vite Starter Template">
 </head>
+
 <body class="font-sans">
+  <div id="publicHeader"></div>
   <div id="app"></div>
+  <div id="publicFooter"></div>
   <noscript>
     <div>Please enable JavaScript to use this application.</div>
   </noscript>
   <script type="module" src="/src/main.ts"></script>
+
 </body>
-</html>
+
+</html>

+ 133 - 1
src/components/TheFooter.vue

@@ -1,3 +1,135 @@
+<script setup lang='ts'>
+const footerData = ref<any>()
+
+function jumpdetail(item: any) {
+  window.location.href = item.url
+}
+
+request({
+  url: '/index/main/web_footer',
+}).then((res) => {
+  footerData.value = res.data
+})
+</script>
+
 <template>
-  <div class="h-160px bg-dark-50 text-light-50" />
+  <div id="publicFooterContent">
+    <div class="publicFooter_footer_model">
+      <div class="publicFooter_footer_wrapper">
+        <div class="publicFooter_footer_wx_wrapper">
+          <img :src="footerData?.qrcode" alt="" class="publicFooter_footer_wx">
+          <div class="publicFooter_footer_wx_text" v-html="footerData?.qrcode_brief" />
+          <div class="publicFooter_footer_wx_text" />
+        </div>
+        <div class="publicFooter_footer_connect_us">
+          <div style="margin-bottom:8px;">
+            {{ footerData?.contact_name }}
+          </div>
+          <div style="font-size:18px;">
+            {{ footerData?.contact_phone }}
+          </div>
+        </div>
+        <div v-for="(item, key) in footerData?.footer_menu" v-show="key != 0" :key="key" class="publicFooter_footer_item">
+          <div style="margin-bottom:8px;height:27px;">
+            {{ item.name }}
+          </div>
+          <div v-for="(childItem, childKey) in item.submenu" :key="childKey" class="publicFooter_footer_item_child">
+            <a @click.stop="jumpdetail(childItem)">{{ childItem.name }}</a>
+          </div>
+        </div>
+        <div class="publicFooter_footer_wx_wrapper" style="float:right">
+          <img :src="footerData?.site_app_qrcode" alt="" class="publicFooter_footer_wx">
+          <div class="publicFooter_footer_wx_text">
+            {{ footerData?.site_app_qrcode_brief }}
+          </div>
+          <div class="publicFooter_footer_wx_text" />
+        </div>
+        <div style="clear:both;" />
+      </div>
+      <div style="width:300px;margin:0 auto; padding:20px 0;">
+        <a
+          target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=32050702010915"
+          style="display:inline-block;text-decoration:none;height:20px;line-height:20px;"
+        >
+          <img src="" style="float:left;">
+          <p style="float:left;height:20px;line-height:20px; color:#fff;font-size:14px;">苏公网安备 32050702010915号</p>
+        </a>
+        <p style="width:600px;color:#fff;font-size:14px;">
+          技术支持
+          <a style="color:#ffff;font-size:14px;" href="http://www.bozedu.net" target="_blank">宜昌市乡村教育振兴网络扶智课堂</a>
+          2019 ( <a style="color:#fff;font-size:14px" href="https://beian.miit.gov.cn" target="_blank">苏ICP备15025316号</a>
+          )
+        </p>
+      </div>
+    </div>
+  </div>
 </template>
+
+<style>
+.publicFooter_footer_model {
+  width: 100%;
+  /* height: 276px; */
+  background: rgba(31, 35, 47, 1);
+}
+
+.publicFooter_footer_wrapper {
+  width: 1200px;
+  margin: 0 auto;
+  position: relative;
+  padding-top: 64px;
+}
+
+.publicFooter_footer_wx_wrapper {
+  float: left;
+  width: 120px;
+  height: 120px;
+  text-align: center;
+}
+
+.publicFooter_footer_wx {
+  width: 110px;
+  height: 110px;
+}
+
+.publicFooter_footer_wx_text {
+  font-size: 12px;
+  font-family: PingFangSC-Regular, PingFang SC;
+  font-weight: 400;
+  color: rgba(255, 255, 255, 1);
+  line-height: 20px;
+}
+
+.publicFooter_footer_connect_us {
+  float: left;
+  font-size: 16px;
+  font-family: PingFangSC-Regular, PingFang SC;
+  color: rgba(255, 255, 255, 1);
+  line-height: 25px;
+  margin-left: 80px;
+  padding-top: 6px;
+  margin-right: 50px;
+}
+
+.publicFooter_footer_item {
+  float: left;
+  font-size: 16px;
+  font-family: PingFangSC-Regular, PingFang SC;
+  color: rgba(255, 255, 255, 1);
+  line-height: 25px;
+  padding-top: 6px;
+  margin-left: 80px;
+}
+
+.publicFooter_footer_item_child {
+  font-size: 14px;
+  font-family: PingFangSC-Semibold, PingFang SC;
+  color: rgba(255, 255, 255, 0.5);
+  line-height: 20px;
+  margin-bottom: 10px;
+}
+
+.publicFooter_footer_item_child:hover {
+  cursor: pointer;
+  color: #2a80f7;
+}
+</style>

+ 2 - 2
src/components/TheHeader.vue

@@ -21,7 +21,7 @@ const NavList = [
     label: '系列课程',
   },
   {
-    id: 'http://127.0.0.1:5505/page/task.html',
+    id: `${location.origin}/page/task.html`,
     label: '精准教学',
   },
 ]
@@ -54,7 +54,7 @@ function browserOpen(path: string) {
         </div>
         <template #dropdown>
           <el-dropdown-menu>
-            <el-dropdown-item @click="browserOpen(`https://openapi.bozedu.net/login.html?token=${user.token}`)">
+            <el-dropdown-item @click="browserOpen('https://ycxcktapi.bozedu.net/index.php?mod=index&action=index&do=index')">
               后台管理
             </el-dropdown-item>
           </el-dropdown-menu>

Різницю між файлами не показано, бо вона завелика
+ 4 - 4
src/store/user.ts