diff --git a/pages.json b/pages.json
index 4357672b38553c68143c03c73ff421e35c2f327e..d2c14511549dccdb821c5e510d327b545b893adb 100644
--- a/pages.json
+++ b/pages.json
@@ -149,6 +149,14 @@
}
},
+ {
+ "path": "pages/SyntaxCase/MixNativeCode",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+ },
+
{
"path": "pages/SyntaxCase/instanceTest",
"style": {
diff --git a/pages/SyntaxCase/MixNativeCode.uvue b/pages/SyntaxCase/MixNativeCode.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..5f43504912ca2bed69637781a96117a4ffa38dc3
--- /dev/null
+++ b/pages/SyntaxCase/MixNativeCode.uvue
@@ -0,0 +1,48 @@
+
+
+
+
+ // #ifdef APP-ANDROID && UNI-APP-X
+
+
+ // #endif
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/SyntaxCase/consoleTest.uvue b/pages/SyntaxCase/consoleTest.uvue
index edd9663d042a046c86088696bddea4b296532f74..45081cfa4865d524f25f35da766fc8c4022d5b6b 100644
--- a/pages/SyntaxCase/consoleTest.uvue
+++ b/pages/SyntaxCase/consoleTest.uvue
@@ -21,52 +21,48 @@
doLogTest() {
if(getLog("") != '{"type":"string","value":""}'){
- this.testRet = "测试失败"
+ this.testRet = "测试失败1"
return;
}
if(getLog("字符串打印测试") != '{"type":"string","value":"字符串打印测试"}'){
- this.testRet = "测试失败"
+ this.testRet = "测试失败2"
return;
}
- if(getLog(2023) != '{"subType":"number","type":"number","value":"2023"}'){
- this.testRet = "测试失败"
+ if(getLog(2023) != '{"subType":"number","type":"Int","value":"2023"}'){
+ this.testRet = "测试失败3"
return;
}
- // console.log(getLog(2023.0))
- // if(getLog(2023.0) != '{"type":"number","value":"2023"}'){
- // this.testRet = "测试失败"
- // return;
- // }
- if(getLog(2023.002 as number) != '{"subType":"number","type":"number","value":"2023.002"}'){
- this.testRet = "测试失败"
+
+ if(getLog(2023.002 as number) != '{"subType":"number","type":"Double","value":"2023.002"}'){
+ this.testRet = "测试失败4"
return;
}
- if(logObjectTest() != '{"className":"uts.sdk.modules.utsApiTest.ParamOptions","subType":"object","__$originalPosition":"","type":"object","value":{"methods":[],"properties":[{"name":"array","subType":"array","className":"io.dcloud.uts.UTSArray","type":"object","value":{"properties":[{"name":0,"type":"string","value":"1"},{"name":1,"type":"string","value":"2"},{"name":2,"type":"string","value":"3"}]}},{"name":"title","type":"string","value":"logObjectTest"}]}}'){
- this.testRet = "测试失败"
+ if(logObjectTest() != '{"className":"uts.sdk.modules.utsApiTest.ParamOptions","subType":"object","__$originalPosition":"","type":"object","value":{"methods":[],"properties":[{"name":"array","subType":"array","className":"io.dcloud.uts.UTSArray","type":"object","value":{"properties":[{"name":{"value":{"value":0}},"type":"string","value":"1"},{"name":{"value":{"value":1}},"type":"string","value":"2"},{"name":{"value":{"value":2}},"type":"string","value":"3"}]}},{"name":"title","type":"string","value":"logObjectTest"}]}}'){
+ this.testRet = "测试失败5"
return;
}
if(logFunctionTest() != '{"parameter":[],"type":"function"}'){
- this.testRet = "测试失败"
+ this.testRet = "测试失败6"
return;
}
if(logClassTest() != '{"className":"uts.sdk.modules.utsApiTest.C","subType":"object","__$originalPosition":"","type":"object","value":{"methods":[],"properties":[{"name":"name","type":"string","value":"ccc"},{"parameter":["string"],"name":"sayBye","type":"function"}]}}'){
- this.testRet = "测试失败"
+ this.testRet = "测试失败7"
return;
}
/**
* uvue 和 vue 因为 java 版本不同,所以这里的打印格式可能存在差异
*/
if(logFileTest() != '{"className":"java.io.File","subType":"object","type":"object","value":{"methods":[],"properties":[]}}'){
- this.testRet = "测试失败"
+ this.testRet = "测试失败8"
return;
}
if(logDateTest() != '{"className":"io.dcloud.uts.Date","subType":"date","type":"object","value":"Sat Aug 08 1998 08:00:00 GMT+0800"}'){
- this.testRet = "测试失败"
+ this.testRet = "测试失败9"
return;
}
diff --git a/pages/SyntaxCase/consoleTest.vue b/pages/SyntaxCase/consoleTest.vue
index 19c2e7d8fad219dff006a6ca5909de330e78341b..45081cfa4865d524f25f35da766fc8c4022d5b6b 100644
--- a/pages/SyntaxCase/consoleTest.vue
+++ b/pages/SyntaxCase/consoleTest.vue
@@ -7,7 +7,7 @@