49 lines
754 B
Vue
49 lines
754 B
Vue
|
<template>
|
||
|
<view class="">
|
||
|
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
|
||
|
}
|
||
|
},
|
||
|
onLoad() {
|
||
|
|
||
|
},
|
||
|
methods: {
|
||
|
getData() {
|
||
|
uni.showLoading({
|
||
|
title: "加载中..."
|
||
|
})
|
||
|
this.api.cardzhong().then((res) => {
|
||
|
console.log(res)
|
||
|
if (res.data.code == 200) {
|
||
|
// this.cards = res.data.data
|
||
|
this.cards.push({
|
||
|
name: '全部'
|
||
|
})
|
||
|
res.data.data.forEach((item, index) => {
|
||
|
this.cards.push(item)
|
||
|
})
|
||
|
} else {
|
||
|
this.istrue = true
|
||
|
uni.showToast({
|
||
|
icon: "none",
|
||
|
title: res.data.message
|
||
|
})
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style>
|
||
|
page {
|
||
|
background: linear-gradient(180deg, #D9EAFB 0%, #FAFAFA 40%) !important;
|
||
|
}
|
||
|
</style>
|