| | |
| | | <view class="punchTheClock"> |
| | | <!-- 打卡按钮 --> |
| | | <view class="punchTheClock_container"> |
| | | <view class="punchTheClock_btn" @click="arrive"> |
| | | <view class="punchTheClock_btn" |
| | | @click="arrive"> |
| | | <view> |
| | | <p>{{ coalStatus == 2 ? '已签到' : '签到/打卡' }}</p> |
| | | <p>{{ nowTime }}</p> |
| | |
| | | } |
| | | }; |
| | | }, |
| | | onShow() { |
| | | onLoad() { |
| | | this.getSetting(); //获取授权 |
| | | this.getFuzzyLocation(); //获取位置 |
| | | this.todayDate(); //当前时间 |
| | |
| | | if (res.code == 0) { |
| | | this.$u.toast('签到成功'); |
| | | setTimeout(() => { |
| | | uni.navigateBack( |
| | | { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }, |
| | | 500 |
| | |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | <style lang="scss" |
| | | scoped> |
| | | .punchTheClock { |
| | | height: 100vh; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | |
| | | .punchTheClock_container { |
| | | .punchTheClock_btn { |
| | | width: vww(240); |
| | |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | |
| | | p { |
| | | text-align: center; |
| | | } |
| | | } |
| | | |
| | | .punchTheClock_text { |
| | | display: flex; |
| | | justify-content: center; |
| | | margin-top: vww(20); |
| | | color: #b8b8b8; |
| | | |
| | | .text { |
| | | margin-left: vww(5); |
| | | } |