flat: 暂存

This commit is contained in:
史典卓
2025-03-29 11:51:48 +08:00
parent b8ee5e7c17
commit 09d9603f04
101 changed files with 93 additions and 57 deletions

View File

@@ -3,7 +3,7 @@
<view class="careerfair-AI">AI+就业服务程序</view>
<view class="careerfair-tab">
<view class="careerfair-tab-options actived">现场招聘</view>
<view class="careerfair-tab-options">VR虚拟招聘会</view>
<view class="careerfair-tab-options" @click="textXcx">VR虚拟招聘会</view>
</view>
<scroll-view :scroll-x="true" :show-scrollbar="false" class="careerfair-scroll">
<view class="careerfair-date">
@@ -48,6 +48,16 @@ const state = reactive({
onLoad(() => {
state.dateList = getNextMonthDates();
});
document.addEventListener('UniAppJSBridgeReady', function () {
console.log(123);
});
function textXcx() {
jWeixin.miniProgram.postMessage({
data: {
pathUrl: '你好,小程序', //传递的参数
},
});
}
// 获取往后三十天日期
function getNextMonthDates() {

View File

@@ -7,17 +7,17 @@
<view class="drawer" :class="{ open: isDrawerOpen }">
<view class="drawer-content">
<view class="drawer-title">AI+</view>
<view class="drawer-input-content">
<input
class="drawer-input"
type="text"
v-model="searchText"
placeholder-class="input-placeholder"
placeholder="请输入搜索历史对话"
/>
<uni-icons class="input-search" type="search" size="20"></uni-icons>
</view>
<scroll-view scroll-y :show-scrollbar="false" class="chat-scroll">
<view class="drawer-input-content">
<input
class="drawer-input"
type="text"
v-model="searchText"
placeholder-class="input-placeholder"
placeholder="请输入搜索历史对话"
/>
<uni-icons class="input-search" type="search" size="20"></uni-icons>
</view>
<view
class="drawer-rows"
@click="changeDialogue(item)"
@@ -36,6 +36,11 @@
</view>
</view>
</scroll-view>
<view class="drawer-user">
<image class="drawer-user-img" src="/static/icon/boy.png"></image>
<text>用户123</text>
<image class="drawer-user-setting" src="/static/icon/setting.png" mode=""></image>
</view>
</view>
</view>
@@ -115,6 +120,7 @@ const changeDialogue = (item) => {
/* 页面容器 */
.container {
position: fixed;
z-index: 1000;
width: 100vw;
height: calc(100vh - var(--window-top) - var(--status-bar-height) - var(--window-bottom));
overflow: hidden;
@@ -173,6 +179,28 @@ const changeDialogue = (item) => {
.drawer-content
height: 100%
background: #FFFFFF;
display: flex
flex-direction: column
.drawer-user
border-top: 1rpx solid rgba(0,0,0,.1);
padding: 20rpx 28rpx
display: flex
font-weight: 500;
align-items: center
position: relative
margin-bottom: constant(safe-area-inset-bottom); /*兼容 IOS<11.2*/
margin-bottom: env(safe-area-inset-bottom); /*兼容 IOS>11.2*/
.drawer-user-img
width: 57.2rpx;
height: 57.2rpx
margin-right: 20rpx
.drawer-user-setting
width: 57.2rpx;
height: 57.2rpx
position: absolute
top: 50%
right: 28rpx
transform: translate(0,-50%)
.drawer-title
height: calc(88rpx + env(safe-area-inset-top));
line-height: calc(88rpx + env(safe-area-inset-top));
@@ -181,7 +209,8 @@ const changeDialogue = (item) => {
font-size: 32rpx
font-weight: bold
.chat-scroll
height: calc(100% - 88rpx + env(safe-area-inset-top));
flex: 1
overflow: hidden
.drawer-rows
padding: 0 28rpx;
// border-bottom: 2rpx dashed #e8e8e8

View File

@@ -13,7 +13,7 @@
</view>
</FadeView>
<scroll-view class="chat-list scrollView" :scroll-top="scrollTop" :scroll-y="true" scroll-with-animation>
<FadeView :show="messages.length" :duration="600">
<FadeView :show="messages.length >= 1" :duration="600">
<view class="chat-list list-content">
<view
v-for="(msg, index) in messages"
@@ -22,7 +22,7 @@
class="chat-item"
:class="{ self: msg.self }"
>
<text class="message" v-if="msg.self">
<view class="message" v-if="msg.self">
<view class="msg-filecontent" v-if="msg.files.length">
<view
class="msg-files"
@@ -35,8 +35,8 @@
</view>
</view>
{{ msg.displayText }}
</text>
<text class="message" :class="{ messageNull: !msg.displayText }" v-else>
</view>
<view class="message" :class="{ messageNull: !msg.displayText }" v-else>
<!-- {{ msg.displayText }} -->
<md-render :content="msg.displayText"></md-render>
<!-- guess -->
@@ -59,7 +59,7 @@
</view>
</view>
</view>
</text>
</view>
</view>
<view v-if="isTyping" :class="{ self: true }">
<text class="message msg-loading">
@@ -290,7 +290,7 @@ const scrollToBottom = throttle(function () {
scrollTop.value = scrolldistance;
}
});
}, 100);
}, 500);
} catch (err) {
console.warn(err);
}