实名认证优化
This commit is contained in:
@@ -40,6 +40,18 @@ export const updateUser = (data) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实名认证
|
||||||
|
*/
|
||||||
|
export const realNameAuth = (data) => {
|
||||||
|
return http.request({
|
||||||
|
url: '/user/realNameAuth/v2',
|
||||||
|
method: 'POST',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取看广告状态
|
* 获取看广告状态
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -122,12 +122,14 @@
|
|||||||
})
|
})
|
||||||
onReady(() => {
|
onReady(() => {
|
||||||
if(!uni.getStorageSync('ruleShow')){
|
if(!uni.getStorageSync('ruleShow')){
|
||||||
datas.ruleShow = true
|
|
||||||
announcement({
|
announcement({
|
||||||
type: 0
|
type: 0
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
datas.ruleShow = true
|
||||||
datas.ruleList = res
|
datas.ruleList = res
|
||||||
ruleInit()
|
ruleInit()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { reactive, nextTick, ref } from 'vue';
|
import { reactive, nextTick, ref } from 'vue';
|
||||||
import { onReady,onLoad,onShow } from '@dcloudio/uni-app'
|
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 { selectUserById } from '@/api/user/user.js';
|
||||||
import { commonType } from '@/api/init.js';
|
import { commonType } from '@/api/init.js';
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
data.logining = true
|
data.logining = true
|
||||||
let res = await updateUser({
|
let res = await realNameAuth({
|
||||||
certName: data.certName,
|
certName: data.certName,
|
||||||
mobile: data.mobile,
|
mobile: data.mobile,
|
||||||
certNum: data.certNum,
|
certNum: data.certNum,
|
||||||
@@ -111,6 +111,8 @@
|
|||||||
}, 1000)
|
}, 1000)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
data.logining = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user