Giter Club home page Giter Club logo

mall-coupons's Introduction

mall-coupons

  • 为商场购物的顾客以及商家提供的优惠券小程序
  • 用户可以在商场的大屏幕或者其他海报上扫描二维码,打开小程序购买对应的优惠券
  • 在支持优惠券的商家扫描二维码,打开小程序使用优惠券抵扣消费金额

token 令牌维护机制

token 具体代码实现请看 /utlis/token.js

页面介绍

用户的优惠券列表页↓

  • URL: pages/home/home

优惠券详情页↓

  • URL: pages/detail/detail

购买优惠券页↓

  • URL: pages/before-pay/before-pay

优惠券支付完成页↓

  • URL: pages/after-pay/after-pay

扫码商家的二维码,优惠券抵扣消费金额页面↓

  • URL: pages/qr-pay/qr-pay

消费成功页面↓

  • URL: pages/pay-success/pay-success

感谢第三方库

wxParse

TODO

  • model.js 虽然做到了 views 和 model 的分离,但是当 ajax 发生错误时的判断没有交给 model.js 来处理,而是不恰当的放到 views 里判断了。 model.js 应该再过滤和判断一下数据,让 views 只需要拿到自己想到数据,不需要做其他的事。

  • 使用优惠券抵用消费金额时,当总优惠的金额大于消费金额时,应该提示用户

mall-coupons's People

Contributors

zaxlct 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.