You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.3 KiB
66 lines
1.3 KiB
<template> |
|
<view class="content"> |
|
<view class="chuangtou"> |
|
|
|
<view class="item" @click="golist(item.id)" v-for="item in list" :key="item.id"> |
|
<view class="head"> |
|
<view class="text"> |
|
{{item.unitName}} |
|
</view> |
|
<view class="img"> |
|
<image src="../../static/more.png" mode="" class="img"></image> |
|
</view> |
|
</view> |
|
<view class="textbox"> |
|
<view class="left" v-if="item.name"> |
|
<image src="../../static/lianxi.png" mode="" class="img1"></image> |
|
<text class="text1">联系人:</text> |
|
<text class="text2"> {{item.name}}</text> |
|
</view> |
|
<view class="right"> |
|
<image src="../../static/dianhua.png" mode="" class="img2"></image> |
|
<text class="text1">联系电话:</text> |
|
<text class="text2"> {{item.telphone}}</text> |
|
</view> |
|
</view> |
|
</view> |
|
|
|
|
|
|
|
</view> |
|
</view> |
|
</template> |
|
|
|
<script> |
|
|
|
export default { |
|
data() { |
|
return { |
|
list:[], |
|
}; |
|
}, |
|
onLoad() { |
|
uni.request({ |
|
url:'https://zsy-m.mianyang.cn/open/investment/list', |
|
method:"GET", |
|
success:(res)=> { |
|
console.log(res); |
|
this.list=res.data |
|
} |
|
}) |
|
}, |
|
|
|
methods:{ |
|
golist(id){ |
|
uni.navigateTo({ |
|
url:`../chuangtoulist/chuangtoulist?id=${id}` |
|
}) |
|
} |
|
} |
|
|
|
}; |
|
</script> |
|
|
|
<style lang="scss"> |
|
@import './index.scss'; |
|
</style>
|
|
|