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