GithubHelp home page GithubHelp logo

gruiyuan / wxsapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from herrylo/wxsapp

0.0 0.0 0.0 3.77 MB

🚮🚮Garbage Classification Help Center WxMiniApp || taro框架开发

License: MIT License

JavaScript 1.77% TypeScript 91.32% HTML 0.56% SCSS 6.36%

wxsapp's Introduction

垃圾分类小程序

taro typescript scss yarn

垃圾分类查询、垃圾分类小测验、天气预报等功能,后续会开启更多功能。

🚮垃圾分类查询API是调取的别人的,目前支持微信小程序和支付宝小程序。欢迎 👏👏Star!!

如果你之前没有开发过小程序,可以看看我的 个人小程序开发指南 这篇文章,欢迎交流!!

目前支持了微信小程序CI工具,一键发布,非常的舒适!!我的微信小程序CI工具配置。可以看看这篇文章介绍:微信小程序CI工具

运行开发

npm install

// 小程序运行
npm run dev:weapp

// 小程序发布
npm run upload-wx

小程序二维码

img

Tips

  • Node.js
  • Taro-cli
  • React
  • TypeScript
  • Yarn
  • 微信小程序CI
  • 更多方案持续更新。。。

项目

ts+react语法

// 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<string>,
    imgList: Array<string>,
    selectedSort: SelectedSort | null,
}

class Index extends Component <Props,State>   {
  config: Config = {
    navigationBarTitleText: '垃圾分类助手',
    navigationBarTextStyle: 'white',
    navigationBarBackgroundColor: '#2c7cf7'
  }

  constructor (props) {
    super(props)
    ......

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;
    }
    ......

wxsapp's People

Contributors

dependabot[bot] avatar herrylo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.