Compare commits

..

4 Commits

Author SHA1 Message Date
xingyy
f1c7c2a66d style(privacyPolicy): 调 2025-02-26 16:17:42 +08:00
xingyy
82eb2de705 refactor(payment): 优化支付页面文案和国际化
- 更新支付页面的标题和提示文案
-优化国际化文案,支持多语言- 调整支付金额输入框的占位符文案
- 统一"支付全部"和
2025-02-26 15:45:27 +08:00
xingyy
ffd4f50920 refactor(i18n):调整收集码签署结果页面文案并修复支付页面跳转逻辑
- 修改收集码签署结果页面的标题和提示文案
-修复支付页面的成功跳转逻辑- 新增国际化文案
2025-02-26 15:38:07 +08:00
xingyy
24d9673b14 1231 2025-02-26 15:18:54 +08:00
4 changed files with 11 additions and 9 deletions

View File

@ -6,7 +6,7 @@ const { t } = useI18n();
const {formData,number}=codeAuthStore() const {formData,number}=codeAuthStore()
const auctionUserNo=ref('') const auctionUserNo=ref('')
definePageMeta({ definePageMeta({
i18n: 'collectCode.signature.result.title' i18n: 'collectCode.signature.title'
}) })
const res=await sessionUserNoCreate({ const res=await sessionUserNoCreate({
phone:formData.value.phone phone:formData.value.phone
@ -19,8 +19,8 @@ if (res.status===0){
<template> <template>
<div class="w-[100vw] h-screen-nav bg-[url('@/static/images/3532@2x.png')] bg-cover flex-grow-1 flex flex-col items-center pt-183px px-30px"> <div class="w-[100vw] h-screen-nav bg-[url('@/static/images/3532@2x.png')] bg-cover flex-grow-1 flex flex-col items-center pt-183px px-30px">
<div class="flex flex-col items-center pt-18px px-31px"> <div class="flex flex-col items-center pt-18px px-31px">
<div class="text-#000 text-16px mb-4px">{{ t('collectCode.signature.result.success') }}</div> <div class="text-#000 text-16px mb-4px">{{ t('signature.protocol.success') }}</div>
<div class="text-#939393 text-12px mb-31px">&nbsp&nbsp&nbsp{{ t('collectCode.signature.result.getNumber') }}&nbsp&nbsp&nbsp</div> <div class="text-#939393 text-12px mb-31px">&nbsp&nbsp&nbsp{{ t('collectCode.signature.resultText') }}&nbsp&nbsp&nbsp</div>
<div class="relative"> <div class="relative">
<img class="w-258px h-144px" src="@/static/images/zu6020@2x.png" alt=""> <img class="w-258px h-144px" src="@/static/images/zu6020@2x.png" alt="">
<div class="absolute text-#FDD68D text-68px bottom-1px left-1/2 transform translate-x--1/2">{{auctionUserNo}}</div> <div class="absolute text-#FDD68D text-68px bottom-1px left-1/2 transform translate-x--1/2">{{auctionUserNo}}</div>

View File

@ -10,6 +10,7 @@ const payStatus=ref(0)
definePageMeta({ definePageMeta({
i18n: 'payment.title' i18n: 'payment.title'
}) })
const {t}=useI18n()
const router=useRouter() const router=useRouter()
const changePayStatus=()=>{ const changePayStatus=()=>{
payStatus.value=payStatus.value===0?1:0 payStatus.value=payStatus.value===0?1:0
@ -72,12 +73,12 @@ const handleInput = (e) => {
<div class="mb-30px"> <div class="mb-30px">
<img class="w-126px h-126px" src="@/static/images/dddf34@2x.png" alt=""> <img class="w-126px h-126px" src="@/static/images/dddf34@2x.png" alt="">
</div> </div>
<div class="text-#1A1A1A text-16px mb-25px font-bold">{{payStatus===0 ? t('payment.payAll') : t('payment.payPartial')}}</div> <div class="text-#1A1A1A text-16px mb-25px font-bold">{{payStatus===0 ? t('payment.fullPayment') : t('payment.partialPayment')}}</div>
<div class="text-#999999 text-16px mb-24px font-bold" v-if="payStatus===0">{{payment.leftCurrency}} {{payment?.leftPrice}}</div> <div class="text-#999999 text-16px mb-24px font-bold" v-if="payStatus===0">{{payment.leftCurrency}} {{payment?.leftPrice}}</div>
<div class="mb-12px" v-else> <div class="mb-12px" v-else>
<input v-model="amount" class="w-272px h-48px bg-#F3F3F3 px-11px text-16px" type="text" :placeholder="`最多${payment.leftCurrency}${payment?.leftPrice}`" @input="handleInput"> <input v-model="amount" class="w-272px h-48px bg-#F3F3F3 px-11px text-16px" type="text" :placeholder="`${t('payment.placeholder.amount')}${payment.leftCurrency}${payment?.leftPrice}`" @input="handleInput">
</div> </div>
<div class="text-#2B53AC text-14px" @click="changePayStatus">{{payStatus===1 ? t('payment.payAll') : t('payment.payPartial')}}</div> <div class="text-#2B53AC text-14px" @click="changePayStatus">{{payStatus===1 ? t('payment.fullPayment') : t('payment.partialPayment')}}</div>
<div class="w-full mt-auto mb-40px"> <div class="w-full mt-auto mb-40px">
<van-button type="primary" block @click="confirmPay"> <van-button type="primary" block @click="confirmPay">
{{ t('payment.confirm') }} {{ t('payment.confirm') }}

View File

@ -6,7 +6,7 @@ definePageMeta({
</script> </script>
<template> <template>
<div class="px-10px py-20px"><iframe class="w-full h-100vh" src="/privacyPolicy.html"></iframe></div> <div class="px-10px pt-20px pb-60px"><iframe class="w-full h-100vh" src="/privacyPolicy.html"></iframe></div>
</template> </template>
<style scoped> <style scoped>

View File

@ -258,7 +258,7 @@
"systemError": "系统错误,请稍后重试" "systemError": "系统错误,请稍后重试"
}, },
"placeholder": { "placeholder": {
"amount": "最多{currency}{price}" "amount": "最多"
}, },
"amount": "支付金额" "amount": "支付金额"
}, },
@ -411,11 +411,12 @@
"fullPayment": "支付全部", "fullPayment": "支付全部",
"partialPayment": "支付部分", "partialPayment": "支付部分",
"confirmPayment": "确认支付", "confirmPayment": "确认支付",
"maxAmount": "最多{currency}{price}", "text1": "最多",
"enterAmount": "请输入金额", "enterAmount": "请输入金额",
"exceedTotal": "不得高于全部金额" "exceedTotal": "不得高于全部金额"
}, },
"signature": { "signature": {
"resultText": "领取您的专属号牌",
"title": "签署", "title": "签署",
"back": "返回", "back": "返回",
"clear": "清空", "clear": "清空",