176 lines
3.1 KiB
Vue
176 lines
3.1 KiB
Vue
|
<template>
|
||
|
<view class="content">
|
||
|
<view class="container">
|
||
|
<view class="my-header">
|
||
|
<view class="my-icons" @click="goback"> <uni-icons type="left" size="16"></uni-icons> </view>
|
||
|
<view class="my-text">本站活动</view>
|
||
|
<view class="my-icons"></view>
|
||
|
</view>
|
||
|
<view class="mub">
|
||
|
<view class="mub-box" v-for="(item,index) in activityList" :key="index" @click="getactvity(item.path)">
|
||
|
<view class="box-img">
|
||
|
<image src="../../static/imgs/xp.jpg" mode=""></image>
|
||
|
</view>
|
||
|
<view class="box-size">
|
||
|
<view class="box-s-title">{{item.title || "活动标题"}}</view>
|
||
|
<view class="box-s-size">{{item.size || "内容"}}</view>
|
||
|
</view>
|
||
|
<view class="box-bottom">
|
||
|
<view class="">活动时间</view>
|
||
|
<view>{{item.time}}</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
<!-- 顶部区域 -->
|
||
|
|
||
|
|
||
|
</view>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
title: '',
|
||
|
activityList: [{
|
||
|
title: "活动名称",
|
||
|
size: '文字信息文字信息文字信息文字信息文字信息文字信息文字信息文字信息',
|
||
|
path: null,
|
||
|
time: "2023.1.24-2035.1.24 "
|
||
|
},
|
||
|
{
|
||
|
title: "活动名称",
|
||
|
size: '文字信息文字信息文字信息文字信息文字信息文字信息文字信息文字信息',
|
||
|
path: null,
|
||
|
time: "2023.1.24-2035.1.24 "
|
||
|
},
|
||
|
{
|
||
|
title: "活动名称",
|
||
|
size: '文字信息文字信息文字信息文字信息文字信息文字信息文字信息文字信息',
|
||
|
path: null,
|
||
|
time: "2023.1.24-2035.1.24 "
|
||
|
},
|
||
|
]
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
},
|
||
|
|
||
|
components: {
|
||
|
|
||
|
},
|
||
|
methods: {
|
||
|
getactvity(url) {
|
||
|
if (url) {
|
||
|
console.log('跳转中');
|
||
|
} else {
|
||
|
uni.showToast({
|
||
|
title: "此活动暂无跳转地址",
|
||
|
icon: 'error'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
},
|
||
|
getlist() {
|
||
|
|
||
|
},
|
||
|
goback() {
|
||
|
uni.navigateBack()
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style scoped lang="scss">
|
||
|
.content {
|
||
|
background: #f4f5f6;
|
||
|
}
|
||
|
|
||
|
.container {
|
||
|
width: 100%;
|
||
|
height: 100vh;
|
||
|
box-sizing: border-box;
|
||
|
padding-top: 88px;
|
||
|
}
|
||
|
|
||
|
.mub {
|
||
|
background: #f4f5f6;
|
||
|
box-sizing: border-box;
|
||
|
padding: 15px;
|
||
|
}
|
||
|
|
||
|
.mub-box {
|
||
|
width: 100%;
|
||
|
border-radius: 8px;
|
||
|
box-sizing: border-box;
|
||
|
overflow: hidden;
|
||
|
background-color: #ffffff;
|
||
|
border-radius: 8px;
|
||
|
margin-bottom: 10px;
|
||
|
}
|
||
|
|
||
|
.box-img {
|
||
|
width: 100%;
|
||
|
height: 150px;
|
||
|
background-color: cornflowerblue;
|
||
|
|
||
|
image {
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
.box-size {
|
||
|
width: 100%;
|
||
|
|
||
|
box-sizing: border-box;
|
||
|
padding: 10px;
|
||
|
}
|
||
|
|
||
|
.box-bottom {
|
||
|
width: 100%;
|
||
|
height: 40px;
|
||
|
box-sizing: border-box;
|
||
|
padding: 10px;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: space-between;
|
||
|
border-top: 1px solid #f4f5f6;
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
|
||
|
.box-s-title {
|
||
|
font-size: 17px;
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
.box-s-size {
|
||
|
font-size: 14px;
|
||
|
|
||
|
}
|
||
|
|
||
|
.my-header {
|
||
|
width: 100%;
|
||
|
height: 88px;
|
||
|
background: #ffffff;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: space-between;
|
||
|
color: #000;
|
||
|
box-sizing: border-box;
|
||
|
padding: 0px 15px;
|
||
|
padding-top: 40px;
|
||
|
|
||
|
.my-icons {
|
||
|
width: 20px;
|
||
|
|
||
|
}
|
||
|
|
||
|
position: fixed;
|
||
|
top: 0px;
|
||
|
}
|
||
|
</style>
|