微信小程序入门,可跳过

pages,页面,

window 窗口

wxml html

wxss css

view div

微信公众平台

text span

image img

app.json 中配置页面

backgroundTextStyle 背景字体样式

  "enablePullDownRefresh": true     允许下拉刷新

  "navigationBarBackgroundColor": "#ff82ab",导航栏背景颜色

 "navigationBarTextStyle":"black",导航栏字体颜色

    "navigationBarTitleText": "情书",导航栏字

tabBar底部导航栏

app.json

{

  "pages":[

    "pages/demo1/demo1",

    "pages/demo2/demo2",

    "pages/demo3/demo3",

    "pages/demo4/demo4"

  ],

  "window":{

    "backgroundTextStyle":"dark",

    "navigationBarBackgroundColor": "#ff82ab",

    "navigationBarTitleText": "情书",

    "navigationBarTextStyle":"black",

    "enablePullDownRefresh": true   

  },

  "tabBar": {

    "selectedColor": "#ff82ab",

    "list": [{

      "pagePath": "pages/demo1/demo1",

      "text": "情书",

      "iconPath": "img/1.png",

     "selectedIconPath": "img/xiaoxi_o.png"

      

    },

    {

      "pagePath": "pages/demo2/demo2",

      "text": "通讯录",

      "iconPath": "img/2.png",

      "selectedIconPath": "img/tongxunlu.png"

    },

    {

      "pagePath": "pages/demo3/demo3",

      "text": "发现",

      "iconPath": "img/3.png",

      "selectedIconPath": "img/faxian.png"

  

    },

    {

      "pagePath": "pages/demo4/demo4",

      "text": "我的",

      "iconPath": "img/4.png",

      "selectedIconPath": "img/31wode.png"

    }

  ]},

  "style": "v2",

  "sitemapLocation": "sitemap.json"

}

scroll-view scroll-x 要设置宽度默认为750 rpx

scroll-y 设置高度,宽高都不为自适应

swiper轮播宽100%高300 rpx

<swiper>

<swiper-item>

<image>

<swiper-item>

<swiper>

autoplay是否自动切换true

swiper w100 h300rpx

swiper image w100 h300rpx

interval自动切换时间间隔默认5000毫秒

interval=“2000”

circular是否衔接滑动true

从左往右,而不是从左往右再右往左

vertical 滑动方向是否为纵向?true

indicator-dots是否显示面板指示点?true

indicator-color面板指示点颜色

indicator-active-color当前选中的指示点的颜色

current当前所在页面的index从零开始

previous-margin 前边距

next-margin 后边距

<swiper autoplay="true" interval="1000" circular="true" >
<swiper-item><image src="/img/w.jpg"></image></swiper-item>
<swiper-item><image src="/img/1.png"></image></swiper-item>
<swiper-item><image src="/img/w.jpg"></image></swiper-item>
</swiper>

数据绑定

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

暗逆骇客

你的打赏是我的最大助力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值