GithubHelp home page GithubHelp logo

Comments (3)

onlinemad avatar onlinemad commented on August 26, 2024

謝謝你的建議,之後可能會在券後面加上週次吧,像是這樣 動滋券[第一週]

from 5000-lottery.

MrOrz avatar MrOrz commented on August 26, 2024

周次換算成對使用者較有意義的日期如何?

活動期間每週五(10/8起)23:59截止加碼券登記,週六00:00以後登記者,將參加次一週抽籤活動。

Ref: https://hpm.5000.gov.tw/cp.aspx?n=211

let coupons = [{
  name: '國旅券 [須在 10/8 前登記]',
  codes: ['21', '32', '98', '67', '97', '410']
}, {
  name: '國旅券 [須在 10/15 前登記]',
  codes: [/* 第二週的號碼 */]
},
// ... 其他周次與其他券 ...
]

(或者在 object 加個欄位記日期,就不用一直在 coupons 重複「[須在 XX 前登記]」)

from 5000-lottery.

LuckyPigeon avatar LuckyPigeon commented on August 26, 2024

@MrOrz @onlinemad 直接改成這樣如何,就不用選週次了
image

from 5000-lottery.

Related Issues (7)

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.