diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..35ab852 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,21 @@ +{ + "version": "2.0.0", + "tasks": [{ + "label": "save", + "command": "git", + "type": "shell", + "args": [ + "commit", + "-a", + "-m", + "auto commit", + "&&", + "git", + "push", + "origin", + "master" + ], + "problemMatcher": [] + }], + "preShutdownTask": "save" +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index e3c55b2..4f6b619 100755 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,8 @@ "postcss": "^8.4.21", "sass-loader": "^13.2.0", "vue-template-compiler": "^2.6.14", - "vue2-svg-icon": "^1.3.2" + "vue2-svg-icon": "^1.3.2", + "webpack-bundle-analyzer": "^4.8.0" } }, "node_modules/@achrinza/node-ipc": { diff --git a/package.json b/package.json index 47df70d..18daed3 100755 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "postcss": "^8.4.21", "sass-loader": "^13.2.0", "vue-template-compiler": "^2.6.14", - "vue2-svg-icon": "^1.3.2" + "vue2-svg-icon": "^1.3.2", + "webpack-bundle-analyzer": "^4.8.0" }, "browserslist": [ "> 1%", diff --git a/src/assets/css/public.scss b/src/assets/css/public.scss index ebb5f9e..2923cf2 100755 --- a/src/assets/css/public.scss +++ b/src/assets/css/public.scss @@ -1,6 +1,5 @@ // 热门版块标签 .hot-box { - // padding: .34rem 0 0.3rem; padding: .34rem 0 0; display: flex; justify-content: flex-start; @@ -13,7 +12,6 @@ font-size: 0.3rem; margin: 0 .16rem .24rem 0; padding: 0 0.15rem; - // height: 0.72rem; line-height: 0.72rem; text-align: center; word-break: break-word; @@ -103,7 +101,7 @@ section { justify-content: flex-start; align-items: center; - &:first-of-type{ + &:first-of-type { margin-right: .2rem; } @@ -123,10 +121,8 @@ section { display: flex; flex-direction: row; align-items: center; - // padding-left: 0.25rem; &:last-child { - // margin-left: 0.133333rem; margin-left: .4rem; } @@ -170,7 +166,6 @@ section { transform: rotate(45deg); transform-origin: bottom; margin-top: 0.05rem; - // margin-top: 0.01rem; margin-left: 0.25rem; width: 0.9rem; font-size: 0.3rem; @@ -183,15 +178,10 @@ section { // 广告 .banner-box { + margin-bottom: 0.32rem; + width: 100%; + display: block; border-radius: 0.32rem; - margin-bottom: 0.2rem; - - // 广告图 - .banner { - width: 100%; - display: block; - border-radius: 0.32rem; - } } // 分页 @@ -258,7 +248,7 @@ section { .el-pagination.is-background.el-pagination--small .btn-prev, .el-pagination.is-background.el-pagination--small .el-pager li { border-radius: 50%; - + } } } diff --git a/src/assets/img/detail/unlock.png b/src/assets/img/detail/unlock.png deleted file mode 100755 index ac2cc9b..0000000 Binary files a/src/assets/img/detail/unlock.png and /dev/null differ diff --git a/src/assets/img/user/information.png b/src/assets/img/user/information.png deleted file mode 100755 index 3224815..0000000 Binary files a/src/assets/img/user/information.png and /dev/null differ diff --git a/src/assets/logo.png b/src/assets/logo.png deleted file mode 100755 index f3d2503..0000000 Binary files a/src/assets/logo.png and /dev/null differ diff --git a/src/components/HeaderNav.vue b/src/components/HeaderNav.vue index d5ddf45..81f0870 100755 --- a/src/components/HeaderNav.vue +++ b/src/components/HeaderNav.vue @@ -33,7 +33,8 @@
- + +
{{ userInfo.messagenum }}
diff --git a/src/components/IndexList.vue b/src/components/IndexList.vue index e4f8bf7..5c174be 100755 --- a/src/components/IndexList.vue +++ b/src/components/IndexList.vue @@ -1,37 +1,44 @@ @@ -367,7 +364,12 @@ export default { islogin: false, // 登录状态 - alertState: false, + alert: { + state: false, + message: "" + }, + + }; }, @@ -391,24 +393,6 @@ export default { } }, mounted() { - - - setTimeout(() => { - this.alertState = true - console.log(this.alertState); - }, 3000) - - setTimeout(() => { - this.alertState = false - console.log(this.alertState); - }, 6000) - - // this.tid = this.$route.query['tid'] - // this.page = this.$route.query['page'] || 1 - // let url = `https://bbs.gter.net/thread-${tid}-${page}-1.html` - - - window.scrollTo(0, 0); }, @@ -595,7 +579,6 @@ export default { }) offerinfo['useperformanceStr'] = useperformanceStr - this.offerinfo = offerinfo }) }, @@ -776,9 +759,6 @@ export default { this.getPostList() this.$updateURLSearchParams(query) - - - // this.$router.push({ path: `/detailIndex`, query }) }, // 点击点赞和收藏操作 @@ -797,7 +777,8 @@ export default { if (key == "like") this.info.islike = 1, this.info.recommends + 1 if (key == "collect") this.info.isfav = 1 if (key == "uncollect") this.info.isfav = 0 - this.$message(res.message) + // this.$message(res.message) + this.openHintBox(res.message) }).finally(() => { this.operateState = false @@ -827,6 +808,7 @@ export default { this.commentContent = item.message }, + // 投币 postCoin() { console.log("点击解锁"); @@ -835,12 +817,26 @@ export default { }).then(res => { if (res.code != 200) return - this.$message.success(res.message) + // this.$message.success(res.message) + this.openHintBox(res.message) + // return this.popState = "" this.$router.go(0) }) + }, + + + // 提示框 自定义 + openHintBox(message) { + this.alert.state = true + this.alert.message = message + + setTimeout(() => { + this.alert.state = false + }, 1500) + } }, @@ -854,18 +850,16 @@ export default {