添加刷新实名状态的防抖,immediate=true
This commit is contained in:
parent
fcea02505e
commit
f44d76a7a2
|
|
@ -29,7 +29,7 @@
|
||||||
<!-- <text>进入人脸识别</text> -->
|
<!-- <text>进入人脸识别</text> -->
|
||||||
<text>提交</text>
|
<text>提交</text>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="isRefresh" class="refresh" @click="getshuaxin">
|
<view v-if="isRefresh" class="refresh" @click="toGetshuaxin">
|
||||||
<text>刷新实名状态</text>
|
<text>刷新实名状态</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -72,6 +72,9 @@ export default {
|
||||||
this.smflag = true
|
this.smflag = true
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
toGetshuaxin() {
|
||||||
|
uni.$uv.debounce(this.getshuaxin, 2000, true)
|
||||||
|
},
|
||||||
// 刷新人脸识别是否成功
|
// 刷新人脸识别是否成功
|
||||||
getshuaxin() {
|
getshuaxin() {
|
||||||
refreshRealName().then(res => {
|
refreshRealName().then(res => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user