Files
dvcp_v2_wxcp_app/library/apps/AppCreditPoints/integralRules.vue
2024-10-31 14:34:57 +08:00

60 lines
1.1 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<section class="integralRules">
<div v-for="(e,i) in list" :key="i" flex class="item">
<div class="fill label" v-text="e[0]"/>
<div class="fill" v-text="e[1]"/>
</div>
<AiEmpty v-if="!list.length"/>
</section>
</template>
<script>
export default {
name: "integralRules",
appName: "积分规则",
data() {
return {
list: [],
}
},
methods: {
getList() {
this.$http.post("/app/appintegralrule/girdMemberRuleInfo").then(res => {
if (res?.data) {
this.list = [res.data].flat().filter(Boolean).map(e => e.split(""))
}
})
}
},
created() {
this.getList()
}
}
</script>
<style lang="scss" scoped>
.integralRules {
width: 100vw;
display: flex;
flex-direction: column;
align-items: center;
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
font-size: 36px;
line-height: 60px;
padding-top: 60px;
white-space: nowrap;
.item{
width: 100%;
}
.label {
text-align: right;
&:after {
content: "";
flex-shrink: 0;
}
}
}
</style>