128 lines
2.5 KiB
Vue
128 lines
2.5 KiB
Vue
<template>
|
|
<view class="content">
|
|
<view class="container">
|
|
<view class="box-hang">
|
|
<view class="dis">活动名称</view>
|
|
<view class="">
|
|
<text>{{activeInfo.activeName}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="box-hang">
|
|
<view class="dis">活动时间</view>
|
|
<view class="">
|
|
<text>{{activeInfo.activeStartTime || '--'}}~{{activeInfo.activeEndTime || ""}}</text>
|
|
</view>
|
|
</view>
|
|
<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>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="box-hang">
|
|
<view class="dis">赠送积分</view>
|
|
<view class="">
|
|
<text>{{activeInfo.points || 0}}分</text>
|
|
</view>
|
|
</view>
|
|
<view class="box-hang">
|
|
<view class="dis">赠送成长值</view>
|
|
<view class="">
|
|
<text>{{activeInfo.growaValue || 0}}成长值</text>
|
|
</view>
|
|
</view>
|
|
<view class="box-hang">
|
|
<view class="dis">活动详情</view>
|
|
<view class="">
|
|
<text>{{activeInfo.activityDetails || "--"}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import request from '../../utils/request';
|
|
export default {
|
|
data() {
|
|
return {
|
|
title: '',
|
|
List: [],
|
|
pageNo: 1,
|
|
pageSize: 10,
|
|
totalPage: '',
|
|
activeInfo: {}
|
|
}
|
|
},
|
|
onPullDownRefresh() {
|
|
//下拉刷新
|
|
uni.stopPullDownRefresh()
|
|
},
|
|
onReachBottom() {
|
|
// 触底加载
|
|
if (this.pageNo >= this.totalPage) {
|
|
|
|
} else {
|
|
this.pageNo++
|
|
}
|
|
},
|
|
onLoad() {},
|
|
onShow() {
|
|
this.getInfo()
|
|
},
|
|
components: {
|
|
|
|
},
|
|
methods: {
|
|
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
|
|
}
|
|
})
|
|
},
|
|
goback() {
|
|
uni.navigateBack()
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.content {
|
|
background: #f4f5f6;
|
|
}
|
|
|
|
.container {
|
|
width: 100%;
|
|
height: 100vh;
|
|
box-sizing: border-box;
|
|
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;
|
|
}
|
|
|
|
.dis {
|
|
color: #666666;
|
|
width: 30%;
|
|
}
|
|
</style> |