42 lines
976 B
Vue
42 lines
976 B
Vue
<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>
|