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.
|
|
|
<template>
|
|
|
|
<view class="presale">
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.presale {
|
|
|
|
height: 100vh;
|
|
|
|
background-color: #fff;
|
|
|
|
padding: 0 40rpx;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
.title {
|
|
|
|
padding: 40rpx 0;
|
|
|
|
font-size: 32rpx;
|
|
|
|
font-weight: 500;
|
|
|
|
color: #000000;
|
|
|
|
}
|
|
|
|
|
|
|
|
.p {
|
|
|
|
font-size: 26rpx;
|
|
|
|
line-height: 46rpx;
|
|
|
|
color: #212121;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|