需求按钮状态优化

This commit is contained in:
Dev
2026-10-28 16:59:16 +08:00
parent f552fb957f
commit d47beb3f56
13 changed files with 166 additions and 43 deletions
+7 -1
View File
@@ -80,7 +80,7 @@ Page({
/**
* 拉取最新角色并写回本地缓存
* 入驻审核通过后,用户回到小程序触发 onShow 即可看到「进入接单大厅」入口
* 未入驻显示「开发者入驻」;审核通过后回到首页即可看到「进入接单大厅」
*/
refreshRole() {
if (this._roleLoading) {
@@ -165,6 +165,12 @@ Page({
});
},
toDeveloperJoin() {
wx.navigateTo({
url: '/pages/developer/join/index',
});
},
onBannerChange(e) {
const current = Number((e.detail && e.detail.current) || 0);
if (current === this.data.bannerCurrent) {
+5
View File
@@ -48,6 +48,11 @@
进入接单大厅
</t-button>
</view>
<view class="home-page-padding" wx:else>
<t-button theme="default" size="" block bind:tap="toDeveloperJoin">
开发者入驻
</t-button>
</view>
</view>
</view>
<t-toast id="t-toast" />