diff --git a/packages/localLife/UserComment/index.css b/packages/localLife/UserComment/index.css index 87b054c2..2925671d 100644 --- a/packages/localLife/UserComment/index.css +++ b/packages/localLife/UserComment/index.css @@ -56,6 +56,26 @@ image { margin-top: 30rpx; } +.Msg_con_img { + display: flex; + flex-wrap: wrap; + width: 100%; + margin-top: 15rpx; + gap: 15rpx; +} + +.Msg_con_img image { + width: calc(33.33% - 11rpx); + height: 225rpx; + flex-shrink: 0; +} + +.Msg_con_video{ + width: calc(33.33% - 11rpx); + height: 225rpx; + flex-shrink: 0; +} + .Msg_iconList_leftIcon { display: flex; align-items: center; @@ -117,9 +137,11 @@ image { display: flex; align-items: center; } -.comment_con input{ + +.comment_con input { flex: 1; } + .comment_con image { width: 28.3rpx; height: 28rpx; diff --git a/packages/localLife/UserComment/index.vue b/packages/localLife/UserComment/index.vue index d3688a98..f5552ff0 100644 --- a/packages/localLife/UserComment/index.vue +++ b/packages/localLife/UserComment/index.vue @@ -3,13 +3,14 @@
- + {{ info.user.nick_name }}
-
@@ -17,35 +18,46 @@
{{ info.comment }} +
+ + +
- + {{ info.merchant_evaluation_reply_list ? info.merchant_evaluation_reply_list.length : 0 }}
- - + {{ info.merchant_evaluation_like_list ? info.merchant_evaluation_like_list.length : 0 }}
- +
-
+
- + {{ item.user.nick_name }} @@ -58,7 +70,8 @@
- + diff --git a/packages/localLife/detail/index.css b/packages/localLife/detail/index.css index d6a83a37..34cf28b9 100644 --- a/packages/localLife/detail/index.css +++ b/packages/localLife/detail/index.css @@ -179,6 +179,26 @@ page { margin-top: 30rpx; } +.Msg_con_img { + display: flex; + flex-wrap: wrap; + width: 100%; + margin-top: 15rpx; + gap: 15rpx; +} + +.Msg_con_img image { + width: calc(33.33% - 11rpx); + height: 225rpx; + flex-shrink: 0; +} + +.Msg_con_video{ + width: calc(33.33% - 11rpx); + height: 225rpx; + flex-shrink: 0; +} + .Msg_iconList_leftIcon { display: flex; align-items: center; diff --git a/packages/localLife/detail/index.vue b/packages/localLife/detail/index.vue index d282a308..601967a9 100644 --- a/packages/localLife/detail/index.vue +++ b/packages/localLife/detail/index.vue @@ -46,33 +46,42 @@
- + {{ item.user.nick_name }}
-
{{ item.comment }} +
+ + + +
- + {{ item.merchant_evaluation_reply_list ? item.merchant_evaluation_reply_list.length : 0 }}
- - + + {{ item.merchant_evaluation_like_list ? item.merchant_evaluation_like_list.length : 0 }}
@@ -89,11 +98,14 @@ 导航 - + 电话 - + 点评 @@ -126,7 +138,7 @@ export default { onLoad(options) { this.info = uni.getStorageSync("merchantInfo") }, - onShow(){ + onShow() { this.page_num = 1 this.flag = false this.commentList = [] @@ -161,9 +173,9 @@ export default { }) }, - getMerchantInfo(){ + getMerchantInfo() { request(apiArr.getMerchantInfo, "POST", { - id:uni.getStorageSync("merchantInfo").id, + id: uni.getStorageSync("merchantInfo").id, }).then(res => { this.isShow = res.quick_purchase_enabled == 1 }) @@ -205,15 +217,15 @@ export default { evaluation_id: e.id, }).then(res => { console.log(e); - if(e.merchant_evaluation_like_list){ + if (e.merchant_evaluation_like_list) { e.merchant_evaluation_like_list.push({}) - }else{ + } else { e.merchant_evaluation_like_list = [] e.merchant_evaluation_like_list.push({}) } e.is_like = 1 uni.showToast({ - icon:"none", + icon: "none", title: '点赞成功', duration: 2000 }); @@ -227,13 +239,13 @@ export default { e.merchant_evaluation_like_list.pop() uni.showToast({ title: '取消成功', - icon:"none", + icon: "none", duration: 2000 }); }) }, - commentDesc(e){ + commentDesc(e) { NavgateTo(`../UserComment/index?id=${e.id}`) }, },