|
@@ -11,7 +11,8 @@
|
|
|
<view class="body-box bg-blue">
|
|
|
<!-- 滚动区域 -->
|
|
|
<view class="scroll-list">
|
|
|
- <scrollBox v-if="list.length" :list="list"></scrollBox>
|
|
|
+ <scrollBox v-if="list.length&&!hasRedPacket" :list="list"></scrollBox>
|
|
|
+ <scrollBox v-if="slist.length&&hasRedPacket" :list="slist"></scrollBox>
|
|
|
</view>
|
|
|
<!-- 保证金 -->
|
|
|
<view class="notices flex align_center" v-if="bondRecord" @click="toPayBondAmount">
|
|
@@ -123,6 +124,7 @@
|
|
|
import { findCurrentRewardRule } from '@/api/rewardRule.js'
|
|
|
import { listLookUp, getLookUpDatas } from '@/api/data.js';
|
|
|
import { scanVinLogQueryRoll, getScanVinLogList, getScanGetMaxQty }from '@/api/car.js'
|
|
|
+ import { getRewardRollList } from '@/api/rewardRule.js'
|
|
|
export default {
|
|
|
components: {
|
|
|
scrollBox,
|
|
@@ -133,7 +135,8 @@
|
|
|
status: 'loading',
|
|
|
noDataText: '暂无数据',
|
|
|
bondRecord: null, // 保证金
|
|
|
- list:[],
|
|
|
+ list:[], // 扫描记录滚动
|
|
|
+ slist:[], // 红包滚动
|
|
|
vinList: [],
|
|
|
orderTodo: null,
|
|
|
avatarUrl:'',
|
|
@@ -393,6 +396,15 @@
|
|
|
getRedPacketRule(){
|
|
|
findCurrentRewardRule().then(res => {
|
|
|
this.$store.state.vuex_rewardRule = res.data;
|
|
|
+ this.getRedScroll()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getRedScroll(){
|
|
|
+ getRewardRollList({pageNo:1,pageSize:1000}).then(res => {
|
|
|
+ this.slist = res.data || []
|
|
|
+ this.slist.map(item => {
|
|
|
+ item.placeText = item.userName + '刚刚得到了'+item.totalRewardAmount+'元 红包奖励'
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
// 获取保证金金额
|