微信小程序项目开发Day1

没接触过,直接看视频学习:

千锋教育微信小程序开发制作前端教程,零基础轻松入门玩转微信小程序_哔哩哔哩_bilibili千锋教育微信小程序开发制作前端教程,零基础轻松入门玩转微信小程序共计56条视频,包括:学习常见问题导读、000-江湖人、001-小程序基础-起步式等,UP主更多精彩视频,请关注UP账号。https://www.bilibili.com/video/BV1yf4y1E7MH今天一天就是看这个视频,把项目搭建出来

学到P13

师傅说平时使用的比较多的组件是TDesign,让我去学习

TDesign (tencent.com)https://tdesign.tencent.com/miniprogram/components/input

于是去看TDesign的开发文档

  1. 安装下载

自动配置的环境变量如下:

app.json页面如下:

XML 复制代码
{
  "pages": [
    "pages/login/index",
    "pages/dashboard/index",
    "pages/setting/index",
    "pages/project/index/index",
    "pages/project/new/index",
    "pages/accessory/index",
    "pages/user/index",
    "pages/user/edit",
    "pages/user/new",
    "pages/accessory-request/index",
    "pages/contract/index",
    "pages/customer/index",
    "pages/design/index",
    "pages/finance/index",
    "pages/maintenance/index",
    "pages/accessory/new",
    "pages/accessory/edit",
    "pages/accessory/show"
  ],
  "window": {
    "backgroundTextStyle": "light",
    "navigationBarBackgroundColor": "#fff",
    "navigationBarTitleText": "华商",
    "navigationBarTextStyle": "black"
  },
  "tabBar": {
    "color": "#8A8A8A",
    "selectedColor": "#28A1F9",
    "list": [
      {
        "pagePath": "pages/dashboard/index",
        "text": "工作台",
        "selectedIconPath": "/assets/selected-dashboard.png",
        "iconPath": "/assets/dashboard.png"
      },
      {
        "pagePath": "pages/project/index/index",
        "text": "项目",
        "selectedIconPath": "/assets/selected-project.png",
        "iconPath": "/assets/project.png"
      },
      {
        "pagePath": "pages/setting/index",
        "text": "设置",
        "selectedIconPath": "/assets/selected-setting.png",
        "iconPath": "/assets/setting.png"
      }
    ]
  },
  "usingComponents": {
    "t-button": "tdesign-miniprogram/button/button",
    "t-input": "tdesign-miniprogram/input/input",
    "t-empty": "tdesign-miniprogram/empty/empty",
    "t-loading": "tdesign-miniprogram/loading/loading",
    "t-message": "tdesign-miniprogram/message/message",
    "t-toast": "tdesign-miniprogram/toast/toast",
    "t-divider": "tdesign-miniprogram/divider/divider",
    "t-icon": "tdesign-miniprogram/icon/icon",
    "t-fab": "tdesign-miniprogram/fab/fab",
    "t-dialog": "tdesign-miniprogram/dialog/dialog",
    "t-image": "tdesign-miniprogram/image/image",
    "t-search": "tdesign-miniprogram/search/search",
    "t-sticky": "tdesign-miniprogram/sticky/sticky",
    "t-action-sheet": "tdesign-miniprogram/action-sheet/action-sheet",
    "t-pull-down-refresh": "tdesign-miniprogram/pull-down-refresh/pull-down-refresh",
    "data-end": "/components/data-end/index",
    "data-empty": "/components/data-empty/index",
    "list-rack": "/components/list-rack/index"
  },
  "onReachBottomDistance": true,
  "sitemapLocation": "sitemap.json"
}
  1. input组件

TDesign 学习const{ trigger } = e.detail_素心如月桠的博客-CSDN博客const{ trigger } = e.detail的意思是把e.detail属性中。const{ trigger }是定义一个名为trigger的常量。包含的trigger这个属性赋值给刚刚定义的trigger。const{}是定义常量。https://blog.csdn.net/m0_47010003/article/details/132759713

相关推荐
chaosama1 小时前
禁止uni小程序ios端上下拉伸(橡皮筋效果)
ios·小程序
瑶琴AI前端1 小时前
uniapp实现H5和微信小程序获取当前位置(腾讯地图)
微信小程序·小程序·uni-app
丁总学Java6 小时前
页面、组件、应用、生命周期(微信小程序)
微信小程序·小程序·生命周期
编程千纸鹤11 小时前
高校宿舍信息管理系统小程序
小程序·宿舍管理小程序
说私域11 小时前
基于开源 AI 智能名片 S2B2C 商城小程序的视频号交易小程序优化研究
人工智能·小程序·零售
丁总学Java1 天前
微信小程序,点击bindtap事件后,没有跳转到详情页,有可能是app.json中没有正确配置页面路径
微信小程序·小程序·json
说私域1 天前
基于开源 AI 智能名片、S2B2C 商城小程序的用户获取成本优化分析
人工智能·小程序
mosen8681 天前
Uniapp去除顶部导航栏-小程序、H5、APP适用
vue.js·微信小程序·小程序·uni-app·uniapp
qq22951165021 天前
微信小程序的汽车维修预约管理系统
微信小程序·小程序·汽车
尚梦1 天前
uni-app 封装刘海状态栏(适用小程序, h5, 头条小程序)
前端·小程序·uni-app