需求按钮状态优化
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user