index.vue 24 KB

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