Browse Source

bug处理

zhengkaixin 4 years ago
parent
commit
7a4628afac

+ 1 - 1
pages/buytickets/index.vue

@@ -1,6 +1,6 @@
 <template>
 	<view>
-		<car-common  :mytitle="title" ref="common"></car-common>
+		<car-common  :mytitle="title" :noback="false" ref="common"></car-common>
 
 		
 			<carmap ref="amap"></carmap>

+ 4 - 1
pages/buytickets/selectSite.vue

@@ -27,8 +27,11 @@
 						<view class="map-geton-mark" v-show="downId==item.id">
 							<img src="static/img/down.png" alt="">
 						</view>
-						<view class="map-route-car"   v-if="item.status==1">
+						<view class="map-route-car"   v-if="i!=0&&item.status==1">
 							<img src="static/img/car.png" alt="">
+						</view>
+						<view class="map-geton-mark"   v-if="i==0&&item.status==1">
+							<img src="static/img/car.png"  style="  width: 30px;" alt="">
 						</view>
 						<view class="map-route-circle"></view>
 						<view class="map-route-line"></view>

+ 1 - 0
pages/index/index.js

@@ -55,6 +55,7 @@ export default {
 				})
 			},
 			gotoLine(item){
+				this.carhelp.set("form",{});
 				uni.navigateTo({
 					url:'/pages/buytickets/selectSite?id='+item.id
 				})

+ 6 - 0
pages/my/index.js

@@ -10,6 +10,12 @@ export default {
 			
 		},
 		methods: {
+			gotoUrl(url){
+				uni.navigateTo({
+					url:url
+				})
+			},
+			
 			showphone(phone){
 				if(!phone){
 					return "";

+ 5 - 5
pages/my/index.vue

@@ -23,15 +23,15 @@
 		</view> -->
 		
 		<u-cell-group>
-			<u-cell-item title="乘车记录"></u-cell-item>
+			<u-cell-item title="乘车记录" @click="gotoUrl('/pages/my/user/bybusList')"></u-cell-item>
 		</u-cell-group>
 		
 		<view class="u-m-t-20">
 			<u-cell-group>
-				<u-cell-item title="意见反馈"></u-cell-item>
-				<u-cell-item title="已绑定手机号">{{showphone(user.phone)}}</u-cell-item>
-				<u-cell-item title="重置密码"></u-cell-item>
-				<u-cell-item title="关于车信达"></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/resetpassword/verification')"></u-cell-item>
+				<u-cell-item title="关于车信达" @click="gotoUrl('/pages/my/platform/about')"></u-cell-item>
 			</u-cell-group>
 		</view>
 		

+ 19 - 0
pages/news/details.js

@@ -0,0 +1,19 @@
+
+	export default {
+		data() {
+			return {
+				
+			}
+		},
+		methods: {
+		 
+			        lower() {
+			            console.log("")
+						this.list.push("1")
+			        },
+		},
+		onLoad() {
+			 
+		}
+	}
+

+ 2 - 10
pages/news/details.vue

@@ -14,16 +14,8 @@
 </template>
 
 <script>
-	export default {
-		data() {
-			return {
-				
-			}
-		},
-		methods: {
-			
-		}
-	}
+	import api from './details.js'
+	export default  api;
 </script>
 
 <style scoped lang="scss">

+ 15 - 4
pages/news/index.js

@@ -1,16 +1,27 @@
-
+import * as API from '@/apis/news.js'
 
 	export default {
 		data() {
 			return {
-			
+				clientHeight:0,
+				list:[
+					1,2,3,4,6,7
+				]
 			}
 		},
 		methods: {
-			
+				gotoInfo(id){
+					uni.navigateTo({
+						url:"/pages/news/details?id="+id
+					})
+				},
+			        lower() {
+			            console.log("")
+						this.list.push("1")
+			        },
 		},
 		onLoad() {
-			 
+			 this.clientHeight=document.body.clientHeight;
 		}
 	}
 

+ 35 - 60
pages/news/index.vue

@@ -1,69 +1,44 @@
 <template>
-	<view>
+	<view >
 		<car-common :login="true" mytitle="消息" :noback="false" ref="common"></car-common>
- 		
-		<view class="new-time">
-			03-30 12:33
-		</view>
-		<view class="new-item">
-			<view class="new-head">
-				<h4>补缴车票通知</h4>
-				<p>已经过您的预定下车站点,请重新选择下车站点并补缴车票。</p>
-			</view>
-			<view class="new-main">
-				<view class="new-main-row">
-					<p>站点:</p><span>玉桥</span>
-				</view>
-				<view class="new-main-row">
-					<p>线路:</p><span>玉桥</span>
-				</view>
-				<view class="new-main-row">
-					<p>状态:</p><span>玉桥</span>
-				</view>
-			</view>
-			<view class="new-foot">
-				<p>查看详情</p>
-				<u-icon name="arrow-right" color="#999" size="28"></u-icon>
-			</view>
-		</view>
-		<view class="new-time">
-			03-30 12:33
-		</view>
-		<view class="new-item">
-			<view class="new-head">
-				<h4>补缴车票通知</h4>
-				<p>已经过您的预定下车站点,请重新选择下车站点并补缴车票。</p>
-			</view>
-			<view class="new-main">
-				<view class="new-main-row">
-					<p>站点:</p><span>玉桥</span>
-				</view>
-				<view class="new-main-row">
-					<p>线路:</p><span>玉桥</span>
-				</view>
-				<view class="new-main-row">
-					<p>状态:</p><span>玉桥</span>
-				</view>
-			</view>
-			<view class="new-foot">
-				<p>查看详情</p>
-				<u-icon name="arrow-right" color="#999" size="28"></u-icon>
-			</view>
-		</view>
+ 		  <scroll-view  :style="'height: '+clientHeight+'px;'"   scroll-y="true"     @scrolltolower="lower">
+			  <template  v-for="item in list">
+				  
+
+			  <view class="new-time">
+			  	03-30 12:33
+			  </view>
+			  <view class="new-item" @click="gotoInfo(item)">
+			  	<view class="new-head">
+			  		<h4>补缴车票通知</h4>
+			  		<p>已经过您的预定下车站点,请重新选择下车站点并补缴车票。</p>
+			  	</view>
+			  	<view class="new-main">
+			  		<view class="new-main-row">
+			  			<p>站点:</p><span>玉桥</span>
+			  		</view>
+			  		<view class="new-main-row">
+			  			<p>线路:</p><span>玉桥</span>
+			  		</view>
+			  		<view class="new-main-row">
+			  			<p>状态:</p><span>玉桥</span>
+			  		</view>
+			  	</view>
+			  	<view class="new-foot" >
+			  		<p>查看详情</p>
+			  		<u-icon name="arrow-right" color="#999" size="28"></u-icon>
+			  	</view>
+			  </view>
+			  
+			    </template>
+		  </scroll-view>
+		 
 	</view>
 </template>
 
 <script>
-	export default {
-		data() {
-			return {
-				
-			}
-		},
-		methods: {
-			
-		}
-	}
+	import api from './index.js'
+	export default  api;
 </script>
 <style>
 	page{