xytSk-App/pages/index/index.vue

42 lines
976 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<template>
<view class="container">
<view class="intro">本项目已包含uni ui组件测试测试测试无需import和注册可直接使用在代码区键入字母u即可通过代码助手列出所有可用组件光标置于组件名称处按F1即可查看组件文档</view>
<text class="intro">详见</text>
<uni-link :href="href" :text="href"></uni-link>
</view>
</template>
<script>
export default {
data() {
return {
href: 'https://uniapp.dcloud.io/component/README?id=uniui'
}
},
methods: {
async getSwiperList(){
try{
const res = await uni.$http.get(
"/gunshiApp/xfflood/xfProjectIncident/getList?_=1716880158438"
)
console.log(res)
}catch(e){
uni.$showMsg()
}
},
onLoad(){
this.getSwiperList()
}
}
}
</script>
<style>
.container {
padding: 20px;
font-size: 14px;
line-height: 24px;
}
</style>