更新记录

1.0.1(2020-12-18) 下载此版本

代码优化

1.0.0(2020-11-13) 下载此版本

初始提交


平台兼容性

前言

简介:消息通知动态往上翻,类似支付宝首页消息通知,传入数据即可使用

有疑问

微信搜索“慢慢向好”小程序,找客服反馈,相应问题。

素材

图片资源

开始使用

下载源码解压,复制/components 下的组件至项目根目录的 /components 文件夹下

index.vuescript加入如下部分:

import goUpNotice from '@/components/notice-goUp/notice-goUp.vue';

components: { goUpNotice },

data() { 
    return { 
        themeColor: '#33CCCC',
        goUpNoticeList: [{
                directOne1: '路遥知马力,日久见人心',
                directOne2: '《元曲选·争报恩》',
            }, {
                directOne1: '天生我材必有用',
                directOne2: '李白',
            },
            {
                directOne1: '穷则独善其身,达则兼济天下',
                directOne2: '孟子',
            }, {
                directOne1: '业精于勤,荒于嬉;行成于思,毁于随',
                directOne2: '韩愈',
            }, {
                directOne1: '一年之计在于春,一日之计在于晨',
                directOne2: '萧绎',
            },
        ]
} 
},

index.vuetemplate加入如下部分:

<goUpNotice :list="goUpNoticeList" :themeColor="themeColor"></goUpNotice>

引入阿里矢量图,复制示例源码/style 下的/iconfont.css至项目根目录的 /style 文件夹下,内容如下:

@font-face {font-family: "iconfont";
  src: url('//at.alicdn.com/t/font_2190080_glfs1acu1yq.eot?t=1607330521015'); /* IE9 */
  src: url('//at.alicdn.com/t/font_2190080_glfs1acu1yq.eot?t=1607330521015#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAZMAAsAAAAADYQAAAX9AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCEIAqMXIodATYCJAMoCxYABCAFhG0HgQIbZQsjESZ8E0H2Fwd2m+U9xEviBjnBPwmEFdcMlq9jcE/e50Pv9f4ZJDczC144W4Gpd1NB03p3Cy7aJ5d/D7lPUB6ABACMMRi4zb5z/REKH2HG7uwnj3aYdhllL0sPzXZA2QC0izyuPcvvB7LW/621OnuHxoVQ9ONtQ6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ektCgcOFis6Vxax/A3lRB3xhnDv/D0eV45YJh3xuHDkMuHc3bI4oLh0mUT7ra/m5kdHPBa8+TxV6FH66e/KMcYajvhdZH2/avlck+duU0uxYa7ArmKYdNa3smvsdmetpZsmCkeh71+JFonMxP0TNlEqhLu55bQW09ITzdoatWj03aDK6793elL2VyurDDYIdDREnSPWrvssOoI5FSlNTDvki47+AKOj4fQRKUXbeR9PP1BWS7FkkzGjkZec0aFaVkA+x2nA1gGgV2WtaGsAYAmaAAB6gb4BAPQB2g/w9mSanQYAphj5UB+EhY+ucmeH+vxm+L7nW9791fdW1uCpAr/KAH1RCnyEDeYqPrWoUPLx0qLAUsmSNEJVHkWAYgPwwa2J4oN1y1I24cMqSyugKEEtMBhoovDINqDBhy6gw0B/kGiN4Zf7EMM6MBAuALTCAQsIwrgCFEE8CAxhPK/wyPdBQxm+Ax1hwkDCJrEb+tBsmnR4E8wVKygeQCUPJizWQz78G63rcqlbWcI/ykTNEPlhu/sLB5R1nDJdbaxqwAj38Gk9DruOYRRusFS/Vh0vQWBkp/ol97MD3gRzTTJWQPHQUsmDCa2Hzs9/o3VdLpp5J9p/lInCByJ8QobyRQNr3n0ZO11tjNplBqKpwj3waZdhJzoYGOX7NViqT71E23ghsNczXPK3L/tb2/pXWIA+T5IwLdtxPV6fn836Oh9ssrxTvnywO6srKOdnTU/H3kqpx02/w1HwVCW6WV5FiuDWouHu8uFaj0uNK3CYzQAAAA==') format('woff2'),
  url('//at.alicdn.com/t/font_2190080_glfs1acu1yq.woff?t=1607330521015') format('woff'),
  url('//at.alicdn.com/t/font_2190080_glfs1acu1yq.ttf?t=1607330521015') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
  url('//at.alicdn.com/t/font_2190080_glfs1acu1yq.svg?t=1607330521015#iconfont') format('svg'); /* iOS 4.1- */
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-shang3:before {
  content: "\e689";
}

.icon-xia:before {
  content: "\e65a";
}

.icon-you:before {
  content: "\e600";
}

.icon-tubiaozhizuo-:before {
  content: "\e605";
}

.icon-time:before {
  content: "\e619";
}

.icon-xiaoxi:before {
  content: "\e615";
}

.icon-daohangdizhi:before {
  content: "\e65e";
}

.icon-gouxuan:before {
  content: "\e6ce";
}

.icon-icon_fuben:before {
  content: "\e611";
}

页面App.vue 引入css

<style>
    /*每个页面公共css */
    @import './style/iconfont.css';
</style>

隐私、权限声明

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

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

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

许可协议

MIT协议

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