# wxSapp **Repository Path**: herrylo/wxSapp ## Basic Information - **Project Name**: wxSapp - **Description**: 🚮🚮Garbage Classification Help Center WxMiniApp || taro框架开发 - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-15 - **Last Updated**: 2023-12-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: TARO, 小程序 ## README ## 垃圾分类小程序 ![taro](https://img.shields.io/badge/-taro%40v2.2.17-orange) ![typescript](https://img.shields.io/badge/-typescript-brightgreen) ![scss](https://img.shields.io/badge/-scss-brightgreen) ![yarn](https://img.shields.io/badge/-yarn%401.12.3-brightgreen) > 垃圾分类查询、垃圾分类小测验、天气预报等功能,后续会开启更多功能。 🚮垃圾分类查询API是调取的别人的,目前支持微信小程序和支付宝小程序。欢迎 👏👏Star!! 如果你之前没有开发过小程序,可以看看我的 [个人小程序开发指南](https://juejin.im/post/5d34888b6fb9a07ef90cd68c) 这篇文章,欢迎交流!! 目前支持了微信小程序CI工具,一键发布,非常的舒适!![我的微信小程序CI工具配置](https://github.com/HerryLo/wxSapp/blob/master/config/upload.wx.js)。可以看看这篇文章介绍:[微信小程序CI工具](https://zhuanlan.zhihu.com/p/147839106) ### 运行开发 ``` npm install // 小程序运行 npm run dev:weapp // 小程序发布 npm run upload-wx ``` ### 小程序二维码 ![img](https://raw.githubusercontent.com/HerryLo/wxSapp/master/img/gh_75d5a8e03369_258.jpg "二维码") [](./img/s6x01351xerl2wqeqhpfn56_55388962.jpg) ### Tips * Node.js * Taro-cli * React * TypeScript * Yarn * 微信小程序CI * 更多方案持续更新。。。 ### 项目 #### ts+react语法 ```JavaScript // page/index.tsx import { ComponentClass, TouchEvent } from 'react' import Taro, { Component, Config } from '@tarojs/taro' import { View, Icon, Input, Button } from '@tarojs/components' import './index.scss' interface Props {} interface State { search: string, keywords: Array, imgList: Array, selectedSort: SelectedSort | null, } class Index extends Component { config: Config = { navigationBarTitleText: '垃圾分类助手', navigationBarTextStyle: 'white', navigationBarBackgroundColor: '#2c7cf7' } constructor (props) { super(props) ...... ``` #### scss语法 ```scss .index-container { padding: 50rpx 50rpx; background: #fff; & .img-container { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-around; margin-top: 40rpx; } & .inconImage { width: 220rpx; height: 220rpx; margin: 20rpx 40rpx 20rpx 40rpx; } ...... ```