二维码跳转校验认证信息

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>
<div class="card"> <div class="card">
<div class="card-left"> <div class="card-left" @click="$linkTo('/mods/AppNewFarmerBank/AppNewFarmerBank')">
<div class="left-word" @click="$linkTo('/mods/AppNewFarmerBank/AppNewFarmerBank')"> <div class="left-word">
<p>功德银行</p> <p>功德银行</p>
<div>行好事</div> <div>行好事</div>
<div>得积分</div> <div>得积分</div>

View File

@@ -1,7 +1,15 @@
<template> <template>
<div class="integralApply"> <div class="integralApply">
<div class="card-list">
<div class="card">
</div> </div>
</div>
<AiEmpty :description="`暂无数据`" class="emptyWrap"/>
<div class="btn-wrapper">
<div class="btn" hover-class="text-hover">积分申请</div>
</div>
</div>
</template> </template>
<script> <script>
@@ -24,6 +32,19 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.integralApply { .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> </style>

View File

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

View File

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