60 lines
1.1 KiB
Vue
60 lines
1.1 KiB
Vue
<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>
|