APP热更新

This commit is contained in:
cansnow
2026-01-11 13:51:16 +08:00
parent 941464c330
commit c38846f13b
16 changed files with 995 additions and 197 deletions
@@ -63,7 +63,7 @@
<view class="relavivetime" :id="`comment-${'null'}-${index}`">
<view class="time">
<view>{{ item.created_at }}</view>
<view @click="deleteCircle(item,index)" style="color:#36648b;margin-left: 20rpx;" v-if="item.user_id==selfInfo.userID">删除</view>
<view @click="deleteCircle(item,index)" style="color:#36648b;margin-left: 20rpx;" v-if="item.user_id==storeSelfInfo.userID">删除</view>
</view>
<view class="icon-box u-flex u-row-between u-col-center">
@@ -80,22 +80,29 @@
<!-- 点赞人 评论 -->
<view class="msg-box">
<view class="thumbinfo u-border-bottom" v-if="item.likes!=null&&item.likes.length">
<uni-icons size="30" type="heart" color="#36648b" class="u-m-r-10"></uni-icons>
<text class="thumbinfo-name" v-for="(userInfo, pindex) in item.likes" :index="pindex"
:key="pindex" @tap="linkToBusinessCard(userInfo.userId)">
{{ userInfo.nickame }}{{ pindex != item.likes.length - 1 ? '' : '' }}
<uni-icons size="24" type="heart" color="#36648b" class="u-m-r-10"></uni-icons>
<text class="thumbinfo-name" v-for="(ui, pindex) in item.likes" :index="pindex"
:key="pindex" @tap="linkToBusinessCard(ui.user_id)">
{{ ui.nickname }}{{ pindex != item.likes.length - 1 ? '' : '' }}
</text>
</view>
<view class="comment" v-if="item.comments!=null&&item.comments.length">
<view class="comment-box" v-for="(comment, commentIndex) in item.comments" :index="comment.id"
:key="comment.id" hover-class="comment-hover-class"
<view
class="comment-box"
v-for="(comment, commentIndex) in item.comments"
:index="comment.id"
:key="comment.id"
hover-class="comment-hover-class"
:id="`comment-${item.id}-${comment.id}`"
@tap="handleComment(comment, index)">
<text class="comment-box-name">
{{ comment.user.nickname }}
<text class="callback u-m-l-4 u-m-r-4">回复</text>
</text>
<text v-if="comment.reply_user_id" class="comment-box-name">{{ comment.user.nickname }}</text>
<text class="callback u-m-l-4 u-m-r-4" v-if="comment.reply_user_id">回复</text>
<text v-if="comment.reply_user_id" class="comment-box-name">
{{ comment.user.nickname }}
</text>
<text></text>
<text class="comment-box-content">{{ comment.body }}</text>
</view>
</view>
@@ -106,10 +113,10 @@
<script>
import MyAvatar from "@/components/MyAvatar/index.vue";
import videoPlayer from '@/components/videoPlayer.vue';
import util from "@/util/index.js";
import { mapGetters } from "vuex";
export default{
components:{videoPlayer ,MyAvatar},
components:{MyAvatar},
props:{
index:{
type:Number,
@@ -123,12 +130,10 @@
}
},
computed:{
selfInfo() {
return this.$store.getters.storeSelfInfo;
},
...mapGetters(["storeSelfInfo"]),
},
data(){
//console.log(this.item);
console.log(this.item);
return {
girdItemCustomStyle:{
padding: '0',
@@ -138,6 +143,9 @@
}
},
methods:{
log(v){
console.log(v)
},
clickThumb(item,index){
this.$emit('userEvent',{type:'clickThumb',item,index});
},