签到码

This commit is contained in:
maclien
2024-05-26 18:12:41 +08:00
parent 93dbcc2cde
commit 616a6d3fe6
15 changed files with 417 additions and 50 deletions
+11 -2
View File
@@ -35,7 +35,15 @@ Component({
homeShowTitle:{
type: Boolean,
value: false
}
},
showHomeIcon:{
type: Boolean,
value: true
},
showLeftIcon:{
type: Boolean,
value: true
},
},
attached: function () {
this.setNavSize()
@@ -88,9 +96,10 @@ Component({
})
},
home: function () {
wx.switchTab({
wx.reLaunch({
url: '/pages/index/index'
})
wx.re
}
}
})
+2 -1
View File
@@ -15,7 +15,7 @@
<i class="iconfont mr10 icon-fanhui" style="font-size:22px;color:{{txtColor}};"></i>
</view>
</view>
<view class="absolute left-0 box-middle" style="width:40px;height:32px;margin-left:7px;box-sizing:border-box;" wx:else>
<view class="absolute left-0 box-middle" style="width:40px;height:32px;margin-left:7px;box-sizing:border-box;" wx:elif="{{showHomeIcon}}">
<view class="absolute box-center-middle" bindtap='home' wx:if="{{!isShowHomeBtn}}">
<i class="iconfont icon-shouye1" style="font-size:22px;color:{{txtColor}}"></i>
</view>
@@ -23,4 +23,5 @@
<view class='navbarTitle absolute box-center-middle wp40 text-center text-nowrap text-bold' style="color:{{txtColor}};">{{titleText}}</view>
</view>
</view>
<view wx:if="{{isShowBg}}" style='height: {{status + navHeight}}px;'></view>
</view>