1
Showing
1 changed file
with
12 additions
and
1 deletions
| ... | @@ -20,30 +20,37 @@ const router = useRouter(); | ... | @@ -20,30 +20,37 @@ const router = useRouter(); |
| 20 | const status = reactive({ | 20 | const status = reactive({ |
| 21 | 0: { | 21 | 0: { |
| 22 | txt: "待支付", | 22 | txt: "待支付", |
| 23 | text_en: "Pending Payment", | ||
| 23 | color: "#F740A6", | 24 | color: "#F740A6", |
| 24 | bgColor: "#FFE2F2", | 25 | bgColor: "#FFE2F2", |
| 25 | }, | 26 | }, |
| 26 | 1: { | 27 | 1: { |
| 27 | txt: "购票成功", | 28 | txt: "购票成功", |
| 29 | text_en: "Transaction completed", | ||
| 28 | color: "#FFCC00", | 30 | color: "#FFCC00", |
| 29 | bgColor: "#FFF7D9", | 31 | bgColor: "#FFF7D9", |
| 30 | }, | 32 | }, |
| 31 | 2: { | 33 | 2: { |
| 32 | txt: "交易关闭", | 34 | txt: "交易关闭", |
| 35 | text_en: "Transaction closed", | ||
| 33 | color: "#757575", | 36 | color: "#757575", |
| 34 | bgColor: "#DDDDDD", | 37 | bgColor: "#DDDDDD", |
| 35 | }, | 38 | }, |
| 36 | 3: { | 39 | 3: { |
| 37 | txt: "已退款", | 40 | txt: "已退款", |
| 41 | text_en: "Already refunded", | ||
| 38 | color: "#757575", | 42 | color: "#757575", |
| 39 | bgColor: "#DDDDDD", | 43 | bgColor: "#DDDDDD", |
| 40 | }, | 44 | }, |
| 41 | 4: { | 45 | 4: { |
| 46 | txt: "退款中", | ||
| 47 | text_en: "In the process of refunding", | ||
| 42 | color: "#F740A6", | 48 | color: "#F740A6", |
| 43 | bgColor: "#FFE2F2", | 49 | bgColor: "#FFE2F2", |
| 44 | }, | 50 | }, |
| 45 | 5: { | 51 | 5: { |
| 46 | txt: "完成", | 52 | txt: "完成", |
| 53 | text_en: "Finish", | ||
| 47 | color: "#34C759", | 54 | color: "#34C759", |
| 48 | bgColor: "#D2FFDD", | 55 | bgColor: "#D2FFDD", |
| 49 | }, | 56 | }, |
| ... | @@ -358,7 +365,11 @@ detail.fetchData(); | ... | @@ -358,7 +365,11 @@ detail.fetchData(); |
| 358 | class="value" | 365 | class="value" |
| 359 | :style="{ color: status[detail.data?.state]?.color }" | 366 | :style="{ color: status[detail.data?.state]?.color }" |
| 360 | > | 367 | > |
| 361 | {{ status[detail.data?.state]?.txt }} | 368 | {{ |
| 369 | language == 0 | ||
| 370 | ? status[detail.data?.state]?.txt | ||
| 371 | : status[detail.data?.state]?.text_en | ||
| 372 | }} | ||
| 362 | </div> | 373 | </div> |
| 363 | </div> | 374 | </div> |
| 364 | <div class="cell"> | 375 | <div class="cell"> | ... | ... |
-
Please register or sign in to post a comment