2023-03-20 08:32:07 +08:00
|
|
|
|
<template>
|
2023-03-20 08:58:04 +08:00
|
|
|
|
<div class="AppNewFarmerBank">
|
2023-03-28 15:25:51 +08:00
|
|
|
|
<div class="swiper-content">
|
|
|
|
|
|
<img src="https://cdn.cunwuyun.cn/fengdu/img-gongdeyinhang.png" alt="">
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="welcome">
|
|
|
|
|
|
<div class="welcome-user">
|
2023-03-29 10:16:36 +08:00
|
|
|
|
<span class="name">{{ user.realName || user.nickName }}</span>,欢迎进入新华街社区!
|
2023-03-28 15:25:51 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="signin">签到</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="card-list">
|
2023-03-29 10:16:36 +08:00
|
|
|
|
<div class="jfsq" @click="$u.toast('内容建设中...')">
|
2023-03-28 15:25:51 +08:00
|
|
|
|
<p>积分申请</p>
|
|
|
|
|
|
<h4>好事自荐得积分</h4>
|
|
|
|
|
|
</div>
|
2023-03-29 18:20:14 +08:00
|
|
|
|
<div class="jsrw" @click="toPages('./integralTask')">
|
2023-03-28 15:25:51 +08:00
|
|
|
|
<p>积分任务</p>
|
|
|
|
|
|
<h4>完成任务得积分</h4>
|
|
|
|
|
|
</div>
|
2023-03-29 16:07:38 +08:00
|
|
|
|
<div class="jfph" @click="$linkTo('./integralRank')">
|
2023-03-28 15:25:51 +08:00
|
|
|
|
<p>积分排行</p>
|
|
|
|
|
|
<h4>社区荣誉榜</h4>
|
|
|
|
|
|
</div>
|
2023-03-29 10:16:36 +08:00
|
|
|
|
<div class="jfsc" @click="$u.toast('内容建设中...')">
|
2023-03-28 15:25:51 +08:00
|
|
|
|
<p>积分商城</p>
|
|
|
|
|
|
<h4>兑换得好物</h4>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="handpick">
|
|
|
|
|
|
<div class="title">精选动态</div>
|
|
|
|
|
|
<div class="list">
|
|
|
|
|
|
<div class="top">
|
|
|
|
|
|
<div class="left">百年征和波澜壮阔,百年初心历争议弥坚。7月1日上午,庆祝中国共产党成立100周年…</div>
|
|
|
|
|
|
<div class="right">
|
|
|
|
|
|
<img src="https://cdn.cunwuyun.cn/wxmp/fengdu/zan-active.png" alt="">
|
2023-03-28 18:13:57 +08:00
|
|
|
|
<!-- https://cdn.cunwuyun.cn/wxmp/fengdu/zan.png -->
|
2023-03-28 15:25:51 +08:00
|
|
|
|
<span>99+</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="bottom">
|
2023-03-28 18:13:57 +08:00
|
|
|
|
<img src="https://cdn.cunwuyun.cn/fengdu/img-jifenlist.png" alt="">
|
2023-03-28 15:25:51 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2023-03-20 08:32:07 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2023-03-29 10:16:36 +08:00
|
|
|
|
import { mapState } from 'vuex'
|
2023-03-20 08:32:07 +08:00
|
|
|
|
export default {
|
2023-03-20 08:58:04 +08:00
|
|
|
|
name: "AppNewFarmerBank",
|
2023-03-28 15:25:51 +08:00
|
|
|
|
appName: "功德银行",
|
2023-03-20 08:32:07 +08:00
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2023-03-28 15:25:51 +08:00
|
|
|
|
|
2023-03-20 08:32:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2023-03-29 10:16:36 +08:00
|
|
|
|
computed: {
|
|
|
|
|
|
...mapState(['user'])
|
|
|
|
|
|
},
|
2023-03-20 08:32:07 +08:00
|
|
|
|
methods: {
|
2023-03-28 17:08:46 +08:00
|
|
|
|
getList() {
|
2023-03-28 15:25:51 +08:00
|
|
|
|
},
|
|
|
|
|
|
handleBannerClick() {
|
2023-03-20 08:32:07 +08:00
|
|
|
|
|
2023-03-29 17:46:29 +08:00
|
|
|
|
},
|
|
|
|
|
|
toPages(url) {
|
|
|
|
|
|
if(!this.user.idNumber) {
|
|
|
|
|
|
this.$dialog.confirm({
|
|
|
|
|
|
content: '您只有完成信息认证后,才可进行相关操作。',
|
|
|
|
|
|
confirmText: '去认证'
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
this.$linkTo('/mods/AppMine/userInfo')
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
})
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.$linkTo(url)
|
|
|
|
|
|
}
|
2023-03-28 15:25:51 +08:00
|
|
|
|
}
|
2023-03-20 08:32:07 +08:00
|
|
|
|
},
|
|
|
|
|
|
onShow() {
|
|
|
|
|
|
uni.setNavigationBarTitle({
|
2023-03-28 15:25:51 +08:00
|
|
|
|
title: '功德银行'
|
2023-03-20 08:32:07 +08:00
|
|
|
|
});
|
2023-03-28 15:25:51 +08:00
|
|
|
|
this.getList()
|
2023-03-20 08:32:07 +08:00
|
|
|
|
},
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
2023-03-20 14:54:29 +08:00
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
.AppNewFarmerBank {
|
|
|
|
|
|
|
2023-03-28 15:25:51 +08:00
|
|
|
|
.swiper-content {
|
|
|
|
|
|
width: 100%;
|
2023-03-29 18:20:14 +08:00
|
|
|
|
height: 332px;
|
|
|
|
|
|
padding: 32px 32px 0;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
background: #FFF;
|
2023-03-28 15:25:51 +08:00
|
|
|
|
img {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
2023-03-29 18:20:14 +08:00
|
|
|
|
border-radius: 16px;
|
2023-03-28 15:25:51 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.welcome {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 120px;
|
|
|
|
|
|
padding: 0 32px;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
background: #FFF;
|
|
|
|
|
|
.signin {
|
|
|
|
|
|
width: 104px;
|
|
|
|
|
|
height: 52px;
|
|
|
|
|
|
line-height: 52px;
|
|
|
|
|
|
border: 2px solid #2D7DFF;
|
|
|
|
|
|
border-radius: 40px;
|
|
|
|
|
|
color: #2D7DFF;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
}
|
|
|
|
|
|
.welcome-user {
|
|
|
|
|
|
width: calc(100% - 60px);
|
|
|
|
|
|
font-size: 30px;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
font-family: "PingFang SC";
|
|
|
|
|
|
.name {
|
|
|
|
|
|
color: #2D7DFF;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.card-list {
|
|
|
|
|
|
background: #FFF;
|
|
|
|
|
|
padding: 0 32px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
.jfsq,
|
|
|
|
|
|
.jsrw,
|
|
|
|
|
|
.jfph,
|
|
|
|
|
|
.jfsc {
|
|
|
|
|
|
width: 328px;
|
|
|
|
|
|
height: 144px;
|
|
|
|
|
|
margin-bottom: 32px;
|
|
|
|
|
|
padding: 28px 32px;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
p {
|
|
|
|
|
|
font-size: 30px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
}
|
|
|
|
|
|
h4 {
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
margin-top: 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.jfsq {
|
|
|
|
|
|
background: url('https://cdn.cunwuyun.cn/fengdu/img-jifenshenqing.png') no-repeat;
|
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
|
color: #DF863E;
|
|
|
|
|
|
}
|
|
|
|
|
|
.jsrw {
|
|
|
|
|
|
background: url('https://cdn.cunwuyun.cn/fengdu/img-jifenrenwu.png') no-repeat;
|
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
|
color: #2D7DFF;
|
|
|
|
|
|
}
|
|
|
|
|
|
.jfph {
|
|
|
|
|
|
background: url('https://cdn.cunwuyun.cn/fengdu/img-jifenpaihang.png') no-repeat;
|
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
|
color: #338A77;
|
|
|
|
|
|
}
|
|
|
|
|
|
.jfsc {
|
|
|
|
|
|
background: url('https://cdn.cunwuyun.cn/fengdu/img-jifenshangcheng.png') no-repeat;
|
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
|
color: #D9606E;
|
|
|
|
|
|
}
|
|
|
|
|
|
& > div:nth-child(2n+1) {
|
|
|
|
|
|
margin-right: 30px;
|
|
|
|
|
|
}
|
2023-03-20 14:54:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2023-03-28 15:25:51 +08:00
|
|
|
|
.handpick {
|
|
|
|
|
|
padding: 0 32px;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
.title {
|
|
|
|
|
|
font-size: 34px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
margin: 32px 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.list {
|
|
|
|
|
|
padding: 32px 24px;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
background: #FFF;
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
// margin-bottom: 24px;
|
|
|
|
|
|
.top {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
.left {
|
|
|
|
|
|
width: 562px;
|
|
|
|
|
|
overflow:hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
display: -webkit-box;
|
|
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
|
|
}
|
|
|
|
|
|
.right {
|
|
|
|
|
|
width: 52px;
|
2023-03-28 17:08:46 +08:00
|
|
|
|
text-align: center;
|
2023-03-28 15:25:51 +08:00
|
|
|
|
img {
|
|
|
|
|
|
width: 40px;
|
|
|
|
|
|
height: 40px;
|
|
|
|
|
|
}
|
2023-03-28 17:08:46 +08:00
|
|
|
|
span {
|
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
color: #687DA6;
|
|
|
|
|
|
}
|
2023-03-28 15:25:51 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
.bottom {
|
|
|
|
|
|
img {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 202px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2023-03-20 14:54:29 +08:00
|
|
|
|
}
|
2023-03-20 08:32:07 +08:00
|
|
|
|
|
|
|
|
|
|
</style>
|