123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <template>
- <view class="content">
- <car-common ref="common" ></car-common>
-
- <u-navbar :is-back="false" title="">
- <view class="slot-wrap">
- <view class="navbar-left">
- <picker :value="index" @change="bindPickerChange" range-key="name" :range="options1">
- <view class="uni-input" v-if="options1.length">{{options1[index].name}}
- <u-icon name="arrow-down" color="#999" size="28"></u-icon>
- </view>
- </picker>
- </view>
- <view class="search-wrap" >
- <u-search placeholder="搜索线路" @click="gotoQuery" :disabled="true" :show-action="false"></u-search>
- </view>
- <!-- <view class="navbar-right" @click="getScan">
- <u-icon name="saoma" custom-prefix="custom-icon" size="40" color="#333"></u-icon>
- </view> -->
- </view>
-
- </u-navbar>
- <view class="banner" v-show="list.length">
- <u-swiper height="200" :list="list" @click="clickSwiper"></u-swiper>
- </view>
-
- <view class="remind" v-if="remindInfo">
- <h3>{{remindInfo.currentStationName}} - {{remindInfo.ticketDownStationName}}</h3>
- <p>线路:{{remindInfo.routeName}} 当前:{{remindInfo.currentStationName}}</p>
- <view class="remind-radio">
- <span>到站提醒:</span>
- <u-radio-group v-model="remindInfo.isRemind" @change="radioGroupChange" active-color="#fff">
- <u-radio
- @change="radioChange"
- v-for="(dio, index) in radiolist" :key="index"
- :name="dio.isRemind"
- >
- {{dio.name}}
- </u-radio>
- </u-radio-group>
- </view>
-
- </view>
-
- <view v-if="!getPointBl" style="text-align:center;margin-top: 40px;" >
- <img src="static/img/getPointError.png" style="width: 50%;" alt="" >
- <view>打开手机定位功能,为您查询附近的站点</view>
- <u-button :custom-style="btn" size="medium" shape="circle" plain @click="getPoint(true)" >刷新</u-button>
- </view>
-
- <view v-if="isLoading&&getPointBl&&siteList.length==0" style="text-align:center;margin-top: 40px;" >
- <img src="static/img/null.png" style="width: 50%;" alt="" >
- <view>附近暂无站点信息</view>
- <u-button :custom-style="btn" size="medium" shape="circle" plain @click="getPoint(true)" >刷新</u-button>
- </view>
- <view class="index-floor" v-for="item,index in siteList" :key="index">
- <view class="title" @click="gotoLineList(item.stationId)" >
- <view class="title-site">
- <u-icon name="zhanpai" custom-prefix="custom-icon" size="40" color="#1677ff"></u-icon>
- <span>{{item.stationName}}</span>
- </view>
- <u-icon name="arrow-right" color="#999" size="28"></u-icon>
- </view>
- <view class="content">
- <view class="route">
- <view class="route-item" v-for="li,i in item.nearbyShiftDTOList" :key="i" @click="gotoLine(li,item.stationId)">
- <view class="route-text">
- <h4>{{li.routeName}}</h4>
- <p>开往:{{li.endStationName}} {{li.currentStationName&&li.des!='等待发车'?'当前:'+li.currentStationName:''}}</p>
- </view>
- <view class="route-gap" >
- <view class="route-gap stop">
- <span>{{li.des?li.des:"等待发车"}}</span>
- <u-icon name="arrow-right" color="#999" size="28"></u-icon>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
-
- </view>
- </template>
- <script>
- import api from './index.js'
- export default api
-
- </script>
- <style>
- page{background-color: #f7f7f7;}
- </style>
- <style scoped lang="scss">
- .btn{
- border-color: #1677FF ;
- }
- .slot-wrap {
- display: flex;
- align-items: center;
- flex: 1;
- }
- .navbar-right {
- display: flex;
- margin-right: 20rpx;
- }
- .navbar-left{
- display: flex;
- align-items: center;
- margin-left: 20rpx;
- span{
- margin-right: 6rpx;
- font-size: 14px;
- }
- }
- .search-wrap {
- margin: 0 20rpx;
- flex: 1;
- }
- .banner{
- padding: 20rpx;
- background-color: #fff;
- }
- .slot-content{
- background-color: #fff;
- }
- .index-floor{
- margin: 20rpx;
- background-color: #fff;
- border-radius: 20rpx;
- .title{
- padding: 20rpx;
- border-bottom: 1px solid #f7f7f7;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .title-site{
- display: flex;
- align-items: center;
- }
- span{
- margin-left: 10rpx;
- font-size: 16px;
- font-weight: bold;
- }
- }
- .text{
- padding: 20rpx;
- border-bottom: 1px solid #f7f7f7;
- display: flex;
- align-items: center;
- span{
- margin-left: 10rpx;
- font-size: 12px;
- }
- }
- }
- .route{
- margin:0 20rpx;
- }
- .route-item{
- padding: 20rpx 0;
- border-bottom: 1px solid #f7f7f7;
- display: flex;
- justify-content: space-between;
- align-items: center;
- &:last-child{
- border: none;
- }
- h4{
- font-size: 32rpx;
- }
- p{
- margin-top: 6rpx;
- color:#999;
- }
- }
- .route-gap{
- span{
- font-size: 32rpx;
- font-weight: bold;
- margin-right: 10rpx;
- color:#1677ff;
- }
- &.stop{
- span{color:#ff731d}
- }
- }
- .remind{
- background-color: #1677ff;
- margin: 10px;
- padding: 10px;
- border-radius: 10px;
- h3{color:#fff}
- p{color:#fff;margin-top: 10px;margin-bottom: 5px;}
-
- }
- .remind-radio{
- color:#fff;
- /deep/.u-radio__label{
- color:#fff;
- }
- /deep/.u-icon__icon{
- color:#1677ff!important
- }
- }
- </style>
|