mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-06 20:02:38 +00:00
update
This commit is contained in:
parent
51add00be1
commit
768fffa8f0
3 changed files with 16 additions and 8 deletions
BIN
public/mm_facetoface_collect_qrcode_1714392837792.png
Normal file
BIN
public/mm_facetoface_collect_qrcode_1714392837792.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 155 KiB |
17
src/App.vue
17
src/App.vue
|
@ -4,10 +4,8 @@
|
|||
<global-setting />
|
||||
</a-config-provider>
|
||||
<t-sticky-tool
|
||||
:style="{ position: 'absolute', overflow: 'hidden' }"
|
||||
:offset="[-20, 20]"
|
||||
@click="handleClick"
|
||||
@hover="handleHover"
|
||||
:style="{ overflow: 'hidden' }"
|
||||
:offset="[-20, 140]"
|
||||
>
|
||||
<t-sticky-item label="问题反馈" :popup="renderQa" :popup-props="{ overlayInnerStyle: { margin: '10px', height: '450px' } }">
|
||||
<template #icon><chat-icon /></template>
|
||||
|
@ -15,11 +13,14 @@
|
|||
<t-sticky-item label="扫码红包" :popup="renderPopup" :popup-props="{ overlayInnerStyle: { margin: '10px', height: '450px' } }">
|
||||
<template #icon><qrcode-icon /></template>
|
||||
</t-sticky-item>
|
||||
<t-sticky-item label="打赏" :popup="renderShang" :popup-props="{ overlayInnerStyle: { margin: '10px', height: '450px' } }">
|
||||
<template #icon><fish-icon /></template>
|
||||
</t-sticky-item>
|
||||
</t-sticky-tool>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ChatIcon, QrcodeIcon } from 'tdesign-icons-vue-next';
|
||||
import { ChatIcon, QrcodeIcon, FishIcon } from 'tdesign-icons-vue-next';
|
||||
import { computed, h } from 'vue';
|
||||
import zhCN from '@arco-design/web-vue/es/locale/lang/zh-cn';
|
||||
import GlobalSetting from '@/components/global-setting/index.vue';
|
||||
|
@ -53,7 +54,11 @@
|
|||
|
||||
const renderPopup = () => {
|
||||
return h("img", { src: '/1714006925783.jpg', height: 440 });
|
||||
};
|
||||
}
|
||||
|
||||
const renderShang = () => {
|
||||
return h("img", { src: '/mm_facetoface_collect_qrcode_1714392837792.png', height: 440 });
|
||||
}
|
||||
|
||||
const { currentLocale } = useLocale();
|
||||
const locale = computed(() => {
|
||||
|
|
|
@ -477,6 +477,10 @@
|
|||
}
|
||||
]);
|
||||
|
||||
const freqRange = [
|
||||
50, 108, 136, 174, 350, 400, 470
|
||||
];
|
||||
|
||||
const readChannel = async() => {
|
||||
if(appStore.connectState != true){alert('请先连接手台!'); return;};
|
||||
await eeprom_init(appStore.connectPort);
|
||||
|
@ -620,8 +624,7 @@
|
|||
let scanlist = 0;
|
||||
if(_channel.scanlist?.indexOf('I') >= 0) scanlist += 8;
|
||||
if(_channel.scanlist?.indexOf('II') >= 0) scanlist += 4;
|
||||
console.log((scanlist << 4) + 0)
|
||||
rawEEPROM2.set([(scanlist << 4) + 0], i / 0x10)
|
||||
rawEEPROM2.set([(scanlist << 4) + freqRange.indexOf(freqRange.reduce((i, e)=>{return e < _channel.rx ? e : i}))], i / 0x10)
|
||||
|
||||
const mergedArray = new Uint8Array(0x10);
|
||||
mergedArray.set(stringToUint8Array(_channel.name ? toSimplified(_channel.name) : "", appStore.configuration?.charset).subarray(0, 0x10), 0);
|
||||
|
|
Loading…
Reference in a new issue