微信小程序开发文档相关记录
第 1 页微信小程序开发文档相关记录第 2 页【小程序开发文档】 小程序调用豆瓣电影api第 3 页【小程序开发文档】 小程序加载进度条的实现 惠民小程序小编了解到,微信小程序成为当下热门话题,下面从多个方面来谈谈微信小程序开发文档相关记录。 最新消息, 近日, 微信官方对小程序组件进行两个调整,给用户提供更自主的选择权。 1 打开其他小程序组件上线,用户点击后就可以直接跳转到其他小程序了。 2 新增打开小程序设置页组件,用户点击后可以进入设置页管理自己的各项授权信息。 ■开发者 <img src="https://www.52php.cn/res/2019/01-08/21/31437ab02bf523f1359c3b14dc2239ae.jpg"> 小程序开发文档针对底部导航,滑块视图实现,以及调用豆瓣电影api等做个一个整理文档,供大家参考。1、底部的tabBar 可设置的属性有color、selectedColor、borderStyle、backgroundColor、list至少2个,最多5个(其属性有pagePath、text、iconPath、selectedIconPath等) "tabBar": {"color":"#dddddd","selectedColor":"#3cc51f","borderStyle":"black","backgroundColor":"#2B2B2B","list": [{"pagePath": "pages/movie/movie","text": "影院热映","iconPath": "assets/img/dy-1.png","selectedIconPath": "assets/img/dy.png"},{"pagePath": "pages/recommend/recommend","text": "电影推荐","iconPath": "assets/img/tj-1.png","selectedIconPath": "assets/img/tj.png"},{"pagePath": "pages/search/search","text": "查询电影","iconPath": "assets/img/search-1.png","selectedIconPath": "assets/img/search.png"}]}, 2、滑块视图容器swiper swiper 滑块视图容器。 属性名 | 类型 | 默认值 | 说明 | 最低版本 | indicator-dotsBooleanfalse是否显示面板指示点indicator-colorColorrgba(0,.3)指示点颜色1.1.0indicator-active-colorColor#000000当前选中的指示点颜色1.1.0autoplayBooleanfalse是否自动切换currentNumber0当前所在页面的 indexintervalNumber5000自动切换时间间隔durationNumber500滑动动画时长circularBooleanfalse是否采用衔接滑动verticalBooleanfalse滑动方向是否为纵向bindchangeEventHandlecurrent 改变时会触发 change 事件,event.detail = {current: current,source: source}从公共库v1.4.0开始,change事件返回detail中包含一个source字段,表示导致变更的原因,可能值如下: autoplay自动播放导致swiper变化;touch用户划动引起swiper变化;其他原因将用空字符串表示。注意:其中只可放置 swiper-item 仅可放置在 示例代码: |