Merge remote-tracking branch 'origin/dev-wdb'

This commit is contained in:
huxuejian 2026-02-06 17:20:43 +08:00
commit cecfff6124
8 changed files with 270 additions and 233 deletions

View File

@ -1,184 +1,182 @@
{
"pages": [
{
"path": "pages/home/home",
"style": {
"navigationBarTitleText": "首页",
"navigationStyle": "custom"
}
},
{
"path": "pages/article/article-list",
"style": {
"navigationBarTitleText": "我的宣教"
}
},
{
"path": "pages/article/article-cate-list",
"style": {
"navigationBarTitleText": "健康宣教"
}
},
{
"path": "pages/survey/survey-list",
"style": {
"navigationBarTitleText": "我的问卷"
}
},
{
"path": "pages/message/message",
"style": {
"navigationBarTitleText": "消息"
}
},
{
"path": "pages/message/index",
"style": {
"navigationBarTitleText": "聊天",
"enablePullDownRefresh": false
}
},
{
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "健康柚",
"navigationStyle": "custom"
}
},
{
"path": "pages/login/redirect-page",
"style": {
"navigationBarTitleText": "健康柚"
}
},
{
"path": "pages/archive/archive-manage",
"style": {
"navigationBarTitleText": "档案管理"
}
},
{
"path": "pages/archive/edit-archive",
"style": {
"navigationBarTitleText": "新增档案"
}
},
{
"path": "pages/archive/archive-result",
"style": {
"navigationBarTitleText": "团队服务"
}
},
{
"path": "pages/health/list",
"style": {
"navigationBarTitleText": "健康信息"
}
},
{
"path": "pages/health/record",
"style": {
"navigationBarTitleText": "健康信息"
}
},
{
"path": "pages/library/diagnosis-list",
"style": {
"navigationBarTitleText": "选择诊断"
}
},
{
"path": "pages/team/team-detail",
"style": {
"navigationBarTitleText": "团队介绍"
}
},
{
"path": "pages/team/homepage",
"style": {
"navigationBarTitleText": "个人主页"
}
},
{
"path": "pages/team/friend",
"style": {
"navigationBarTitleText": "添加好友"
}
},
{
"path": "pages/web-view/web-view",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/mine/mine",
"style": {
"navigationBarTitleText": "我的"
}
},
{
"path": "pages/mine/contact",
"style": {
"navigationBarTitleText": "联系客服"
}
},
{
"path": "pages/common/privacy",
"style": {
"navigationBarTitleText": "隐私政策"
}
},
{
"path": "pages/common/agreement",
"style": {
"navigationBarTitleText": "用户协议"
}
},
{
"path": "pages/article/article-detail",
"style": {
"navigationBarTitleText": "宣教文章"
}
},
{
"path": "pages/article/send-article",
"style": {
"navigationBarTitleText": "选择宣教文章"
}
}
],
"globalStyle": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#065bd6",
"backgroundColor": "#065bd6"
},
"tabBar": {
"color": "#666666",
"selectedColor": "#007aff",
"backgroundColor": "#ffffff",
"borderStyle": "white",
"list": [
{
"pagePath": "pages/home/home",
"iconPath": "static/tabbar/home.png",
"selectedIconPath": "static/tabbar/home_selected.png",
"text": "消息"
},
{
"pagePath": "pages/message/message",
"iconPath": "static/tabbar/consult.png",
"selectedIconPath": "static/tabbar/consult_selected.png",
"text": "咨询"
},
{
"pagePath": "pages/mine/mine",
"iconPath": "static/tabbar/mine.png",
"selectedIconPath": "static/tabbar/mine_selected.png",
"text": "我的"
}
]
},
"uniIdRouter": {}
}
{
"pages": [{
"path": "pages/home/home",
"style": {
"navigationBarTitleText": "首页",
"navigationStyle": "custom"
}
},
{
"path": "pages/article/article-list",
"style": {
"navigationBarTitleText": "我的宣教"
}
},
{
"path": "pages/article/article-cate-list",
"style": {
"navigationBarTitleText": "健康宣教"
}
},
{
"path": "pages/survey/survey-list",
"style": {
"navigationBarTitleText": "我的问卷"
}
},
{
"path": "pages/message/message",
"style": {
"navigationBarTitleText": "消息"
}
},
{
"path": "pages/message/index",
"style": {
"navigationBarTitleText": "聊天",
"enablePullDownRefresh": false
}
},
{
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "健康柚",
"navigationStyle": "custom"
}
},
{
"path": "pages/login/redirect-page",
"style": {
"navigationBarTitleText": "健康柚"
}
},
{
"path": "pages/archive/archive-manage",
"style": {
"navigationBarTitleText": "档案管理"
}
},
{
"path": "pages/archive/edit-archive",
"style": {
"navigationBarTitleText": "新增档案"
}
},
{
"path": "pages/archive/archive-result",
"style": {
"navigationBarTitleText": "团队服务"
}
},
{
"path": "pages/health/list",
"style": {
"navigationBarTitleText": "健康信息"
}
},
{
"path": "pages/health/record",
"style": {
"navigationBarTitleText": "健康信息"
}
},
{
"path": "pages/library/diagnosis-list",
"style": {
"navigationBarTitleText": "选择诊断"
}
},
{
"path": "pages/team/team-detail",
"style": {
"navigationBarTitleText": "团队介绍"
}
},
{
"path": "pages/team/homepage",
"style": {
"navigationBarTitleText": "个人主页"
}
},
{
"path": "pages/team/friend",
"style": {
"navigationBarTitleText": "添加好友"
}
},
{
"path": "pages/web-view/web-view",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/mine/mine",
"style": {
"navigationBarTitleText": "我的"
}
},
{
"path": "pages/mine/contact",
"style": {
"navigationBarTitleText": "联系客服"
}
},
{
"path": "pages/common/privacy",
"style": {
"navigationBarTitleText": "隐私政策"
}
},
{
"path": "pages/common/agreement",
"style": {
"navigationBarTitleText": "用户协议"
}
},
{
"path": "pages/article/article-detail",
"style": {
"navigationBarTitleText": "宣教文章"
}
},
{
"path": "pages/article/send-article",
"style": {
"navigationBarTitleText": "选择宣教文章"
}
}
],
"globalStyle": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#065bd6",
"backgroundColor": "#065bd6"
},
"tabBar": {
"color": "#666666",
"selectedColor": "#007aff",
"backgroundColor": "#ffffff",
"borderStyle": "white",
"list": [{
"pagePath": "pages/home/home",
"iconPath": "static/tabbar/home.png",
"selectedIconPath": "static/tabbar/home_selected.png",
"text": "消息"
},
{
"pagePath": "pages/message/message",
"iconPath": "static/tabbar/consult.png",
"selectedIconPath": "static/tabbar/consult_selected.png",
"text": "咨询"
},
{
"pagePath": "pages/mine/mine",
"iconPath": "static/tabbar/mine.png",
"selectedIconPath": "static/tabbar/mine_selected.png",
"text": "我的"
}
]
},
"uniIdRouter": {}
}

View File

@ -1,25 +1,20 @@
<template>
<view class="archive-container">
<view class="mb-10 flex items-center justify-between">
<view class="module-title flex-shrink-0 truncate"> 成员档案 </view>
<view
class="flex items-center px-10 leading-normal rounded-sm"
@click="toManagePage()"
>
<image
class="manage-icon mr-5"
src="/static/home/archive-manage.png"
mode="aspectFit"
></image>
<view style="font-size: 28rpx; color: #065bd6">档案管理</view>
<view class="module-title flex-shrink-0 truncate">
成员档案
</view>
<view class="flex items-center leading-normal rounded-sm" style="padding-right: 0" @click="toManagePage()">
<image class="manage-icon mr-5" src="/static/home/archive-manage.png" mode="aspectFit"></image>
<view style="font-size: 28rpx; color: #065BD6;">档案管理</view>
</view>
</view>
<view
v-if="customers.length === 0"
class="flex items-center justify-center h-80 border-dashed text-dark rounded"
>
<uni-icons type="plusempty" size="16" color="#999"></uni-icons>
<view class="text-base text-dark">新建档案</view>
<view v-if="customers.length === 0" class="add-archive-card" @click="toManagePage()">
<view class="add-archive-btn">
<image class="add-archive-btn-icon" src="/static/home/add-archive-btn.png" mode="aspectFit"></image>
<text class="add-archive-btn-text">新建档案</text>
</view>
<image class="add-archive-bg" src="/static/home/add-archive-bg.png" mode="aspectFit"></image>
</view>
<scroll-view scroll-x="true">
<view class="flex flex-nowrap pb-5">
@ -39,12 +34,8 @@
{{ i.relationship }}
</view>
<view class="flex flex-col items-center">
<view
class="customer-name text-lg leading-normal font-semibold whitespace-nowrap"
:class="
current && i._id === current._id ? 'text-primary' : 'text-dark'
"
>
<view class="customer-name text-lg leading-normal font-semibold whitespace-nowrap mb-8"
:class="current && i._id === current._id ? 'text-primary' : 'text-dark'">
{{ i.name }}
</view>
</view>
@ -419,7 +410,8 @@ watch(
.info-title {
color: #213e80;
font-size: 32rpx;
font-weight: 500;
font-weight: 400;
line-height: 56rpx;
}
.info-subtitle {
@ -452,4 +444,49 @@ watch(
.rounded-lg {
border-radius: 16rpx;
}
/* 新建档案卡片样式 */
.add-archive-card {
height: 140rpx;
border-radius: 16rpx;
background: linear-gradient(95deg, #ECFBFF -7.38%, #A5CBFF 72.72%);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 24rpx;
position: relative;
overflow: hidden;
}
.add-archive-btn {
margin-left: 24rpx;
width: 188rpx;
height: 56rpx;
border-radius: 40rpx;
background: linear-gradient(90deg, #33A0F9 0%, #065BD6 100%);
box-shadow: 0 8rpx 8rpx 0 rgba(6, 91, 214, 0.3);
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
}
.add-archive-btn-icon {
width: 32rpx;
height: 32rpx;
margin-right: 8rpx;
}
.add-archive-btn-text {
font-size: 28rpx;
color: #FFFFFF;
font-weight: 500;
}
.add-archive-bg {
height: 140rpx;
position: absolute;
right: 0;
top: 0;
}
</style>

View File

@ -10,9 +10,9 @@
<view class="home-section">
<consult :corpId="corpId" :teamId="team.teamId" :team="team" :customers="customers" />
</view>
<view class="home-section">
<!-- <view class="home-section">
<team-mate :team="team" />
</view>
</view> -->
<view class="home-section">
<article-list :team="team" />
</view>

View File

@ -2,7 +2,7 @@
<view>
<view :style="{ height: statusBarHeight }" class="status-bar"></view>
<view class="relative z-3 flex items-center px-15 py-12 header-bar">
<view class="flex-shrink-0 mr-5">
<view class="flex-shrink-0 mr-5" @click="toTeamDetail">
<group-avatar :size="120" :avatarList="currentTeam ? currentTeam.avatarList : []" />
</view>
<view class="w-0 flex-grow">
@ -101,6 +101,14 @@ function select(team) {
showDropDown.value = false;
}
function toTeamDetail() {
if (props.team && props.team.teamId) {
uni.navigateTo({
url: `/pages/team/team-detail?teamId=${props.team.teamId}&corpId=${props.team.corpId}&corpName=${encodeURIComponent(props.team.corpName || '')}`
});
}
}
watch(
() => props.teams,
(teams) => {

View File

@ -445,39 +445,33 @@ $primary-color: #0877F1;
min-width: 0;
}
.text-input {
flex: 1;
padding: 16rpx 24rpx;
background-color: #f3f5fa;
border-radius: 20rpx;
margin: 0;
font-size: 28rpx;
min-height: 56rpx;
max-height: 200rpx;
border: none;
outline: none;
box-sizing: border-box;
line-height: 1.5;
color: #333;
vertical-align: middle;
}
.text-input,
.voice-input-btn {
flex: 1;
padding: 16rpx 24rpx;
padding: 16rpx;
background-color: #f3f5fa;
border-radius: 20rpx;
margin: 0;
border-radius: 10rpx;
font-size: 28rpx;
min-height: 56rpx;
min-height: 80rpx;
max-height: 200rpx;
border: none;
outline: none;
box-sizing: border-box;
line-height: 1.5;
color: #333;
display: flex;
align-items: center;
justify-content: center;
}
.text-input {
padding: 20rpx;
display: block;
line-height: 1.5;
height: 80rpx;
}
.voice-input-btn {
height: 56rpx;
display: flex;

View File

@ -8,7 +8,7 @@
<view class="input-area">
<textarea v-if="!showVoiceInput" class="text-input" v-model="inputText" placeholder="我来说两句..."
@confirm="sendTextMessage" @focus="handleInputFocus" @input="handleInput"
:auto-height="true" :show-confirm-bar="false" :adjust-position="true" />
:auto-height="true" :show-confirm-bar="false" :adjust-position="true" :cursor-spacing="40" />
<input v-else class="voice-input-btn" :class="{ recording: isRecording }" @touchstart="startRecord"
@touchmove="onRecordTouchMove" @touchend="stopRecord" @touchcancel="cancelRecord" :placeholder="isRecording ? '松开发送' : '按住说话'" disabled>
</input>

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 B