This commit is contained in:
yanran200730
2023-06-07 10:07:30 +08:00
parent e2cda5b27d
commit 3f88c7a958
2 changed files with 17 additions and 17 deletions

View File

@@ -8,7 +8,7 @@
<span class="name">{{ user.realName || user.nickName }}</span>
<span v-if="!user.idNumber">欢迎来到功德银行</span>
<span v-else>欢迎进入{{ user.areaName }}</span>
</div>
<div class="signin" @click="toPages('./signIn',status)">{{ status==1? '已签到':'签到' }}</div>
</div>
@@ -36,7 +36,7 @@
<div class="wdjf" @click="toPages('/pages/AppMine/myIntegral')">
<p>我的积分</p>
<h4>积分获取一目了然</h4>
</div>
</div>
</div>
<div class="handpick" v-if="list.length">
<div class="title">
@@ -78,7 +78,7 @@ import { mapState } from 'vuex'
export default {
name: "AppNewFarmerBank",
appName: "功德银行",
data() {
data() {
return {
status: null,
current: 1,
@@ -104,7 +104,7 @@ export default {
this.allList = res.data.records
let newList = res.data.records.length > 3 ? res.data.records.slice(0,3) : res.data.records
let mapList = newList.map(e=> {
return {
...e,
images: e?.files.filter(i => (i.postfix == '.jpg' || i.postfix == '.jpeg' || i.postfix == '.png')),
@@ -123,7 +123,7 @@ export default {
})
},
handleBannerClick() {
},
// 点赞
upCount(id,index) {
@@ -139,11 +139,11 @@ export default {
}).finally(() => this.flag = false)
},
toPages(url,status) {
if(!this.user.idNumber) {
if(!this.user.areaId) {
this.$dialog.confirm({
content: '您只有完成信息认证后,才可进行相关操作。',
confirmText: '去认证'
}).then(() => {
}).then(() => {
this.$linkTo('/pages/AppMine/userInfo')
}).catch(() => {
})
@@ -153,7 +153,7 @@ export default {
} else {
// 停留
}
}
},
getStatus() {
@@ -170,7 +170,7 @@ export default {
}
})
}
},
onShow() {
this.getStatus()
@@ -258,7 +258,7 @@ export default {
}
& > div:nth-child(2n+1) {
margin-right: 30px;
}
}
div {
background-size: 100% 100%;
@@ -337,7 +337,7 @@ export default {
.left {
width: calc(100% - 100px);
p {
overflow:hidden;
overflow:hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
@@ -393,4 +393,4 @@ export default {
}
}
</style>
</style>

View File

@@ -165,7 +165,7 @@ export default {
const times = new Date().getTime()
const inSTimes = new Date(this.info.intoBegintime).getTime() // 报名开始
const inETimes = new Date(this.info.intoEndtime).getTime() // 报名结束
// 1已报名
// 1已报名
if (this.info.enrollClock) {
return 1
}
@@ -204,7 +204,7 @@ export default {
},
// 打卡积分
clockIn() {
if(!this.user.idNumber) {
if(!this.user.areaId) {
return this.$dialog.confirm({
content: '您只有完成信息认证后,才可进行相关操作。',
confirmText: '去认证'
@@ -251,7 +251,7 @@ export default {
return this.$u.toast('不符合报名条件')
}
this.flag = true
this.flag = true
this.daKa()
},
daKa() {
@@ -349,7 +349,7 @@ export default {
})
},
toAuth() {
if (!this.user.idNumber) {
if (!this.user.areaId) {
this.$dialog.confirm({
content: '您只有完成信息认证后,才可进行相关操作。',
confirmText: '去认证'
@@ -531,4 +531,4 @@ export default {
}
}
}
</style>
</style>