2023-11-28 10:44:18 +08:00
|
|
|
<template>
|
|
|
|
<view class="content">
|
|
|
|
<view class="container">
|
|
|
|
<view class="my-header">
|
2023-12-05 11:16:58 +08:00
|
|
|
<view class="my-icons" @click="goback"> <uni-icons type="left" color="#ffffff" size="16"></uni-icons>
|
|
|
|
</view>
|
2023-11-28 10:44:18 +08:00
|
|
|
<view class="my-text">邀请有礼</view>
|
|
|
|
<view class="my-icons"></view>
|
|
|
|
</view>
|
2023-12-05 11:16:58 +08:00
|
|
|
<view class="faimg">
|
|
|
|
<view class="box-img">
|
|
|
|
<image src="../../static/imgs/fmbj.png" mode=""></image>
|
|
|
|
</view>
|
|
|
|
<view class="hbbox">
|
|
|
|
<view class="h-box">
|
|
|
|
<view class="or-box">
|
2023-12-21 17:50:14 +08:00
|
|
|
<view class="max-size">{{allAmount}}元</view>
|
2023-12-05 11:16:58 +08:00
|
|
|
<view class="min-size">优惠券总额</view>
|
|
|
|
</view>
|
|
|
|
<view class="or-box">
|
2023-12-21 17:50:14 +08:00
|
|
|
<view class="max-size">{{this.activeRecommendRecordsList.length}}人</view>
|
2023-12-05 11:16:58 +08:00
|
|
|
<view class="min-size">邀请人数</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="x-box">
|
|
|
|
<view class="l-naniu">
|
|
|
|
<u-icon name="grid" color="#FCDB5A" size="18"></u-icon>
|
|
|
|
<text>面对面邀请</text>
|
|
|
|
</view>
|
|
|
|
<view class="r-naniu">
|
|
|
|
<u-icon name="share-fill" color="#E9312F" size="18"></u-icon>
|
|
|
|
<text>分享给好友</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
2023-11-28 10:44:18 +08:00
|
|
|
<!-- 顶部区域 -->
|
2023-12-05 11:16:58 +08:00
|
|
|
<view class="bai-box">
|
|
|
|
<view class="bai-top">
|
|
|
|
邀请记录
|
|
|
|
</view>
|
2023-12-21 17:50:14 +08:00
|
|
|
<view class="t-box" v-for="(item,index) in activeRecommendRecordsList" :key="index">
|
2023-12-05 11:16:58 +08:00
|
|
|
<view class="diss">
|
|
|
|
<view class="touxiang">
|
|
|
|
<image src="../../static/imgs/myx.png" mode=""></image>
|
|
|
|
</view>
|
|
|
|
<view class="">
|
2023-12-21 17:50:14 +08:00
|
|
|
<view class="name-t">{{item.inviteeUserName}}</view>
|
|
|
|
<!-- <view class="h-size"></view> -->
|
2023-12-05 11:16:58 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
2023-12-21 17:50:14 +08:00
|
|
|
<!-- <view class="hong-size">
|
2023-12-05 11:16:58 +08:00
|
|
|
+100
|
2023-12-21 17:50:14 +08:00
|
|
|
</view> -->
|
|
|
|
<view class="hong-size">
|
|
|
|
{{item.createTime}}
|
2023-12-05 11:16:58 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
2023-11-28 10:44:18 +08:00
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2023-12-21 17:50:14 +08:00
|
|
|
import request from "../../utils/request";
|
2023-11-28 10:44:18 +08:00
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
2023-12-21 17:50:14 +08:00
|
|
|
allAmount: 0.0,
|
|
|
|
activeRecommendRecordsList: [],
|
2023-11-28 10:44:18 +08:00
|
|
|
title: '',
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
components: {
|
|
|
|
|
2023-12-21 17:50:14 +08:00
|
|
|
},
|
|
|
|
onShow() {
|
|
|
|
this.getAllAmount();
|
|
|
|
this.getActiveRecommendRecords();
|
2023-11-28 10:44:18 +08:00
|
|
|
},
|
|
|
|
methods: {
|
2023-12-21 17:50:14 +08:00
|
|
|
getAllAmount() {
|
|
|
|
request({
|
|
|
|
url: 'business/marketingActivity/activeRecommendRecords/selectAllAmount',
|
|
|
|
method: 'get',
|
|
|
|
}).then(res => {
|
|
|
|
console.log(res)
|
|
|
|
if (res.code == 200) {
|
|
|
|
this.allAmount = res.data
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getActiveRecommendRecords() {
|
|
|
|
request({
|
|
|
|
url: 'business/marketingActivity/activeRecommendRecords',
|
|
|
|
method: 'get',
|
|
|
|
}).then(res => {
|
|
|
|
console.log(res)
|
|
|
|
if (res.code == 200) {
|
|
|
|
this.activeRecommendRecordsList = res.data.records
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
2023-11-28 10:44:18 +08:00
|
|
|
goback() {
|
|
|
|
uni.navigateBack()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.content {
|
2023-12-05 11:16:58 +08:00
|
|
|
background: #2F72F7;
|
2023-11-28 10:44:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
width: 100%;
|
|
|
|
height: 100vh;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding-top: 88px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.my-header {
|
|
|
|
width: 100%;
|
|
|
|
height: 88px;
|
2023-12-05 11:16:58 +08:00
|
|
|
background: #2F72F7;
|
2023-11-28 10:44:18 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2023-12-05 11:16:58 +08:00
|
|
|
color: #ffffff;
|
2023-11-28 10:44:18 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 0px 15px;
|
|
|
|
padding-top: 40px;
|
|
|
|
|
|
|
|
.my-icons {
|
|
|
|
width: 20px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
position: fixed;
|
|
|
|
top: 0px;
|
|
|
|
}
|
2023-12-05 11:16:58 +08:00
|
|
|
|
|
|
|
.box-img {
|
|
|
|
width: 100%;
|
|
|
|
height: 400px;
|
|
|
|
|
|
|
|
image {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.hbbox {
|
|
|
|
width: 90%;
|
|
|
|
margin: 0px auto;
|
|
|
|
height: 200px;
|
|
|
|
background: url('http://47.95.206.185:83/axb.png')center no-repeat;
|
|
|
|
background-size: 100% 100%;
|
|
|
|
position: absolute;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
bottom: -172px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.faimg {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.or-box {
|
|
|
|
width: 142px;
|
|
|
|
height: 72px;
|
|
|
|
background: #FFF4E4;
|
|
|
|
border-radius: 8px;
|
|
|
|
margin: 5px;
|
|
|
|
text-align: center;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding-top: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.h-box {
|
|
|
|
width: 100%;
|
|
|
|
padding: 10px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
padding-top: 5px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.max-size {
|
|
|
|
font-size: 18px;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #D23735;
|
|
|
|
}
|
|
|
|
|
|
|
|
.min-size {
|
|
|
|
font-size: 14px;
|
|
|
|
color: #333333;
|
|
|
|
}
|
|
|
|
|
|
|
|
.x-box {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding-top: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.l-naniu {
|
|
|
|
width: 147px;
|
|
|
|
height: 32px;
|
|
|
|
border-radius: 23px 23px 23px 23px;
|
|
|
|
opacity: 1;
|
|
|
|
border: 1px solid #FCDB5A;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
color: #FCDB5A;
|
|
|
|
margin: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.r-naniu {
|
|
|
|
width: 147px;
|
|
|
|
height: 32px;
|
|
|
|
border-radius: 23px 23px 23px 23px;
|
|
|
|
opacity: 1;
|
|
|
|
border: 1px solid #FCDB5A;
|
|
|
|
background: #FCDB5A;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
color: #E9312F;
|
|
|
|
margin: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bai-box {
|
|
|
|
width: 90%;
|
|
|
|
background: #ffffff;
|
|
|
|
border-radius: 8px;
|
|
|
|
margin: 0px auto;
|
|
|
|
box-sizing: border-box;
|
|
|
|
// padding: 15px;
|
|
|
|
margin-top: 90px;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bai-top {
|
|
|
|
width: 144px;
|
|
|
|
height: 32px;
|
|
|
|
background: linear-gradient(90deg, #F1DAB2 0%, #FBE5C5 50%, #F5DBB4 100%);
|
|
|
|
border-radius: 0px 0px 12px 12px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #552304;
|
|
|
|
margin: 0px auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.t-box {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 5px 15px;
|
|
|
|
margin: 5px auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.touxiang {
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
border-radius: 50%;
|
|
|
|
overflow: hidden;
|
|
|
|
margin-right: 10px;
|
|
|
|
|
|
|
|
image {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.hong-size {
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #D23735;
|
|
|
|
}
|
|
|
|
|
|
|
|
.name-t {
|
|
|
|
font-size: 16px;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #333333;
|
|
|
|
}
|
|
|
|
|
|
|
|
.diss {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.h-size {
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #999999;
|
|
|
|
}
|
2023-12-21 17:50:14 +08:00
|
|
|
</style>
|