项目地址 http://git.oschina.net/djcx/WeiXinXiaoChengXu/tree/master 若是您以为不错,记得给一个starjavascript
因为微信小程序目前是当下趋势,正好昨天弄到了破解版微信web开发工具,因此今天正好试试手。因为我是作iOS的,因此对H5和CSS方面不太了解,代码里面写的丑的地方欢迎吐槽。css
WXEXE.gifjava
微信小程序的一个页面主要分红三个部分.js文件.wxml文件和.wxss文件ios
页面布局代码,因为开发工具的全部接口访问有限制,因此数据都写在了本地,可是最新的破解版开发工具已经处理的这个问题,我也会尽快将死数据改为网络请求下来的数据git
class = "index"> class = "header-container" > class = "header-swiper" autoplay="true" scroll-x="true" interval="3000" duration="1000"> wx:for-items="{{ adimages }}"> class = "header-swiper-img" src="{{ item.img_url }}" mode="aspectFill" > class = "header-search-img" src="../../images/icon_sshome.png"> class = "scroll-container"> wx:for="{{ result }}" wx:for-index='index' wx:for-item='item'> class = "home-view-sep-ver" style = "float:left"> class = "scroll-view" style = "float:left; flex-direction:row; justify-content: space-around;"> class = "header-cover-img" src = "{{ item.cover }}" mode = "aspectFill"/> class = "home-text-nickname" style = "float:left"> {{ item.nickname }} class = "home-text-city" style = "float:left"> {{ item.city_name }} wx:if = "{{ (index + 1) % 2 == 0 && index != 0}}" class = "home-view-sep-hor" style = "display: inline-block;"> class = "home-invite-container"> class = "home-invite-title" > {{ invite.title }} class = "home-invite-cover" src = "{{ invite.img_url }}" mode = "aspectFill" /> class = "home-invite-content" style = "display: inline-block;" > {{ invite.content }} class = "home-invite-subcontent" style = "display: inline-block;"> {{ invite.subcontent }} class = "scroll-container"> wx:for="{{ recommends }}" wx:for-index='index' wx:for-item='item'> class = "home-view-sep-ver" style = "float:left"> class = "scroll-view" style = "float:left; flex-direction:row; justify-content: space-around;"> class = "header-cover-img" src = "{{ item.cover }}" mode = "aspectFill"/> class = "home-text-nickname" style = "float:left"> {{ item.nickname }} class = "home-text-city" style = "float:left"> {{ item.city_name }} wx:if = "{{ (index + 1) % 2 == 0 && index != 0}}" class = "home-view-sep-hor" style = "display: inline-block;">