修改国际版本
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
getExpressReturnDetail,
|
||||
fillExpressTrackingNumber
|
||||
} from '@/config/api/expressReturn.js'
|
||||
import { useI18n } from '@/utils/i18n.js'
|
||||
import { useI18n, showModalI18n } from '@/utils/i18n.js'
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
const rec = res.data
|
||||
if (rec.status === 0) {
|
||||
recordId.value = rec.id
|
||||
uni.showModal({
|
||||
showModalI18n({
|
||||
title: t('common.tips'),
|
||||
content: t('express.existingReturnNotice'),
|
||||
confirmText: t('express.goToFill'),
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { getExpressReturnDetail } from '@/config/api/expressReturn.js'
|
||||
import { getCustomerPhone } from '@/util/index.js'
|
||||
import { useI18n } from '@/utils/i18n.js'
|
||||
import { useI18n, showModalI18n } from '@/utils/i18n.js'
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
@@ -164,7 +164,7 @@ const handleCopyTracking = () => {
|
||||
// 联系客服
|
||||
const handleContactService = () => {
|
||||
const customerPhone = getCustomerPhone()
|
||||
uni.showModal({
|
||||
showModalI18n({
|
||||
title: t('user.customerService'),
|
||||
content: `${t('help.phone')}:${customerPhone}\n${t('help.workingHours')}:${t('express.workingHours')}`,
|
||||
confirmText: t('express.call'),
|
||||
|
||||
@@ -67,8 +67,7 @@ onMounted(() => {
|
||||
loadList()
|
||||
})
|
||||
|
||||
// 收件信息
|
||||
const recipientName = '风电者 18163601305'
|
||||
// 收件信息(名称走多语言,地址暂为固定配置)
|
||||
const recipientAddress = '湖南省长沙市岳麓区麓谷街道新长海尖科技园A2栋623'
|
||||
|
||||
const loadList = async () => {
|
||||
@@ -131,7 +130,7 @@ const getStatusBadge = (status) => ({
|
||||
|
||||
// 一键复制全部信息
|
||||
const copyAllInfo = () => {
|
||||
const allInfo = `${t('express.recipient')}:${recipientName}\n${t('express.recipientAddressLabel')}:${recipientAddress}`
|
||||
const allInfo = `${t('express.recipient')}:${t('express.recipientName')}\n${t('express.recipientAddressLabel')}:${recipientAddress}`
|
||||
uni.setClipboardData({
|
||||
data: allInfo,
|
||||
success: () => {
|
||||
|
||||
@@ -152,6 +152,7 @@
|
||||
import {
|
||||
URL
|
||||
} from "@/config/url.js"
|
||||
import { showModalI18n } from '@/utils/i18n.js'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -411,7 +412,7 @@
|
||||
this.clearExpressCountdown()
|
||||
|
||||
// 显示归还成功弹窗
|
||||
uni.showModal({
|
||||
showModalI18n({
|
||||
title: this.$t('order.returnSuccess'),
|
||||
content: this.$t('order.returnSuccessMessage'),
|
||||
confirmText: this.$t('order.viewDetails'),
|
||||
@@ -793,7 +794,7 @@
|
||||
|
||||
// 取消订单
|
||||
handleCancelOrder() {
|
||||
uni.showModal({
|
||||
showModalI18n({
|
||||
title: this.$t('order.confirmCancel'),
|
||||
content: this.$t('order.confirmCancelContent'),
|
||||
success: async (res) => {
|
||||
|
||||
Reference in New Issue
Block a user