微信程序的搭建
发布日期:2021-05-10 01:07:40 浏览次数:29 分类:精选文章

本文共 2493 字,大约阅读时间需要 8 分钟。

������������������������������������

������������������������������������������������������������������������������������������������������������

1. ������������

���������������������������������������������������

  • ������������������������������������������
  • ������������������������������������������������������������
  • ���������������������������������������������������������������������������
  • 2. ���������������������

    ���app.json������������������������������

    {  "pages": [    ... // ������������������  ],  "window": {    "navigationBarBackgroundColor": "#ffffff",    "navigationBarTitleText": "������������",    "navigationBarTextStyle": "black"  }}

    ������������������������������������app.wxss������������������������

    page#page Eliminate ��������� ���������"*"

    3. ������������

    ���������������������������������

  • ���app.wxss������������������������������
  • @font-face {  font-family: "iconfont";  src: url('//at.alicdn.com/t/font_1199223_3th2jwrfikp.eot?t=1558237601879');  src: url('//at.alicdn.com/t/font_1199223_3th2jwrfikp.woff?t=1558237601879') format('woff');  src: url('//at.alicdn.com/t/font_1199223_3th2jwrfikp.ttf?t=1558237601879') format('truetype');  src: url('//at.alicdn.com/t/font_1199223_3th2jwrfikp.svg?t=1558237601879#iconfont') format('svg');}.iconfont {  font-family: "iconfont" !important;  font-size: 16px;  font-style: normal;}
    1. ���app.wxss������������������������
    2. @import "./styles/iconfont.wxss";

      4. ������������������

      ���app.json���������������������������

      "tabBar": {  "position": "bottom",  "list": [    {      "pagePath": "pages/index/index",      "text": "������",      "iconPath": "icons/home.png",      "selectedIconPath": "icons/home-o.png"    },    {      "pagePath": "pages/cart/index",      "text": "���������",      "iconPath": "icons/cart.png",      "selectedIconPath": "icons/cart-o.png"    },    {      "pagePath": "pages/user/index",      "text": "������",      "iconPath": "icons/my.png",      "selectedIconPath": "icons/my-o.png"    }  ]}

      5. ���������������

      ���app.wxss���������������������������

      page {  --themeColor: #eb4450;  font-size: 14rpx;}image {  width: 100%;}

      6. app.json������������

      ���app.json������������������������������

      "window": {  "backgroundTextStyle": "light",  "navigationBarBackgroundColor": "#eb4450",  "navigationBarTitleText": "������������",  "navigationBarTextStyle": "white"}

      ���������������������������������������������������������������������������������������������������������������������������������������������������

    上一篇:解决HTML5页面在手机浏览器测试中发现 横向滚动条,尽管页面没有内容也是照常出现。
    下一篇:脚手架的搭建微信小程序项目(uniapp)

    发表评论

    最新留言

    初次前来,多多关照!
    [***.217.46.12]2025年04月24日 10时27分54秒

    关于作者

        喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
    -- 愿君每日到此一游!

    推荐文章