zhongtianhaoyuan 2 سال پیش
والد
کامیت
c28654ff25
2فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 5 5
      pages/news/index.vue
  2. 1 1
      pages/order/driverDetail.vue

+ 5 - 5
pages/news/index.vue

@@ -174,6 +174,7 @@
 					});
 			},
 			read(val) {
+			     let that = this
 				if(val.newsType == "投诉结果" || val.newsType == "举报结果"){
 					uni.$u.route("/pages/news/feedbackResults?id=" + val.bussId + "&type=" + val.newsType)
 				}else{
@@ -183,11 +184,11 @@
 					title: '加载中',
 					mask: true
 				})
-				this.$request.baseRequest('post', '/newsInfo/api/editNewsInfo', {
+				that.$request.baseRequest('post', '/newsInfo/api/editNewsInfo', {
 						id: val.id,
 					}).then(res => {
-						this.mescroll.resetUpScroll()
-						this.look()
+						that.mescroll.resetUpScroll()
+						that.look()
 						uni.hideLoading()
 					})
 					.catch(res => {
@@ -195,14 +196,13 @@
 					});
 			},
 			look() {
+				let that = this
 				that.$request.baseRequest('get', '/newsInfo/unreadMessage', {
 					reCommonId: this.userInfo.id,
 				}).then(res3 => {
-
 					if (res3.data || res3.data == 0) {
 						let name = 'myTip';
 						let value = res3.data
-						console.log(value)
 						if (value == 0) {
 							uni.removeTabBarBadge({
 								index: 2

+ 1 - 1
pages/order/driverDetail.vue

@@ -6,7 +6,7 @@
 					<u--image :showLoading="true" :src="driverList.avatarUrl" width="100rpx" height="100rpx" @click=""
 						shape='circle'>
 					</u--image>
-					<view class="name">{{driverList.driverName}}</view>
+					<view class="name">{{driverList.driverCall}} {{driverList.driverSex =="男"?'先生':'女士'}}</view>
 				</view>
 
 				<view class="right flex s-row align-center phone">