2 Star 4 Fork 2

孤傲 / AS-WxTemplate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

AS-WxTemplate

介绍

AS-WxTemplate 是 微信小程序 + Vant Weapp 的一套模板框架

一、使用步骤

1.npm install 安装依赖包
2.开发工具右上角点击:详情按钮》本地设置,勾选【使用npm模块】
2.在微信开发工具的菜单栏选择:工具》构建npm, 等待提示构建完成,点击重新编译。
3.如果控制台出现报错失败,找不到vant组件,点击开发工具清理所有缓存,点击重新编译。

二、目录说明

api                   #接口统一管理文件
assets                #主要存放图片,自定义目录区分
  --home              #home需要的图片资源
components            #组件,自定义目录区分
env                   #连接环境
  --index.js          #配置文件,连接后台环境,比如设置:SET_ENV='local'
libs                  #引入第三方的包,js
  --request.js        #小程序仿 axios 的请求封装
  --md5.js            #md5封装
pages                 #小程序源码目录
styles                #自定义的样式文件
  --index.wxss        #常用的一些样式
templates             #模板文件,自定义目录区分
utils                 #工具包
  --http.js           #封装request.js的调用方法,可以设置全局拦截器
  --util.js           #封装的js工具类
app.js                #小程序入口js文件
app.json              #小程序全局配置文件
app.wxss              #小程序全局样式文件
package.json          #npm构建使用package.json
project.config.json   #项目配置
README.MD             #README.MD说明文件
MIT License Copyright (c) 2022 孤傲 <9068149@qq.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

AS-WxTemplate 是 微信小程序 + Vant Weapp 的一套模板框架 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/was666/as-wx-template.git
git@gitee.com:was666/as-wx-template.git
was666
as-wx-template
AS-WxTemplate
master

搜索帮助