二维码跳转校验认证信息

This commit is contained in:
shijingjing
2023-03-31 11:19:41 +08:00
parent 0eaa844afd
commit 526830773a
4 changed files with 44 additions and 12 deletions

View File

@@ -21,8 +21,8 @@
</div>
<div class="card">
<div class="card-left">
<div class="left-word" @click="$linkTo('/mods/AppNewFarmerBank/AppNewFarmerBank')">
<div class="card-left" @click="$linkTo('/mods/AppNewFarmerBank/AppNewFarmerBank')">
<div class="left-word">
<p>功德银行</p>
<div>行好事</div>
<div>得积分</div>

View File

@@ -1,6 +1,14 @@
<template>
<div class="integralApply">
<div class="card-list">
<div class="card">
</div>
</div>
<AiEmpty :description="`暂无数据`" class="emptyWrap"/>
<div class="btn-wrapper">
<div class="btn" hover-class="text-hover">积分申请</div>
</div>
</div>
</template>
@@ -24,6 +32,19 @@ export default {
<style lang="scss" scoped>
.integralApply {
padding-bottom: 120px;
box-sizing: border-box;
::v-deep .btn-wrapper {
background: #FFF;
}
::v-deep .btn-wrapper .btn {
height: 80px;
line-height: 80px;
border-radius: 40px;
}
}
</style>

View File

@@ -8,13 +8,13 @@
</div>
</div>
<div class="rank">
<div class="header-content" v-if="userInfo">
<div class="header-content" v-if="userInfo.length">
<div class="item">
<span class="item-num">{{ inx + 1 }}</span>
<image :src="userInfo.avatar_url" alt="" class="user-img mar-b4" v-if="userInfo.avatar_url" />
<span class="user-name-bg mar-b4 mar-r24" v-else>{{ $formatName(userInfo.name) }}</span>
<span class="item-name">{{ userInfo.name }}</span>
<span class="item-point">{{ userInfo.integral }}</span>
<image :src="userInfo[0].avatar_url" alt="" class="user-img mar-b4" v-if="userInfo[0].avatar_url" />
<span class="user-name-bg mar-b4 mar-r24" v-else>{{ $formatName(userInfo[0].name) }}</span>
<span class="item-name">{{ userInfo[0].name }}</span>
<span class="item-point">{{ userInfo[0].integral }}</span>
</div>
</div>
<div class="faultage"></div>
@@ -90,7 +90,7 @@ export default {
this.$instance.post(url).then(res => {
if (res.code === 0) {
this.list = res.data.map(e=> ({...e, index: e.index}))
this.userInfo = res.data.filter(e => e.open_id === this.user.openId)[0]
this.userInfo = res.data.filter(e => e.open_id === this.user.openId)
this.inx = res.data.findIndex(e=> e.open_id == this.user.openId)
console.log(this.inx);
this.pageShow = true

View File

@@ -1,5 +1,5 @@
<template>
<div class="taskDetail">
<div class="taskDetail" v-if="showPages">
<div class="task">
<h4>{{ info.title }}</h4>
<p>{{ info.detail }}</p>
@@ -73,6 +73,7 @@ export default {
qqmapsdk: null,
distance: 100,
flag: false,
showPages: false,
}
},
computed: {
@@ -345,7 +346,17 @@ export default {
uni.setNavigationBarTitle({
title: '任务详情'
});
this.getDetail()
if (!this.user.idNumber) {
this.$dialog.confirm({
content: '您只有完成信息认证后,才可进行相关操作。',
confirmText: '去认证'
}).then(() => {
this.$linkTo('/pages/AppMine/userInfo')
}).catch(() => {
})
} else {
this.getDetail()
}
this.qqmapsdk = new QQMapWX({
key: process.env.NODE_ENV == 'production' ? 'RWWBZ-64BEJ-MVLFJ-FTHLQ-JTR6J-SAB2S' : '3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY'
})