diff --git a/components/XJ-comment/index.vue b/components/XJ-comment/index.vue index 4b022cb..17362bf 100644 --- a/components/XJ-comment/index.vue +++ b/components/XJ-comment/index.vue @@ -44,10 +44,10 @@ 发表新评论 @@ -92,7 +92,10 @@ deleteMode: { type: String, default: "all" - } + }, + showPopup: { + type: Boolean, + }, }, data() { return { @@ -122,6 +125,9 @@ onPageScroll : function(e) { //nvue暂不支持滚动监听,可用bindingx代替 console.log("滚动距离为:" + e.scrollTop); }, + mounted() { + console.log("this.tableData",this.tableData) + }, methods: { loadMore() { if (this.isLoading) return; @@ -213,21 +219,22 @@ params.parent_id = this.tableData.parent_id; params.reply_id = this.tableData.reply_id; params.reply_name = this.tableData.reply_name; + params.user_name=this.tableData.user_name; } else { - params.id = this.tableData.id, - params.parent_id = item.item1?.parent_id ?? item.item1.id, - params.reply_id = item.item1.id, - params.reply_name = item.item2 ? item.item2.user_name : item.item1.user_name + params.id = this.tableData.id; + params.parent_id = item.item1?.parent_id ?? item.item1.id; + params.reply_id = item.item1.id; + params.user_name=this.tableData.user_name; + params.reply_name = item.item2 ? item.item2.user_name : item.item1.user_name; } params = { ...params, - user_name: this.userInfo.user_name, - user_avatar: this.userInfo.user_avatar, + user_avatar: this.tableData.filePath?this.tableData.filePath:'../../static/logo.png', user_content: this.commentValue, is_like: false, like_count: 0, - create_time: "刚刚", + create_time: this.tableData.createTime, owner: true }; @@ -235,18 +242,24 @@ title: "正在发送", mask: true }); + console.log("params======。",this.tableData) + if(this.showPopup==true){ + this.$refs.cPopupRef.close(); + } this.$emit("replyFun", { params }, (res) => { + console.log(11) uni.hideLoading(); params = { ...params, id: res.id }; if (this.isNewComment) { + console.log(22) this.dataList.push(params); } else { - console.log(this.dataList); + console.log("44",this.dataList); let c_data = this.dataList[item.index1]; (c_data.children || (c_data.children = [])).push(params); if ( @@ -257,8 +270,8 @@ } } this.$emit("update:tableTotal", this.tableTotal + 1); - this.$refs.cPopupRef.close(); }); + this.$refs.cPopupRef.close(); }, deleteClick(item1, index1, item2, index2) { this.delTemp = JSON.parse(JSON.stringify({ diff --git a/pages/therapist/orderDetail.vue b/pages/therapist/orderDetail.vue index 314ce1e..672e950 100644 --- a/pages/therapist/orderDetail.vue +++ b/pages/therapist/orderDetail.vue @@ -108,12 +108,12 @@ - + @@ -365,6 +365,11 @@ }); }, methods: { + videoGengduo(){ + uni.switchTab({ + url:'/pages/videoCircle/index' + }) + }, shangxian(){//请TA上线 var data={ userId: this.artificerId, diff --git a/pages/videoCircle/index.vue b/pages/videoCircle/index.vue index 4a30fa6..c3a5e7d 100644 --- a/pages/videoCircle/index.vue +++ b/pages/videoCircle/index.vue @@ -78,7 +78,8 @@ - {{list.content}} + {{list.content}} + @@ -97,7 +98,7 @@ - +
发一条新评论