| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <template>
- <view class="sign-in">
- <view class="sign-in-box">
- <view class="sign-in-box-divider"></view>
- <view class="sign-in-box-datetime">
- <view class="sibd-time">
- <clock-learn />
- </view>
- <view class="sibd-date">
- {{ $u.timeFormat(new Date(), 'mm月dd日') }}
- {{ getDateString() }}
- </view>
- </view>
- <view class="sign-in-box-button">
- <u-button type="primary" class="sign-in-btn">立即签到</u-button>
- <u-button type="info">签到记录</u-button>
- </view>
- </view>
- </view>
- </template>
- <script>
- import clockLearn from './../../components/clock-learn/index.vue'
- export default {
- components: {
- clockLearn
- },
- data() {
- return {
- }
- },
- onShow() {
- },
- methods: {
- getDateString() {
- const weekList = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
- currentDate = new Date(),
- week = currentDate.getDay();
- return weekList[week]
- }
- },
- }
- </script>
- <style lang="scss" scoped>
- @import './offlineSignin.scss';
- </style>
|