GithubHelp home page GithubHelp logo

polarisa / weapp-clover Goto Github PK

View Code? Open in Web Editor NEW

This project forked from faurewu/weapp-clover

0.0 3.0 0.0 829 KB

由零打造的,基于taro,zoro的电商小程序实战项目

License: MIT License

JavaScript 78.87% CSS 19.36% HTML 1.78%

weapp-clover's Introduction

四叶草庄园

启动项目

本项目基于ztaro脚手架快速搭建 如何启动请直接查看ztaro中微信小程序部分,h5部分未做适配

项目演示

技术链接

  • zoro redux框架
  • taro 微信小程序框架taro
  • ztaro taro快速启动脚手架

已开发的需求

  • 项目脚手架搭建
  • 登录机制实现
  • 首页
    • 首页资源位
    • 首页品牌推荐
    • 推荐商品

计划需求

  • 商店
    • 品牌列表
    • 品牌商品列表
  • 商品详情
  • 购物车
  • 订单结算,支付
  • 我的
    • 会员信息
    • 客服
    • 关注公众号
    • 新人福利群
  • 地址管理
  • 订单
    • 全部
    • 待付款
    • 待发货
    • 待收货
    • 已完成
    • 已取消

TAB_PAGE 参数说明

__TAB_PAGE__参数用于标记该页面是否是一个微信小程序tabbar页面

由于本地缓存了token,然而token是有时效性的 当缓存的token过期时,服务端api返回401,此时前端处理流程如下:

  • 跳转重新登录页面Taro.redirectTo({ url: /pages/relogin/relogin?redirectUrl=...&isTabbar=true })
  • 重新登录页面调用登录接口,登录完成后,读取redirectUrl, isTabbar参数
  • 如果isTabbar为真,需调用Taro.switchTab,否则调用Taro.redirectTo,重载之前的页面

开发交流

请添加微信 Faure5,备注 weapp-clover 开源不易,如果好用,欢迎star

License

MIT

weapp-clover's People

Contributors

faurewu avatar

Watchers

James Cloos avatar _HuiWen avatar Pan 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.