在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
小程序结构 渲染层:WXML + WXSS(类似于HTML CSS)
========导航组件navigator==========
=======tabBar============= "list": [ { "pagePath": "pages/about/about", "text": "关于", //显示的文字 "iconPath": "images/icons/home1.png", //未选中时的iconfont "selectedIconPath": "images/icons/home2.png" //选中时的iconfont }, { "pagePath": "pages/weekly/weekly", "text": "每周推荐", "iconPath": "images/icons/neirong1.png", "selectedIconPath": "images/icons/neirong2.png" } ], "color":"#000", //平时字体的颜色 "selectedColor":"#00f" //选中时字体的颜色 },
=====选项卡统一导航样式======= "window": { "navigationBarBackgroundColor": "#fff", "navigationBarTextStyle": "black" }
======数据绑定==========
<view class="list clearfix" wx:for="{{list}}"> <image class="list-image" src="{{item.imagePath}}"></image> <view class="list-details"> <text>第{{index+1}}周:{{item.name}}</text> <text>{{item.comment}}</text> </view> </view>
========swiper轮播=========== <swiper style="background:#eee" indicator-dots='{{true}}'> <swiper-item>123</swiper-item> <swiper-item>456</swiper-item> <swiper-item>789</swiper-item> </swiper>
|
请发表评论