# fish **Repository Path**: fishbuy/fish ## Basic Information - **Project Name**: fish - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-03-06 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #### 运行 ``` npm run dev ``` #### vscode 语法高亮插件 Vetur-wepy #### wepy 框架 https://wepyjs.github.io/wepy-docs/2.x/#/component/intro #### vant 小程序组件库 https://youzan.github.io/vant-weapp/#/quickstart vant 组件引入 ``` { usingComponents: { "van-button": '~vant/button', "van-icon":'~vant/icon' } } ``` #### 全局样式设置 在 app.wpy 中 使用 css 变量配置主题色 ```css //app.wpy page { // 定义项目主题色 --primary-color: #ef5350; // vant 主题设置 // --button-border-radius: 5px; --button-default-color: #f2f3f5; --toast-max-width: 100px; --toast-background-color: pink; --green: #ef5350; } ``` #### 问题 1.如果微信开发工具预览报错,可以先删除项目目录下的 weapp 文件夹再重新运行项目,可能是因为有缓存问题