[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 name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<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">
|
||||
</head>
|
||||
|
||||
|
@ -10,7 +10,7 @@ let isSHowSMS = ref('visibility:hidden')
|
||||
|
||||
const decodedCode = function (decodedText: string, decodedResult: any) {
|
||||
// console.log(`Scan result ${decodedText}`, decodedResult);
|
||||
if (decodedText.includes('smsto:1922:')) {
|
||||
if (decodedText.includes('1922:')) {
|
||||
smsto1922(decodedText);
|
||||
} else {
|
||||
result.value = `內容:${decodedText}`;
|
||||
@ -18,7 +18,7 @@ const decodedCode = function (decodedText: string, decodedResult: any) {
|
||||
}
|
||||
|
||||
function smsto1922(decodedText: string) {
|
||||
let contents = decodedText.split('smsto:1922:');
|
||||
let contents = decodedText.split('1922:');
|
||||
let sms = contents[1];
|
||||
result.value = `內容:${sms}`;
|
||||
// smscontent.value = sms;
|
||||
|
Loading…
Reference in New Issue
Block a user