更新记录

1.0.0(2021-01-23)

2021-1-23


平台兼容性

素材

ColorUI 语雀-ColorUI群资源

开始使用

    <template>
        <view>
            <appointment :contentList="contentList" @onPulling="onPulling" @SelectHeader="SelectHeader" @Appointment="Appointment"></appointment>
        </view>
    </template>

    <script>
    import appointment from '@/components/appointment/appointment.vue';
    export default {
        components:{
            appointment
        },
        data() {
            return {
                selectHeader: 0,
                WeekList: [],
                day:1,
              contentList:[{
                    time: '07:00-09:00',
                    name: '系统感知课',
                    teacher: 'user',
                    count: 10
                }]
            };
        },
        methods: {
             // 选择头部日期
            SelectHeader(item) {
                console.log(item);
            },
         // 下拉刷新 
            onPulling(){
                console.log('onPulling');
            },
            // 预约
            Appointment(){
                uni.showModal({
                    title: '预约',
                    content: '系统感知课:12:20-13:45',
                    success: function (res) {
                        if (res.confirm) {
                            console.log('用户点击确定');
                        } else if (res.cancel) {
                            console.log('用户点击取消');
                        }
                    }
                });
            }
        }
    };
    </script>

    <style>
    </style>
参数 作用 类型 默认值 可取值
TimeType 头部日期 String '本周剩余日期和下周日期' '本周日期''下周日期''上周日期''本周剩余日期和下周日期''本周剩余日期'
contentList 内容 Array

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问