| | |
| | | <div ref="setPhoneQRCode" class="mt-[8px] mb-[8px]"></div> |
| | | <p class="text-center text-[#5e6772] m-0 p-0 leading-5"> |
| | | 扫码下载 <br /> |
| | | WI 水务智能助手 |
| | | WI水务智能平台 |
| | | </p> |
| | | </div> |
| | | </div> |
| | |
| | | import moment from 'moment'; |
| | | import QRCode from 'qrcodejs2-fixes'; |
| | | import { computed, nextTick, onMounted, ref, watch } from 'vue'; |
| | | import OtherPlatform from './OtherPlatform.vue'; |
| | | import type { ChatRoomItem } from './types'; |
| | | import { DeleteHistoryGroups, setHistoryGroupTitle } from '/@/api/ai/chat'; |
| | | import { SERVE_URL } from '/@/constants'; |
| | |
| | | import { DateFilter, dateFilterMap } from '/@/model/types/date'; |
| | | import { activeRoomId, chatRoomList, gotoAnswerPage, newChatRoomClick, selectFirstRoom } from '/@/stores/chatRoom'; |
| | | import { debounce, getRecentDateRange } from '/@/utils/util'; |
| | | import OtherPlatform from './OtherPlatform.vue'; |
| | | const chatRoomRef = ref<HTMLDivElement>(null); |
| | | const queryParams = ref({ |
| | | title: '', |
| | |
| | | let currentTime = new Date().getTime(); |
| | | const url = `${SERVE_URL}ai_html/views/mobileDownload/index.html?v=${currentTime}`; |
| | | nextTick(() => { |
| | | (<HTMLElement>setPhoneQRCode.value).innerHTML = ''; |
| | | new QRCode(setPhoneQRCode.value, { |
| | | text: url, |
| | | width: 126, |
| | | height: 126, |
| | | colorDark: '#000000', |
| | | colorLight: '#ffffff', |
| | | }); |
| | | if (setPhoneQRCode.value) { |
| | | (<HTMLElement>setPhoneQRCode.value).innerHTML = ''; |
| | | new QRCode(setPhoneQRCode.value, { |
| | | text: url, |
| | | width: 126, |
| | | height: 126, |
| | | colorDark: '#000000', |
| | | colorLight: '#ffffff', |
| | | }); |
| | | } |
| | | }); |
| | | }; |
| | | //#endregion |
| | | |
| | | const addPluginClick = () => { |
| | | window.open('/ai_html/views/extension/index.html'); |
| | | window.open(`${SERVE_URL}ai_html/views/extension/index.html`); |
| | | }; |
| | | onMounted(async () => { |
| | | selectFirstRoom(); |