index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
  1. <template>
  2. <div class="assistant-2">
  3. <div class="assistant-head">
  4. <img src="./imgs/logo-1.png"/>
  5. <div class="title">
  6. <div>深圳口岸服务网</div>
  7. <div>{{'Shenzhen Port Service Platform'.toUpperCase()}}</div>
  8. </div>
  9. <div class="sub-title">"i口岸"通关小助理</div>
  10. <div class="tips">
  11. <div class="__hover" @click="state.showHelp = true">使用帮助</div>
  12. <div class="split"/>
  13. <div class="__hover" @click="state.showAgreement = true">用户协议</div>
  14. <div class="split"/>
  15. <div class="__hover" @click="state.showDisclaimers = true">免责声明</div>
  16. </div>
  17. </div>
  18. <div class="assistant-main">
  19. <div class="assistant-main-list">
  20. <div class="assistant-main-list-hot">
  21. <div class="list-head">
  22. <img src="./imgs/hot-icon.png"/>
  23. 热门主题
  24. </div>
  25. <div class="hot-theme">
  26. <div class="left __hover" @click="onThemeScroll(-100)"/>
  27. <div class="themes" ref="ref_theme">
  28. <template v-for="item in state.hotList.theme">
  29. <div class="item __hover" :class="{active: state.hotList.themeId == item.id}" @click="initQuestion(item.id)">{{item.themeName}}</div>
  30. </template>
  31. </div>
  32. <div class="right __hover" @click="onThemeScroll(100)"/>
  33. </div>
  34. <div class="question-title">
  35. 热点问题
  36. </div>
  37. <div class="hot-question">
  38. <template v-if="state.hotList.question.length > 0">
  39. <template v-for="item in state.hotList.question">
  40. <div class="item">
  41. <div/>
  42. <div class="__hover" @click="ref_chat.setText(item.hotContent, true)">
  43. <CzrEllipsis :value="item.hotContent"/>
  44. </div>
  45. </div>
  46. </template>
  47. </template>
  48. <div class="none_1" v-else>
  49. <img src="@/views/smart-ask-answer/assistant-2/imgs/none.png"/>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="assistant-main-list-ask">
  54. <div class="list-head">
  55. <img src="./imgs/ask-icon.png"/>
  56. 提问记录
  57. <div class="__hover" @click="onClearAsk">清空记录</div>
  58. </div>
  59. <div class="list-content">
  60. <template v-if="state.askList.length > 0">
  61. <template v-for="(item, index) in state.askList">
  62. <div class="item __hover">
  63. <img src="./imgs/ask-icon-2.png"/>
  64. <div class="__hover" @click="ref_chat.setText(item)">
  65. <CzrEllipsis :value="item"/>
  66. </div>
  67. <img src="./imgs/ask-del.png" class="__hover" @click="onDelAsk(index)"/>
  68. </div>
  69. </template>
  70. </template>
  71. <div class="none_1" v-else>
  72. <img src="@/views/smart-ask-answer/assistant-2/imgs/none.png"/>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="assistant-main-content">
  78. <chatCom ref="ref_chat" @getText="getText"/>
  79. </div>
  80. </div>
  81. <CzrDialog
  82. :show="state.showHelp"
  83. width="560px"
  84. :show-submit="false"
  85. :show-close="false"
  86. :hiddenStyle="true"
  87. >
  88. <div class="dialog">
  89. <div class="dialog-title" style="background: linear-gradient(90deg, #677AFD, #8695FD);">
  90. <img src="@/views/smart-ask-answer/assistant-2/imgs/icon-1.png"/>使用帮助<SvgIcon name="czr_close_1" color="#ffffff" size="16" class="__hover" @click="state.showHelp = false"/>
  91. </div>
  92. <div class="dialog-content help">
  93. <div><div>我学习了<span>口岸知识</span>,能帮您解决口岸相关问题。</div></div>
  94. <div><div>提问字数应控制在<span>200字以内</span>,简要描述业务相关问题,避免出现<span>事例说明</span>和具体<span>个人信息</span>。</div></div>
  95. <div><div>提问范围应在<span>业务以内</span>,避免与业务无关的内容。</div></div>
  96. <div><div>提问描述应<span>完整简明</span>,避免仅输入“去哪里办理?”、“要带什么材料”等问法。</div></div>
  97. <div><div>提问内容尽量避免出现<span>字母、数字、特殊符号</span>等非简体中文文字内容。</div></div>
  98. <div><div>提问避免上<span>上下文分割</span>,避免多次重复提问同一个问题。</div></div>
  99. </div>
  100. </div>
  101. </CzrDialog>
  102. <CzrDialog
  103. :show="state.showAgreement"
  104. width="560px"
  105. height="560px"
  106. :show-submit="false"
  107. :show-close="false"
  108. :hiddenStyle="true"
  109. >
  110. <div class="dialog">
  111. <div class="dialog-title" style="background: linear-gradient(90deg, #2780FD, #579BFC);">
  112. <img src="@/views/smart-ask-answer/assistant-2/imgs/icon-2.png"/>用户协议<SvgIcon name="czr_close_1" color="#ffffff" size="16" class="__hover" @click="state.showAgreement = false"/>
  113. </div>
  114. <div class="dialog-content agreement">
  115. <div>
  116. <div>尊敬的用户:</div>
  117. <div>欢迎您使用深圳口岸服务网“i口岸”通关小助理(以下简称“本系统”)。在本协议中,用户统一被称为“您”,请您务必仔细阅读并充分理解本协议内容。若您不同意本协议及其各项条款,请立即停止使用本系统。若您继续使用本系统,则视为您已经理解、同意并自愿接受本协议的所有内容。</div>
  118. <div>本协议的条款将不定期根据现实情况作出调整及更新,不再另行通知,请您自行保持关注。您在更新的协议条款发布之后继续使用本平台,即视为您已接受修改后的协议。</div>
  119. <div>在本协议中,您需确认,代表您使用本系统的用户已获得充分且合法的授权,且该用户有权代表您接受并履行本协议所规定的各项义务。同时,您应明确知晓并同意,本系统仅向年满18周岁且具备完全民事行为能力的自然人授予使用权限,未成年人及无完全民事行为能力人请在监护人帮助下使用本系统。</div>
  120. <div class="title">一、服务使用和信息内容规范</div>
  121. <div>(一) 内容合法性与合规性</div>
  122. <div>您郑重承诺,在使用本系统时,将严格遵守国家法律法规,不得从事任何违法或违反本协议的活动,严禁发布虚假信息或不当信息。对于违反本规定的内容,本系统将依法采取相应处理措施,包括但不限于不予正常显示、发出警告、限制平台功能使用、封禁账号等。在使用本系统的过程中,您有责任确保所输入的内容不得违反任何法律法规,严禁侵犯他人合法权益(包括但不限于知识产权及其他民事权利),并且应当严格遵守社会公序良俗。在输入内容之前,请仔细检查,避免输入敏感信息或机密信息。</div>
  123. <div>(二) 内容发布与传播规范</div>
  124. <div>若您需要对外发布或传播本系统所生成的内容,应当确保此类发布或传播行为符合法律规定的标识要求。 本系统致力于为用户生成高质量的内容,并采取了一系列安全措施对不当内容进行过滤。然而,鉴于AI技术的固有特性,本系统无法完全保证所生成内容的合法性、准确性或适用性。因此,您有义务自行对内容进行审查,并对自身基于该内容所实施的行为负责。本系统对内容不承担任何法律责任,亦不会因您使用内容或违反本协议的行为而承担任何法律责任。 当您对外发布本系统生成的内容时,您应当对所发布内容的真实性负责。</div>
  125. <div>(三) 内容使用注意事项</div>
  126. <div>本系统所输出的内容仅供参考,不宜将其作为专业建议或用于商业用途。在可能产生重大影响的情形下,建议您向权威机构进行咨询。您应自行承担因依赖本系统输出内容而产生的一切风险和后果。 除非本协议有明确规定或法律法规另有要求,本系统不会将您的输入内容或输出内容用于AI模型训练或其他任何用途。 您应当确保所有经您授权使用本系统的用户均严格遵守本协议的各项规定。</div>
  127. <div class="title">二、有限责任</div>
  128. <div>(一) 服务质量与连续性</div>
  129. <div>本系统将依据现有的技术水平和条件为您提供服务,并尽力保障服务的连贯性和安全性。但需明确的是,本系统不保证服务的可用性、可靠性或连续性。为了持续提升服务质量,我们可能会不定期对系统进行更新、维护或暂停服务,在此过程中本系统无需对由此给您造成的任何影响承担责任。</div>
  130. <div>(二) 用户责任与赔偿</div>
  131. <div>您应确保所输入内容的授权来源合法有效,若因输入内容引发任何纠纷或造成损失,均由您自行承担。若给本系统造成损失的,您应当依法予以赔偿。 若您对本系统输出的内容存在异议,请及时向本系统反馈。本系统将认真对待并妥善处理,但对于因您传播敏感信息或存在歧义内容而引发的侵权、纠纷或损失,本系统不承担任何责任。</div>
  132. <div>本系统将依法对违法内容进行处理,但不保证能够及时发现并处理所有违法内容。您应当对输入和输出内容的合法性负责。对于因非故意或重大过失导致的数据问题,本系统不承担任何法律责任。 本系统对任何间接性、后果性、惩戒性、偶然性或特殊性损害均不承担责任。 在使用本系统过程中,您应当遵守国家相关法律法规。</div>
  133. </div>
  134. </div>
  135. </div>
  136. </CzrDialog>
  137. <CzrDialog
  138. :show="state.showDisclaimers"
  139. width="560px"
  140. height="560px"
  141. :show-submit="false"
  142. :show-close="false"
  143. :hiddenStyle="true"
  144. >
  145. <div class="dialog">
  146. <div class="dialog-title" style="background: linear-gradient(90deg, #F95955, #FE817E);">
  147. <img src="@/views/smart-ask-answer/assistant-2/imgs/icon-3.png"/>免责声明<SvgIcon name="czr_close_1" color="#ffffff" size="16" class="__hover" @click="state.showDisclaimers = false"/>
  148. </div>
  149. <div class="dialog-content disclaimers">
  150. <div>
  151. <div>尊敬的用户:</div>
  152. <div>您好!深圳口岸服务网“i口岸”通关小助理是一款旨在为用户提供精准、便捷的自动答复服务的工具,为确保服务的合规性与信息的准确性,特此发布以下内容:</div>
  153. <div class="title">一、内容合规声明:</div>
  154. <div>深圳口岸服务网“i口岸”通关小助理严格遵守《生成式人工智能服务管理办法》等相关规定,确保使用具有合法来源的数据和基础模型,所提供的答复内容合法、客观、真实。所有通过本助手生成的信息均经过严格的训练和筛选,不含有任何违法、虚假或误导性的内容,我们也将持续监控并优化服务,以应对可能出现的合规风险。</div>
  155. <div class="title">二、免责声明:</div>
  156. <div>1.深圳口岸服务网“i口岸”通关小助理答复内容是通过人工智能技术生成,所提供的信息仅供参考。若有存在某些歧义或不够准确的答复情况,建议您访问来源链接中的原始文件,并以原文内容为最终依据。</div>
  157. <div>2.当深圳口岸服务网“i口岸”通关小助理的自动答复中包含链接至其他网站时,请您以所链接网页上的具体内容为准。</div>
  158. <div>3.对基于深圳口岸服务网“i口岸”通关小助理答复内容进行截图、转载等操作的用户,我们提醒您务必尊重并保护第三方的知识产权及其他合法权益。若在此过程中涉及侵犯任何第三方的合法权益,相关法律责任将由用户本人承担。本网站不承担由此产生的任何法律责任。</div>
  159. <div>感谢您使用深圳口岸服务网“i口岸”通关小助理,期待为您提供更优质的服务。</div>
  160. </div>
  161. </div>
  162. </div>
  163. </CzrDialog>
  164. </div>
  165. </template>
  166. <script setup lang="ts">
  167. import {computed, getCurrentInstance, onBeforeMount, onMounted, reactive, ref, watch} from "vue";
  168. import CzrDialog from "@/components/czr-ui/CzrDialog.vue";
  169. import chatCom from './chat.vue'
  170. import {
  171. cmsAiQueryHotReclist,
  172. cmsAiQueryHotThemelist,
  173. staticConQueryQuestionslist, matterQueryMatterlist, policyInfoQueryPolicyInfolist
  174. } from "@/views/smart-ask-answer/assistant-2/cms/api";
  175. import chatLogo from "./imgs/avatar.png";
  176. const askSplit = 'd95839a9-1b75-8ba3-06e7-8fc46aff233b'
  177. const askKey = 'assistant_askList'
  178. const state: any = reactive({
  179. showHelp: false,
  180. showAgreement: false,
  181. showDisclaimers: false,
  182. askList: localStorage.getItem(askKey) ? localStorage.getItem(askKey).split(askSplit) : [],
  183. hotList: {
  184. theme: [],
  185. themeId: '',
  186. question: [],
  187. },
  188. })
  189. const ref_theme = ref()
  190. const ref_chat = ref()
  191. const getText = (text: string) => {
  192. setAskList(text)
  193. }
  194. const setAskList = (text: string) => {
  195. const nowAsk = localStorage.getItem(askKey) ? localStorage.getItem(askKey).split(askSplit) : []
  196. nowAsk.unshift(text)
  197. localStorage.setItem(askKey, nowAsk.slice(0, 20).join(askSplit))
  198. state.askList = nowAsk
  199. }
  200. const onDelAsk = (index) => {
  201. state.askList.splice(index, 1)
  202. localStorage.setItem(askKey, state.askList.join(askSplit))
  203. }
  204. const onClearAsk = () => {
  205. state.askList = []
  206. localStorage.setItem(askKey, state.askList.join(askSplit))
  207. }
  208. const initTheme = () => {
  209. const params = {
  210. data: {
  211. pageIndex: 1,
  212. pageSize: 10,
  213. }
  214. }
  215. cmsAiQueryHotThemelist(params).then(res => {
  216. state.hotList.theme = res?.data?.list || []
  217. if (state.hotList.theme.length > 0) {
  218. initQuestion(state.hotList.theme[0].id)
  219. }
  220. })
  221. }
  222. const initQuestion = (id) => {
  223. state.hotList.themeId = id
  224. const params = {
  225. data: {
  226. pageIndex: 1,
  227. pageSize: 10,
  228. condition: {
  229. themeId: id
  230. }
  231. }
  232. }
  233. cmsAiQueryHotReclist(params).then(res => {
  234. state.hotList.question = res?.data?.list || []
  235. })
  236. }
  237. const onThemeScroll = (step) => {
  238. ref_theme.value.scrollTo(ref_theme.value.scrollLeft + step, 0)
  239. }
  240. onBeforeMount(() => {
  241. document.title = '"i口岸"通关小助理'
  242. let link: any = document.querySelector("link[rel*='icon']") || document.createElement('link');
  243. link.type = 'image/x-icon';
  244. link.rel = 'shortcut icon';
  245. link.href = chatLogo;
  246. document.head.appendChild(link);
  247. })
  248. onMounted(() => {
  249. initTheme()
  250. })
  251. </script>
  252. <style lang="scss" scoped>
  253. ::-webkit-scrollbar-thumb { background-color: transparent; }
  254. .none_1 {
  255. width: 100%;
  256. height: 100%;
  257. flex: 1;
  258. display: flex;
  259. align-items: center;
  260. justify-content: center;
  261. }
  262. .assistant-2 {
  263. background-image: url("./imgs/bg.png");
  264. background-size: 100% 100%;
  265. background-repeat: no-repeat;
  266. width: 100%;
  267. height: 100%;
  268. display: flex;
  269. flex-direction: column;
  270. justify-content: center;
  271. align-items: center;
  272. .assistant-head {
  273. display: flex;
  274. align-items: center;
  275. .title {
  276. border-right: 2px solid rgba(0, 0, 0, 0.2);
  277. line-height: 1;
  278. padding-right: 1.5rem;
  279. margin-right: 1.5rem;
  280. >div:nth-child(1) {
  281. font-weight: bold;
  282. font-size: 2.25rem;
  283. color: #111111;
  284. }
  285. >div:nth-child(2) {
  286. margin-top: 4px;
  287. font-family: Roboto;
  288. font-weight: 400;
  289. font-size: 0.81rem;
  290. color: #111111;
  291. }
  292. }
  293. .sub-title {
  294. font-weight: 500;
  295. font-size: 2.38rem;
  296. color: #000000;
  297. }
  298. .tips {
  299. width: 19.69rem;
  300. height: 2.25rem;
  301. margin-left: 12.19rem;
  302. background: #FEF0F0;
  303. border-radius: 1.13rem;
  304. font-weight: 400;
  305. font-size: 1rem;
  306. color: #D32521;
  307. display: flex;
  308. align-items: center;
  309. justify-content: center;
  310. gap: 1.25rem;
  311. .split {
  312. width: 0.06rem;
  313. height: 0.88rem;
  314. background-color: #D32521;
  315. }
  316. }
  317. }
  318. .assistant-main {
  319. display: flex;
  320. gap: 1.5rem;
  321. height: 47.75rem;
  322. .assistant-main-list {
  323. width: 24.25rem;
  324. display: flex;
  325. flex-direction: column;
  326. gap: 24px;
  327. .assistant-main-list-hot {
  328. height: 26.38rem;
  329. width: 100%;
  330. position: relative;
  331. display: flex;
  332. flex-direction: column;
  333. background: #FFFFFF;
  334. border-radius: 0.5rem;
  335. padding: 0 1.5rem;
  336. &:before {
  337. content: '';
  338. background-image: url("./imgs/hot-bg.png");
  339. background-size: 100% 100%;
  340. width: 100%;
  341. height: 6.44rem;
  342. position: absolute;
  343. top: 0;
  344. left: 0;
  345. z-index: 0;
  346. }
  347. .list-head {
  348. margin-top: 1.44rem;
  349. z-index: 2;
  350. width: 100%;
  351. display: flex;
  352. align-items: center;
  353. font-family: Microsoft YaHei;
  354. font-weight: bold;
  355. font-size: 1.25rem;
  356. color: #333333;
  357. >img {
  358. margin-right: 0.5rem;
  359. }
  360. }
  361. .hot-theme {
  362. display: flex;
  363. align-items: center;
  364. justify-content: space-between;
  365. gap: 0.5rem;
  366. margin-top: 1.94rem;
  367. z-index: 2;
  368. padding-bottom: 0.6rem;
  369. border-bottom: 1px solid #E6E9ED;
  370. .left, .right {
  371. width: 2rem;
  372. height: 2rem;
  373. background: #FFFFFF;
  374. border-radius: 0.4rem 0 0 0.4rem;
  375. border: 1px solid #E6E9ED;
  376. display: flex;
  377. align-items: center;
  378. justify-content: center;
  379. &:after {
  380. content: '';
  381. background-image: url("./imgs/left-arrow.png");
  382. width: 0.44rem;
  383. height: 0.63rem;
  384. background-size: 100% 100%;
  385. background-repeat: no-repeat;
  386. }
  387. &:hover {
  388. background-color: #F4F6F9;
  389. }
  390. }
  391. .right {
  392. transform: rotate(180deg);
  393. }
  394. .themes {
  395. display: flex;
  396. flex: 1;
  397. overflow-x: auto;
  398. &::-webkit-scrollbar {
  399. height: 0;
  400. }
  401. .item {
  402. flex: 0 0 auto;
  403. font-family: Microsoft YaHei;
  404. font-weight: bold;
  405. font-size: 1rem;
  406. color: #666666;
  407. padding: 0.63rem 0.5rem;
  408. border-radius: 0.25rem;
  409. &.active {
  410. font-family: Microsoft YaHei;
  411. font-size: 1.13rem;
  412. color: #D32521;
  413. background-color: rgba(211, 37, 33, 0.1);
  414. }
  415. }
  416. }
  417. }
  418. .question-title {
  419. margin-top: 1.06rem;
  420. width: fit-content;
  421. font-family: Microsoft YaHei;
  422. font-weight: bold;
  423. font-size: 1.13rem;
  424. color: #D32521;
  425. padding: 0.25rem 0.5rem 0.25rem 0.75rem;
  426. background-color: rgba(211, 37, 33, 0.1);
  427. display: flex;
  428. position: relative;
  429. &:before {
  430. content: '';
  431. width: 0.31rem;
  432. height: 100%;
  433. background: #D32521;
  434. position: absolute;
  435. left: 0;
  436. top: 0;
  437. }
  438. }
  439. .hot-question {
  440. flex: 1;
  441. margin: 1rem 0;
  442. overflow-y: auto;
  443. display: flex;
  444. flex-direction: column;
  445. gap: 0.5rem;
  446. .item {
  447. display: flex;
  448. align-items: center;
  449. >:nth-child(1) {
  450. width: 0.31rem;
  451. height: 0.31rem;
  452. background: #D32521;
  453. margin-right: 0.5rem;
  454. }
  455. >:nth-child(2) {
  456. flex: 1;
  457. font-family: Microsoft YaHei;
  458. font-weight: 400;
  459. font-size: 1rem;
  460. color: #111111;
  461. overflow: hidden;
  462. }
  463. }
  464. }
  465. }
  466. .assistant-main-list-ask {
  467. margin-top: auto;
  468. height: 19.81rem;
  469. width: 100%;
  470. position: relative;
  471. display: flex;
  472. flex-direction: column;
  473. background: #FFFFFF;
  474. border-radius: 0.5rem;
  475. padding: 0 1.5rem;
  476. &:before {
  477. content: '';
  478. background-image: url("./imgs/ask-bg.png");
  479. background-size: 100% 100%;
  480. width: 100%;
  481. height: 6.13rem;
  482. position: absolute;
  483. top: 0;
  484. left: 0;
  485. z-index: 0;
  486. }
  487. .list-head {
  488. margin-top: 1.44rem;
  489. z-index: 2;
  490. width: 100%;
  491. display: flex;
  492. align-items: center;
  493. font-family: Microsoft YaHei;
  494. font-weight: bold;
  495. font-size: 1.25rem;
  496. color: #333333;
  497. >img {
  498. margin-right: 0.5rem;
  499. }
  500. >div {
  501. margin-left: auto;
  502. width: 4.63rem;
  503. height: 1.63rem;
  504. background: rgba(255,255,255,0.29);
  505. border-radius: 0.25rem;
  506. border: 1px solid #E6E9ED;
  507. display: flex;
  508. align-items: center;
  509. justify-content: center;
  510. font-family: Microsoft YaHei;
  511. font-weight: 400;
  512. font-size: 0.88rem;
  513. color: #111111;
  514. }
  515. }
  516. .list-content {
  517. margin-top: 1.5rem;
  518. width: 100%;
  519. flex: 1;
  520. margin-bottom: 1rem;
  521. overflow-y: auto;
  522. .item {
  523. width: 100%;
  524. height: 2.19rem;
  525. border-radius: 0.25rem;
  526. display: flex;
  527. align-items: center;
  528. font-family: Microsoft YaHei;
  529. font-weight: 400;
  530. font-size: 1rem;
  531. color: #111111;
  532. >:nth-child(1) {
  533. margin-left: 0.5rem;
  534. margin-right: 0.94rem;
  535. }
  536. >:nth-child(2) {
  537. flex: 1;
  538. overflow: hidden;
  539. }
  540. >:nth-child(3) {
  541. margin-left: auto;
  542. margin-right: 1rem;
  543. }
  544. &:hover {
  545. background: #F1F4F8;
  546. }
  547. }
  548. }
  549. }
  550. }
  551. .assistant-main-content {
  552. width: 49.25rem;
  553. flex: 1;
  554. }
  555. }
  556. }
  557. .dialog {
  558. width: 100%;
  559. height: 100%;
  560. display: flex;
  561. flex-direction: column;
  562. box-shadow: 0px 8px 20px 0px rgba(197,199,211,0.5);
  563. .dialog-title {
  564. height: 72px;
  565. border-radius: 16px 16px 0px 0px;
  566. display: flex;
  567. align-items: center;
  568. padding: 0 24px;
  569. font-family: Microsoft YaHei;
  570. font-weight: bold;
  571. font-size: 24px;
  572. color: #FFFFFF;
  573. >img {
  574. margin-right: 12px;
  575. width: 28px;
  576. height: 28px;
  577. }
  578. .svg-icon {
  579. margin-left: auto;
  580. }
  581. }
  582. .dialog-content {
  583. flex: 1;
  584. background-color: #ffffff;
  585. border-radius: 0 0 16px 16px;
  586. &.help {
  587. padding: 0 24px;
  588. >div {
  589. padding: 16px 0;
  590. border-bottom: 1px dashed #D8DAE5;
  591. display: flex;
  592. align-items: center;
  593. position: relative;
  594. &:before {
  595. content: '';
  596. min-width: 6px;
  597. min-height: 6px;
  598. background: #D32521;
  599. position: absolute;
  600. top: 26px;
  601. }
  602. &:last-child {
  603. border-bottom: none;
  604. }
  605. >div {
  606. margin-left: 14px;
  607. font-weight: 500;
  608. font-size: 16px;
  609. color: #111111;
  610. line-height: 26px;
  611. text-align: justify;
  612. >span {
  613. font-weight: bold;
  614. }
  615. }
  616. }
  617. }
  618. &.agreement, &.disclaimers {
  619. padding: 20px 12px 20px 38px;
  620. overflow: hidden;
  621. >div {
  622. width: 100%;
  623. height: 100%;
  624. overflow-y: auto;
  625. padding-right: 20px;
  626. text-align: justify;
  627. >div {
  628. font-weight: 400;
  629. font-size: 14px;
  630. color: #111111;
  631. line-height: 30px;
  632. text-indent: 4ch;
  633. &:first-child {
  634. text-indent: 0;
  635. }
  636. &.title {
  637. font-weight: bold;
  638. text-indent: 0;
  639. }
  640. }
  641. }
  642. }
  643. }
  644. }
  645. </style>