推广表,admin后台更新
This commit is contained in:
parent
da8359540f
commit
142ceb85aa
@ -66,6 +66,7 @@
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { httpPost, httpPostMultipart, httpUploadMultipleFiles } from '@/utils/http' // 使用httpPostMultipart方法
|
||||
import { toPath } from '@/utils/commUtils'
|
||||
|
||||
const positionOptions = [
|
||||
'宠托师',
|
||||
@ -117,6 +118,12 @@ const submitApplication = async () => {
|
||||
}
|
||||
} else {
|
||||
uni.showToast({ title: '提交失败 ' + response.message, icon: 'none' })
|
||||
if (response.message.includes('未实名认证')) {
|
||||
// 暂停一段时间
|
||||
await new Promise((resolve) => setTimeout(resolve, 500))
|
||||
// 跳转到实名认证页面
|
||||
toPath('/pages/permission/real-name-auth')
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
uni.showToast({ title: '提交失败', icon: 'none' })
|
||||
|
@ -26,7 +26,7 @@
|
||||
<image
|
||||
class="w-[60vw]"
|
||||
mode="widthFix"
|
||||
src="/static/permission/idcard.png"
|
||||
:src="frontImage"
|
||||
@click="chooseFrontImage"
|
||||
></image>
|
||||
<view class="pt-1">身份证人像面</view>
|
||||
@ -35,7 +35,7 @@
|
||||
<image
|
||||
class="w-[60vw]"
|
||||
mode="widthFix"
|
||||
src="/static/permission/idcard_back.png"
|
||||
:src="backImage"
|
||||
@click="chooseBackImage"
|
||||
></image>
|
||||
<view class="pt-1">身份证国徽面</view>
|
||||
@ -70,8 +70,8 @@ import { useUserStore } from '@/store'
|
||||
import TopBar from '@/components/TopBar.vue'
|
||||
import { toPath } from '@/utils/commUtils'
|
||||
|
||||
const frontImage = ref('https://via.placeholder.com/100')
|
||||
const backImage = ref('https://via.placeholder.com/100')
|
||||
const frontImage = ref('/static/permission/idcard.png')
|
||||
const backImage = ref('/static/permission/idcard_back.png')
|
||||
const frontImagePath = ref(null)
|
||||
const backImagePath = ref(null)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user