bayi %!s(int64=2) %!d(string=hai) anos
pai
achega
dbcf7d2f39
Modificáronse 6 ficheiros con 6 adicións e 6 borrados
  1. 4 4
      pages/message/index.wxml
  2. BIN=BIN
      static/my.png
  3. BIN=BIN
      static/my2.png
  4. BIN=BIN
      static/zp.png
  5. BIN=BIN
      static/zp2.png
  6. 2 2
      utils/request.js

+ 4 - 4
pages/message/index.wxml

@@ -6,7 +6,7 @@
     查找昵称/学号/手机号
   </view>
   <view class="messageList">
-    <view class="base authority" bindtap="jump" data-url='comment'>
+    <view class="base authority" bindtap="jump" data-url='comment' wx:if="{{authorityMsg.postsCount>0}}">
       <image src="/static/message3.png" class="avatar" />
       <view class="body">
         <view class="name">评论</view>
@@ -16,10 +16,10 @@
       </view>
       <view class="right">
         <view class="date">{{filters.formatDate(authorityMsg.postsDate,5)}}</view>
-        <view class="unread" wx:if="{{authorityMsg.postsCount>0}}">{{authorityMsg.postsCount}}</view>
+        <view class="unread">{{authorityMsg.postsCount}}</view>
       </view>
     </view>
-    <view class="base authority" bindtap="jump" data-url='like'>
+    <view class="base authority" bindtap="jump" data-url='like' wx:if="{{authorityMsg.likeCount>0}}">
       <image src="/static/zan.png" class="avatar" />
       <view class="body">
         <view class="name">赞</view>
@@ -29,7 +29,7 @@
       </view>
       <view class="right">
         <view class="date">{{filters.formatDate(authorityMsg.likeDate,5)}}</view>
-        <view class="unread" wx:if="{{authorityMsg.likeCount>0}}">{{authorityMsg.likeCount}}</view>
+        <view class="unread">{{authorityMsg.likeCount}}</view>
       </view>
     </view>
     <view class="base authority" bindtap="jump" data-url='notice'>

BIN=BIN
static/my.png


BIN=BIN
static/my2.png


BIN=BIN
static/zp.png


BIN=BIN
static/zp2.png


+ 2 - 2
utils/request.js

@@ -10,8 +10,8 @@ const {
 baseUrl = 'https://reader-api.efunbox.cn/wx'
 oldUrl = 'https://reader-api.efunbox.cn'
 // } else {
-//   baseUrl = 'https://reader-api.ai160.com/wx'
-//   oldUrl = 'https://reader-api.ai160.com'
+// baseUrl = 'https://reader-api.ai160.com/wx'
+// oldUrl = 'https://reader-api.ai160.com'
 // }
 
 function request(url, method, data, oldBaseUrl = false) {