zhengkaixin 4 年之前
父节点
当前提交
393887fb51
共有 7 个文件被更改,包括 46 次插入10 次删除
  1. 24 0
      components/Carmap.vue
  2. 1 1
      pages/buytickets/selectSite.js
  3. 2 1
      pages/my/index.vue
  4. 7 1
      pages/my/platform/about.vue
  5. 6 5
      pages/route/index.js
  6. 6 2
      pages/route/index.vue
  7. 二进制
      static/img/map_4.png

+ 24 - 0
components/Carmap.vue

@@ -109,6 +109,30 @@
 					this.mapbus.setCenter([item.longitude,item.latitude]);
 					this.mapbus.setCenter([item.longitude,item.latitude]);
 				}
 				}
 			},
 			},
+			setSite(ob){
+				if(this.AMap==null){
+					return
+				}
+				this.down.longitude=ob.longitude
+				this.down.latitude=ob.latitude
+				if(!this.down.ob){
+					
+					var icon0 = require("@/static/img/map_4.png");
+					
+					this.down.ob= new AMap.Marker({
+						map: this.mapbus,
+						position: [this.down.longitude,this.down.latitude],
+						offset: new AMap.Pixel(-15, -30),
+						content:"<img src='"+icon0+"' style='height: 30px;width: 30px' />",
+						
+						zIndex:999,
+						autoRotation: true,
+					});
+					
+				}else{
+					this.down.ob.setPosition( [this.down.longitude,this.down.latitude]);
+				}
+			},
 			setDown(ob){
 			setDown(ob){
 				if(this.AMap==null){
 				if(this.AMap==null){
 					return
 					return

+ 1 - 1
pages/buytickets/selectSite.js

@@ -55,7 +55,7 @@ export default {
 		mapopenBtn(){
 		mapopenBtn(){
 			this.mapopen=!this.mapopen;
 			this.mapopen=!this.mapopen;
 			if(this.mapopen){
 			if(this.mapopen){
-				this.$refs.amap.setMyStyle("width: 100%; height: 240px;")
+				this.$refs.amap.setMyStyle("width: 100%; height: 340px;")
 			}else{
 			}else{
 				this.$refs.amap.setMyStyle("width: 100%; height: 140px;")
 				this.$refs.amap.setMyStyle("width: 100%; height: 140px;")
 				
 				

+ 2 - 1
pages/my/index.vue

@@ -25,13 +25,14 @@
 		
 		
 		<u-cell-group>
 		<u-cell-group>
 			<u-cell-item title="乘车记录" @click="gotoUrl('/pages/my/user/bybusList')"></u-cell-item>
 			<u-cell-item title="乘车记录" @click="gotoUrl('/pages/my/user/bybusList')"></u-cell-item>
+			<u-cell-item title="关于车信达"  @click="gotoUrl('/pages/my/platform/about')"></u-cell-item>
+		
 		</u-cell-group>
 		</u-cell-group>
 		
 		
 		<view class="u-m-t-20" v-if="user">
 		<view class="u-m-t-20" v-if="user">
 			<u-cell-group>
 			<u-cell-group>
 				<u-cell-item   title="意见反馈" @click="gotoUrl('/pages/my/user/feedback')"></u-cell-item>
 				<u-cell-item   title="意见反馈" @click="gotoUrl('/pages/my/user/feedback')"></u-cell-item>
 				<u-cell-item title="已绑定手机号" @click="gotoUrl('/pages/my/user/updatephone/index')">{{showphone(user.phone)}}</u-cell-item>
 				<u-cell-item title="已绑定手机号" @click="gotoUrl('/pages/my/user/updatephone/index')">{{showphone(user.phone)}}</u-cell-item>
- 				<u-cell-item title="关于车信达" v-if="false" @click="gotoUrl('/pages/my/platform/about')"></u-cell-item>
 			</u-cell-group>
 			</u-cell-group>
 		</view>
 		</view>
 		
 		

+ 7 - 1
pages/my/platform/about.vue

@@ -1,6 +1,12 @@
 <template>
 <template>
 	<view>
 	<view>
-		开发中
+		<car-common  mytitle="关于我们" :noback="false"  ref="common"  ></car-common>
+		
+		车信达
+		“车信达-智慧司乘云管家”由智能乘车终端、司机辅助监控终端、智能监控终端(适应于双门车型)、4G/5G传输及智能电源终端四大硬件部件和云平台组成。主要功能包括BUS线路管理、司乘管理及考勤、乘客身份识别、上下车验票及收费、巴士定位、巴士收费稽查统计等。平台达成老板 “减员增效,应收尽收,颗粒归仓”的目标,乘客 “上车刷脸快速通行,入座扫描手机购票”舒心快捷乘车体验。平台同时支持车票和现金购票传统乘车模式。
+		客户服务热线:400-8899-619
+		技术服务热线:15207211859
+		商家合作咨询:19971390396
 	</view>
 	</view>
 </template>
 </template>
 
 

+ 6 - 5
pages/route/index.js

@@ -11,7 +11,8 @@ export default {
 			title: '乘车人',
 			title: '乘车人',
 			show: false,
 			show: false,
 			id: 0, // 使用 marker点击事件 需要填写id
 			id: 0, // 使用 marker点击事件 需要填写id
-			upid:'',
+			upid:'',
+			downid:'',
 			//地图居中后的位置
 			//地图居中后的位置
 			longitude: 112.276527,
 			longitude: 112.276527,
 			latitude: 30.306427,
 			latitude: 30.306427,
@@ -66,16 +67,16 @@ export default {
 		mapopenBtn(){
 		mapopenBtn(){
 			this.mapopen=!this.mapopen;
 			this.mapopen=!this.mapopen;
 			if(this.mapopen){
 			if(this.mapopen){
-				this.$refs.amap.setMyStyle("width: 100%; height: 240px;")
+				this.$refs.amap.setMyStyle("width: 100%; height: 340px;")
 			}else{
 			}else{
 				this.$refs.amap.setMyStyle("width: 100%; height: 140px;")
 				this.$refs.amap.setMyStyle("width: 100%; height: 140px;")
 				
 				
 			}
 			}
 		},
 		},
 		downBtn(item) {
 		downBtn(item) {
-			
-				this.$refs.amap.setCenter(item);
-
+			this.$refs.amap.setSite(item);
+			this.$refs.amap.setCenter(item);
+			this.downid=item.id;
 		},
 		},
 		
 		
   
   

+ 6 - 2
pages/route/index.vue

@@ -29,13 +29,17 @@
 			<view class="map-route-main">
 			<view class="map-route-main">
 				<template v-for="item,i in stationList">
 				<template v-for="item,i in stationList">
 					<view   class="scroll-view-item" 
 					<view   class="scroll-view-item" 
-					:class="{'map-route-origin map-geton ':i==0,'map-route-item':i!=0}"
+					:class="{'map-route-origin map-geton ':i==0,'map-route-item':i!=0,'map-geton':downid==item.id}"
 					 @click="downBtn(item)">
 					 @click="downBtn(item)">
 						
 						
 						<view class="map-route-car" v-if="showCar(item)">
 						<view class="map-route-car" v-if="showCar(item)">
 							<img src="static/img/car.png" alt="">
 							<img src="static/img/car.png" alt="">
 						</view>
 						</view>
-						<view class="map-route-circle"></view>
+						<view class="map-route-circle"  :style="i==0&&downid!=item.id?'border: 3px solid #1e8abd;':''">
+			
+							<img src="static/img/plate.png" style=" width: 12px; margin-top: 3px;" v-if="downid==item.id" alt="">
+						</view>
+						
 						<view class="map-route-line"></view>
 						<view class="map-route-line"></view>
 						<view class="map-route-name">
 						<view class="map-route-name">
 							{{item.name}}
 							{{item.name}}

二进制
static/img/map_4.png