提交 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>
...@@ -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.
先完成此消息的编辑!
想要评论请 注册