From 6701c54c7ebc7ced8999e0b7b91e362cb3fb9c19 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B2=B3=E9=B9=8F=E9=BE=99?= <1547476325@qq.com>
Date: Wed, 16 Jul 2025 09:52:59 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/shop.ts | 64 ++++
src/pages.json | 7 +
src/pages/index/active/activelist.vue | 2 +-
.../index/shoppage/financialAssistance.vue | 2 +-
.../index/shoppage/interactiveDetail.vue | 354 ++++++++++++++++++
src/pages/index/shoppage/interactiveZone.vue | 178 ++++++---
src/pages/index/shoppage/makeAssistance.vue | 81 ++--
src/pages/memberCenter/index.vue | 2 +-
src/pages/mine/index.vue | 10 +-
src/static/img/qdl.png | Bin 0 -> 2421 bytes
src/static/img/search.png | Bin 718 -> 832 bytes
src/store/user.ts | 6 +-
12 files changed, 618 insertions(+), 88 deletions(-)
create mode 100644 src/pages/index/shoppage/interactiveDetail.vue
create mode 100644 src/static/img/qdl.png
diff --git a/src/api/shop.ts b/src/api/shop.ts
index 0ddcc72..70c1731 100644
--- a/src/api/shop.ts
+++ b/src/api/shop.ts
@@ -76,3 +76,67 @@ export function myMedium() {
})
}
+//发帖
+export function addPosts(data:any) {
+ return request.http({
+ url: '/api/huiqitong/posts/add',
+ method: 'POST',
+ data
+ })
+}
+
+//帖子列表
+export function postsList(data:any) {
+ return request.http({
+ url: '/api/huiqitong/posts/list',
+ method: 'GET',
+ data
+ })
+}
+
+//评论帖子
+export function commentsPosts(data:any) {
+ return request.http({
+ url: '/api/huiqitong/posts/comments',
+ method: 'POST',
+ data
+ })
+}
+
+//点赞/取消点赞
+export function likesPosts(data:any) {
+ return request.http({
+ url: '/api/huiqitong/posts/likes',
+ method: 'POST',
+ data
+ })
+}
+
+//评论列表
+export function commentsList(data:any) {
+ return request.http({
+ url: '/api/huiqitong/posts/comments/list',
+ method: 'GET',
+ data
+ })
+}
+
+//是否点赞
+export function isLikes(data:any) {
+ return request.http({
+ url: '/api/huiqitong/posts/isLikes',
+ method: 'POST',
+ data
+ })
+}
+
+//帖子详情
+export function postsInfo(id:any) {
+ return request.http({
+ url: '/api/huiqitong/posts/info/'+id,
+ method: 'GET',
+ })
+}
+
+
+
diff --git a/src/pages.json b/src/pages.json
index 9e12c24..83a108e 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -88,6 +88,13 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "pages/index/shoppage/interactiveDetail",
+ "style": {
+ "navigationBarTitleText": "帖子详情",
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "pages/index/shoppage/financialAssistance",
"style": {
diff --git a/src/pages/index/active/activelist.vue b/src/pages/index/active/activelist.vue
index c06ac09..336835f 100644
--- a/src/pages/index/active/activelist.vue
+++ b/src/pages/index/active/activelist.vue
@@ -1,7 +1,7 @@
diff --git a/src/pages/index/shoppage/financialAssistance.vue b/src/pages/index/shoppage/financialAssistance.vue
index 3515d0c..1f5a3d0 100644
--- a/src/pages/index/shoppage/financialAssistance.vue
+++ b/src/pages/index/shoppage/financialAssistance.vue
@@ -3,7 +3,7 @@
diff --git a/src/pages/index/shoppage/interactiveDetail.vue b/src/pages/index/shoppage/interactiveDetail.vue
new file mode 100644
index 0000000..1ceceae
--- /dev/null
+++ b/src/pages/index/shoppage/interactiveDetail.vue
@@ -0,0 +1,354 @@
+
+
+
+
+
+
+
+
+
+ {{listdata.member_nickname}}
+ {{listdata.create_time}}
+
+
+ {{listdata.content}}
+
+
+
+
+ {{listdata.like_count}}
+
+
+
+ {{listdata.comment_count}}
+
+
+
+
+
+
+
+ {{item.member_nickname}}
+
+
+ {{item.like_count}}
+
+
+
+
+ {{item.content}}
+
+
+
+
+
+
+ 发布
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/index/shoppage/interactiveZone.vue b/src/pages/index/shoppage/interactiveZone.vue
index 52c24ef..e63670e 100644
--- a/src/pages/index/shoppage/interactiveZone.vue
+++ b/src/pages/index/shoppage/interactiveZone.vue
@@ -2,84 +2,116 @@
-
-
+
+
-
+
- 王铎
- 1月31日
+ {{item.member_nickname}}
+ {{item.create_time}}
- 小店帮好不好好不好小店帮好不好好不好小店帮好不好好不好小店帮好不好好不好
-
+ {{item.content}}
+
-
- 王铎
+ {{item.comments?.member_nickname}}
- 866
-
+ {{item.comments?.like_count}}
+
- 小店帮好不好好不好小店帮好不好好不好小店帮好不好好不好小店帮好不好好不好
+ {{item.comments?.content}}
+ :src="item.is_like?'/static/img/ydz.png':'/static/img/dz.png'" @click="dzClick(item.is_like,item.posts_id)" mode="">
- 866
+ {{item.like_count}}
- 21
+ @click="godetail(item.posts_id)">
+ {{item.comment_count}}
-
-
-
-
-
-
+
+
+
\ No newline at end of file
diff --git a/src/pages/index/shoppage/makeAssistance.vue b/src/pages/index/shoppage/makeAssistance.vue
index ccb9a1d..423661e 100644
--- a/src/pages/index/shoppage/makeAssistance.vue
+++ b/src/pages/index/shoppage/makeAssistance.vue
@@ -6,14 +6,19 @@
选择专区
-
-
-
+
+
+
+
-
+
-
+
发布
@@ -24,27 +29,58 @@
import {
ref
} from 'vue';
+ import { addPosts } from '@/api/shop'
- const list = ref([
- { name: '小店帮' },
- { name: '金融帮' },
- { name: '媒体帮' },
- { name: '企业帮' }
- ]);
+ const list = ref([{
+ name: '小店帮',
+ id: 1
+ },
+ {
+ name: '金融帮',
+ id: 2
+ },
+ {
+ name: '媒体帮',
+ id: 3
+ },
+ {
+ name: '企业帮',
+ id: 4
+ }
+ ]);
const showxz = ref(false)
const xzvalue = ref('')
+ const xzid = ref(1)
const nrvalue = ref('')
-
- const selectClick = (index) => {
- console.log(index);
- xzvalue.value = index.name
- showxz.value = false
- };
-
+
+ const selectClick = (index) => {
+ xzvalue.value = index.name
+ xzid.value = index.id
+ showxz.value = false
+ };
+
const submit = () => {
- if(nrvalue.value !== '') {
- console.log(nrvalue.value);
+ if (nrvalue.value !== '') {
+ let params = {
+ type_id: xzid.value,
+ content: nrvalue.value
+ }
+ addPosts(params).then((res)=> {
+ if(res.code === 1) {
+ uni.showToast({
+ title: '发布成功',
+ duration: 1500,
+ success() {
+ setTimeout(()=> {
+ uni.navigateTo({
+ url: '/pages/index/shoppage/interactiveZone'
+ })
+ },1500)
+ }
+ })
+ }
+ })
}
}
@@ -83,11 +119,13 @@
align-items: center;
}
}
+
.buts {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
+
.button {
margin-top: 108rpx;
border-radius: 248rpx;
@@ -98,7 +136,8 @@
font-size: 36rpx;
font-weight: 500;
line-height: 32rpx;
- text-align: justify; /* 浏览器可能不支持 */
+ text-align: justify;
+ /* 浏览器可能不支持 */
display: flex;
align-items: center;
letter-spacing: normal;
diff --git a/src/pages/memberCenter/index.vue b/src/pages/memberCenter/index.vue
index 0454bb7..edb363a 100644
--- a/src/pages/memberCenter/index.vue
+++ b/src/pages/memberCenter/index.vue
@@ -4,7 +4,7 @@
leftText="申请入会" @leftClick="leftClick">
-
+
-
- {{userStore.userInfo.name||'无名称'}}
+
+ {{userStore.userInfo.name}}
-
- 请登录
diff --git a/src/static/img/qdl.png b/src/static/img/qdl.png
new file mode 100644
index 0000000000000000000000000000000000000000..026a3d2ae1dcab5560c049118007d7ddcd4c043a
GIT binary patch
literal 2421
zcmV-*35xcKP)Px#1am@3R0s$N2z&@+hyVZyA4x<(RCt{2oLg=i#}bCW>KW1;nUF_<;zQU;Ktn-*
zJel5syacbn&I*pbf*=ik`S1T*h_>}ek
zWCXQZ$&;Lv4R9n_Rjl=-=tSj-2qIuaFoEp!H5t9f-#OLt9Em#
zRD3ayvS%i!nIyGP%`fD{WZC?!Wn2srCEIH4vnVQT%~a+rH@7}^ehk(8N0n-tS~{uy
zY~+B`xK3*6bS$b`6CF({b+|%f<38{H3){1g|m*
zp}`nIt^IzS;PPC8dYYqg(z)8?coYi;5g`@(;5T1qaa;vi-0);R@gofJA
zgR^?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=T9f=?f++v9MYeTFGhG9T(yjXxGIrZAsj^zUfLkfh3(h)E@_#?P=Z&vCb)o2*rZI
z2v5Q+U^`T2QuCVexCnA!{=|6rh5ZTkR{{6BC$kza%G=cQkk3muN;kq4$G@;`WFAU%
zJzxR>*n)h@RWtj_=RqtwjN~Dr$QE?xq%-%!{6moBjI@r-E653oqNt9r^$$UAfQ+!^
z6Jol3fOoTCfk`srGKVy?ul%u-ix=KntJMWxywE7!2v_{Efha<)-84oPQml{8rA#Zb|-3|xx%mxUGqNwhzXpywYTaQ({c`{pZC=2b6>04E**KK|D
zC=?3;BC=h&5j;3~Zsj=daTFDQwrZalBY85~>=nIe
zh`2<$Jl=UW?p78PH8r2Vety*w?D`Vu#!kiT-aF}^byGAUPCK7>BY|-c7$FFHn)6B1
z!oh1&=Yb&Gg@Pfxq`{jKPSa}$@HXr6=CF4yKJ)KjsKX5F!BZjb%Aojf&SegNW&CMqzF
z6i&fC$Ea=q8_Z*qH(}dNtk2h4hT+1yo@SENikSNr
nsZFv?pk~>xS-|#1Zxi@`ZCJ^yvrhxU00000NkvXXu0mjf(y^B5
literal 0
HcmV?d00001
diff --git a/src/static/img/search.png b/src/static/img/search.png
index 5edd14d550887d586eb8b594a0b34b738f69901a..36813e66d5da0e70de2281677d17bc87dad7f41e 100644
GIT binary patch
delta 780
zcmV+n1M~dO1;7T7L4WE=L_t(YiM5tZQrkcfMqiJBq{squ17(eqvQH3m0$^jxEARZ|YiYOMOSde8(@U+X@&yQi!FE;Z
z#dTAF9p*5bv47rNlR*?~*c<70W9WETD$oxC24ygS=9&y_#yXGyH6M36!)T}tBU}Kf
zh=ci^Uf|9pv6h3|vMN&)YiJhvK3fq35cs-VI%0HUtt-=<-i}=?ZDaj#4AzgtMUWD
z2rCF7N)7&*hCo-R2P!BGRkx0bGvJ+K&=MuUnawzE)g|$-{l)A?npJ7v37my52Q)CO
zh@qmE6wA-q(J@yU6gYY?@F^;Rrsj_CpRHD15}UE^Z7oGP{sZQgS+3WO$FcZ{F5SXB31LFmN1rjp>
zVFJhmq!ZK|#NEIhfKwlIc5G}2p+PT6?#}w8i~LK%F3U8=kpfec7$FHeHA;<8BCL7k
zkwWTS?qmn(2Dlp8t$}E;s;p6F6jJR6%=H$y>8vdAtbnrTEPvA&NN`Mni%t*)bGhCP
z%rwIB5FTzocLT^+2KH>$25Q+}zP;u?@LGR||ER)qNg-v(_zLAGLK;ran9Fi312Ro;
zJOMFE$wJP$+phhV>!JfYr;w6NV{+X94*^!AtnrkiFn~fzJm)}#kdW(Qm|>=^Q0TpofZhuzenZ`Ia;a7VjE?}Dixo
zV&M6`YWtMUwt4`b7v}_GQ@C));AO9~vsp^9z8ZHh|~PD929o
zJOZGmP{#;y*s{udWrgDu&+@-vW)(mqi9)U#A~`)sMt@`0FyouNu&Ga(HGx?~O?QMO@oKQ&Jh_}5f
zws|<~OJ?{Fp({ZVnGQSoSIoLkigll&Sw3zLc+P<6An&403>n+*)A}4AF)YgzSnm};
zrZLj?PJe(UbLr`^8$JaHQyfn?HspFsrpf5JEhr(^2OOIY4B#qc+i^Yapg*4gC{=iu
z{)CkiOe_-mqOqhuP(f#?dVfspf^D9OKR8(d&v@=BqzVoEWe~_*W*-CJ!XZUC!4cu9
zQU3CFbljdFgBG6$e#M5+`g?&5)G9Xt?*9SN)DryDsK2qy00000NkvXXu0mjfb7M8Y
diff --git a/src/store/user.ts b/src/store/user.ts
index d3444f5..8548063 100644
--- a/src/store/user.ts
+++ b/src/store/user.ts
@@ -14,6 +14,7 @@ export default defineStore(
const mobile = ref('')
const showtoast = ref(false)
const userInfo = ref({})
+ const cometype = ref(0)
function getopenid(params : { code : string }) {
return new Promise((resolve, reject) => {
@@ -60,7 +61,7 @@ export default defineStore(
title: '退出成功',
mask: true,
success() {
- setTimeout(() => uni.reLaunch({ url: 'pages/login/login' }), 1000)
+ setTimeout(() => uni.navigateTo({ url: 'pages/login/login' }), 1000)
}
})
}
@@ -73,7 +74,8 @@ export default defineStore(
userInfo,
getopenid,
getUserInfo,
- logOut
+ logOut,
+ cometype
}
},
{