| | |
| | | <template> |
| | | <view class="list"> |
| | | <view class="list-item flex j-c-s-b"> |
| | | <text class="item-text f-28">信州公安局西市派出所信州公安局西市派出所信州公安局西市派出所信州公安局西市派出所</text> |
| | | <view class="flex a-i-c"> |
| | | <text class="f-28 c-main mr-20">0793-8222830</text> |
| | | <view class="list-item flex j-c-s-b" v-for="(item,index) in list" :key="index"> |
| | | <text class="item-text f-28">{{item.name}}</text> |
| | | <view class="flex a-i-c" @click="onCall(item.telephone)"> |
| | | <text class="f-28 c-main mr-20">{{item.telephone}}</text> |
| | | <u-icon name="/static/icon/tel.png" width="32rpx" height="32rpx"></u-icon> |
| | | </view> |
| | | </view> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getHotLineList } from "@/api/service/service.js" |
| | | export default{ |
| | | data(){ |
| | | return { |
| | | |
| | | list:[] |
| | | } |
| | | }, |
| | | onLoad(){ |
| | | this.getList() |
| | | }, |
| | | |
| | | methods:{ |
| | | |
| | | getList(){ |
| | | getHotLineList().then(res=>{ |
| | | console.log(res) |
| | | this.list = res.data.records; |
| | | }) |
| | | }, |
| | | onCall(tel){ |
| | | uni.makePhoneCall({ |
| | | phoneNumber:tel |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |