邹能昇 před 4 měsíci
rodič
revize
934599aeb9

+ 7 - 3
nova-werun/components/circle-card/index.js

@@ -35,7 +35,9 @@ Component({
         commentList: [],
         commentList: [],
         //
         //
         poptype: '',
         poptype: '',
-        userobject: ''
+        userobject: '',
+        //评论
+        commenttext:"评论"
     },
     },
     lifetimes: {
     lifetimes: {
 
 
@@ -228,7 +230,8 @@ Component({
         showPopup() {
         showPopup() {
             this.setData({
             this.setData({
                 show: true,
                 show: true,
-                poptype: 'one' //直接回复
+                poptype: 'one', //直接回复
+                commenttext:'评论'
             });
             });
             this.showgood()
             this.showgood()
         },
         },
@@ -346,7 +349,8 @@ Component({
                 this.setData({
                 this.setData({
                     show: true,
                     show: true,
                     poptype: 'two',
                     poptype: 'two',
-                    userobject:objectId
+                    userobject:objectId,
+                    commenttext:`回复${commentList[0].user.nickname}`
                 });
                 });
             }else{
             }else{
                 console.log('点击了自己');
                 console.log('点击了自己');

+ 1 - 1
nova-werun/components/circle-card/index.wxml

@@ -76,7 +76,7 @@
         <van-popup show="{{ show }}" position="bottom" custom-style="height: {{bottomNavHeight+textareaHeight+70}}rpx;" bind:close="onClose" overlay-style='background-color: rgba(255, 255, 255, 0); ' custom-style='background-color: #efefef;'>
         <van-popup show="{{ show }}" position="bottom" custom-style="height: {{bottomNavHeight+textareaHeight+70}}rpx;" bind:close="onClose" overlay-style='background-color: rgba(255, 255, 255, 0); ' custom-style='background-color: #efefef;'>
 
 
             <view class='sending' style="height: {{textareaHeight+40}}rpx;">
             <view class='sending' style="height: {{textareaHeight+40}}rpx;">
-                <textarea placeholder="评论" class="textarea" style="height: {{textareaHeight}}rpx;" bindinput="onInput" value="{{inputValue}}"></textarea>
+                <textarea placeholder="{{commenttext}}" class="textarea" style="height: {{textareaHeight}}rpx;" bindinput="onInput" value="{{inputValue}}"></textarea>
                 <view class="button2" wx:if="{{!inputValue}}">发送</view>
                 <view class="button2" wx:if="{{!inputValue}}">发送</view>
                 <view class="button" wx:if="{{inputValue}}" bindtap="sendComment">发送</view>
                 <view class="button" wx:if="{{inputValue}}" bindtap="sendComment">发送</view>
             </view>
             </view>