更新记录

1.0.0(2023-05-14)

初始化


平台兼容性

Vue2 Vue3
App 快应用 微信小程序 支付宝小程序 百度小程序 字节小程序 QQ小程序
HBuilderX 3.4.7 app-vue app-nvue
钉钉小程序 快手小程序 飞书小程序 京东小程序
H5-Safari Android Browser 微信浏览器(Android) QQ浏览器(Android) Chrome IE Edge Firefox PC-Safari
<template>
    <integration-task :userIntergration="userIntergration" :taskList="taskList" />
</template>

<script>
    export default {
        data() {
            return {
                userIntergration: 0,
                taskList: [{
                    logoUrl: '/components/integration-task/image-logo/sign.png',
                    logoWidth: 100,
                    logoHeight: 100,
                    title: '每日签到',
                    desc: '+2积分/天',
                    buttonText: '去签到',
                    onClick: (e) => {}
                }, {
                    logoUrl: '/components/integration-task/image-logo/thumb.png',
                    logoWidth: 80,
                    logoHeight: 80,
                    title: '每日点赞',
                    desc: '+6积分/天',
                    buttonText: '未达标',
                    onClick: (e) => {}
                }, {
                    logoUrl: '/components/integration-task/image-logo/download.png',
                    logoWidth: 90,
                    logoHeight: 90,
                    title: '每日积分下载',
                    desc: '+8积分/天',
                    buttonText: '未达标',
                    onClick: (e) => {}
                }, {
                    logoUrl: '/components/integration-task/image-logo/ad.png',
                    logoWidth: 100,
                    logoHeight: 100,
                    title: '看广告领积分',
                    desc: '+6积分/次',
                    buttonText: '去观看',
                    onClick: (e) => {}
                }],
            };
        },
    }
</script>

用户积分展示需依赖积分战士插件,请先安装插件:https://ext.dcloud.net.cn/plugin?id=12412

参数 类型 默认值 描述
userIntergration Number 0 用户积分
taskList Array [] 任务
taskList 参数 类型 默认值 描述
logoUrl String '' logo 的地址
logoWidth Number 100 logo 的宽度
logoHeight Number 100 logo 的高度
title String '' 任务标题
desc String '' 任务描述
buttonText String '' 按钮文案
onClick Functiob null 按钮事件

隐私、权限声明

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

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

插件不采集任何数据

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

许可协议

MIT协议

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