You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong_qianduan/pages/activity/presaleRule.vue

66 lines
1.2 KiB

10 months ago
<template>
<view class="presale">
10 months ago
<view class="p" v-html="content"></view>
</view>
</template>
<script>
import img from "@/static/rank/top.png"
import * as Api from '@/api/activity'
export default {
data() {
return {
background: {
background: 'url(' + img + ') center top no-repeat',
backgroundSize: '100% auto',
},
content: '',
type: 4
}
},
onLoad(op) {
uni.setNavigationBarTitle({
title: op.type == 5 ? '预售规则' : '排行榜规则'
})
this.type = op.type
this.getCarouselList(op.type)
},
onShow() {},
methods: {
// 获取预售规则
getCarouselList(type) {
const app = this;
Api.getImage({
type: type
})
.then(result => {
this.content = result.data.content[0]
})
.finally(() => app.isLoading = false)
},
}
}
</script>
10 months ago
<style lang="scss" scoped>
10 months ago
.presale {
10 months ago
height: 100vh;
background-color: #fff;
padding: 0 40rpx;
overflow-y: auto;
10 months ago
.title {
10 months ago
padding: 40rpx 0;
font-size: 32rpx;
font-weight: 500;
color: #000000;
}
10 months ago
.p {
10 months ago
font-size: 26rpx;
line-height: 46rpx;
color: #212121;
}
10 months ago
}
</style>