开屏页

This commit is contained in:
shijingjing
2023-03-20 11:49:03 +08:00
parent 6bcd9c870a
commit ae7fe3f5b5
2 changed files with 24 additions and 8 deletions

View File

@@ -1,24 +1,39 @@
<template>
<div class="openPage">
<img class="images" src="./img/kaiping3.png" alt="">
<img class="images" :src="picUrl" alt="">
</div>
</template>
<script>
export default {
name: "openPage",
appName: "openPage",
customNavigation: true,
data() {
return {
picUrl: '',
}
},
methods: {
getList() {
this.$instance.post('/app/appwechatguidepage/listForXCX',null, {
params: {
current: 1,
size: 100,
}
}).then(res=> {
if(res?.data) {
this.picUrl = res.data.records[0].picUrl
}
})
}
},
onShow() {
onLoad() {
this.getList()
setTimeout(()=> {
uni.switchTab({
url: '/pages/AppHome/AppHome'
})
}, 2000)
},
}
</script>