This commit is contained in:
zhaofang
2022-11-14 19:14:25 +08:00
parent 9f5cfcf264
commit feb32a7b36
3 changed files with 14 additions and 14 deletions

View File

@@ -91,12 +91,12 @@
<view v-if="total>pageSize">
<uni-load-more :status="loadStatus"></uni-load-more>
</view>
<u-popup :show="inputShow" @close="closeInput">
<u-popup :show="inputShow" @close="closeInput" :round="16">
<view>
<view style="display: flex;">
<view style="flex: 1;"><u--textarea confirmType="done" :height="150" v-model="inputValue" placeholder="请输入内容" count ></u--textarea></view>
<view style="width:160upx;text-align: center;padding-top: 10px;line-height: 80upx;">
<view style="padding: 20upx;padding-top: 40px;"><u-button @click="submitReply()" type="primary" text="发布"></u-button></view>
<view style="padding: 60upx 30upx;">
<view><u--textarea confirmType="done" style="border: none;background: #F4F4F4;" :height="50" v-model="inputValue" placeholder="请输入内容" count ></u--textarea></view>
<view style="width:160upx;padding-top: 10px;line-height: 80upx;float: right;">
<view style="padding: 20upx;margin-top: 20upx;"><u-button style="padding: 2upx 30upx;height: 52upx;background: #87B3FF;border-color: #87B3FF;" @click="submitReply()" type="primary" text="发布"></u-button></view>
</view>
</view>
<view>

View File

@@ -15,25 +15,25 @@
<view class="interact-bar-icon"><image style="width:34upx;height: 31upx;" src="/static/images/icon/comment.png" alt=""></view>
<view class="interact-bar-txt">{{data.answers}}</view>
</view> -->
<view class="" style="display:flex;width: 50%;justify-content: flex-end;padding-right: 20rpx;">
<view class="" style="display:flex;width: 50%;justify-content: flex-end;padding-right: 20rpx;margin-top: 16upx;">
<view v-if="comments" class="interact-bar-item" @click="handleComment()">
<view class="interact-bar-icon"><image style="width:40upx;height: 40upx;" src="/static/images/icon/comment.png" alt=""></view>
<view class="interact-bar-txt">{{data.comments}}</view>
<!-- <view class="interact-bar-txt">{{data.comments}}</view> -->
</view>
<view v-if="praises" @click="addPraise" class="interact-bar-item">
<view class="interact-bar-icon" v-if="isPraise"><image style="width:40upx;height: 40upx;" src="/static/images/icon/artice-praise-active.png" alt="" ></view>
<view class="interact-bar-icon" v-else><image style="width:40upx;height: 40upx;" src="/static/images/icon/artice-praise.png" alt="" ></view>
<view class="interact-bar-txt">{{data.praises}}</view>
<!-- <view class="interact-bar-txt">{{data.praises}}</view> -->
</view>
<view v-if="shares" @click="addShare" class="interact-bar-item">
<view class="interact-bar-icon"><image style="width:40upx;height: 40upx;" src="/static/images/icon/share.png" alt=""></view>
<view class="interact-bar-txt">分享</view>
<!-- <view class="interact-bar-txt">分享</view> -->
</view>
<view v-if="favorites" @click="addFavorite()" class="interact-bar-item">
<view class="interact-bar-icon" v-if="isFavorite"><image style="width:40upx;height: 40upx;" src="/static/images/icon/favorite-active.png" alt="" ></view>
<view class="interact-bar-icon" v-else><image style="width:40upx;height: 40upx;" src="/static/images/icon/favorite.png" alt="" ></view>
<!-- <view class="interact-bar-txt">收藏</view> -->
<view class="interact-bar-txt">{{data.favorites}}</view>
<!-- <view class="interact-bar-txt">{{data.favorites}}</view> -->
<!-- 这里需要一个是否已经收藏的变量来控制已收藏就显示收藏数 -->
</view>
</view>
@@ -606,7 +606,7 @@ export default {
z-index: 999;
bottom: 0px;
width: 100%;
border-top: 1px solid #e8e8e8;
border-top: 1px solid rgba(153,153,153,0.12);;
height: 50px;
padding-top: 10px;
background-color: #FFFFFF;

View File

@@ -173,7 +173,7 @@
<interact-fixed :data="detailData" ref="fiexdbar" :comments="false" :answers="true" :type="4">
<view class="field" @click="openAnswerInput()">
<u-icon name="edit-pen-fill" size="18" class="field-icon"></u-icon>
<text class="wenz">我来回答..</text>
<text class="wenz">写回答</text>
</view>
</interact-fixed>
<!--弹出回答的窗口-->
@@ -888,10 +888,10 @@ export default {
}
.field {
width: 200px;
height: 40px;
height: 36px;
line-height: 30px;
background: rgb(247,247,249);
border-radius: 10upx;
border-radius: 17px;
display: flex;
.field-icon{
margin-top: 2px;