This commit is contained in:
2025-09-14 00:21:54 +08:00
commit d40b3bbd62
766 changed files with 36275 additions and 0 deletions

View File

@@ -0,0 +1 @@
/* @import '../common/lib/weui.css'; */

View File

@@ -0,0 +1,43 @@
Page({
data: {
apiData: {
content: '',
success: false,
fail: false,
complete: false,
},
},
resetApiData() {
this.setData({
apiData: {
success: false,
fail: false,
complete: false,
content: '',
},
});
},
updateApiData(type, content) {
const apiData = { ...this.data.apiData };
apiData[type] = true;
apiData.content = content;
this.setData({ apiData });
},
hideHomeButton() {
this.resetApiData();
xhs.hideHomeButton({
success: res => {
this.updateApiData('success', res);
},
fail: res => {
this.updateApiData('fail', res);
},
complete: res => {
this.updateApiData('complete', res);
},
});
},
});

View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "隐藏返回首页按钮",
"usingComponents": {
"showbox": "../../common/component/showbox/index",
"box": "../../common/component/container/index"
}
}

View File

@@ -0,0 +1,9 @@
<view class="container">
<showbox title="默认">
<box>
<view class="page-body">
<button bindtap="hideHomeButton">hideHomeButton</button>
</view>
</box>
</showbox>
</view>