feat(home): 重构底部工具栏并添加浮动选项卡功能
This commit is contained in:
parent
b3f0ae2f7f
commit
645f1289ca
|
|
@ -219,42 +219,17 @@
|
||||||
<!-- 底部工具栏 -->
|
<!-- 底部工具栏 -->
|
||||||
<view class="chat-footer">
|
<view class="chat-footer">
|
||||||
<!-- 悬浮工具栏 -->
|
<!-- 悬浮工具栏 -->
|
||||||
<!-- <view class="floating-tabs">
|
<view class="floating-tabs">
|
||||||
<view
|
<view
|
||||||
class="tab-item"
|
class="tab-item"
|
||||||
@click="handleFeatureClick({ title: '招生在线' })"
|
v-for="(tab, index) in floatingTabs"
|
||||||
|
:key="index"
|
||||||
|
@click="handleFeatureClick({ title: tab.title })"
|
||||||
>
|
>
|
||||||
<image
|
<image class="tab-icon" :src="tab.icon" mode="scaleToFill" />
|
||||||
class="tab-icon"
|
<text>{{ tab.title }}</text>
|
||||||
src="/static/common/images/icon_admissions2.png"
|
|
||||||
mode="scaleToFill"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<text>招生在线</text>
|
|
||||||
</view>
|
</view>
|
||||||
<view
|
</view>
|
||||||
class="tab-item"
|
|
||||||
@click="handleFeatureClick({ title: '留言板' })"
|
|
||||||
>
|
|
||||||
<image
|
|
||||||
class="tab-icon"
|
|
||||||
src="/static/common/images/icon_messageBoard2.png"
|
|
||||||
mode="scaleToFill"
|
|
||||||
/>
|
|
||||||
<text>留言板</text>
|
|
||||||
</view>
|
|
||||||
<view
|
|
||||||
class="tab-item"
|
|
||||||
@click="handleFeatureClick({ title: '电话咨询' })"
|
|
||||||
>
|
|
||||||
<image
|
|
||||||
class="tab-icon"
|
|
||||||
src="/static/common/images/icon_phone2.png"
|
|
||||||
mode="scaleToFill"
|
|
||||||
/>
|
|
||||||
<text>电话咨询</text>
|
|
||||||
</view>
|
|
||||||
</view> -->
|
|
||||||
|
|
||||||
<view class="input-container">
|
<view class="input-container">
|
||||||
<view class="input-area">
|
<view class="input-area">
|
||||||
|
|
@ -350,17 +325,30 @@ export default {
|
||||||
path: "/pages/home/admissions/index",
|
path: "/pages/home/admissions/index",
|
||||||
background: "linear-gradient(0deg, #F4FBFE 0%, #F4FBFE 100%)",
|
background: "linear-gradient(0deg, #F4FBFE 0%, #F4FBFE 100%)",
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// title: "留言板",
|
|
||||||
// icon: "/static/common/images/icon_messageBoard.png",
|
|
||||||
// path: "/pages/home/messageBoard/index",
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
title: "电话咨询",
|
title: "电话咨询",
|
||||||
icon: "/static/common/images/icon_phone.png",
|
icon: "/static/common/images/icon_phone.png",
|
||||||
background: "linear-gradient(0deg, #F4FBF9 0%, #F4FBF9 100%)",
|
background: "linear-gradient(0deg, #F4FBF9 0%, #F4FBF9 100%)",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
floatingTabs: [
|
||||||
|
{
|
||||||
|
title: "首页",
|
||||||
|
icon: "/static/common/images/icon_home.png",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "招生在线",
|
||||||
|
icon: "/static/common/images/icon_admissions2.png",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "转人工",
|
||||||
|
icon: "/static/common/images/icon_conversation.png",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "电话咨询",
|
||||||
|
icon: "/static/common/images/icon_phone2.png",
|
||||||
|
},
|
||||||
|
],
|
||||||
popupShow: false,
|
popupShow: false,
|
||||||
chatHistoryList3: [
|
chatHistoryList3: [
|
||||||
// {
|
// {
|
||||||
|
|
@ -472,8 +460,9 @@ export default {
|
||||||
conversationId = "",
|
conversationId = "",
|
||||||
dmid = "",
|
dmid = "",
|
||||||
autoResetSwitching = true,
|
autoResetSwitching = true,
|
||||||
|
isChat = true,
|
||||||
} = {}) {
|
} = {}) {
|
||||||
this.isChat = true;
|
this.isChat = isChat;
|
||||||
this.isSwitchingConversation = true;
|
this.isSwitchingConversation = true;
|
||||||
this.currentConversationId = conversationId;
|
this.currentConversationId = conversationId;
|
||||||
this.currentDMid = dmid;
|
this.currentDMid = dmid;
|
||||||
|
|
@ -545,6 +534,11 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleFeatureClick(item) {
|
handleFeatureClick(item) {
|
||||||
|
if (item.title === "首页") {
|
||||||
|
this.resetChatState({ isChat: false });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (item.title === "电话咨询") {
|
if (item.title === "电话咨询") {
|
||||||
this.advicePhoneShow = true;
|
this.advicePhoneShow = true;
|
||||||
return;
|
return;
|
||||||
|
|
@ -1181,13 +1175,13 @@ export default {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
height: calc(100vh - 88rpx - 146rpx);
|
height: calc(100vh - 88rpx - 180rpx);
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
.chat-scroll {
|
.chat-scroll {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height: calc(100vh - 88rpx - 146rpx);
|
height: 100%;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1463,19 +1457,19 @@ export default {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
padding: 8rpx 24rpx;
|
padding: 8rpx 20rpx;
|
||||||
border-radius: 50rpx;
|
border-radius: 50rpx;
|
||||||
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
|
||||||
margin-right: 12rpx;
|
margin-right: 12rpx;
|
||||||
|
|
||||||
.tab-icon {
|
.tab-icon {
|
||||||
width: 28rpx;
|
width: 24rpx;
|
||||||
height: 28rpx;
|
height: 24rpx;
|
||||||
margin-right: 10rpx;
|
margin-right: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
text {
|
text {
|
||||||
font-size: 28rpx;
|
font-size: 24rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 724 B |
Loading…
Reference in New Issue