This commit is contained in:
xiaozhiyong
2023-09-18 17:22:04 +08:00
parent 49fc0e5531
commit 5a73a4e9a6
9 changed files with 701 additions and 401 deletions

View File

@@ -43,7 +43,7 @@
<swiper-item v-for="(item,index) in cardList" :key="index" :class="cardCur==index?'cur':''">
<!-- <image :src="imgURL+ (item.type=='zs'?'card-zs.png':'card-other.png')" mode="aspectFill">
</image> -->
<oil-card :card="item"></oil-card>
<oil-card :card="item" @buttomPopup="buttomPopup"></oil-card>
</swiper-item>
</swiper>
</view>
@@ -89,15 +89,19 @@
<view class="bg-white">
<uni-load-more :status="loadStatus"></uni-load-more>
</view>
<transBlcok ref="transBlcok" @reloadCard="getCards"/>
</view>
</template>
<script>
import transBlcok from '@/components/transBlock/index.vue'
import oilCard from '../../components/oil-card/oil-card.vue'
import accountApi from '@/api/account.js'
export default {
components: {
oilCard
oilCard,
transBlcok
},
data() {
return {
@@ -180,6 +184,9 @@
}
},
methods: {
buttomPopup(result) {
this.$refs.transBlcok._open(result)
},
getTotalOilCardInfo() {
accountApi.getTotalOilCardInfo().then(res => {
if (res.code == 20000) {
@@ -226,8 +233,9 @@
if (res.code == 20000) {
if (res.data.length > 0) {
let staging = res.data.filter(item => item.companyType != 5).filter(item => !this.hideCard.includes(item
.companyId))
let staging = res.data.filter(item => item.companyType != 5).filter(item => !this
.hideCard.includes(item
.companyId))
staging.forEach(item => {
this.$set(item, 'currentPage', 1)
this.$set(item, 'loadStatus', 'more')
@@ -265,7 +273,9 @@
for (let value of map.values()) {
values.push(value)
}
values.sort((a,b)=>{return a - b})
values.sort((a, b) => {
return a - b
})
values.reverse()
values.forEach(value => {
keys.forEach(key => {
@@ -347,7 +357,11 @@
}
</script>
<style scoped>
<style lang="scss" scoped>
/deep/.vue-ref {
padding-bottom: 0 !important;
}
.boxsingForCard {
position: relative;
}