更新记录

1.0.1(2021-07-21)

第一次上传


平台兼容性

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

使用说明

引入插件

<uni-tablist :Refresh="Refresh" :tablist="tablist" :tabindex="tabindex" :loading="loading" @refresh="refresh" @lower="lower" @changetab="changetab">
            <template slot="tablist">
                <view class="paddinglr-16 tabbox">
                    <scroll-view scroll-x="true" style="height: 118upx;position: relative;">
                        <view class="flex-sp-ct " style="position: absolute;left: 0upx; top: 0upx;min-width: 100%;" :style="{width: tablist.length*80+'px'}">
                            <view v-for="(tab,i) in tablist" :key="tab.classifyId" class="tabtext" :class="{'actvtab': tabindex == i}" @tap="tabindex = i">
                                {{tab.classifyName}}
                            </view>
                        </view>
                    </scroll-view>
                </view>
            </template>
            <template slot="list">
                    <view v-for="(item,idx) in arrlist" :key="idx" class="flex-st-ct" style="padding-bottom: 40upx" @tap="godetail(item)">
                        <image :src="item.coverImage||'../../static/img/index/list.png'" mode="aspectFill" style="width: 270upx;height: 206upx;border-radius: 10upx; margin-right: 26upx;"></image>
                        <view class="flex-sp-ct flex1" style="flex-direction: column;">
                            <view class="textsize-16">
                                {{item.courseName}}
                            </view>
                            <view class="flex1"></view>
                            <view class="flex-st-ct align-center" style="margin-bottom: 10upx;">
                                <view class="textsize-12" style="color: #98999A;">{{item.lecturer}}</view>
                                <view class="textsize-12 cl-999999 marginl-25">
                                    播放量{{cknumber(item.learnedAmount||0)}}
                                </view>
                            </view>
                        </view>
                    </view>
            </template>
        </uni-tablist>

变量说明

tabindex //顶部导航的下标
Refresh //刷新的状态
tablist //顶部导航的数组

refresh() { 刷新的方法
    this.Refresh = true;
    this.getlist();
    console.log('刷新')
},

lower(){ //加载的方法
    if (this..loading) {
        this..pageNum++;
        this.getlist();
    } else {
        uni.showToast({
            icon: 'none',
            title: '没有更多了...'
        })
    }
},

隐私、权限声明

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

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

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

许可协议

MIT协议

暂无用户评论。

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