小助理
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
<template>
|
||||
<div class="AppDialogue">
|
||||
<u-navbar title="Copilot小助理" title-color="#000" title-width="300" title-size="32" :title-bold="true" :background="backgroundNavbar" :is-back="false" height="88"></u-navbar>
|
||||
<u-navbar title="Copilot小助理" title-color="#000" title-width="300" title-size="32" :title-bold="true" :background="backgroundNavbar" :is-back="false" :height="44"></u-navbar>
|
||||
<!-- <scroll-view scroll-y="true" class="scroll-Y" @scroll="scroll"> -->
|
||||
<div class="top-select" @click="showType=true">
|
||||
{{aiConfigName || '选择应用'}} <u-icon name="arrow-down" color="#fff" size="28"></u-icon>
|
||||
<div class="top-fixed">
|
||||
<div class="top-select" @click="showType=true">
|
||||
{{aiConfigName || '选择应用'}} <u-icon name="arrow-down" color="#fff" size="28"></u-icon>
|
||||
</div>
|
||||
<p>已切换至{{aiConfigName}}大模型</p>
|
||||
</div>
|
||||
<div class="service-content" v-if="!messageList.length">
|
||||
<div class="text-content">
|
||||
@@ -92,6 +95,8 @@ innerAudioContext.autoplay = true;
|
||||
export default {
|
||||
customNavigation: true,
|
||||
enablePullDownRefresh: true,
|
||||
navigationBarBackgroundColor: '#ffffff',
|
||||
navigationBarTextStyle: 'black',
|
||||
name: 'AppDialogue',
|
||||
appName: 'Copilot小助理(对话)',
|
||||
data() {
|
||||
@@ -351,19 +356,35 @@ page {
|
||||
height: 100vh;
|
||||
background-color: #fff;
|
||||
position: relative;
|
||||
.top-fixed {
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
left: 28px;
|
||||
z-index: 9;
|
||||
background-image: url('https://cdn.sinoecare.com/i/2024/07/15/6694f173557c9.png');
|
||||
background-size: 100vw;
|
||||
background-repeat: no-repeat;
|
||||
p {
|
||||
font-family: PingFangSC-Regular;
|
||||
font-weight: 400;
|
||||
font-size: 24px;
|
||||
color: #708099;
|
||||
text-align: center;
|
||||
padding: 10px 0 8px 0;
|
||||
line-height: 34px;
|
||||
}
|
||||
}
|
||||
.top-select {
|
||||
display: inline-block;
|
||||
line-height: 64px;
|
||||
background: #026AF2;
|
||||
border-radius: 32px;
|
||||
position: fixed;
|
||||
left: 28px;
|
||||
text-align: center;
|
||||
padding: 0 24px;
|
||||
font-family: PingFangSC-Medium;
|
||||
font-weight: 500;
|
||||
font-size: 28px;
|
||||
color: #FFF;
|
||||
z-index: 9;
|
||||
u-icon {
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<div class="AppRecord">
|
||||
<u-navbar title="Copilot小助理" title-color="#000" title-width="300" title-size="32" :title-bold="true" :background="backgroundNavbar" :is-back="false" :height="44"></u-navbar>
|
||||
<u-navbar title="Copilot小助理" title-color="#000" title-width="300" title-size="32" :title-bold="true"
|
||||
:background="backgroundNavbar" :is-back="false" :is-fixed="true" height="44"></u-navbar>
|
||||
<div class="list-bg">
|
||||
<div class="search-content">
|
||||
<u-search v-model="searchVal" :clearabled="true" placeholder="请输入搜索关键词…" :show-action="false"
|
||||
@@ -8,7 +9,7 @@
|
||||
</u-search>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-content">
|
||||
<div class="list-content" >
|
||||
<div class="item" v-for="(item, index) in messageList" :key="index">
|
||||
<p class="item-text">{{item.content}}</p>
|
||||
<div class="time-flex">
|
||||
@@ -32,6 +33,8 @@ import {mapActions, mapState} from "vuex";
|
||||
export default {
|
||||
customNavigation: true,
|
||||
enablePullDownRefresh: true,
|
||||
navigationBarBackgroundColor: '#ffffff',
|
||||
navigationBarTextStyle: 'black',
|
||||
name: 'AppRecord',
|
||||
appName: 'Copilot小助理(记录)',
|
||||
data() {
|
||||
@@ -50,6 +53,7 @@ export default {
|
||||
],
|
||||
current: 1,
|
||||
pages: 2,
|
||||
statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -109,7 +113,7 @@ export default {
|
||||
uni.navigateTo({url: `./Detail?aiConfigId=${e.aiConfigId}`})
|
||||
},
|
||||
del(e) {
|
||||
this.$confirm('确定删除该数据?').then(() => {
|
||||
this.$dialog.confirm({content: "确定删除该数据?"}).then(() => {
|
||||
uni.showLoading()
|
||||
this.$instance.post(`appaicopilotinfo/deleteConversation?conversationId=${e.conversationId}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
@@ -140,7 +144,6 @@ page {
|
||||
background-image: url("https://cdn.cunwuyun.cn/wechat/biaopin/residentAssistant/content-top-bg.png");
|
||||
position: fixed;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
background-size: 100vw;
|
||||
background-repeat: no-repeat;
|
||||
.search-content {
|
||||
@@ -156,8 +159,10 @@ page {
|
||||
.list-content {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
padding: 144px 32px 364px;
|
||||
padding: 144px 32px 32px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
z-index: 2;
|
||||
.item {
|
||||
.item-text {
|
||||
line-height: 40px;
|
||||
@@ -183,6 +188,7 @@ page {
|
||||
display: inline-block;
|
||||
font-size: 28px;
|
||||
color: #216AFD;
|
||||
padding: 16px;
|
||||
}
|
||||
div {
|
||||
display: inline-block;
|
||||
|
||||
Reference in New Issue
Block a user