基础版本
diff --git a/www/js/cardinfor.js b/www/js/cardinfor.js
new file mode 100644
index 0000000..3d8f675
--- /dev/null
+++ b/www/js/cardinfor.js
@@ -0,0 +1,27 @@
+var app = {
+
+ // Application Constructor
+ initialize: function() {
+ document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);
+ },
+
+ onDeviceReady: function() {
+ $.showLoading("加载中");
+ V1Cardinfor(function(ok, ret, err) {
+ if (ok) {
+ $.hideLoading();
+ if(ret.code==200){
+ $("#name").text(ret.name);
+ $("#cardnum").text(ret.cardno);
+ $("#cardstatus").text(ret.cardstatus);
+ }else{
+ $.alert(ret.msg, "错误");
+ }
+ } else {
+ $.hideLoading();
+ $.alert("加载失败了:" + ret.status, "错误");
+ }
+ })
+ }
+};
+app.initialize();