{"id":16104772,"url":"https://github.com/kele59/mall-coupons","last_synced_at":"2025-10-04T17:47:13.909Z","repository":{"id":79453739,"uuid":"97203852","full_name":"kele59/mall-coupons","owner":"kele59","description":"商场优惠券微信小程序，扫码购买优惠券抵用消费金额","archived":false,"fork":false,"pushed_at":"2017-11-27T01:46:54.000Z","size":110,"stargazers_count":51,"open_issues_count":1,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T08:51:07.718Z","etag":null,"topics":["javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kele59.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-14T07:03:09.000Z","updated_at":"2024-06-13T03:07:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e4f16cd-fffe-492f-afc4-cc9f9b4948ba","html_url":"https://github.com/kele59/mall-coupons","commit_stats":{"total_commits":63,"total_committers":1,"mean_commits":63.0,"dds":0.0,"last_synced_commit":"07eca014d707e357c2dcb975ca46750e49a2c55b"},"previous_names":["kele59/mall-coupons"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kele59/mall-coupons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kele59%2Fmall-coupons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kele59%2Fmall-coupons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kele59%2Fmall-coupons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kele59%2Fmall-coupons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kele59","download_url":"https://codeload.github.com/kele59/mall-coupons/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kele59%2Fmall-coupons/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278350797,"owners_count":25972671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript"],"created_at":"2024-10-09T19:06:15.591Z","updated_at":"2025-10-04T17:47:13.853Z","avatar_url":"https://github.com/kele59.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mall-coupons\n- 为商场购物的顾客以及商家提供的优惠券小程序\n- 用户可以在商场的大屏幕或者其他海报上扫描二维码，打开小程序购买对应的优惠券\n- 在支持优惠券的商家扫描二维码，打开小程序使用优惠券抵扣消费金额\n\n## token 令牌维护机制\n![token](https://ws1.sinaimg.cn/large/006tNc79ly1fhuqb7porej317s0pan1d.jpg)\n具体代码实现请看 `/utlis/token.js`\n\n## 页面介绍\n### 用户的优惠券列表页↓\n- URL: `pages/home/home` \n- \u003cimg src=\"https://ws3.sinaimg.cn/large/006tNc79ly1fhjfy8axygj30ki0vg40s.jpg\" width=\"450\" /\u003e\n\n### 优惠券详情页↓\n- URL: `pages/detail/detail`\n- \u003cimg src=\"https://ws4.sinaimg.cn/large/006tNc79ly1fhjfzoj6dzj30ku0zqq8e.jpg\" width=\"450\" /\u003e\n\n### 购买优惠券页↓\n- URL: `pages/before-pay/before-pay`\n- \u003cimg src=\"https://ws2.sinaimg.cn/large/006tNc79ly1fhjg22bk0qj30kw0li759.jpg\" width=\"450\" /\u003e\n\n### 优惠券支付完成页↓\n- URL: `pages/after-pay/after-pay`\n- \u003cimg src=\"https://ws4.sinaimg.cn/large/006tNc79ly1fhjg35gpc1j30ks0rudi4.jpg\" width=\"450\" /\u003e\n\n### 扫码商家的二维码，优惠券抵扣消费金额页面↓\n- URL: `pages/qr-pay/qr-pay`\n- \u003cimg src=\"https://ws1.sinaimg.cn/large/006tNc79ly1fhjg4dhddxj30ki0xo76j.jpg\" width=\"450\" /\u003e\n\n### 消费成功页面↓\n- URL: `pages/pay-success/pay-success` \n- \u003cimg src=\"https://ws4.sinaimg.cn/large/006tNc79ly1fhjg557vnej30ky0nwq46.jpg\" width=\"450\" /\u003e\n\n\n## 感谢第三方库\n[wxParse](微信小程序富文本解析自定义组件)\n\n## TODO\n- model.js 虽然做到了 views 和 model 的分离，但是当 ajax 发生错误时的判断没有交给 model.js 来处理，而是不恰当的放到 views 里判断了。\nmodel.js 应该再过滤和判断一下数据，让 views 只需要拿到自己想到数据，不需要做其他的事。\n\n- 使用优惠券抵用消费金额时，当总优惠的金额大于消费金额时，应该提示用户\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkele59%2Fmall-coupons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkele59%2Fmall-coupons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkele59%2Fmall-coupons/lists"}