Browse Source

瓦斯巡检NFC更新

lxh 1 month ago
parent
commit
ef01ed31e6
2 changed files with 3 additions and 2 deletions
  1. 2 1
      common/util/hexiii-nfc.js
  2. 1 1
      pages/gasreport/components/gasRecordCard.vue

+ 2 - 1
common/util/hexiii-nfc.js

@@ -33,7 +33,8 @@ let techListsArray = [
     ['android.nfc.tech.MifareUltralight']
 ];
 // 要写入的数据
-let text = '{id:666,name:aaa,stie:ffff.com}';
+// let text = '{id:666,name:aaa,stie:ffff.com}';
+let text = '';
 let readResult = '';
 
 export default {

+ 1 - 1
pages/gasreport/components/gasRecordCard.vue

@@ -99,7 +99,7 @@ export default {
                         if (response.data.code == 200) {
                             if (that.isNfc) {
                                 // 调用 js 文件里面的方法
-                                // testNfc.setTxt(that.cardId);
+                                testNfc.setTxt(that.cardId);
                                 testNfc.writeData();
                             } else {
                                 that.$refs.uToast.show({