votes
This commit is contained in:
@@ -318,7 +318,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
toUserList() {
|
toUserList() {
|
||||||
uni.navigateTo({ url: `./userList` })
|
uni.navigateTo({ url: `./userList?id=${this.id}&anonymous=${this.data.anonymous}` })
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -327,7 +327,7 @@ export default {
|
|||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.Detail {
|
.Detail {
|
||||||
padding-bottom: 40px;
|
padding-bottom: 40px;
|
||||||
background: #F6F7F9;
|
background: #f6f7f9;
|
||||||
|
|
||||||
.end-btn {
|
.end-btn {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|||||||
@@ -1,22 +1,23 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="userList">
|
<div class="userList">
|
||||||
<!-- <div v-if="data.length > 0"></div> -->
|
<div v-if="data.votes && data.votes.length > 0">
|
||||||
<div class="datas" v-for="(item, index) in 10" :key="index">
|
<div class="datas" v-for="(item, index) in data.votes" :key="index">
|
||||||
<div class="avatLeft">李毅</div>
|
<div class="avatLeft">{{ item.userName.substring(item.userName.length, item.userName.length - 2) }}</div>
|
||||||
|
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<span class="names">李毅</span>
|
<span class="names" v-if="anonymous && anonymous == 1">{{ item.userName }}</span>
|
||||||
<!-- <span>匿名用户</span> -->
|
<span v-else>匿名用户</span>
|
||||||
|
|
||||||
<span class="times">1111</span>
|
<span class="times">{{ item.createTime }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="bottom">选择了选择了三联村篮球队、蟠龙镇篮球队选择了三联村篮球队、蟠龙镇篮球队</div>
|
<div class="bottom">选择了选择了{{ item.item }}</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<AiEmpty description="暂无数据"></AiEmpty>
|
<AiEmpty description="暂无数据" v-else></AiEmpty>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -28,25 +29,50 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
data: [],
|
data: [],
|
||||||
|
id: '',
|
||||||
|
anonymous: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
onLoad() {},
|
onLoad(o) {
|
||||||
|
console.log(o)
|
||||||
|
this.anonymous = o.anonymous
|
||||||
|
this.id = o.id
|
||||||
|
this.getDetail()
|
||||||
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '投票详情'
|
document.title = '投票详情'
|
||||||
},
|
},
|
||||||
methods: {},
|
methods: {
|
||||||
|
getDetail() {
|
||||||
|
this.$loading()
|
||||||
|
this.$http
|
||||||
|
.post(`/app/appvillagediscuss/queryDetailById?id=${this.id}`)
|
||||||
|
.then((res) => {
|
||||||
|
if (res?.data) {
|
||||||
|
this.data = res.data
|
||||||
|
this.$hideLoading()
|
||||||
|
} else {
|
||||||
|
this.$hideLoading()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.$hideLoading()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
uni-page-body {
|
uni-page-body {
|
||||||
// height: 100%;
|
height: 100%;
|
||||||
|
background: #fff;
|
||||||
}
|
}
|
||||||
.userList {
|
.userList {
|
||||||
// height: 100%;
|
// height: 100%;
|
||||||
// background: #fff;
|
|
||||||
.datas {
|
.datas {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user