From 1c2eb11f8210e79650bcc2aa68076a428534c79d Mon Sep 17 00:00:00 2001 From: duqingquan Date: Thu, 6 Jul 2023 16:21:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AE=9E=E4=BE=8B=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=B5=8B=E8=AF=95=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 340 +++++++++--------- pages/SyntaxCase/instanceTest.vue | 48 +++ pages/advance/advance.vue | 7 + .../uts-advance/utssdk/app-android/index.uts | 16 + 4 files changed, 236 insertions(+), 175 deletions(-) create mode 100644 pages/SyntaxCase/instanceTest.vue diff --git a/pages.json b/pages.json index c92d740..6fb5699 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 0000000..4c15b71 --- /dev/null +++ b/pages/SyntaxCase/instanceTest.vue @@ -0,0 +1,48 @@ + + + + + \ No newline at end of file diff --git a/pages/advance/advance.vue b/pages/advance/advance.vue index 50f1c1f..3732dd6 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 3eb570c..6a6d26d 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 + } +} + -- GitLab