Commit 164b1044 authored by Jennie Shi's avatar Jennie Shi

打包

parent 7fd35740
......@@ -109,6 +109,6 @@
<plugin name="cordova-plugin-device" spec="2.0.2" />
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
<engine name="android" spec="~6.2.3" />
<plugin name="IdCardPlugin" spec="C:\Users\zoujun\Desktop\pl\IdCardPlugin-测试" />
<engine name="android" spec="~6.4.0" />
<plugin name="IdCardPlugin" spec="/Users/jeshi/Documents/徐工/card-plugin-test/cordova-plugin-IdCardPlugin" />
</widget>
This diff is collapsed.
......@@ -13,17 +13,8 @@
"clean": "rimraf www/*"
},
"dependencies": {
"IdCardPlugin": "file:C:/Users/zoujun/Desktop/pl/IdCardPlugin-测试",
"autosize": "^3.0.20",
"better-scroll": "^1.10.3",
"cordova-ios": "^5.1.1",
"cordova-plugin-camera": "^2.4.1",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-ionic-webview": "^4.1.3",
"cordova-plugin-splashscreen": "5.0.2",
"cordova-plugin-statusbar": "2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"crypto-js": "^3.1.9-1",
"fastclick": "https://hel.hand-china.com/easyUI/fastclick.git",
"hls-easy-ui": "https://hel.hand-china.com/easyUI/hls-easy-ui.git#keyboard",
......@@ -50,7 +41,6 @@
"chalk": "^2.0.1",
"connect-history-api-fallback": "^1.3.0",
"copy-webpack-plugin": "^4.0.1",
"cordova-android": "^6.2.0",
"cross-env": "^5.2.0",
"css-loader": "^0.28.0",
"eslint": "^4.15.0",
......@@ -68,7 +58,6 @@
"file-loader": "^1.1.4",
"friendly-errors-webpack-plugin": "^1.6.1",
"html-webpack-plugin": "^2.30.1",
"idcardplugin-test": "file:C:/Users/zoujun/Desktop/其他/IdCardPlugin-test",
"less": "^2.7.1",
"less-loader": "^2.2.3",
"lib-flexible": "^0.3.2",
......@@ -102,14 +91,7 @@
"webpack-merge": "^4.1.0",
"yaml-loader": "^0.4.0"
},
"cordovaPlugins": [
"cordova-plugin-console",
"cordova-plugin-device",
"cordova-plugin-statusbar",
"cordova-plugin-splashscreen",
"cordova-plugin-whitelist",
"ionic-plugin-keyboard"
],
"engines": {
"node": ">= 4.0.0",
"npm": ">= 3.0.0"
......@@ -121,17 +103,6 @@
"cordova": {
"platforms": [
"android"
],
"plugins": {
"cordova-plugin-camera": {},
"cordova-plugin-device": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-themeablebrowser": {},
"cordova-plugin-ionic-webview": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-splashscreen": {},
"ionic-plugin-keyboard": {},
"IdCardPlugin": {}
}
]
}
}
\ No newline at end of file
身份检测cordova插件
调用方式:
```
cordova.plugins.IdCardPlugin.idCardIdentify({"idNum":"123213213123123123123213","idName":"张三","timeout":10000}, function (success) {alert(success);
}, function (reason) {
alert("Failed: " + reason);
});
```
字段:
idNum : 身份证号码
idName: 用户名称
timeout:检测超时时间
返回值介绍:
​ 检测成功返回值:
​ {"code":1,"message":"检测成功"}
​ 检测失败返回值:
​ 1.{"code":0,"message":"参数错误"}
​ 2.{"code":0,"message":"idNum 或者 idName 为空"}
​ 3.{"code":0,"message":"检测失败"}
​ 4.{"code":0,"message":"未授予相机权限"}
身份检测cordova插件
调用方式:
```
cordova.plugins.IdCardPlugin.idCardIdentify({"idNum":"123213213123123123123213","idName":"张三","timeout":10000}, function (success) {alert(success);
}, function (reason) {
alert("Failed: " + reason);
});
```
字段:
idNum : 身份证号码
idName: 用户名称
timeout:检测超时时间
返回值介绍:
​ 检测成功返回值:
​ {"code":1,"message":"检测成功"}
​ 检测失败返回值:
​ 1.{"code":0,"message":"参数错误"}
​ 2.{"code":0,"message":"idNum 或者 idName 为空"}
​ 3.{"code":0,"message":"检测失败"}
​ 4.{"code":0,"message":"未授予相机权限"}
repositories{
jcenter()
flatDir {
dirs 'libs'
}
}
dependencies {
compile(name:"qsign_facesdk_xg_dev_1.0.0",ext: 'aar')
}
android {
packagingOptions {
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
}
repositories{
jcenter()
flatDir {
dirs 'libs'
}
}
dependencies {
compile(name:"qsign_facesdk_xg_dev_1.0.0",ext: 'aar')
}
android {
packagingOptions {
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
}
}
\ No newline at end of file
......@@ -67,15 +67,15 @@
"cordova-plugin-whitelist": {
"PACKAGE_NAME": "com.xcmg.app.dev"
},
"IdCardPlugin": {
"PACKAGE_NAME": "com.xcmg.app.dev"
},
"ionic-plugin-keyboard": {
"PACKAGE_NAME": "com.xcmg.app.dev"
},
"jpush-phonegap-plugin": {
"APP_KEY": "bef4fd44dcf54b79b8ab27c3",
"PACKAGE_NAME": "com.xcmg.app.dev"
},
"IdCardPlugin": {
"PACKAGE_NAME": "com.xcmg.app.dev"
}
},
"dependent_plugins": {
......
......@@ -19,4 +19,3 @@ exports.faceCompare = function(arg0, success, error) {
exports.faceSelect = function(arg0, success, error) {
exec(success, error, "FacePlugin", "faceSelect", [arg0]);
};
......@@ -17,114 +17,6 @@
# under the License.
-->
<<<<<<< HEAD
Ionic's Webview
======
This plugin is an extension of the [Apache Cordova WKWebView plugin](https://github.com/apache/cordova-plugin-wkwebview-engine). It includes enhancements to resolve some of the issues surrounding XHR requests, along with some DOM exception issues.
This plugin only supports iOS 9 and above and will fall back to UIWebView on iOS 8.
The WKWebView plugin is only used by iOS, so ensure the `cordova-ios` platform is installed. Additionly, the `cordova-ios` platform version must be `4.0` or greater.
Installation Instructions
-------------------
Ensure the latest Cordova CLI is installed: (Sudo may be required)
```
npm install cordova -g
```
Ensure the `ios` platform has been added:
```
ionic cordova platform ls
```
If the iOS platform is not listed, run the following command:
```
ionic cordova platform add ios
```
If the iOS platform is installed but the version is < `4.x`, run the following commands:
```
ionic cordova platform update ios
ionic cordova plugin save # creates backup of existing plugins
rm -rf ./plugins # delete plugins directory
ionic cordova prepare # re-install plugins compatible with cordova-ios 4.x
```
Install the WKWebViewPlugin:
```
ionic cordova plugin add cordova-plugin-ionic-webview --save
```
**Note:**
If you already had [apache/cordova-plugin-wkwebview-engine](https://github.com/apache/cordova-plugin-wkwebview-engine) install make sure that is removed before using this version.
```
ionic cordova plugin rm cordova-plugin-wkwebview-engine
```
Build the platform:
```
ionic cordova prepare
```
Test the app on an iOS 9 or 10 device:
```
ionic cordova run ios
```
Required Permissions
-------------------
WKWebView may not fully launch (the deviceready event may not fire) unless if the following is included in config.xml:
#### config.xml
```
<allow-navigation href="http://localhost:8080/*"/>
<feature name="CDVWKWebViewEngine">
<param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
```
Webserver port
--------------
You can set the port that the built-in local webserver will listen on (default is 8080) using the "WKPort" preference.
If you change the port, be sure to also update your `<allow-navigation>` `href` attribute to match, as mentioned above in the Required Permissions section.
#### config.xml
```
<preference name="WKPort" value="12345" />
<allow-navigation href="http://localhost:12345/*"/>
```
Application Transport Security (ATS) in iOS 9
-----------
The next released version of the [cordova-cli 5.4.0](https://www.npmjs.com/package/cordova) will support automatic conversion of the [&lt;access&gt;](http://cordova.apache.org/docs/en/edge/guide/appdev/whitelist/index.html) tags in config.xml to Application Transport Security [ATS](https://developer.apple.com/library/prerelease/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW33) directives. Upgrade to the version 5.4.0 to use this new functionality.
Apple Issues
-------
The `AllowInlineMediaPlayback` preference will not work because of this [Apple bug](http://openradar.appspot.com/radar?id=6673091526656000). This bug [has been fixed](https://issues.apache.org/jira/browse/CB-11452) in [iOS 10](https://twitter.com/shazron/status/745546355796389889).
Limitations
--------
There are several [known issues](https://issues.apache.org/jira/issues/?jql=project%20%3D%20CB%20AND%20labels%20%3D%20wkwebview-known-issues) with the official Cordova WKWebView plugin. The Ionic team thinks we have resolved several of the major issues. Please [let us know](https://github.com/driftyco/cordova-plugin-wkwebview-engine/issues) if something isn't working as expected.
=======
<!-- TODO: remove beta in README.md and CONTRIBUTING.md -->
# Ionic Web View
......@@ -169,4 +61,3 @@ This is for `cordova-plugin-ionic-webview` @ `2.x`, which uses the latest and gr
[ionic-docs]: https://ionicframework.com/docs
[ionic-webview-docs]: https://beta.ionicframework.com/docs/building/webview
[ionic-support]: https://ionicframework.com/support
>>>>>>> jeshi
......@@ -226,8 +226,7 @@
},
"IdCardPlugin": {
"source": {
"type": "local",
"path": "E:\\Project\\hand\\hls-xcmg-vue-app\\node_modules\\IdCardPlugin"
"type": "local"
},
"is_top_level": true,
"variables": {}
......
{
"prepare_queue": {
"installed": [],
"uninstalled": []
},
"config_munge": {
"files": {}
},
"installed_plugins": {
"IdCardPlugin": {
"PACKAGE_NAME": "$(PRODUCT_BUNDLE_IDENTIFIER)"
}
},
"dependent_plugins": {}
}
\ No newline at end of file
......@@ -32,7 +32,7 @@
<li>徐工租赁<br>微信公众号</li>
</ul>
</div>
<div @click="shibie()">点我试用插件</div>
<div @click="testPlugin()">点我试用插件</div>
</div>
</h-content>
</h-view>
......@@ -46,8 +46,8 @@ export default {
}
},
methods: {
shibie() {
cordova.plugins.idcardplugin.idCardIdentify({"idNum":"123213213123123123123213","idName":"张三","timeout":10000}, function (success) {alert(success);
testPlugin() {
cordova.plugins.IdCardPlugin.idCardIdentify({"idNum":"341181199602016223","idName":"史蒙蒙","timeout":10000}, function (success) {alert(success);
}, function (reason) {
alert("Failed: " + reason);
});
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=./cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"></script><title>徐工金服</title><link href=./static/css/app.ab4b75077c5dc235ef1ae0e67a560945.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.6a178e8d77c32e3c385d.js></script><script type=text/javascript src=./static/js/vendor.c03114a139eeae927c64.js></script><script type=text/javascript src=./static/js/app.67a421d22f3e21c60089.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=./cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"></script><title>徐工金服</title><link href=./static/css/app.b94a0be4bc4b7fa04af6ee487618863e.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.6a178e8d77c32e3c385d.js></script><script type=text/javascript src=./static/js/vendor.d56dec0015f4cf7e8b3b.js></script><script type=text/javascript src=./static/js/app.ce2fd7bbeb5cb3c291e5.js></script></body></html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment