|
|
@@ -86,7 +86,7 @@
|
|
|
<uni-col :span="24">
|
|
|
<view class="crm-title-box">
|
|
|
<text class="tit">{{ t('ImproveImmediately.Title.AddressInformation') }}</text>
|
|
|
- <uni-tooltip placement="top">
|
|
|
+ <uni-tooltip :placement="isMobile?'left':'top'">
|
|
|
<text class="icon-tip">ⓘ</text>
|
|
|
<template v-slot:content>
|
|
|
<view class="address-tip">
|
|
|
@@ -227,7 +227,7 @@
|
|
|
<uni-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
|
|
|
<view class="crm-title-box">
|
|
|
<text class="tit">{{ t('ImproveImmediately.Title.ProofIdentityUpdate') }}</text>
|
|
|
- <uni-tooltip placement="bottom">
|
|
|
+ <uni-tooltip :placement="isMobile?'left':'bottom'">
|
|
|
<text class="icon-tip">ⓘ</text>
|
|
|
<template v-slot:content>
|
|
|
<view class="address-tip">
|
|
|
@@ -242,7 +242,7 @@
|
|
|
:placeholder="t('placeholder.choose')" />
|
|
|
</uni-forms-item>
|
|
|
<uni-row class="demo-uni-row uni-row1" :gutter="20">
|
|
|
- <uni-col :xs="24" :sm="24" :md="10" :lg="10" :xl="10">
|
|
|
+ <uni-col :xs="24" :sm="24" :md="10" :lg="10" :xl="10" class="mb-3">
|
|
|
<cwg-file-picker-wrapper v-model="fileListID1.path" :editable="fileListID1.status != 2" :limit="1"
|
|
|
:fileMediatype="'all'" uploadUrl="/custom/file/upload/1" :baseUrl="updateUrl" :imageWidth="150"
|
|
|
:imageHeight="150" :showPreviewDelete="false" :canDelete="false" :uploadError="false"
|
|
|
@@ -298,7 +298,7 @@
|
|
|
<uni-col v-if="isPC" :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
|
|
|
<view class="crm-title-box">
|
|
|
<text class="tit">{{ t('ImproveImmediately.Title.MobileDeviceUpload') }}</text>
|
|
|
- <uni-tooltip placement="bottom">
|
|
|
+ <uni-tooltip :placement="isMobile?'left':'bottom'">
|
|
|
<text class="icon-tip">ⓘ</text>
|
|
|
<template v-slot:content>
|
|
|
<view class="address-tip">
|
|
|
@@ -623,8 +623,14 @@
|
|
|
<view class="des1">{{ t('ImproveImmediately.Content.Leave1') }}</view>
|
|
|
<view class="des2">{{ t('ImproveImmediately.Content.Leave2') }}</view>
|
|
|
<view class="dialog-footer">
|
|
|
- <u-button @click="closeDia">{{ t('Btn.TemporarilyNot') }}</u-button>
|
|
|
- <u-button type="primary" @click="save">{{ t('Btn.Save') }}</u-button>
|
|
|
+ <view class="btn-content">
|
|
|
+ <button class="cancel-btn" @click="closeDia">
|
|
|
+ {{ t('Btn.TemporarilyNot') }}
|
|
|
+ </button>
|
|
|
+ <button class="confirm-btn primary" @click="save">
|
|
|
+ {{ t('Btn.Save') }}
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="dia-content" v-if="!dialogCheck1">
|
|
|
@@ -634,11 +640,18 @@
|
|
|
<view class="des1">{{ t('ApplicationDialog.Des1') }}</view>
|
|
|
<QrCode v-if="text1" :text="text1"></QrCode>
|
|
|
<view class="dialog-footer">
|
|
|
- <button @click="closeDia">{{ t('Btn.Cancel') }}</button>
|
|
|
- <button type="primary" @click="toHome">{{ t('Btn.Home') }}</button>
|
|
|
+ <view class="btn-content">
|
|
|
+ <button class="cancel-btn" @click="closeDia">
|
|
|
+ {{ t('Btn.Cancel') }}
|
|
|
+ </button>
|
|
|
+ <button class="confirm-btn primary" @click="toHome">
|
|
|
+ {{ t('Btn.Home') }}
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
+ <cwg-global-popup/>
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
@@ -657,7 +670,9 @@ import icon_doc from '@/static/icons/crm-document.svg'
|
|
|
import icon_refresh from '@/static/icons/crm-refresh.svg'
|
|
|
import icon_mobile from '@/static/icons/icon_mobile.svg'
|
|
|
import icon_arrowR from '@/static/icons/icon_arrowR.svg'
|
|
|
-
|
|
|
+import { useWindowWidth } from '@/composables/useWindowWidth'
|
|
|
+import { usePopup } from '@/hooks/usePopup'
|
|
|
+const { confirm , toast } = usePopup()
|
|
|
const router = useRouter()
|
|
|
const { t, locale } = useI18n()
|
|
|
const currentStep = ref<number>(3)
|
|
|
@@ -667,6 +682,8 @@ const dialogCheck1 = ref(false)
|
|
|
const text1 = ref('')
|
|
|
const qrCodeStatus = ref(false)
|
|
|
const addressTipPopup = ref()
|
|
|
+const windowWidth = useWindowWidth(300)
|
|
|
+const isMobile = computed(() => windowWidth.value <= 991)
|
|
|
|
|
|
// 新增的响应式数据
|
|
|
const divActiveHelf = ref(false)
|
|
|
@@ -845,18 +862,20 @@ onLoad((options) => {
|
|
|
|
|
|
function goStep(step: number) {
|
|
|
console.log(step, 'step')
|
|
|
+ if (step == 2){
|
|
|
+ if (!formData.value?.identity){
|
|
|
+ toast(t('vaildate.IDCard.empty'))
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
if (step == 4) {
|
|
|
if (currentUploadCard.value == 1) {
|
|
|
if (!formData.value.cardType) {
|
|
|
- uni.showToast({
|
|
|
- title: t('vaildate.CardType.empty'), icon: 'error'
|
|
|
- })
|
|
|
+ toast( t('vaildate.CardType.empty'))
|
|
|
return
|
|
|
}
|
|
|
if (!fileListID1.value.path || !fileListID2.value.path) {
|
|
|
- uni.showToast({
|
|
|
- title: t('vaildate.IDPhoto.empty'), icon: 'error'
|
|
|
- })
|
|
|
+ toast( t('vaildate.IDPhoto.empty'))
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
@@ -1050,27 +1069,24 @@ const showFile = (file) => {
|
|
|
}
|
|
|
|
|
|
async function fileOtherDelete(id) {
|
|
|
- uni.showModal({
|
|
|
+ const result = await confirm({
|
|
|
title: t('Msg.SystemPrompt'),
|
|
|
content: t('Msg.Delete'),
|
|
|
- cancelText: t('Btn.Cancel'),
|
|
|
confirmText: t('Btn.Confirm'),
|
|
|
- success: async (res) => {
|
|
|
- if (res.confirm) {
|
|
|
- // 确认删除
|
|
|
- let data = await personalApi.customFileDelete({ ids: [id] })
|
|
|
- if (data.code == 200) {
|
|
|
- uni.showToast(t('Msg.DeleteSuccess'))
|
|
|
- getCustomFileList()
|
|
|
- } else {
|
|
|
- uni.showToast(res.msg)
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- fail: () => {
|
|
|
-
|
|
|
- },
|
|
|
+ cancelText: t('Btn.Cancel'),
|
|
|
})
|
|
|
+ if (result){
|
|
|
+ try {
|
|
|
+ // 确认删除
|
|
|
+ let data = await personalApi.customFileDelete({ ids: [id] })
|
|
|
+ if (data.code == 200) {
|
|
|
+ uni.showToast(t('Msg.DeleteSuccess'))
|
|
|
+ getCustomFileList()
|
|
|
+ }
|
|
|
+ }catch (e) {
|
|
|
+ uni.showToast(e.msg)
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -1240,7 +1256,7 @@ async function getCountryList() {
|
|
|
}
|
|
|
}
|
|
|
} catch (error: any) {
|
|
|
- uni.showToast({ title: error.message, icon: 'none' })
|
|
|
+ uni.showToast({ title: error.msg, icon: 'none' })
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1595,6 +1611,7 @@ onUnmounted(() => {
|
|
|
justify-content: center;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
.list_upload {
|
|
|
width: px2rpx(150);
|
|
|
height: px2rpx(60);
|
|
|
@@ -1621,12 +1638,16 @@ onUnmounted(() => {
|
|
|
justify-content: center;
|
|
|
align-content: center;
|
|
|
align-items: center;
|
|
|
+ @media screen and (max-width: 990px) {
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
|
|
|
uni-button {
|
|
|
- min-width: px2rpx(100);
|
|
|
- max-height: px2rpx(30);
|
|
|
+ min-width: px2rpx(80);
|
|
|
+ max-height: px2rpx(35);
|
|
|
padding: 0;
|
|
|
- line-height: px2rpx(30);
|
|
|
+ line-height: px2rpx(35);
|
|
|
+ margin-bottom: px2rpx(5);
|
|
|
|
|
|
span,
|
|
|
a {
|
|
|
@@ -1762,8 +1783,12 @@ onUnmounted(() => {
|
|
|
}
|
|
|
|
|
|
.address-tip {
|
|
|
- width: px2rpx(120);
|
|
|
+ width: px2rpx(140);
|
|
|
+ //height: px2rpx(60);
|
|
|
font-size: px2rpx(14);
|
|
|
+ word-break:break-all;
|
|
|
+ white-space:wrap;
|
|
|
+ word-wrap:break-word;
|
|
|
}
|
|
|
|
|
|
.crm-title-box {
|