解决可以同时选择S+V票

master
Jimmy Liow 11 months ago
parent 41f8539467
commit 8a8e065bde

@ -6,8 +6,8 @@ on:
branches: [ master ] branches: [ master ]
jobs: jobs:
gh-win-us-deploy: gh-win-cn-deploy:
name: 🎉 Deploy InfoSys to US name: 🎉 Deploy InfoSys to CN
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: 🚚 Get latest code - name: 🚚 Get latest code
@ -16,13 +16,14 @@ jobs:
- name: 📂 Sync files to CHT - name: 📂 Sync files to CHT
uses: SamKirkland/FTP-Deploy-Action@v4.3.4 uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with: with:
server: ${{ secrets.US_FTP_SERVER }} server: ${{ secrets.CN_FTP_SERVER }}
username: ${{ secrets.US_FTP_USER }} username: ${{ secrets.CN_FTP_USER }}
password: ${{ secrets.US_FTP_PASSWORD }} password: ${{ secrets.CN_FTP_PASSWORD }}
port: ${{ secrets.US_FTP_PORT }} port: ${{ secrets.CN_FTP_PORT }}
local-dir: ./ local-dir: ./
server-dir: /information-system/ server-dir: /wwwroot/origin-cht.mycht.cn/
# dry-run: true # dry-run: true
# log-level: verbose
exclude: | exclude: |
**/.git* **/.git*
**/.git*/** **/.git*/**
@ -36,7 +37,16 @@ jobs:
*.exe *.exe
*.docx *.docx
.ftp-deploy-sync-state.json .ftp-deploy-sync-state.json
- name: 📂 Sync files to CT
gh-win-us-deploy:
needs: gh-win-cn-deploy
name: 🎉 Deploy InfoSys to US
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
- name: 📂 Sync files to CHT
uses: SamKirkland/FTP-Deploy-Action@v4.3.4 uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with: with:
server: ${{ secrets.US_FTP_SERVER }} server: ${{ secrets.US_FTP_SERVER }}
@ -44,7 +54,7 @@ jobs:
password: ${{ secrets.US_FTP_PASSWORD }} password: ${{ secrets.US_FTP_PASSWORD }}
port: ${{ secrets.US_FTP_PORT }} port: ${{ secrets.US_FTP_PORT }}
local-dir: ./ local-dir: ./
server-dir: /origin-ct.mycht.cn/ server-dir: /information-system/
# dry-run: true # dry-run: true
exclude: | exclude: |
**/.git* **/.git*
@ -59,26 +69,16 @@ jobs:
*.exe *.exe
*.docx *.docx
.ftp-deploy-sync-state.json .ftp-deploy-sync-state.json
- name: 📂 Sync files to CT
gh-win-cn-deploy:
needs: gh-win-us-deploy
name: 🎉 Deploy InfoSys to CN
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
- name: 📂 Sync files to CHT
uses: SamKirkland/FTP-Deploy-Action@v4.3.4 uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with: with:
server: ${{ secrets.CN_FTP_SERVER }} server: ${{ secrets.US_FTP_SERVER }}
username: ${{ secrets.CN_FTP_USER }} username: ${{ secrets.US_FTP_USER }}
password: ${{ secrets.CN_FTP_PASSWORD }} password: ${{ secrets.US_FTP_PASSWORD }}
port: ${{ secrets.CN_FTP_PORT }} port: ${{ secrets.US_FTP_PORT }}
local-dir: ./ local-dir: ./
server-dir: /wwwroot/origin-cht.mycht.cn/ server-dir: /origin-ct.mycht.cn/
# dry-run: true # dry-run: true
# log-level: verbose
exclude: | exclude: |
**/.git* **/.git*
**/.git*/** **/.git*/**
@ -93,6 +93,8 @@ jobs:
*.docx *.docx
.ftp-deploy-sync-state.json .ftp-deploy-sync-state.json
hn-notification: hn-notification:
needs: gh-win-cn-deploy needs: gh-win-cn-deploy
name: 🔔 Send notificaiton name: 🔔 Send notificaiton

@ -32,7 +32,7 @@
</label> </label>
</div> </div>
<div class="optionLable" id="ticket_type_vip_khomloy"> <div class="optionLable" id="ticket_type_vip_khomloy">
<input type="radio" value="VIP+Transfer+Dinner" id="vip_khomloy" data-price="179" name="ticket_type" checked> <input type="radio" value="VIP+Transfer+Dinner" id="vip_khomloy" data-price="179" name="ticket_type">
<label for="vip_khomloy" style="font-size:18px;"> <label for="vip_khomloy" style="font-size:18px;">
VIP+Transfer+Dinner VIP+Transfer+Dinner
<div class="selectionMemo"> <div class="selectionMemo">
@ -41,7 +41,7 @@
</label> </label>
</div> </div>
<div class="optionLable" id="ticket_type_standard_khomloy"> <div class="optionLable" id="ticket_type_standard_khomloy">
<input type="radio" disabled ="Standard+Transfer+Dinner" id="standard_khomloy" data-price="139" name="ticket_type" value="Standard+Transfer+Dinner"> <input type="radio" id="standard_khomloy" data-price="139" name="ticket_type" value="Standard+Transfer+Dinner">
<label for="standard_khomloy" style="font-size:18px;"> <label for="standard_khomloy" style="font-size:18px;">
Standard+Transfer+Dinner Standard+Transfer+Dinner
<div class="selectionMemo"> <div class="selectionMemo">
@ -426,7 +426,6 @@
var ticket_date_november16th = document.getElementById("ticket_date_november16th"); var ticket_date_november16th = document.getElementById("ticket_date_november16th");
ticket_date_november15th.addEventListener('click', function () { ticket_date_november15th.addEventListener('click', function () {
console.log("ticket_date_november15th clicked");
// 先移除旧的标签 // 先移除旧的标签
removeExistingLabels("ticket_type_premium_khomloy", "dynamic-label"); removeExistingLabels("ticket_type_premium_khomloy", "dynamic-label");
removeExistingLabels("ticket_type_vip_khomloy", "dynamic-label"); removeExistingLabels("ticket_type_vip_khomloy", "dynamic-label");
@ -442,6 +441,10 @@
if (standardInput) { if (standardInput) {
standardInput.disabled = true; standardInput.disabled = true;
} }
var vip_khomloy = document.getElementById("vip_khomloy");
if (vip_khomloy) {
vip_khomloy.checked = true;
}
var premiumInput = document.getElementById("premium_khomloy"); var premiumInput = document.getElementById("premium_khomloy");
if (premiumInput) { if (premiumInput) {
premiumInput.disabled = true; premiumInput.disabled = true;
@ -449,7 +452,6 @@
}); });
ticket_date_november16th.addEventListener('click', function () { ticket_date_november16th.addEventListener('click', function () {
console.log("ticket_date_november16th clicked");
// 先移除旧的标签 // 先移除旧的标签
removeExistingLabels("ticket_type_premium_khomloy", "dynamic-label"); removeExistingLabels("ticket_type_premium_khomloy", "dynamic-label");
removeExistingLabels("ticket_type_vip_khomloy", "dynamic-label"); removeExistingLabels("ticket_type_vip_khomloy", "dynamic-label");
@ -464,6 +466,10 @@
if (standardInput) { if (standardInput) {
standardInput.disabled = false; standardInput.disabled = false;
} }
var vip_khomloy = document.getElementById("vip_khomloy");
if (vip_khomloy) {
vip_khomloy.checked = true;
}
var premiumInput = document.getElementById("premium_khomloy"); var premiumInput = document.getElementById("premium_khomloy");
if (premiumInput) { if (premiumInput) {
premiumInput.disabled = false; premiumInput.disabled = false;

Loading…
Cancel
Save