9c360d20 by yyx

1

1 parent 725a24fe
......@@ -84,7 +84,7 @@ const payment = reactive({
contactPhone: payment.form.phone,
customerIds: payment.form.viewers,
orderToken: order.data?.orderToken,
payType: 1,
payType: language.value == 0 ? 1 : 2,
paymentAmount: order.data?.paymentAmount,
}).then((res) => {
if (res.data.language == "zh-cn") {
......
......@@ -254,7 +254,9 @@ onMounted(() => {
class="tag"
>
{{
language == 0 ? status[it.state].txt : status[it.state].text_en
language == 0
? status[it.state].txt
: status[it.state].text_en
}}
</div>
<div v-if="it.state == 0" class="tip">
......@@ -272,9 +274,11 @@ onMounted(() => {
</div>
</div>
<div v-if="it.state == 0" class="btn_box">
<div class="pay">立即支付</div>
<div class="pay">
{{ languageFormat(language, "立即支付", "Pay Now") }}
</div>
<div class="can_pay" @click.stop="order.cancelPayment(it)">
取消支付
{{ languageFormat(language, "取消支付", "Cancel the payment") }}
</div>
</div>
</div>
......
......@@ -385,7 +385,9 @@ watch(
]"
@click="select_form.onClickPrice(it)"
>
{{ it.price }}
<span v-if="language == 1"></span>
{{ it.price }}
<span v-if="language == 0"></span>
</div>
</div>
</div>
......
// http.js
// import axios from "axios";
import axios from 'axios/dist/axios'
import axios from "axios/dist/axios";
import { getToken } from "./local-store";
import { ElMessage } from "element-plus";
......@@ -16,7 +16,8 @@ const http = axios.create({
timeout,
headers: {
"Content-Type": "application/json",
Language: 'zh-cn'
Language: "zh-cn",
client: "browser",
},
});
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!