提交
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 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"/>
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
<link rel="icon" href="<%= BASE_URL %>/img/favicon.ico">
|
||||
<!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
|
||||
<title>寄托论坛</title>
|
||||
</head>
|
||||
|
11
src/App.vue
11
src/App.vue
@ -3,7 +3,6 @@
|
||||
<div class="container">
|
||||
<router-view />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@ -22,14 +21,18 @@ export default {
|
||||
|
||||
},
|
||||
mounted() {
|
||||
|
||||
this.$store.dispatch('fetchHistoricalSearch') // 获取历史搜索记录
|
||||
this.$store.dispatch('getAllForum', this) // 获取全部板块
|
||||
|
||||
this.isJudgePc()
|
||||
|
||||
// this.$skipUrl("gggg", false)
|
||||
},
|
||||
|
||||
methods: {
|
||||
isJudgePc() {
|
||||
|
||||
const userAgentInfo = navigator.userAgent;
|
||||
const Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
|
||||
let flag = true;
|
||||
@ -40,6 +43,8 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (flag) {
|
||||
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("recommend") != -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-content flexacenter flex1">
|
||||
<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 />
|
||||
<img class="discussion-single-input-icom" @click.stop="setValue()"
|
||||
src="@/assets/img/detail/unfold.png" />
|
||||
</div>
|
||||
<div class="discussion-single-btn flexcenter" @click.stop="postComment()">
|
||||
发布
|
||||
</div>
|
||||
<div class="discussion-single-btn flexcenter" @click.stop="postComment()">发布</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -104,6 +102,10 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.pop-box {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.pop-box-box {
|
||||
width: 100vw;
|
||||
background-color: #fff;
|
||||
@ -147,6 +149,7 @@ export default {
|
||||
|
||||
.discussion-single-input {
|
||||
height: 100%;
|
||||
font-size: 0.4rem;
|
||||
}
|
||||
|
||||
.discussion-header {
|
||||
@ -188,7 +191,8 @@ export default {
|
||||
|
||||
.discussion-multi-content {
|
||||
position: relative;
|
||||
height: 8.84rem;
|
||||
// height: 8.84rem;
|
||||
max-height: 40vh;
|
||||
box-sizing: border-box;
|
||||
|
||||
}
|
||||
@ -197,7 +201,8 @@ export default {
|
||||
font-size: .4rem;
|
||||
padding: .32rem;
|
||||
box-sizing: border-box;
|
||||
height: 50vh;
|
||||
// height: 50vh;
|
||||
// height: 40vh;
|
||||
|
||||
overflow: auto;
|
||||
|
||||
|
@ -26,7 +26,7 @@ const detailIndex = () => import('views/detail/detailIndex')
|
||||
const routes = [
|
||||
{
|
||||
// 首页
|
||||
path: '/',
|
||||
path: '*',
|
||||
name: 'Index',
|
||||
redirect: "/recommend",
|
||||
component: Index,
|
||||
@ -102,12 +102,10 @@ const routes = [
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
]
|
||||
|
||||
const router = new VueRouter({
|
||||
mode: 'history',
|
||||
// mode: 'hash',
|
||||
base: process.env.BASE_URL,
|
||||
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>
|
||||
</div>
|
||||
</div>
|
||||
@ -760,6 +760,8 @@ export default {
|
||||
// 点击点赞和收藏操作
|
||||
tapOperate(key) {
|
||||
// like collect uncollect
|
||||
// this.openHintBox("dfl;kgjdfkljgklioj")
|
||||
|
||||
if (this.operateState) return
|
||||
this.operateState = true
|
||||
|
||||
@ -810,13 +812,8 @@ export default {
|
||||
token: this.token
|
||||
}).then(res => {
|
||||
if (res.code != 200) return
|
||||
|
||||
// this.$message.success(res.message)
|
||||
this.openHintBox(res.message)
|
||||
|
||||
// return
|
||||
this.popState = ""
|
||||
|
||||
this.$router.go(0)
|
||||
})
|
||||
},
|
||||
@ -826,11 +823,9 @@ export default {
|
||||
openHintBox(message) {
|
||||
this.alert.state = true
|
||||
this.alert.message = message
|
||||
|
||||
setTimeout(() => {
|
||||
this.alert.state = false
|
||||
}, 1500)
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
@ -937,8 +932,8 @@ export default {
|
||||
padding: 0 .16rem;
|
||||
display: inline-flex;
|
||||
border-radius: .16rem;
|
||||
vertical-align: middle;
|
||||
|
||||
// vertical-align: middle;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -273,7 +273,8 @@ export default {
|
||||
overflow: -moz-scrollbars-none;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
|
||||
|
||||
|
||||
@ -295,8 +296,8 @@ export default {
|
||||
font-weight: bolder;
|
||||
border-radius: 0.32rem 0 0 0.32rem;
|
||||
color: #000;
|
||||
width: 105%;
|
||||
margin-left: -0.133333rem;
|
||||
width: 101%;
|
||||
// margin-left: -0.133333rem;
|
||||
filter: drop-shadow(0 0 0.08rem rgba(0, 0, 0, 0.1));
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
const { defineConfig } = require('@vue/cli-service')
|
||||
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
||||
|
||||
const path = require('path')
|
||||
|
||||
@ -17,7 +16,8 @@ module.exports = defineConfig({
|
||||
// },
|
||||
|
||||
transpileDependencies: true,
|
||||
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
|
||||
// publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
|
||||
publicPath: './',
|
||||
|
||||
configureWebpack: {
|
||||
optimization: {
|
||||
@ -49,9 +49,9 @@ module.exports = defineConfig({
|
||||
'views': '@/views'
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
// new BundleAnalyzerPlugin(),
|
||||
],
|
||||
// plugins: [
|
||||
// new BundleAnalyzerPl/ugin(),
|
||||
// ],
|
||||
},
|
||||
// svg图片配置
|
||||
lintOnSave: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user