+
-

+
-
闫旭Mike
-
2022-7-6 14:56
+
{{ info.author }}
+
{{ $formattedDate(info.dateline) }}
楼主
+
+
+
{{ item.name }}
+
{{ offerinfo[item.key] }}
+
+
-
+
-
+
-
+
-
@@ -217,11 +257,6 @@ export default {
}
},
- info: {
- avatar: "https://oss.gter.net/avatar/97KwEWANd_4DHWiY6VbnSUFSCKroYWFjYQ~~/middle",
- likenum: 1
- },
-
islogin: true,
prepareLiskeState: false,
prepareLiskeAnimateState: false,
@@ -233,15 +268,116 @@ export default {
ispostOfferLike: null, // 点击点赞提交状态
offerLikesumTimer: 0, // offer点赞累加定时器
offerLikesumAnimateTimer: 0, // offer点赞动画定时器
- listlist: []
+ listlist: [],
+
+ tid: 0, // 帖子id
+ info: {},
+ type: 0, // 定位帖 1 面经 2 租房帖 3 总结 5 捷报 6
+ token: "",
+ offerinfo: {}, // offer捷报详情
+ offerinfoKey: [{
+ key: "schoolname",
+ name: "申请学校"
+ }, {
+ key: "degree",
+ name: "学位"
+ }, {
+ key: "professional",
+ name: "专业"
+ }, {
+ key: "project",
+ name: "项目"
+ }, {
+ key: "apply_results",
+ name: "申请结果"
+ }, {
+ key: "semester",
+ name: "入学学期"
+ }, {
+ key: "noticedate",
+ name: "通知时间"
+ }, {
+ key: "useperformanceStr",
+ name: "使用成绩"
+ }],
+ shareurl: "", // 分享链接
+ collegelist: [],// 总结里的 offer 列表数据
+
+
};
},
mounted() {
+ this.tid = this.$route.query['tid']
+ this.getDetail()
+
},
methods: {
- // 点击点赞
+
+ // 获取详细信息
+ getDetail() {
+ this.$http.post("/api/thread", {
+ tid: this.tid
+ }).then(res => {
+ if (res.code != 200) return
+
+ let data = res.data
+ console.log("data", data);
+ this.info = data.info
+ this.type = data.type
+ this.token = data.token
+
+ if (this.type == 6) this.getOfferDetail()
+ else if (this.type == 5) this.getsummaryDetails()
+
+ })
+ },
+
+ // 获取offer详情
+ getOfferDetail() {
+ this.$http.post("/api/details", {
+ token: this.token
+ }, 'offer').then(res => {
+ let data = res.data
+ let offerinfo = data.offerinfo
+ let useperformanceStr = ""
+ offerinfo.useperformance && offerinfo.useperformance.forEach((el, index) => {
+ useperformanceStr += el + (offerinfo.useperformance.length - 1 == index ? '' : '、')
+ })
+
+ offerinfo['useperformanceStr'] = useperformanceStr
+ offerinfo['schoolname'] = offerinfo.school.name
+
+ this.offerinfo = offerinfo
+ this.shareurl = data.shareurl
+ })
+ },
+
+ // 获取总结详情
+ getsummaryDetails() {
+ this.$http.get(`/api/forum/details`, {
+ id: this.token
+ }, 'offer').then(res => {
+ let data = res.data
+ let collegelist = data.collegelist
+
+ collegelist.forEach((el, index) => {
+ let useperformanceStr = ""
+ el.useperformance && el.useperformance.forEach((element, i) => {
+ useperformanceStr += element + (el.useperformance.length - 1 == i ? '' : '、')
+ })
+ el['useperformanceStr'] = useperformanceStr
+ })
+
+
+ this.info = { ...this.info, ...data.info }
+ console.log(this.info);
+ this.collegelist = collegelist
+ this.shareurl = data.shareurl
+ })
+ },
+
// 点击点赞
tapLike() {
@@ -616,6 +752,7 @@ export default {
.summary-content-item {
border-radius: .16rem;
border: .0133rem solid rgba(235, 235, 235, 1);
+ margin-bottom: .32rem;
.summary-offer-head {
justify-content: space-between;
@@ -624,7 +761,7 @@ export default {
color: #333;
padding: 0 .24rem;
- span {
+ span,a {
font-size: .32rem;
color: #333;
}
@@ -643,6 +780,38 @@ export default {
}
+ .summary-offer-box {
+ padding-top: .28rem;
+ flex-direction: column;
+ justify-items: center;
+
+ .summary-offer-item {
+ line-height: .6rem;
+ padding: 0 .24rem;
+ box-sizing: border-box;
+ margin-bottom: .2rem;
+
+ .summary-offer-key {
+ width: 1.3rem;
+ color: #7f7f7f;
+ font-size: .32rem;
+ margin-right: .74rem;
+ }
+
+ .summary-offer-value {
+ font-size: .36rem;
+ color: #333;
+ }
+ }
+ }
+
+ .summary-wenzi {
+ color: #333;
+ font-size: .32rem;
+ line-height: .6rem;
+ padding: .28rem .24rem;
+ }
+
}
}
diff --git a/src/views/search/searchResult/SearchResult-冲突-肖荣豪_Win10.vue b/src/views/search/searchResult/SearchResult-冲突-肖荣豪_Win10.vue
deleted file mode 100755
index 7733e26..0000000
--- a/src/views/search/searchResult/SearchResult-冲突-肖荣豪_Win10.vue
+++ /dev/null
@@ -1,332 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
![]()
-
{{ item.author }}
-
-
-
-
-
-
-
-

-
精华
-
-
-
-
-
-
-

-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/search/searchResult/SearchResult.vue b/src/views/search/searchResult/SearchResult.vue
index 695b1af..7733e26 100755
--- a/src/views/search/searchResult/SearchResult.vue
+++ b/src/views/search/searchResult/SearchResult.vue
@@ -4,64 +4,61 @@
-
+
-
-
+
+
-
-
- 香港理工大学附近求租房,红磡何文田或黄埔附近最好
-
+
-
- 回复可见
-
-
-
-
-
+
-
-
匿名用户
+
![]()
+
{{ item.author }}
-
1552
+
{{ item.views }}
-
12
+
{{ item.replies }}
-
+
精华
-
-
-
+
+

+
+
+
+
@@ -73,13 +70,33 @@ export default {
name: "SearchResult",
data() {
return {
-
+ kw: "",
+ count: 0,
+ limit: 4,
+ nextpage: true,
+ page: 1,
+ list: [],
+ searchResultState: false,
+ loading: null
}
},
components: {
},
+ mounted() {
+ this.kw = this.$route.query.kw
+ this.getSearchResult()
+ },
+
+ watch: {
+ searchResultState(val, oldval) {
+ if (val) this.$startupUnderLoading(this)
+ else this.$closeUnderLoading(this)
+ }
+ },
+
+
methods: {
// 处理点击取消的返回上一页
handCancel() {
@@ -87,6 +104,39 @@ export default {
if (this.$route.params.page > 1) this.$router.go(-1)
else this.$router.push('/recommend')
},
+
+ // 获取搜索结果数据
+ getSearchResult() {
+ if (this.searchResultState) return
+ this.searchResultState = true
+ this.$http.post("/api/search", {
+ keyword: this.kw,
+ page: this.page,
+ limit: this.limit
+ }).then(res => {
+ console.log(res, "res");
+ let data = res.data
+ this.list = data.data
+ this.count = data.count
+
+ document.documentElement.scrollTop = 0;
+ document.body.scrollTop = 0;
+ this.searchResultState = false
+ })
+ },
+
+ // 点击改变页数
+ currentChange() {
+ this.getSearchResult()
+ },
+
+
+
+ // 点击清空 input 的值
+ emptyKw() {
+ this.kw = ""
+ },
+
},
}
@@ -94,6 +144,7 @@ export default {
diff --git a/src/views/search/searchResult/SearchResult_DESKTOP-6MA514B_3月-31-231138-2023_Conflict.vue b/src/views/search/searchResult/SearchResult_DESKTOP-6MA514B_3月-31-231138-2023_Conflict.vue
deleted file mode 100755
index 03656f4..0000000
--- a/src/views/search/searchResult/SearchResult_DESKTOP-6MA514B_3月-31-231138-2023_Conflict.vue
+++ /dev/null
@@ -1,267 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 香港理工大学附近求租房,红磡何文田或黄埔附近最好
-
-
-
- 回复可见
-
-
-
-
-
-
-
-
-
-

-
精华
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/user/UserIndex-冲突-肖荣豪_Win10.vue b/src/views/user/UserIndex-冲突-肖荣豪_Win10.vue
deleted file mode 100755
index a8153eb..0000000
--- a/src/views/user/UserIndex-冲突-肖荣豪_Win10.vue
+++ /dev/null
@@ -1,309 +0,0 @@
-
-
-
-
-
![]()
-
-
-
-
-
-
-
-
{{ count.prestige }}
-
声望
-
-
-
{{ count.gtercurrency }}
-
寄托币
-
-
-
{{ count.digest }}
-
精华
-
-
-
-
-
-
-

消息
-
-
-
{{ count.message }}
-
{{ user.messagenum }}
-
-
-
-
-
-
-

收藏
-
-
-
-
-
-

发帖
-
-
-
-
-
-

回帖
-
-
-
-
-
-
-
-
-

个人资料
-
-
-
-
-
-
-
-

设置头像
-
-
-
-
-
-
-
-

我的状态
-
-
-
-
-
-
-
-

修改密码
-
-
-
-
-
-
-
-

绑定邮箱
-
-
-
-
-
-
-
-

绑定手机
-
-
-
-
-
-
-
-

绑定第三方账号
-
-
-
-
-
-
-
-

浏览个人主页
-
-
-
-
-
-
-
-
-
-
退出登录
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/user/UserIndex.vue b/src/views/user/UserIndex.vue
index 8684d87..a8153eb 100755
--- a/src/views/user/UserIndex.vue
+++ b/src/views/user/UserIndex.vue
@@ -2,24 +2,24 @@
-
![]()
+
-
+
-
279
+
{{ count.prestige }}
声望
-
279
-
声望
+
{{ count.gtercurrency }}
+
寄托币
-
279
-
声望
+
{{ count.digest }}
+
精华
@@ -29,8 +29,8 @@

消息
-
{{ count.collect }}
-
{{ 1 }}
+
{{ count.message }}
+
{{ user.messagenum }}
@@ -40,7 +40,7 @@

收藏
-
{{ count.creation }}
+
{{ count.fav }}
@@ -49,7 +49,7 @@

发帖
-
{{ count.likearticle }}
+
{{ count.post }}
@@ -58,7 +58,7 @@

回帖