积分任务
This commit is contained in:
@@ -5,12 +5,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="welcome">
|
<div class="welcome">
|
||||||
<div class="welcome-user">
|
<div class="welcome-user">
|
||||||
<span class="name">汪周文</span>,欢迎进入新华街社区!
|
<span class="name">{{ user.realName || user.nickName }}</span>,欢迎进入新华街社区!
|
||||||
</div>
|
</div>
|
||||||
<div class="signin">签到</div>
|
<div class="signin">签到</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-list">
|
<div class="card-list">
|
||||||
<div class="jfsq">
|
<div class="jfsq" @click="$u.toast('内容建设中...')">
|
||||||
<p>积分申请</p>
|
<p>积分申请</p>
|
||||||
<h4>好事自荐得积分</h4>
|
<h4>好事自荐得积分</h4>
|
||||||
</div>
|
</div>
|
||||||
@@ -18,11 +18,11 @@
|
|||||||
<p>积分任务</p>
|
<p>积分任务</p>
|
||||||
<h4>完成任务得积分</h4>
|
<h4>完成任务得积分</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="jfph">
|
<div class="jfph" @click="$u.toast('内容建设中...')">
|
||||||
<p>积分排行</p>
|
<p>积分排行</p>
|
||||||
<h4>社区荣誉榜</h4>
|
<h4>社区荣誉榜</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="jfsc">
|
<div class="jfsc" @click="$u.toast('内容建设中...')">
|
||||||
<p>积分商城</p>
|
<p>积分商城</p>
|
||||||
<h4>兑换得好物</h4>
|
<h4>兑换得好物</h4>
|
||||||
</div>
|
</div>
|
||||||
@@ -47,6 +47,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { mapState } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
name: "AppNewFarmerBank",
|
name: "AppNewFarmerBank",
|
||||||
appName: "功德银行",
|
appName: "功德银行",
|
||||||
@@ -55,6 +56,9 @@ export default {
|
|||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState(['user'])
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getList() {
|
getList() {
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -5,29 +5,27 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="title">任务大厅</div>
|
<div class="title">任务大厅</div>
|
||||||
<div class="card-list">
|
<div class="card-list">
|
||||||
<div class="card" @click="$linkTo('./taskDetail')">
|
<div class="card" v-for="(item,index) in list" :key="index" @click="$linkTo('./taskDetail?id='+item.id)">
|
||||||
<h4>10月31日线下公益宣传</h4>
|
<h4>{{ item.title }}</h4>
|
||||||
<p>
|
<p>{{ item.detail }}</p>
|
||||||
百年征和波澜壮阔,百年初心历争议弥坚。7月1日上午,庆祝中国共产党成立100周年在国务院举办…
|
<div class="imgs" v-if="item.files">
|
||||||
</p>
|
<image mode="aspectFill" v-for="(e, i) in item.files" :key="i" :src="e.url"/>
|
||||||
<div class="imgs">
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="time">
|
<div class="time">
|
||||||
<div class="goin">
|
<div class="goin">
|
||||||
<img src="https://cdn.cunwuyun.cn/fengdu/ic-jinchangshijian.png" alt="">
|
<img src="https://cdn.cunwuyun.cn/fengdu/ic-jinchangshijian.png" alt="">
|
||||||
<span class="label">进场时间:</span>
|
<div class="label">进场时间:</div>
|
||||||
<span class="value">2020-12-11 10:10 至 2020-12-11 10:10</span>
|
<div class="value">{{ item.intoBegintime.substring(0, 16)}} 至 {{ item.intoEndtime.substring(0, 16) }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="exit">
|
<div class="exit">
|
||||||
<img src="https://cdn.cunwuyun.cn/fengdu/ic-lichangshijian.png" alt="">
|
<img src="https://cdn.cunwuyun.cn/fengdu/ic-lichangshijian.png" alt="">
|
||||||
<span class="label">离场时间:</span>
|
<div class="label">离场时间:</div>
|
||||||
<span class="value">2020-12-11 10:10 至 2020-12-11 10:10</span>
|
<div class="value">{{ item.exitBegintime.substring(0, 16) }} 至 {{ item.exitEndtime.substring(0, 16) }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="type">
|
<div class="type">
|
||||||
<img src="https://cdn.cunwuyun.cn/fengdu/ic-renwuleixing.png" alt="">
|
<img src="https://cdn.cunwuyun.cn/fengdu/ic-renwuleixing.png" alt="">
|
||||||
<span class="label">任务类型:</span>
|
<div class="label">任务类型:</div>
|
||||||
<span class="value">报名得积分</span>
|
<div class="value">{{ item.type==0? '打卡得积分':'报名得积分' }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -41,16 +39,23 @@ export default {
|
|||||||
appName: '功德银行',
|
appName: '功德银行',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
list: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getList() {
|
||||||
|
this.$instance.post('/app/appintegraltask/list').then(res=> {
|
||||||
|
if(res?.data) {
|
||||||
|
this.list = res.data.records
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: '功德银行'
|
title: '功德银行'
|
||||||
});
|
});
|
||||||
|
this.getList()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -79,6 +84,7 @@ export default {
|
|||||||
background: #FFF;
|
background: #FFF;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
|
margin-bottom: 24px;
|
||||||
h4 {
|
h4 {
|
||||||
padding: 24px 24px 0;
|
padding: 24px 24px 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@@ -95,7 +101,23 @@ export default {
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
.imgs {
|
.imgs {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
padding: 16px 24px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
image {
|
||||||
|
height: 208px;
|
||||||
|
width: 33.33%;
|
||||||
|
padding-right: 12px;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
&:nth-of-type(3n) {
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.time {
|
.time {
|
||||||
@@ -108,20 +130,24 @@ export default {
|
|||||||
.goin,
|
.goin,
|
||||||
.exit,
|
.exit,
|
||||||
.type {
|
.type {
|
||||||
|
display: flex;
|
||||||
img {
|
img {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
vertical-align: bottom;
|
align-self: center;
|
||||||
}
|
}
|
||||||
.label {
|
.label {
|
||||||
font-size: 24rpx;
|
font-size: 24px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
|
align-self: center;
|
||||||
|
width: 130px;
|
||||||
}
|
}
|
||||||
.value {
|
.value {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
width: calc(100% - 160px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<label>活动地点:</label>
|
<label>活动地点:</label>
|
||||||
<div class="value">丰都县金牛区XXXX大厦XXX楼2101</div>
|
<div class="value">丰都县金牛区XXXX大厦XXX楼2101</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="address">
|
<div class="address" @click="toAddress">
|
||||||
<img src="https://cdn.cunwuyun.cn/fengdu/ic-daohang.png" alt="">
|
<img src="https://cdn.cunwuyun.cn/fengdu/ic-daohang.png" alt="">
|
||||||
<i>导航</i>
|
<i>导航</i>
|
||||||
</div>
|
</div>
|
||||||
@@ -44,11 +44,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- <div class="btn-wrapper">
|
||||||
<!-- <div class="right" @click="toAddress">
|
<div class="btn" @click="toReport" hover-class="text-hover">报名得积分/积分+5,已报名</div>
|
||||||
<image src="https://cdn.cunwuyun.cn/wxmp/tianfuxing/dh.png" />
|
|
||||||
<i>导航</i>
|
|
||||||
</div> -->
|
</div> -->
|
||||||
|
<div class="btn-clock">
|
||||||
|
<div class="btn-circle" @click="toReport" hover-class="text-hover">
|
||||||
|
<div class="daka">打卡签到</div>
|
||||||
|
<div class="text">积分+5</div>
|
||||||
|
</div>
|
||||||
|
<div class="tips">符合打卡条件,未到打卡时间,无法重复打卡</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -58,7 +63,8 @@ export default {
|
|||||||
appName: "任务详情",
|
appName: "任务详情",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
info: {},
|
||||||
|
id: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -75,18 +81,28 @@ export default {
|
|||||||
// current: url
|
// current: url
|
||||||
// })
|
// })
|
||||||
// },
|
// },
|
||||||
|
getDetail() {
|
||||||
|
this.$instance.post(`/app/appintegraltask/queryDetailById?id=${this.id}`).then(res=> {
|
||||||
|
if(res?.data) {
|
||||||
|
console.log(res);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onLoad(o) {
|
||||||
|
this.id = o.id
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: '任务详情'
|
title: '任务详情'
|
||||||
});
|
});
|
||||||
|
this.getDetail()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.taskDetail {
|
.taskDetail {
|
||||||
|
padding-bottom: 400px;
|
||||||
|
box-sizing: border-box;
|
||||||
.task,
|
.task,
|
||||||
.info {
|
.info {
|
||||||
margin-top: 24px;
|
margin-top: 24px;
|
||||||
@@ -161,5 +177,57 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
::v-deep .btn-wrapper {
|
||||||
|
background: #FFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .btn-wrapper .btn {
|
||||||
|
height: 80px;
|
||||||
|
line-height: 80px;
|
||||||
|
border-radius: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.opacity {
|
||||||
|
opacity: 0.6000000238418579;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gray {
|
||||||
|
background: #b5b5bcff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-clock {
|
||||||
|
height: 372px;
|
||||||
|
width: 100%;
|
||||||
|
background: #FFF;
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
bottom: 0;
|
||||||
|
.btn-circle {
|
||||||
|
width: 226px;
|
||||||
|
height: 226px;
|
||||||
|
background: #2D7DFF;
|
||||||
|
border-radius: 50%;
|
||||||
|
margin: 40px auto 24px;
|
||||||
|
text-align: center;
|
||||||
|
.text,
|
||||||
|
.daka {
|
||||||
|
color: #FFF;
|
||||||
|
font-size: 34px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
.daka {
|
||||||
|
padding-top: 62px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-size: 40px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.tips {
|
||||||
|
text-align: center;
|
||||||
|
color: #666666;
|
||||||
|
font-size: 28px;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user