更新记录

1.0.0(2022-03-14)

发布的第一版 感谢ful***@163.com大佬的 地址:(https://ext.dcloud.net.cn/plugin?id=4011)


平台兼容性

Vue2 Vue3
App 快应用 微信小程序 支付宝小程序 百度小程序 字节小程序 QQ小程序
app-vue × × × × ×
钉钉小程序 快手小程序 飞书小程序 京东小程序
× × × ×
H5-Safari Android Browser 微信浏览器(Android) QQ浏览器(Android) Chrome IE Edge Firefox PC-Safari
× × × ×

组件使用示例

<view class="container">

        <view class="calendar">
            <calendar ref="calendar" v-if="isShow" @cancel="cancel" :startDate="startDate" :height="height" :endDate="endDate" @selectDate="selectDate" :limit="limit" :bottom1="bottom1" :yimanArray="yimanArray" />
        </view>

    </view>
import calendar from '@/components/dc-calendar/dc-calendar.vue'

export default {
       components: {

           calendar

       },

data() {
           return {
               isShow:false,
               startDate:'',     //开始日期2022-01-26
               endDate:'',       //结束日期 2022-01-29
               height:600,                 //日历容器高度
               limit:12,                    //展示月份数量
               bottom1:0,
               yimanArray:[],
               dicdes:{
                   price:1
               },//传过来的订单数据
               type:0,//1是进入订单 0是返回

           }
       },
       onLoad(e) {

                   let sys = uni.getSystemInfoSync();
                   if (sys.statusBarHeight >=44) {
                       // this.height = sys.windowHeight - 34;
                       this.bottom1 = 34;
                   } else{
                       // this.height = sys.windowHeight;
                   }

                   // console.log(sys);

                   var  dicday = uni.getStorageSync('入离日期');
                   if(dicday){
                       this.startDate = dicday.startDate;
                       this.endDate = dicday.endDate;
                   }
                  // this.newdate();

                       this.type = 1;
                       // this.dicdes = JSON.parse(e.dic);
                       uni.setStorageSync('满房日期显示',1)
                       // //取房间满房日期
                       this.gethttpurl(this.dicdes.id);

               },
               methods: {

                          //取房间满房日期
                          gethttpurl(id){

                              this.yimanArray =['2022-03-25','2022-04-10'];
                              this.isShow = true;
                              uni.hideLoading();

                          },
                          }

隐私、权限声明

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

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

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

许可协议

MIT协议

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