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

131 lines
2.4 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="">
<text>{{activeInfo.name}}</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-09-24 17:08:49 +08:00
<text>长期有效</text>
</view>
</view>
<view class="box-hang">
<view class="dis">推荐人等级</view>
2024-10-16 18:01:22 +08:00
<view class="">
<text>{{activeInfo.userGradeName}}</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-09-24 17:08:49 +08:00
<text>微信支付宝云闪付现金pos刷卡</text>
</view>
</view>
<view class="box-hang">
<view class="dis">赠送优惠券</view>
2024-10-16 18:01:22 +08:00
<view class="">
2024-09-24 17:08:49 +08:00
<text>50元优惠券</text>
</view>
</view>
<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-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>