diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index 8c453cd3..8fec1895 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -17,7 +17,7 @@
"type" : "uni-app:h5"
},
{
- "playground" : "standard",
+ "playground" : "custom",
"type" : "uni-app:app-android"
}
]
diff --git a/nativeplugins/TestModule/android/TestModule.aar b/nativeplugins/TestModule/android/TestModule.aar
new file mode 100644
index 00000000..f4d5276b
Binary files /dev/null and b/nativeplugins/TestModule/android/TestModule.aar differ
diff --git a/nativeplugins/TestModule/libs/itextpdf-5.5.8.jar b/nativeplugins/TestModule/libs/itextpdf-5.5.8.jar
new file mode 100644
index 00000000..3f6ea6c3
Binary files /dev/null and b/nativeplugins/TestModule/libs/itextpdf-5.5.8.jar differ
diff --git a/nativeplugins/TestModule/package.json b/nativeplugins/TestModule/package.json
new file mode 100644
index 00000000..040cce11
--- /dev/null
+++ b/nativeplugins/TestModule/package.json
@@ -0,0 +1,35 @@
+{
+
+ "name": "TestModule",
+
+ "id": "TestModule",
+
+ "version": "1.0.0",
+
+ "description": "打印",
+
+ "_dp_type": "nativeplugin",
+
+ "_dp_nativeplugin": {
+
+ "android": {
+
+ "integrateType": "aar",
+
+ "plugins": [
+
+ {
+
+ "type": "module",
+ "name": "TestModule",
+ "class": "io.dcloud.uniplugin.TestModule"
+
+ }
+
+ ]
+
+ }
+
+ }
+
+}
diff --git a/src/manifest.json b/src/manifest.json
index 08f4201c..2a0b15ec 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -25,6 +25,7 @@
"Barcode" : {},
"Camera" : {}
},
+
/* 应用发布信息 */
"distribute" : {
/* android打包配置 */
@@ -58,8 +59,25 @@
/* SDK配置 */
"sdkConfigs" : {
"ad" : {}
- }
+ },
+ "nativePlugins" : {
+ "TestModule" : {
+ "__plugin_info__" : {
+ "name" : "TestModule",
+ "description" : "打印",
+ "platforms" : "Android",
+ "url" : "",
+ "android_package_name" : "",
+ "ios_bundle_id" : "",
+ "isCloud" : false,
+ "bought" : -1,
+ "pid" : "",
+ "parameters" : {}
+ }
+ }
+ }
}
+
},
/* 快应用特有相关 */
"quickapp" : {},
diff --git a/src/pages.json b/src/pages.json
index 21f5d93d..71d90c9c 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -2021,8 +2021,16 @@
"navigationBarTitleText": "翻包任务详情",
"enablePullDownRefresh": false
}
- },{
- "path": "pages/point/index",
+ },
+ // ,{
+ // "path": "pages/point/index",
+ // "style": {
+ // "navigationBarTitleText": "打印",
+ // "enablePullDownRefresh": false
+ // }
+ // },
+ {
+ "path": "pages/print/index",
"style": {
"navigationBarTitleText": "打印",
"enablePullDownRefresh": false
diff --git a/src/pages/print/index.vue b/src/pages/print/index.vue
new file mode 100644
index 00000000..51fdc9e9
--- /dev/null
+++ b/src/pages/print/index.vue
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/setter/index.vue b/src/pages/setter/index.vue
index 88cd6786..3e0d4b01 100644
--- a/src/pages/setter/index.vue
+++ b/src/pages/setter/index.vue
@@ -12,6 +12,7 @@
{{(userInfo.roles || []).map(role => role.name).join(',')}}
+
{{version}}
{{version}}
@@ -139,6 +140,14 @@
url:"./passwordpage"
})
}
+
+ function print() {
+ uni.navigateTo({
+ url:"/pages/print/index"
+ })
+ }
+
+