Giter Site home page Giter Site logo

gushitaro's Introduction

古诗文小助手(微信小程序)

这个是学古诗 网站的微信小程序。

该小程序的目的是为了大家更方便简洁的学习**传统古诗文,同时通过这些代码更多的学习使用小程序。

该项目为 Taro 重构版,原版本 在项目上线后会不再维护。

项目当前第一版已于2023年12月4日上线。

拼音转换

使用的是这个库:pinyin-pro ,然后再腾讯云配合云函数实现的。

拼音接口是按量收费的,恳请大家手下留情,不要暴力爬取!!!本来赚那点广告费,这样搞有些服务只能停掉了!!!

关于 Taro

Taro 是一个开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发 微信 / 京东 / 百度 / 支付宝 / 字节跳动 / QQ / 飞书 小程序 / H5 / RN 等应用。

Taro 版本更新

taro info 查看当前cli和项目的版本。 使用 taro update self [版本号]taro update project [版本号] 来更新cli和项目的taro 版本。

文件目录

  • apis

    API 接口统一请求文件

  • component

    此目录是自定义组件部分

  • const

    此目录是常用变量,包括:朝代、分类等数据

  • images

    此目录下是小程序所用的一些图标,可以的话可以改为雪碧图。

  • hooks

    此目录下是一些自定义 hook

  • pages

    此目录下为小程序主要内容,各页面 View 和 js 文件

  • services

    API 请求实例,该目录主要存放全局请求相关的方法。页面相关的在相应目录下会存在 service.js 各自维护。

  • utils

    自己封装的一些工具函数

作者

👤 johnnyzhang1992

Show your support

Give a ⭐️ if this project helped you!

License

Copyright © 2024 johnnyzhang1992.


注意事项

  • API 请求返回的数据尽量简洁
  • 使用定时器时,当退出当前页面时应该注销(onHide,onUnload)
  • 多页面引入相同的组件时,引入顺序要保存一致。
  • scss 编写,尽量使用嵌套,否则会出现覆盖问题。(common.css 和 app-origin.css)

API 使用指南

  • API Get 类的方法可以正常使用,POST 类的请求需要用户 openid 不建议使用(例如:收藏以及个人中心相关接口。
  • 用户创建失败的问题。创建用户的逻辑涉及后端解密(和项目的 appid 有关,不同的项目 appid 不同),会导致解密失败,从而导致用户创建失败。

小程序二维码

古诗文小助手

gushitaro's People

Contributors

johnnyzhang1992 avatar

Stargazers

 avatar zhen.gong avatar  avatar xlijun avatar  avatar  avatar x avatar

Watchers

 avatar  avatar

Forkers

bxxasn

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.