精选动态

This commit is contained in:
shijingjing
2023-04-03 17:03:43 +08:00
parent 14533338aa
commit 65d8f71ea0
4 changed files with 62 additions and 5 deletions

View File

@@ -31,8 +31,14 @@
</div>
</div>
<div class="handpick">
<div class="title">精选动态</div>
<div class="list" @click="$u.toast('内容建设中...')">
<div class="title">
<h1>精选动态</h1>
<div class="more" @click="toPages('./handpick')">
<span>更多</span>
<u-icon name="arrow-right" color="#687DA6" size="28"></u-icon>
</div>
</div>
<div class="list" @click="toPages('内容建设中...')">
<div class="top">
<div class="left">百年征和波澜壮阔百年初心历争议弥坚7月1日上午庆祝中国共产党成立100周年</div>
<div class="right">
@@ -64,6 +70,11 @@ export default {
},
methods: {
getList() {
this.$instance.post(``).then(res=> {
if(res?.data) {
console.log(res);
}
})
},
handleBannerClick() {
@@ -86,7 +97,7 @@ export default {
uni.setNavigationBarTitle({
title: '功德银行'
});
this.getList()
// this.getList()
},
}
</script>
@@ -192,9 +203,21 @@ export default {
padding: 0 32px;
box-sizing: border-box;
.title {
font-size: 34px;
font-weight: 500;
margin: 32px 0;
display: flex;
justify-content: space-between;
align-items: center;
h1 {
font-size: 34px;
font-weight: 500;
}
.more {
width: 200px;
color: #687DA6;
font-size: 28px;
font-weight: 400;
text-align: right;
}
}
.list {

View File

@@ -0,0 +1,30 @@
<template>
<div class="handpick">
hhh
</div>
</template>
<script>
export default {
name: "handpick",
appName: "精选动态",
data() {
return {
}
},
methods: {
getList() {
}
},
onShow() {},
onReachBottom() {
this.current++
this.getList()
},
}
</script>
<style>
</style>

View File

@@ -101,6 +101,7 @@ export default {
this.flag = false
if(res?.data) {
this.$u.toast('提交成功')
uni.$emit('edit')
setTimeout(()=> {
uni.navigateBack()
},500)

View File

@@ -57,6 +57,9 @@ export default {
onLoad(o) {
this.id = o.id
this.getDetail()
uni.$on('edit',()=> {
this.getDetail()
})
}
}
</script>