oil-station/gasStation-uni/pagesMy/invite/details.vue

128 lines
2.5 KiB
Vue
Raw Normal View History

2024-09-24 16:51:04 +08:00
<template>
<view class="content">
<view class="container">
2024-09-24 17:08:49 +08:00
<view class="box-hang">
<view class="dis">活动名称</view>
2024-10-16 18:01:22 +08:00
<view class="">
2024-10-17 11:27:25 +08:00
<text>{{activeInfo.activeName}}</text>
2024-09-24 17:08:49 +08:00
</view>
</view>
<view class="box-hang">
<view class="dis">活动时间</view>
2024-10-16 18:01:22 +08:00
<view class="">
2024-10-17 11:27:25 +08:00
<text>{{activeInfo.activeStartTime || '--'}}~{{activeInfo.activeEndTime || ""}}</text>
2024-09-24 17:08:49 +08:00
</view>
</view>
2024-10-17 11:27:25 +08:00
<view v-if="activeInfo.couponList">
<view class="box-hang" v-for="(item,index) in activeInfo.couponList" :key="index">
<view class="dis">赠送优惠券</view>
<view class="">
<text>{{item.giftCardName || "--"}}</text>
</view>
2024-09-24 17:08:49 +08:00
</view>
</view>
2024-10-17 11:27:25 +08:00
2024-09-24 17:08:49 +08:00
<view class="box-hang">
<view class="dis">赠送积分</view>
2024-10-16 18:01:22 +08:00
<view class="">
<text>{{activeInfo.points || 0}}</text>
2024-09-24 17:08:49 +08:00
</view>
</view>
<view class="box-hang">
<view class="dis">赠送成长值</view>
2024-10-16 18:01:22 +08:00
<view class="">
<text>{{activeInfo.growaValue || 0}}成长值</text>
2024-09-24 17:08:49 +08:00
</view>
</view>
2024-10-17 11:27:25 +08:00
<view class="box-hang">
<view class="dis">活动详情</view>
<view class="">
<text>{{activeInfo.activityDetails || "--"}}</text>
</view>
</view>
2024-09-24 16:51:04 +08:00
</view>
</view>
</template>
<script>
import request from '../../utils/request';
export default {
data() {
return {
title: '',
List: [],
pageNo: 1,
pageSize: 10,
totalPage: '',
2024-10-16 18:01:22 +08:00
activeInfo: {}
2024-09-24 16:51:04 +08:00
}
},
onPullDownRefresh() {
//下拉刷新
uni.stopPullDownRefresh()
},
onReachBottom() {
// 触底加载
if (this.pageNo >= this.totalPage) {
2024-09-24 17:08:49 +08:00
2024-09-24 16:51:04 +08:00
} else {
this.pageNo++
}
},
2024-10-16 18:01:22 +08:00
onLoad() {},
onShow() {
this.getInfo()
},
2024-09-24 16:51:04 +08:00
components: {
},
methods: {
2024-10-16 18:01:22 +08:00
getInfo() {
request({
url: '/business/marketingActivity/activeApplet/getRecommendedByStoreId',
method: 'get',
params: {
storeId: uni.getStorageSync("storeId")
}
}).then(res => {
console.log(res, 319)
if (res.code == 200) {
this.activeInfo = res.data
}
})
},
2024-09-24 16:51:04 +08:00
goback() {
uni.navigateBack()
}
}
}
</script>
<style scoped lang="scss">
.content {
background: #f4f5f6;
}
.container {
width: 100%;
height: 100vh;
box-sizing: border-box;
2024-09-24 17:08:49 +08:00
padding-top: 12px;
}
.box-hang {
background-color: white;
width: 96%;
display: flex;
box-sizing: border-box;
padding: 15px 15px;
border-bottom: 1px solid #f4f5f6;
margin: 0 auto;
font-size: 14px;
}
2024-09-24 16:51:04 +08:00
2024-09-24 17:08:49 +08:00
.dis {
color: #666666;
width: 30%;
2024-09-24 16:51:04 +08:00
}
2024-09-24 17:08:49 +08:00
</style>