实名认证优化

This commit is contained in:
GaoHao 2025-01-15 13:32:07 +08:00
parent d883976066
commit 6a6df97cc0
3 changed files with 21 additions and 5 deletions

View File

@ -40,6 +40,18 @@ export const updateUser = (data) => {
})
}
/**
* 实名认证
*/
export const realNameAuth = (data) => {
return http.request({
url: '/user/realNameAuth/v2',
method: 'POST',
data: data
})
}
/**
* 获取看广告状态
*/

View File

@ -122,12 +122,14 @@
})
onReady(() => {
if(!uni.getStorageSync('ruleShow')){
datas.ruleShow = true
announcement({
type: 0
}).then(res => {
datas.ruleList = res
ruleInit()
if (res) {
datas.ruleShow = true
datas.ruleList = res
ruleInit()
}
})
}

View File

@ -27,7 +27,7 @@
<script setup>
import { reactive, nextTick, ref } from 'vue';
import { onReady,onLoad,onShow } from '@dcloudio/uni-app'
import { updateUser } from '@/api/me/withdraw.js';
import { realNameAuth } from '@/api/me/withdraw.js';
import { selectUserById } from '@/api/user/user.js';
import { commonType } from '@/api/init.js';
@ -88,7 +88,7 @@
})
} else {
data.logining = true
let res = await updateUser({
let res = await realNameAuth({
certName: data.certName,
mobile: data.mobile,
certNum: data.certNum,
@ -111,6 +111,8 @@
}, 1000)
}
})
} else {
data.logining = false
}