Browse Source

Merge remote-tracking branch 'origin/master'

master
x_ying 2 years ago
parent
commit
b18bf9bfe6
  1. 3
      .env.production
  2. 8
      src/router/index.js
  3. 90
      src/views/data.json
  4. 9
      src/views/digitalResource.vue
  5. 49
      src/views/index.vue

3
.env.production

@ -3,7 +3,6 @@ ENV = 'production'
# 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置 # 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置
# 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http # 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http
# VUE_APP_BASE_API = 'https://openapitest.aiyxlib.com' # VUE_APP_BASE_API = 'https://openapitest.aiyxlib.com'
VUE_APP_BASE_API = 'http://192.168.99.107:7070'
VUE_APP_BASE_API = 'http://120.76.47.59:8080'
# 如果接口是 http 形式, wss 需要改为 ws # 如果接口是 http 形式, wss 需要改为 ws
VUE_APP_WS_API = 'ws://192.168.99.107:7071' VUE_APP_WS_API = 'ws://192.168.99.107:7071'
VUE_APP_CAMERA_API = '192.168.99.107'

8
src/router/index.js

@ -4,14 +4,6 @@ import VueRouter from 'vue-router'
Vue.use(VueRouter) Vue.use(VueRouter)
const routes = [ const routes = [
{
path: '/',
name: 'index',
component: () => import('../views/index.vue'),
meta: {
title: '自助查询机'
}
},
{ {
path: '/NewBookRecommend', path: '/NewBookRecommend',
name: 'NewBookRecommend', name: 'NewBookRecommend',

90
src/views/data.json

@ -1,90 +0,0 @@
{
"ranking":[
{
"img":"https://qiniu.aiyxlib.com/bg.png",
"title": "大个子狗与小个子猫",
"author": "高小定",
"ranking": 1
},
{
"img":"https://qiniu.aiyxlib.com/bg.png",
"title": "森林大探险",
"author": "卷毛老师",
"ranking": 2
},
{
"img":"https://qiniu.aiyxlib.com/bg.png",
"title": "家有喵星人",
"author": "查尔斯",
"ranking": 3
},
{
"img":"https://qiniu.aiyxlib.com/bg.png",
"title": "奇妙的冒险",
"author": "李小飞",
"ranking": 4
},
{
"img":"https://qiniu.aiyxlib.com/bg.png",
"title": "豆豆龙成长记",
"author": "卷毛老师",
"ranking": 5
},
{
"img":"https://qiniu.aiyxlib.com/bg.png",
"title": "奇妙的冒险",
"author": "李小飞",
"ranking": 6
},
{
"img":"https://qiniu.aiyxlib.com/bg.png",
"title": "豆豆龙成长记",
"author": "卷毛老师",
"ranking": 7
}
],
"readstar":[
{
"des": "读者张山上周借阅图书30册",
"date": "2022-09-06",
"ranking": 1
},
{
"des": "读者张山上周借阅图书30册",
"date": "2022-09-06",
"ranking": 2
},
{
"des": "读者张山上周借阅图书30册",
"date": "2022-09-06",
"ranking": 3
},
{
"des": "读者张山上周借阅图书30册",
"date": "2022-09-06",
"ranking": 4
},
{
"des": "读者张山上周借阅图书30册",
"date": "2022-09-06",
"ranking": 5
}
,
{
"des": "读者张山上周借阅图书30册",
"date": "2022-09-06",
"ranking": 6
},
{
"des": "读者张山上周借阅图书30册",
"date": "2022-09-06",
"ranking": 7
}
,
{
"des": "读者张山上周借阅图书30册",
"date": "2022-09-06",
"ranking": 8
}
]
}

9
src/views/digitalResource.vue

@ -64,15 +64,6 @@ export default {
}, },
jump(url) { jump(url) {
window.location.href = url window.location.href = url
},
arrayBufferToBase64(buffer) {
var binary = ''
var bytes = new Uint8Array(buffer)
var len = bytes.byteLength
for (var i = 0; i < len; i++) {
binary += String.fromCharCode(bytes[i])
}
return window.btoa(binary)
} }
} }
} }

49
src/views/index.vue

@ -1,49 +0,0 @@
<template>
<div id="screen-container" class="index-box">
<header>
<div class="logo" />
<div class="header-title" />
</header>
<main>
<div class="up-box">
<div class="up-left">
<div class="brief tac bg-middle" @click="toPath('/LibraryIntroduction')"><span class="span-middle">图书馆简介</span></div>
<div class="up-left-down">
<div class="guide tac bg-big"><span class="span-big">场馆导航</span></div>
<div class="right-of-guide">
<div class="new-book tac bg-small" @click="toPath('/NewBookRecommend')"><span class="span-small">新书推荐</span></div>
<div class="digital tac bg-small" @click="toPath('/DigitalResource')"><span class="span-small">数字资源</span></div>
</div>
</div>
</div>
<div class="up-right tac bg-big"><span class="span-big">图书检索</span></div>
<div class="activities tac bg-middle" @click="toPath('/ActivityFeed')"><span class="span-middle">活动咨询</span></div>
</div>
</main>
</div>
</template>
<script>
export default {
name: 'Home',
components: {
},
data() {
return {
}
},
created() {
},
mounted() {
},
methods: {
toPath(path) {
this.$router.push(path)
}
}
}
</script>
<style lang="scss">
@import "~@/assets/styles/index.scss";
</style>
Loading…
Cancel
Save