提交 2e429e1d 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

refactor(API): 暂时屏幕 theme change 示例

上级 1ac5023b
...@@ -1380,13 +1380,13 @@ ...@@ -1380,13 +1380,13 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{ // {
"path": "pages/API/theme-change/theme-change", // "path": "pages/API/theme-change/theme-change",
"style": { // "style": {
"navigationBarTitleText": "主题切换", // "navigationBarTitleText": "主题切换",
"enablePullDownRefresh": false // "enablePullDownRefresh": false
} // }
}, // },
{ {
"path": "uni_modules/uni-pay-x/pages/success/success", "path": "uni_modules/uni-pay-x/pages/success/success",
"style": { "style": {
......
<template> <template>
<view class="uni-padding-wrap"> <view class="uni-padding-wrap">
<view class="uni-common-mt flex justify-between flex-row"> <view class="uni-common-mt item-box">
<text>theme:</text> <text>theme:</text>
<text id="theme">{{ dataInfo.theme }}</text> <text id="theme">{{ dataInfo.theme }}</text>
</view> </view>
<view class="uni-common-mt flex justify-between flex-row"> <view class="uni-common-mt item-box">
<text>fn1 trigger num:</text> <text>fn1 trigger num:</text>
<text id="fn1-trigger-num">{{ dataInfo.fn1TriggerNum }}</text> <text id="fn1-trigger-num">{{ dataInfo.fn1TriggerNum }}</text>
</view> </view>
<view class="uni-common-mt flex justify-between flex-row"> <view class="uni-common-mt item-box">
<text>fn2 trigger num:</text> <text>fn2 trigger num:</text>
<text id="fn2-trigger-num">{{ dataInfo.fn2TriggerNum }}</text> <text id="fn2-trigger-num">{{ dataInfo.fn2TriggerNum }}</text>
</view> </view>
...@@ -73,13 +73,9 @@ onReady(() => { ...@@ -73,13 +73,9 @@ onReady(() => {
</script> </script>
<style> <style>
.flex { .item-box {
display: flex; display: flex;
}
.flex-row {
flex-direction: row; flex-direction: row;
}
.justify-between {
justify-content: space-between; justify-content: space-between;
} }
</style> </style>
...@@ -84,12 +84,12 @@ ...@@ -84,12 +84,12 @@
{ {
name: '获取启动参数', name: '获取启动参数',
url: 'get-launch-options-sync', url: 'get-launch-options-sync',
}, },
// #ifndef WEB // #ifndef WEB
{ {
name: 'env环境变量', name: 'env环境变量',
url: 'env' url: 'env'
}, },
// #endif // #endif
// #ifdef APP-ANDROID // #ifdef APP-ANDROID
{ {
...@@ -280,12 +280,12 @@ ...@@ -280,12 +280,12 @@
name: '安装Apk', name: '安装Apk',
url: 'install-apk' url: 'install-apk'
}, },
// #endif // #endif
// #ifdef WEB // #ifdef WEB
{ {
name: "打电话", name: "打电话",
url: "make-phone-call", url: "make-phone-call",
}, },
// #endif // #endif
/* /*
{ {
...@@ -390,12 +390,12 @@ ...@@ -390,12 +390,12 @@
name: "压缩视频", name: "压缩视频",
url: 'compress-video' url: 'compress-video'
}, },
// #endif // #endif
// #ifdef WEB // #ifdef WEB
{ {
name: "音频", name: "音频",
url: "inner-audio", url: "inner-audio",
}, },
// #endif // #endif
/* /*
{ {
...@@ -420,12 +420,12 @@ ...@@ -420,12 +420,12 @@
{ {
name: '获取当前位置', name: '获取当前位置',
url: 'get-location', url: 'get-location',
}, },
// #ifdef WEB // #ifdef WEB
{ {
name: "地图控制", name: "地图控制",
url: "map", url: "map",
}, },
// #endif // #endif
/* { /* {
name: "使用地图查看位置", name: "使用地图查看位置",
...@@ -546,16 +546,16 @@ ...@@ -546,16 +546,16 @@
} }
] as Page[] ] as Page[]
}, },
{ // {
id: 'theme-change', // id: 'theme-change',
name: '主题切换', // name: '主题切换',
pages: [ // pages: [
{ // {
name: '主题切换', // name: '主题切换',
url: 'theme-change', // url: 'theme-change',
} // }
] as Page[] // ] as Page[]
}, // },
// #endif // #endif
/* /*
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册