Ver Fonte

交友,点赞

wkyy há 3 anos atrás
pai
commit
e84b521e21
3 ficheiros alterados com 22 adições e 13 exclusões
  1. 1 1
      pages/friend/index.vue
  2. 1 1
      pages/friend/personal.vue
  3. 20 11
      pages/praise/index.vue

+ 1 - 1
pages/friend/index.vue

@@ -135,7 +135,7 @@
 				</u-image>
 				</u-image>
 				<view class="friendList-text">
 				<view class="friendList-text">
 					<view class="friendList-name">
 					<view class="friendList-name">
-						<span>{{item.realName}}</span>
+						<span>{{showName(item.realName)}}</span>
 						<u-icon v-if="item.gender" custom-prefix="custom-icon" name="women-line" color="#FF695B"></u-icon>
 						<u-icon v-if="item.gender" custom-prefix="custom-icon" name="women-line" color="#FF695B"></u-icon>
 						<u-icon v-else custom-prefix="custom-icon" name="men-line" color="#1677FF"></u-icon>
 						<u-icon v-else custom-prefix="custom-icon" name="men-line" color="#1677FF"></u-icon>
 					</view>
 					</view>

+ 1 - 1
pages/friend/personal.vue

@@ -35,7 +35,7 @@
  			</view>
  			</view>
 			<view class="personal-main"  v-if="detail.id">
 			<view class="personal-main"  v-if="detail.id">
 				<view class="personal-name">
 				<view class="personal-name">
-					<span v-text="detail.realName"></span>
+					<span v-text="showName(detail.realName)"></span>
 					<u-icon custom-prefix="custom-icon" :name="detail.gender?'women-line':'men-line'" :color="detail.gender?'#FF695B':'#1677FF'"></u-icon>
 					<u-icon custom-prefix="custom-icon" :name="detail.gender?'women-line':'men-line'" :color="detail.gender?'#FF695B':'#1677FF'"></u-icon>
 				</view>
 				</view>
 				<view class="personal-space">
 				<view class="personal-space">

+ 20 - 11
pages/praise/index.vue

@@ -64,23 +64,32 @@
 		onShow() {
 		onShow() {
 			if(this.carhelp.getPersonInfo().id != null) {
 			if(this.carhelp.getPersonInfo().id != null) {
 				this.getHomePage(true);
 				this.getHomePage(true);
-			} else {
-				uni.showToast({
-					title: "请用户先登录再浏览本页面",
-					icon: "none"
-				})
 			}
 			}
 		},		
 		},		
 		methods: {
 		methods: {
 			toIPraise() {
 			toIPraise() {
-				uni.navigateTo({
-					url: '/pages/praise/iPraise'
-				});
+				if(this.carhelp.getPersonInfo().id != null) {
+					uni.navigateTo({
+						url: '/pages/praise/iPraise'
+					});
+				} else {
+					uni.showToast({
+						title: "请用户先登录再浏览本页面",
+						icon: "none"
+					})
+				}
 			},
 			},
 			toPraiseMe() {
 			toPraiseMe() {
-				uni.navigateTo({
-					url: '/pages/praise/praiseMe'
-				});
+				if(this.carhelp.getPersonInfo().id != null) {
+					uni.navigateTo({
+						url: '/pages/praise/praiseMe'
+					});
+				} else {
+					uni.showToast({
+						title: "请用户先登录再浏览本页面",
+						icon: "none"
+					})
+				}
 			},
 			},
 			getHomePage(bl) {
 			getHomePage(bl) {
 				uni.showLoading({
 				uni.showLoading({