diff --git a/pages.json b/pages.json
index c92d740fcf0e12974e7b788b139de4533b81ab41..6fb56993cb7ff8604a7d43dc219da6faf509b767 100644
--- a/pages.json
+++ b/pages.json
@@ -1,178 +1,168 @@
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
-
- {
- "path" : "pages/index/index",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
- },
-
- {
- "path" : "pages/advance/advance",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
- },
- {
- "path" : "pages/SystemAPI/SystemAPI",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- },
- {
- "path" : "pages/SystemAPI/Alert/alert",
- "style" :
- {
- "navigationBarTitleText": ""
- }
-
- },
- {
- "path" : "pages/component/helloView",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
- },
- {
- "path" : "pages/SDKIntegration/SDKIntegration",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- },
- {
- "path" : "pages/SDKIntegration/TencentLocation/TencentLocation",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- },
- {
- "path" : "pages/SDKIntegration/Lottie/index",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- },
- {
- "path" : "pages/SDKIntegration/Toast/Toast",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- },
- {
- "path" : "pages/lifecycle/lifecycle",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- },
- {
- "path" : "pages/resource/resource",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- },
- {
- "path" : "pages/advance/android/decorview",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- },
- {
- "path" : "pages/advance/iOS/getResourcePath",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- },
- {
- "path" : "pages/advance/android/assetaudio",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- },
- {
- "path" : "pages/SystemAPI/ScreenListen/screenlisten",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- },
-
- {
- "path" : "pages/SyntaxCase/index",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- },
-
- {
- "path" : "pages/SyntaxCase/paramTest",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- },
- {
- "path" : "pages/SyntaxCase/consoleTest",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
-
- },
- {
- "path" : "pages/test/index",
- "style" :
- {
- "navigationBarTitleText": "",
- "enablePullDownRefresh": false
- }
- }
-
-
- ],
+
+ {
+ "path": "pages/index/index",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+ },
+
+ {
+ "path": "pages/advance/advance",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/SystemAPI/SystemAPI",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+ {
+ "path": "pages/SystemAPI/Alert/alert",
+ "style": {
+ "navigationBarTitleText": ""
+ }
+
+ },
+ {
+ "path": "pages/component/helloView",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+ },
+ {
+ "path": "pages/SDKIntegration/SDKIntegration",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+ {
+ "path": "pages/SDKIntegration/TencentLocation/TencentLocation",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+ {
+ "path": "pages/SDKIntegration/Lottie/index",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+ {
+ "path": "pages/SDKIntegration/Toast/Toast",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+ {
+ "path": "pages/lifecycle/lifecycle",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+ {
+ "path": "pages/resource/resource",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+ {
+ "path": "pages/advance/android/decorview",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+ {
+ "path": "pages/advance/iOS/getResourcePath",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+ {
+ "path": "pages/advance/android/assetaudio",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+ {
+ "path": "pages/SystemAPI/ScreenListen/screenlisten",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+
+ {
+ "path": "pages/SyntaxCase/index",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+
+ {
+ "path": "pages/SyntaxCase/paramTest",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+ {
+ "path": "pages/SyntaxCase/consoleTest",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+ {
+ "path": "pages/SyntaxCase/instanceTest",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ },
+
+ {
+ "path": "pages/test/index",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+ }
+
+
+ ],
"tabBar": {
"color": "#7A7E83",
"selectedColor": "#007AFF",
@@ -186,7 +176,7 @@
"pagePath": "pages/advance/advance",
"text": "进阶"
}, {
- "pagePath":"pages/SystemAPI/SystemAPI",
+ "pagePath": "pages/SystemAPI/SystemAPI",
"text": "系统API"
}, {
"pagePath": "pages/SDKIntegration/SDKIntegration",
@@ -201,4 +191,4 @@
"backgroundColor": "#F8F8F8"
},
"uniIdRouter": {}
-}
+}
\ No newline at end of file
diff --git a/pages/SyntaxCase/instanceTest.vue b/pages/SyntaxCase/instanceTest.vue
new file mode 100644
index 0000000000000000000000000000000000000000..4c15b716fcacf1bb3dd419681334195d2455152c
--- /dev/null
+++ b/pages/SyntaxCase/instanceTest.vue
@@ -0,0 +1,48 @@
+
+ {{ret}}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/advance/advance.vue b/pages/advance/advance.vue
index 50f1c1f7980843ed1e5727d7eddb4eb5d8c288a9..3732dd6873c965ecf7c97b70f9f6d9e5e16dcbc7 100644
--- a/pages/advance/advance.vue
+++ b/pages/advance/advance.vue
@@ -28,6 +28,8 @@
+
+
@@ -205,6 +207,11 @@
url: '/pages/test/index'
})
},
+ testInstance: function() {
+ uni.navigateTo({
+ url: '/pages/SyntaxCase/instanceTest'
+ })
+ },
testGetResourcePath: function() {
uni.navigateTo({
url: '/pages/advance/iOS/getResourcePath'
diff --git a/uni_modules/uts-advance/utssdk/app-android/index.uts b/uni_modules/uts-advance/utssdk/app-android/index.uts
index 3eb570c6fd28e18ca9272a87eaef8e3ccdfac077..6a6d26db80168f2811edb87445c274af15943584 100644
--- a/uni_modules/uts-advance/utssdk/app-android/index.uts
+++ b/uni_modules/uts-advance/utssdk/app-android/index.uts
@@ -454,5 +454,21 @@ export function quitApp(){
UTSAndroid.quitApp()
}
+export class User {
+
+ private name : string;
+ private age : Int;
+
+ constructor(hostP : string, port : Int) {
+ this.name = hostP;
+ this.age = port;
+ }
+
+ describeSelf():string{
+ let text = "name = " + this.name + ";age = " + this.age
+ return text
+ }
+}
+