Browse Source

专家列表

master
ZhaoYang 1 month ago
parent
commit
3f9baa276c
  1. 18
      pagesA/pages/expertChat/expertChat.js
  2. 15
      pagesA/pages/expertChat/expertChat.wxml
  3. 49
      pagesA/pages/expertChat/expertChat.wxss

18
pagesA/pages/expertChat/expertChat.js

@ -1316,25 +1316,7 @@ Page({
}); });
}, },
// 选择视频
chooseVideo: function() {
this.hideMediaActionSheet();
wx.chooseVideo({
sourceType: ['album'],
compressed: true,
maxDuration: 60,
success: (res) => {
this.uploadVideo(res.tempFilePath, res.thumbTempFilePath);
},
fail: () => {
wx.showToast({
title: '选择视频失败',
icon: 'none'
});
}
});
},
// 预览图片 // 预览图片
previewImage: function(e) { previewImage: function(e) {

15
pagesA/pages/expertChat/expertChat.wxml

@ -30,15 +30,6 @@
<text class="date-text">{{todayDate}}</text> <text class="date-text">{{todayDate}}</text>
</view> </view>
<!-- 发送中提示 -->
<view class="sending-tip-container" wx:if="{{sendingCount > 0}}">
<view class="sending-tip">
<view class="sending-dot"></view>
<view class="sending-dot"></view>
<view class="sending-dot"></view>
<text class="sending-text">正在发送{{sendingCount}}条消息...</text>
</view>
</view>
<!-- 消息列表 --> <!-- 消息列表 -->
<block wx:for="{{messageList}}" wx:key="index"> <block wx:for="{{messageList}}" wx:key="index">
@ -242,12 +233,6 @@
<text class="option-text">照片</text> <text class="option-text">照片</text>
</view> </view>
<view class="media-option" bindtap="chooseVideo">
<view class="option-icon-box">
<image src="/pagesA/images/ps.png"></image>
</view>
<text class="option-text">视频</text>
</view>
</view> </view>
<view class="sheet-bottom"> <view class="sheet-bottom">

49
pagesA/pages/expertChat/expertChat.wxss

@ -105,56 +105,7 @@
background-color: #d8d8d8; background-color: #d8d8d8;
} }
/* ========== 发送中提示 ========== */
.sending-tip-container {
display: flex;
justify-content: center;
margin: 10rpx 0 20rpx;
animation: fadeIn 0.3s ease;
}
.sending-tip {
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(10px);
padding: 12rpx 32rpx;
border-radius: 40rpx;
display: flex;
align-items: center;
gap: 8rpx;
}
.sending-dot {
width: 8rpx;
height: 8rpx;
background: #ffffff;
border-radius: 50%;
animation: sendingPulse 1.4s infinite;
}
.sending-dot:nth-child(2) {
animation-delay: 0.2s;
}
.sending-dot:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes sendingPulse {
0%, 60%, 100% {
transform: scale(1);
opacity: 1;
}
30% {
transform: scale(1.5);
opacity: 0.5;
}
}
.sending-text {
font-size: 24rpx;
color: #ffffff;
margin-left: 8rpx;
}
/* ========== 消息项 ========== */ /* ========== 消息项 ========== */
.message-item { .message-item {

Loading…
Cancel
Save