提交
This commit is contained in:
parent
808baf798b
commit
4e228cadd1
0
public/favicon.ico → public/img/favicon.ico
Executable file → Normal file
0
public/favicon.ico → public/img/favicon.ico
Executable file → Normal file
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
@ -4,7 +4,7 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/>
|
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/>
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>/img/favicon.ico">
|
||||||
<!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
|
<!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
|
||||||
<title>寄托论坛</title>
|
<title>寄托论坛</title>
|
||||||
</head>
|
</head>
|
||||||
|
11
src/App.vue
11
src/App.vue
@ -3,7 +3,6 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<router-view />
|
<router-view />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -22,14 +21,18 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
this.$store.dispatch('fetchHistoricalSearch') // 获取历史搜索记录
|
this.$store.dispatch('fetchHistoricalSearch') // 获取历史搜索记录
|
||||||
this.$store.dispatch('getAllForum', this) // 获取全部板块
|
this.$store.dispatch('getAllForum', this) // 获取全部板块
|
||||||
|
|
||||||
this.isJudgePc()
|
this.isJudgePc()
|
||||||
|
|
||||||
|
// this.$skipUrl("gggg", false)
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
isJudgePc() {
|
isJudgePc() {
|
||||||
|
|
||||||
const userAgentInfo = navigator.userAgent;
|
const userAgentInfo = navigator.userAgent;
|
||||||
const Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
|
const Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
|
||||||
let flag = true;
|
let flag = true;
|
||||||
@ -40,6 +43,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (flag) {
|
if (flag) {
|
||||||
let pathname = window.location.pathname
|
let pathname = window.location.pathname
|
||||||
|
|
||||||
@ -67,8 +72,10 @@ export default {
|
|||||||
if (pathname.indexOf("allSections") != -1 && !parameterObject['fid']) url = `https://bbs.gter.net/forum.php`
|
if (pathname.indexOf("allSections") != -1 && !parameterObject['fid']) url = `https://bbs.gter.net/forum.php`
|
||||||
if (pathname.indexOf("recommend") != -1) url = `https://bbs.gter.net/forum.php`
|
if (pathname.indexOf("recommend") != -1) url = `https://bbs.gter.net/forum.php`
|
||||||
if (pathname.indexOf("collect") != -1) url = `https://bbs.gter.net/forum.php`
|
if (pathname.indexOf("collect") != -1) url = `https://bbs.gter.net/forum.php`
|
||||||
|
if (pathname == "/" || pathname == "" || !pathname) url = `https://bbs.gter.net/forum.php`
|
||||||
|
|
||||||
this.$skipUrl(url, false)
|
|
||||||
|
if (url) this.$skipUrl(url, false)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,14 +12,12 @@
|
|||||||
<div class="discussion-single-box flexflex flex1">
|
<div class="discussion-single-box flexflex flex1">
|
||||||
<div class="discussion-single-content flexacenter flex1">
|
<div class="discussion-single-content flexacenter flex1">
|
||||||
<input class="discussion-single-input flex1" cursor-spacing="5" type="text"
|
<input class="discussion-single-input flex1" cursor-spacing="5" type="text"
|
||||||
:placeholder="twoCommentData ? '写回复…' : '想问啥,大胆问…'" :value="commentContent"
|
:placeholder="twoCommentData ? '写回复…' : '想问啥,大胆问…'" maxlength="500" :value="commentContent"
|
||||||
@input="inputCommentContent($event)" v-focus />
|
@input="inputCommentContent($event)" v-focus />
|
||||||
<img class="discussion-single-input-icom" @click.stop="setValue()"
|
<img class="discussion-single-input-icom" @click.stop="setValue()"
|
||||||
src="@/assets/img/detail/unfold.png" />
|
src="@/assets/img/detail/unfold.png" />
|
||||||
</div>
|
</div>
|
||||||
<div class="discussion-single-btn flexcenter" @click.stop="postComment()">
|
<div class="discussion-single-btn flexcenter" @click.stop="postComment()">发布</div>
|
||||||
发布
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -104,6 +102,10 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.pop-box {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.pop-box-box {
|
.pop-box-box {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
@ -147,6 +149,7 @@ export default {
|
|||||||
|
|
||||||
.discussion-single-input {
|
.discussion-single-input {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
font-size: 0.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.discussion-header {
|
.discussion-header {
|
||||||
@ -188,7 +191,8 @@ export default {
|
|||||||
|
|
||||||
.discussion-multi-content {
|
.discussion-multi-content {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 8.84rem;
|
// height: 8.84rem;
|
||||||
|
max-height: 40vh;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -197,7 +201,8 @@ export default {
|
|||||||
font-size: .4rem;
|
font-size: .4rem;
|
||||||
padding: .32rem;
|
padding: .32rem;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
height: 50vh;
|
// height: 50vh;
|
||||||
|
// height: 40vh;
|
||||||
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ const detailIndex = () => import('views/detail/detailIndex')
|
|||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
// 首页
|
// 首页
|
||||||
path: '/',
|
path: '*',
|
||||||
name: 'Index',
|
name: 'Index',
|
||||||
redirect: "/recommend",
|
redirect: "/recommend",
|
||||||
component: Index,
|
component: Index,
|
||||||
@ -102,12 +102,10 @@ const routes = [
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
const router = new VueRouter({
|
const router = new VueRouter({
|
||||||
mode: 'history',
|
mode: 'history',
|
||||||
// mode: 'hash',
|
|
||||||
base: process.env.BASE_URL,
|
base: process.env.BASE_URL,
|
||||||
routes
|
routes
|
||||||
})
|
})
|
||||||
|
@ -216,7 +216,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="alert" :class="{ 'alertState': alert.state }">
|
<div class="alert" v-show="alert.state" :class="{ 'alertState': alert.state }">
|
||||||
<el-alert :title="alert.message" type="info" center show-icon :closable="false"></el-alert>
|
<el-alert :title="alert.message" type="info" center show-icon :closable="false"></el-alert>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -760,6 +760,8 @@ export default {
|
|||||||
// 点击点赞和收藏操作
|
// 点击点赞和收藏操作
|
||||||
tapOperate(key) {
|
tapOperate(key) {
|
||||||
// like collect uncollect
|
// like collect uncollect
|
||||||
|
// this.openHintBox("dfl;kgjdfkljgklioj")
|
||||||
|
|
||||||
if (this.operateState) return
|
if (this.operateState) return
|
||||||
this.operateState = true
|
this.operateState = true
|
||||||
|
|
||||||
@ -810,13 +812,8 @@ export default {
|
|||||||
token: this.token
|
token: this.token
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code != 200) return
|
if (res.code != 200) return
|
||||||
|
|
||||||
// this.$message.success(res.message)
|
|
||||||
this.openHintBox(res.message)
|
this.openHintBox(res.message)
|
||||||
|
|
||||||
// return
|
|
||||||
this.popState = ""
|
this.popState = ""
|
||||||
|
|
||||||
this.$router.go(0)
|
this.$router.go(0)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -826,11 +823,9 @@ export default {
|
|||||||
openHintBox(message) {
|
openHintBox(message) {
|
||||||
this.alert.state = true
|
this.alert.state = true
|
||||||
this.alert.message = message
|
this.alert.message = message
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.alert.state = false
|
this.alert.state = false
|
||||||
}, 1500)
|
}, 1500)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -937,8 +932,8 @@ export default {
|
|||||||
padding: 0 .16rem;
|
padding: 0 .16rem;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
border-radius: .16rem;
|
border-radius: .16rem;
|
||||||
vertical-align: middle;
|
// vertical-align: middle;
|
||||||
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -273,7 +273,8 @@ export default {
|
|||||||
overflow: -moz-scrollbars-none;
|
overflow: -moz-scrollbars-none;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: auto;
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -295,8 +296,8 @@ export default {
|
|||||||
font-weight: bolder;
|
font-weight: bolder;
|
||||||
border-radius: 0.32rem 0 0 0.32rem;
|
border-radius: 0.32rem 0 0 0.32rem;
|
||||||
color: #000;
|
color: #000;
|
||||||
width: 105%;
|
width: 101%;
|
||||||
margin-left: -0.133333rem;
|
// margin-left: -0.133333rem;
|
||||||
filter: drop-shadow(0 0 0.08rem rgba(0, 0, 0, 0.1));
|
filter: drop-shadow(0 0 0.08rem rgba(0, 0, 0, 0.1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
const { defineConfig } = require('@vue/cli-service')
|
const { defineConfig } = require('@vue/cli-service')
|
||||||
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
|
||||||
|
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
@ -17,7 +16,8 @@ module.exports = defineConfig({
|
|||||||
// },
|
// },
|
||||||
|
|
||||||
transpileDependencies: true,
|
transpileDependencies: true,
|
||||||
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
|
// publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
|
||||||
|
publicPath: './',
|
||||||
|
|
||||||
configureWebpack: {
|
configureWebpack: {
|
||||||
optimization: {
|
optimization: {
|
||||||
@ -49,9 +49,9 @@ module.exports = defineConfig({
|
|||||||
'views': '@/views'
|
'views': '@/views'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
plugins: [
|
// plugins: [
|
||||||
// new BundleAnalyzerPlugin(),
|
// new BundleAnalyzerPl/ugin(),
|
||||||
],
|
// ],
|
||||||
},
|
},
|
||||||
// svg图片配置
|
// svg图片配置
|
||||||
lintOnSave: false,
|
lintOnSave: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user