|
|
@ -6,7 +6,7 @@ |
|
|
|
<view class="list_item" :class="item.userType" v-for="(item,index) in list" :key="index"> |
|
|
|
<view class="list_item" :class="item.userType" v-for="(item,index) in list" :key="index"> |
|
|
|
<view v-if="item.userType=='self'"> |
|
|
|
<view v-if="item.userType=='self'"> |
|
|
|
<view class="text-name row flex-align-center"> |
|
|
|
<view class="text-name row flex-align-center"> |
|
|
|
<image class="img" mode="widthFix" src="@/static/test/ai-self.png"></image> |
|
|
|
<image class="img" mode="widthFix" src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/ai-self.png"></image> |
|
|
|
<text>E鹿小助手</text> |
|
|
|
<text>E鹿小助手</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="text-box">{{item.content}}</view> |
|
|
|
<view class="text-box">{{item.content}}</view> |
|
|
@ -15,7 +15,7 @@ |
|
|
|
v-if="item.userType=='friend'"> |
|
|
|
v-if="item.userType=='friend'"> |
|
|
|
<view class="text-box">{{item.content}}</view> |
|
|
|
<view class="text-box">{{item.content}}</view> |
|
|
|
<view class="text-name row flex-align-center"> |
|
|
|
<view class="text-name row flex-align-center"> |
|
|
|
<image class="img" mode="widthFix" src="@/static/test/ai-friend.png"></image> |
|
|
|
<image class="img" mode="widthFix" src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/ai-friend.png"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -24,13 +24,13 @@ |
|
|
|
<!-- 语音/文字发送 --> |
|
|
|
<!-- 语音/文字发送 --> |
|
|
|
<view class="tool flex-align-center"> |
|
|
|
<view class="tool flex-align-center"> |
|
|
|
<block v-if="messageType === 'text'"> |
|
|
|
<block v-if="messageType === 'text'"> |
|
|
|
<image src="@/static/test/icon-voice.png" mode="widthFix" class="left-icon" |
|
|
|
<image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/icon-voice.png" mode="widthFix" class="left-icon" |
|
|
|
@click="messageType='voice'"> |
|
|
|
@click="messageType='voice'"> |
|
|
|
</image> |
|
|
|
</image> |
|
|
|
<input type="text" v-model="content" class="input" @confirm="sendMsg" /> |
|
|
|
<input type="text" v-model="content" class="input" @confirm="sendMsg" /> |
|
|
|
</block> |
|
|
|
</block> |
|
|
|
<block v-if="messageType === 'voice'"> |
|
|
|
<block v-if="messageType === 'voice'"> |
|
|
|
<image src="@/static/test/icon-text.png" mode="widthFix" class="left-icon" @click="messageType='text'"> |
|
|
|
<image src="https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/icon-text.png" mode="widthFix" class="left-icon" @click="messageType='text'"> |
|
|
|
</image> |
|
|
|
</image> |
|
|
|
<text class="voice-crl" @touchstart="touchstart" |
|
|
|
<text class="voice-crl" @touchstart="touchstart" |
|
|
|
@touchend="touchend">{{ recordStart ? '松开 发送' : '按住 说话' }}</text> |
|
|
|
@touchend="touchend">{{ recordStart ? '松开 发送' : '按住 说话' }}</text> |
|
|
@ -75,13 +75,13 @@ |
|
|
|
clientTimer: null, // 客户端计时 |
|
|
|
clientTimer: null, // 客户端计时 |
|
|
|
clientTime: 10000, // 客户端计时间隔 |
|
|
|
clientTime: 10000, // 客户端计时间隔 |
|
|
|
serverTimer: null, // 服务端计时 |
|
|
|
serverTimer: null, // 服务端计时 |
|
|
|
serverTime: 30000, // 服务端计时间隔 |
|
|
|
serverTime: 30000, // 服务端计时间隔 |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
onShow() { |
|
|
|
onShow() { |
|
|
|
const userInfo = uni.getStorageSync("userInfo"); |
|
|
|
const userInfo = uni.getStorageSync("userInfo"); |
|
|
|
this.userInfo = { |
|
|
|
this.userInfo = { |
|
|
|
"message": "", |
|
|
|
"message": "", |
|
|
|
"dialogId": "", |
|
|
|
"dialogId": "", |
|
|
@ -381,7 +381,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.v-pages.Ai { |
|
|
|
.v-pages.Ai { |
|
|
|
// background: url('@/static/test/ai-bg.png'); |
|
|
|
// background: url('https://eluyou.ailuquan.cn/upload/image/2024/mapIcon/daolan/ai-bg.png'); |
|
|
|
// background-repeat: no-repeat; |
|
|
|
// background-repeat: no-repeat; |
|
|
|
// background-position: top; |
|
|
|
// background-position: top; |
|
|
|
// background-size: cover; |
|
|
|
// background-size: cover; |
|
|
@ -533,4 +533,4 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|