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

62 lines
1.1 KiB

<template>
<view class="presale">
<view class="p">
<image :src="content"></image>
</view>
</view>
</template>
<script>
import * as Api from '@/api/activity'
export default {
data() {
return {
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.imgurl[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>