[mod] 防疫簡訊功能 更改判斷
This commit is contained in:
parent
47bf06bc03
commit
2b80d6fd7b
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -7,7 +7,7 @@
|
|||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>HTML5 QR Code with Vue js</title>
|
<title>HTML5 QR Code with Vue js</title>
|
||||||
<script type="module" crossorigin src="./assets/index.e641ed81.js"></script>
|
<script type="module" crossorigin src="./assets/index.42a79cc2.js"></script>
|
||||||
<link rel="stylesheet" href="./assets/index.06d14ce2.css">
|
<link rel="stylesheet" href="./assets/index.06d14ce2.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ let isSHowSMS = ref('visibility:hidden')
|
|||||||
|
|
||||||
const decodedCode = function (decodedText: string, decodedResult: any) {
|
const decodedCode = function (decodedText: string, decodedResult: any) {
|
||||||
// console.log(`Scan result ${decodedText}`, decodedResult);
|
// console.log(`Scan result ${decodedText}`, decodedResult);
|
||||||
if (decodedText.includes('smsto:1922:')) {
|
if (decodedText.includes('1922:')) {
|
||||||
smsto1922(decodedText);
|
smsto1922(decodedText);
|
||||||
} else {
|
} else {
|
||||||
result.value = `內容:${decodedText}`;
|
result.value = `內容:${decodedText}`;
|
||||||
@ -18,7 +18,7 @@ const decodedCode = function (decodedText: string, decodedResult: any) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function smsto1922(decodedText: string) {
|
function smsto1922(decodedText: string) {
|
||||||
let contents = decodedText.split('smsto:1922:');
|
let contents = decodedText.split('1922:');
|
||||||
let sms = contents[1];
|
let sms = contents[1];
|
||||||
result.value = `內容:${sms}`;
|
result.value = `內容:${sms}`;
|
||||||
// smscontent.value = sms;
|
// smscontent.value = sms;
|
||||||
|
Loading…
Reference in New Issue
Block a user