From d7e9459d9d201d811bbad4045806de25bf260246 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Mon, 29 Sep 2025 14:19:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E4=BB=B7=E8=A7=86=E9=A2=91=E8=B7=9D?= =?UTF-8?q?=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/commentList.vue | 169 ++++++++++++++++++++ pages.json | 12 ++ subPackages/activity/dazhaxie.vue | 99 +++++++++--- subPackages/food/detail.vue | 4 + subPackages/food/index.vue | 18 ++- subPackages/homestay/detail.vue | 6 +- subPackages/line/lineDetail.vue | 5 + subPackages/order/orderDetail.vue | 65 +++++++- subPackages/techan/detail.vue | 20 ++- subPackages/user/comment.vue | 247 ++++++++++++++++++++++++++++++ subPackages/user/commentList.vue | 147 ++++++++++++++++++ 11 files changed, 757 insertions(+), 35 deletions(-) create mode 100644 components/commentList.vue create mode 100644 subPackages/user/comment.vue create mode 100644 subPackages/user/commentList.vue diff --git a/components/commentList.vue b/components/commentList.vue new file mode 100644 index 0000000..66ddc66 --- /dev/null +++ b/components/commentList.vue @@ -0,0 +1,169 @@ + + + + + \ No newline at end of file diff --git a/pages.json b/pages.json index 5cf9f3d..324b96f 100644 --- a/pages.json +++ b/pages.json @@ -367,6 +367,18 @@ "style": { "navigationBarTitleText" : "绿色有机标准认证" } + }, + { + "path": "user/comment", + "style": { + "navigationBarTitleText": "填写评价" + } + }, + { + "path": "user/commentList", + "style": { + "navigationBarTitleText": "全部评价" + } } ] }], diff --git a/subPackages/activity/dazhaxie.vue b/subPackages/activity/dazhaxie.vue index 6dc41a1..653aa14 100644 --- a/subPackages/activity/dazhaxie.vue +++ b/subPackages/activity/dazhaxie.vue @@ -34,6 +34,18 @@ + + + + + + + + + + + + @@ -75,23 +87,43 @@ - - - - {{item.title}} - - - 查看详情 + + + @@ -124,6 +156,10 @@ typeIndex: 0, xieTypeIndex:0, xieList: {list: [], viewNum: 6,id: 113}, + + routeTypeIndex:0, + routeList: {list: [], viewNum: 6,id: 114}, + typeList: [ { id: 109,title: "品蟹鲜",viewNum:6, list: [], @@ -140,7 +176,7 @@ { id: 111,title: "玩蟹路",viewNum:6, list: [], img:"https://static.ticket.sz-trip.com/uploads/20250923/84ec930200a2a7421785fc146ea6d29a.png", - imgs:"https://static.ticket.sz-trip.com/uploads/20250923/963148360925eaaf4c5dc9f5a3a9a641.png", + imgs:"https://static.ticket.sz-trip.com/uploads/20250929/a323e447e845d21c1001bb8ae87645fd.png", bgImg:"https://static.ticket.sz-trip.com/uploads/20250923/7dd6ead7144b2d4d1630a4fc3b4ca673.png", }, { @@ -212,6 +248,17 @@ } this.xieList.list = res.data.list }) + + this.Post({ + tag_id: this.routeList.id, + offset: 0, + limit: 999, + },'/api/product/get_product_by_tag_subject').then(res => { + if (res.data.list.length < this.routeList.viewNum) { + this.routeList.viewNum = 999 + } + this.routeList.list = res.data.list + }) }, getCoupon(item) { @@ -375,15 +422,7 @@ justify-content: space-between; padding: 4rpx 10rpx 10rpx; } - .price{ - font-weight: bold; - font-size: 28rpx; - color: #FF0014; - &::before{ - content: "¥"; - font-size: 24rpx; - } - } + .btn{ width: 140rpx; height: 50rpx; @@ -514,4 +553,14 @@ height: 100vh; overflow-y: auto; } + + .price{ + font-weight: bold; + font-size: 28rpx; + color: #FF0014; + &::before{ + content: "¥"; + font-size: 24rpx; + } + } \ No newline at end of file diff --git a/subPackages/food/detail.vue b/subPackages/food/detail.vue index 68fbe10..6c033ba 100644 --- a/subPackages/food/detail.vue +++ b/subPackages/food/detail.vue @@ -50,6 +50,8 @@ + + 产品特色 @@ -157,7 +159,9 @@ @@ -1259,4 +1299,25 @@ color: #6A8A27; margin-top: 10rpx; } + +.com-comment-box{ + border-top: 1px solid #D8D8D8; + margin-top: 30rpx; + padding-top: 30rpx; + display: flex; + justify-content: flex-end; +} +.com-comment-btn{ + width: 173rpx; + height: 60rpx; + background: #FFFFFF; + border-radius: 11rpx; + border: 1px solid #999999; + line-height: 60rpx; + text-align: center; + font-weight: 500; + font-size: 27rpx; + color: #111111; + +} \ No newline at end of file diff --git a/subPackages/techan/detail.vue b/subPackages/techan/detail.vue index 81e9cd5..fdf1f9d 100644 --- a/subPackages/techan/detail.vue +++ b/subPackages/techan/detail.vue @@ -12,6 +12,13 @@ + + + @@ -62,8 +69,9 @@ - + + @@ -166,10 +174,10 @@ + + diff --git a/subPackages/user/commentList.vue b/subPackages/user/commentList.vue new file mode 100644 index 0000000..551d363 --- /dev/null +++ b/subPackages/user/commentList.vue @@ -0,0 +1,147 @@ + + + + + \ No newline at end of file