优化代码
This commit is contained in:
@@ -77,20 +77,17 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="remark">
|
||||
<uni-easyinput
|
||||
type="textarea"
|
||||
v-model="item.remark"
|
||||
placeholder="备注"
|
||||
maxlength="-1"
|
||||
disabled="true"
|
||||
:style="style"
|
||||
></uni-easyinput>
|
||||
<scroll-view show-scrollbar="false" scroll-y="true" class="Remarkscroll">
|
||||
<view class="Remarkscss">{{ item.remark }}</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="buttonflex">
|
||||
<view class="button" v-if="item.senderId !== id">
|
||||
<button class="accept" @click="openChat()">聊了个天</button>
|
||||
<button class="reject" @click="open()">立即邀请</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 弹窗 -->
|
||||
<uni-popup ref="popup" type="center" border-radius="10px 10px 0 0">
|
||||
@@ -122,7 +119,7 @@
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
</view>
|
||||
<view>{{ TimeFormatting(item.pkTime) }}</view>
|
||||
<view>{{ TimeFormatting(item.pkTime*1000) }}</view>
|
||||
<view class="goldimg">
|
||||
<image
|
||||
style="width: 31.49rpx; height: 31.49rpx; margin-top: 4rpx"
|
||||
@@ -166,12 +163,6 @@ import formatDate from "../../components/formatDate.js";
|
||||
import TimeFormatting from "../../components/TimeFormatting.js";
|
||||
import NewAddedPk from "../../pages/NewAddedPk/NewAddedPk.vue";
|
||||
import request from "../../components/request.js";
|
||||
// import Recompose from "../Mine/minecomponents/recompose/recompose.vue";
|
||||
import TUIChatEngine, {
|
||||
TUIStore,
|
||||
StoreName,
|
||||
TUIChatService,
|
||||
} from "@tencentcloud/chat-uikit-engine";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -185,10 +176,6 @@ export default {
|
||||
currentConversation: null,
|
||||
inid: null,
|
||||
chatPartnerinfo: {},
|
||||
// parentMessage: null,
|
||||
style: {
|
||||
backgroundColor: "#ffffff",
|
||||
},
|
||||
};
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
@@ -683,11 +670,33 @@ export default {
|
||||
margin-top: 60rpx;
|
||||
width: 90%;
|
||||
}
|
||||
.Remarkscroll{
|
||||
width: 100%;
|
||||
height: 300rpx;
|
||||
}
|
||||
.Remarkscroll ::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
color: transparent;
|
||||
display: none;
|
||||
}
|
||||
.Remarkscss{
|
||||
padding: 20rpx;
|
||||
word-break: break-all; /* 强制换行 */
|
||||
white-space: pre-line; /* 保留空白符并换行 */
|
||||
width: 100%;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.buttonflex{
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 40rpx;
|
||||
}
|
||||
.button {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 500rpx;
|
||||
}
|
||||
.accept {
|
||||
width: 325.38rpx;
|
||||
|
||||
Reference in New Issue
Block a user