w-ui-v1 1.0.53 → 1.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/utils/nfc.ts +4 -5
package/package.json
CHANGED
package/utils/nfc.ts
CHANGED
|
@@ -169,7 +169,7 @@ function showToast(msg) {
|
|
|
169
169
|
function __read(intent) {
|
|
170
170
|
try {
|
|
171
171
|
var content = "";
|
|
172
|
-
waiting.setTitle('
|
|
172
|
+
waiting.setTitle('请勿移开卡\n正在读取数据...');
|
|
173
173
|
var tag = plus.android.importClass("android.nfc.Tag");
|
|
174
174
|
tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
|
|
175
175
|
var bytesId = intent.getByteArrayExtra(NfcAdapter.EXTRA_ID);
|
|
@@ -188,8 +188,7 @@ function __read(intent) {
|
|
|
188
188
|
|
|
189
189
|
function bytesToHexString(inarray) {
|
|
190
190
|
var i, j, x;
|
|
191
|
-
var hex = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"
|
|
192
|
-
"B", "C", "D", "E", "F"
|
|
191
|
+
var hex = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"
|
|
193
192
|
];
|
|
194
193
|
var out = "";
|
|
195
194
|
for (j = 0; j < inarray.length; ++j) {
|
|
@@ -239,13 +238,13 @@ function writeData() {
|
|
|
239
238
|
return;
|
|
240
239
|
}
|
|
241
240
|
readyWriteData = true;
|
|
242
|
-
waiting = plus.nativeUI.showWaiting("请将NFC
|
|
241
|
+
waiting = plus.nativeUI.showWaiting("请将NFC卡靠近!");
|
|
243
242
|
}
|
|
244
243
|
|
|
245
244
|
function readData(getCardNo) {
|
|
246
245
|
readyRead = true;
|
|
247
246
|
_getCardNo = getCardNo
|
|
248
|
-
waiting = plus.nativeUI.showWaiting("请将NFC
|
|
247
|
+
waiting = plus.nativeUI.showWaiting("请将NFC卡靠近!", {
|
|
249
248
|
modal: false
|
|
250
249
|
});
|
|
251
250
|
}
|