小程序端推荐有礼

This commit is contained in:
齐天大圣 2023-12-21 17:50:14 +08:00
parent 536614d596
commit dbf7d7a72a

View File

@ -14,11 +14,11 @@
<view class="hbbox">
<view class="h-box">
<view class="or-box">
<view class="max-size">120.00</view>
<view class="max-size">{{allAmount}}</view>
<view class="min-size">优惠券总额</view>
</view>
<view class="or-box">
<view class="max-size">3</view>
<view class="max-size">{{this.activeRecommendRecordsList.length}}</view>
<view class="min-size">邀请人数</view>
</view>
</view>
@ -41,18 +41,21 @@
<view class="bai-top">
邀请记录
</view>
<view class="t-box" v-for="(item,index) in 3" :key="index">
<view class="t-box" v-for="(item,index) in activeRecommendRecordsList" :key="index">
<view class="diss">
<view class="touxiang">
<image src="../../static/imgs/myx.png" mode=""></image>
</view>
<view class="">
<view class="name-t">泸沽寻梦</view>
<view class="h-size">2023-11-02</view>
<view class="name-t">{{item.inviteeUserName}}</view>
<!-- <view class="h-size"></view> -->
</view>
</view>
<view class="hong-size">
<!-- <view class="hong-size">
+100
</view> -->
<view class="hong-size">
{{item.createTime}}
</view>
</view>
</view>
@ -62,9 +65,12 @@
</template>
<script>
import request from "../../utils/request";
export default {
data() {
return {
allAmount: 0.0,
activeRecommendRecordsList: [],
title: '',
@ -73,8 +79,34 @@
components: {
},
onShow() {
this.getAllAmount();
this.getActiveRecommendRecords();
},
methods: {
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
}
})
},
goback() {
uni.navigateBack()
}