├── pages ├── home │ ├── home.json │ ├── home.wxml │ ├── home.wxss │ ├── home-model.js │ └── home.js ├── detail │ ├── detail.json │ ├── detail-model.js │ ├── detail.js │ ├── detail.wxss │ └── detail.wxml ├── qr-pay │ ├── qr-json.json │ ├── qr-pay-model.js │ ├── qr-pay.wxml │ ├── qr-pay.js │ └── qr-pay.wxss ├── after-pay │ ├── after-pay.json │ ├── after-pay.js │ ├── after-pay.wxss │ └── after-pay.wxml ├── before-pay │ ├── before-pay.json │ ├── before-pay-model.js │ ├── before-pay.wxml │ ├── before-pay.wxss │ └── before-pay.js └── pay-success │ ├── pay-success.json │ ├── pay-success.wxss │ ├── pay-success.js │ └── pay-success.wxml ├── jsconfig.json ├── utils ├── config.js ├── base.js └── token.js ├── app.js ├── app.json ├── common ├── coupon │ ├── index.wxml │ └── index.wxss └── wxParse │ ├── wxParse.wxss │ ├── wxParse.js │ ├── htmlparser.js │ ├── wxDiscode.js │ ├── html2json.js │ ├── wxParse.wxml │ └── showdown.js ├── app.wxss ├── README.md └── LICENSE /pages/home/home.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "我的优惠券" 3 | } -------------------------------------------------------------------------------- /pages/detail/detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "优惠券详情" 3 | } -------------------------------------------------------------------------------- /pages/qr-pay/qr-json.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "支付" 3 | } -------------------------------------------------------------------------------- /pages/after-pay/after-pay.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "购买成功" 3 | } -------------------------------------------------------------------------------- /pages/before-pay/before-pay.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "确认订单" 3 | } -------------------------------------------------------------------------------- /pages/pay-success/pay-success.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "支付成功" 3 | } -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es2015", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /utils/config.js: -------------------------------------------------------------------------------- 1 | const Config = { 2 | baseUrl: 'https://gjb.demo.chilunyc.com/api/weapp/', 3 | } 4 | 5 | export default Config -------------------------------------------------------------------------------- /pages/home/home.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 |