Browse Source

发布版修改

master
z_yu 2 years ago
parent
commit
45035cd48c
  1. 14
      public/index.html
  2. 12
      src/App.vue
  3. 2
      src/assets/styles/index.scss
  4. 2
      src/router/index.js
  5. 8
      src/views/bookRackList.vue

14
public/index.html

@ -5,6 +5,20 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no"> <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<script>
window.onload = function() {
document.addEventListener('touchstart', function(event) {
if (event.touches.length > 1) {
event.preventDefault()
}
},
{ passive: false }
)
document.addEventListener('gesturestart', function(event) {
event.preventDefault()
})
}
</script>
<title><%= htmlWebpackPlugin.options.title %></title> <title><%= htmlWebpackPlugin.options.title %></title>
</head> </head>
<body> <body>

12
src/App.vue

@ -1,11 +1,19 @@
<template> <template>
<div id="app"> <div id="app">
<keep-alive> <keep-alive>
<router-view />
<router-view :key="key" />
</keep-alive> </keep-alive>
</div> </div>
</template> </template>
<script>
export default {
computed: {
key() {
return this.$route.path + Math.random()
}
}
}
</script>
<style lang="scss"> <style lang="scss">
body { body {
margin: 0; margin: 0;

2
src/assets/styles/index.scss

@ -189,7 +189,7 @@
.list-item{ .list-item{
display: flex; display: flex;
height: calc(100%/2 - 20px); height: calc(100%/2 - 20px);
justify-content: space-between;
justify-content: flex-start;
.book-img{ .book-img{
display: flex; display: flex;
align-items: center; align-items: center;

2
src/router/index.js

@ -56,7 +56,7 @@ const routes = [
] ]
const router = new VueRouter({ const router = new VueRouter({
mode: 'history',
mode: 'hash',
routes routes
}) })

8
src/views/bookRackList.vue

@ -1,9 +1,10 @@
<template> <template>
<div id="bookshelf"> <div id="bookshelf">
<div class="bookshelf-header" style="height:120px"> <div class="bookshelf-header" style="height:120px">
<router-link to="/">
<!-- <router-link to="/">
<span class="icon iconfont icon-l">&#xe631;</span> <span class="icon iconfont icon-l">&#xe631;</span>
</router-link>
</router-link> -->
<span class="icon iconfont icon-l" @click="goBack()">&#xe631;</span>
<h2>本架图书</h2> <h2>本架图书</h2>
<div class="rack-direct"> <div class="rack-direct">
<span :class="classnameL" @click="handleDirect(-1)"></span> <span :class="classnameL" @click="handleDirect(-1)"></span>
@ -112,6 +113,9 @@ export default {
} }
this.initBookshelfDetails(n) this.initBookshelfDetails(n)
}, },
goBack() {
this.$router.go(-1)
},
initBookshelfDetails(n) { initBookshelfDetails(n) {
this.loading = true this.loading = true
const params = {} const params = {}

Loading…
Cancel
Save