微信小程序开发之实现“鲜肉APP”首页效果
凌雪 2018-10-10 来源 :网络 阅读 2585 评论 0

摘要:本文将带你了解微信小程序开发之实现“鲜肉APP”首页效果,希望本文对大家学微信有所帮助。

本文将带你了解微信小程序开发之实现“鲜肉APP”首页效果,希望本文对大家学微信有所帮助。


项目地址https://github.com/Eastwu5788/WXAPP 如果您觉得不错,记得给一个star最近微信小程序比较火,正好昨天弄到了破解版微信web开发工具,所以今天正好试试手。由于我是做iOS的,所以对H5和CSS方面不太了解,代码里面写的丑的地方欢迎吐槽。1.效果演示WXEXE.gif2.微信小程序介绍微信小程序的一个页面主要分成三个部分.js文件.wxml文件和.wxss文件.   js文件.js文件相当于ios中的一个控制器,所有的业务逻辑操作都放在该文件中完成,xml页面中显示的数据都从该文件中传入。.wxml文件.wxml文件用于写HTML5代码,也就是用来页面布局。.wxss文件.wxss文件则是用来处理所有的css样式信息3.代码介绍页面布局代码,由于开发工具的所有接口访问有限制,所以数据都写在了本地,但是最新的破解版开发工具已经处理的这个问题,我也会尽快将死数据改成网络请求下来的数据  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}}" 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}}" style = "display:   inline-block;">
   
           
       

本文由职坐标整理并发布,希望对同学们有所帮助。了解更多详情请关注职坐标移动开发之微信频道!

本文由 @凌雪 发布于职坐标。未经许可,禁止转载。
喜欢 | 0 不喜欢 | 0
看完这篇文章有何感觉?已经有0人表态,0%的人喜欢 快给朋友分享吧~
评论(0)
后参与评论

您输入的评论内容中包含违禁敏感词

我知道了

助您圆梦职场 匹配合适岗位
验证码手机号,获得海同独家IT培训资料
选择就业方向:
人工智能物联网
大数据开发/分析
人工智能Python
Java全栈开发
WEB前端+H5

请输入正确的手机号码

请输入正确的验证码

获取验证码

您今天的短信下发次数太多了,明天再试试吧!

提交

我们会在第一时间安排职业规划师联系您!

您也可以联系我们的职业规划师咨询:

小职老师的微信号:z_zhizuobiao
小职老师的微信号:z_zhizuobiao

版权所有 职坐标-一站式AI+学习就业服务平台 沪ICP备13042190号-4
上海海同信息科技有限公司 Copyright ©2015 www.zhizuobiao.com,All Rights Reserved.
 沪公网安备 31011502005948号    

©2015 www.zhizuobiao.com All Rights Reserved