Parcourir la source

Merge branch 'master' of http://gogs.efunbox.cn:3000/Rorschach/reader

Rorschach il y a 6 ans
Parent
commit
a1f51ce050
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      component/my/my.wxml

+ 4 - 4
component/my/my.wxml

@@ -21,7 +21,7 @@
       </view>
       <view class='mine-category'>
         <view class='play-count'>
-          <view>{{ myData.user.playAmount }}</view>
+          <view>{{ myData.user.playAmount || 0 }}</view>
           <view class='border-right'>
             <view class='play-img'>
               <image src='../../static/image/play.png'></image>
@@ -30,7 +30,7 @@
           </view>
         </view>
         <view class='follow-count'>
-          <view class='color'>{{ myData.user.fansAmount }}</view>
+          <view class='color'>{{ myData.user.fansAmount || 0 }}</view>
           <view class='border-right'>
             <view class='play-img'>
               <image src='../../static/image/follow.png'></image>
@@ -39,7 +39,7 @@
           </view>
         </view>
         <view class='point-count'>
-          <view class='color'>{{ myData.user.likeAmount }}</view>
+          <view class='color'>{{ myData.user.likeAmount || 0 }}</view>
           <view class='border-right'>
             <view class='play-img'>
               <image src='../../static/image/point.png'></image>
@@ -48,7 +48,7 @@
           </view>
         </view>
         <view class='flower-count'>
-          <view class='color'>{{ myData.user.pointAmount }}</view>
+          <view class='color'>{{ myData.user.pointAmount || 0 }}</view>
           <view class='border-right'>
             <view class='play-img'>
               <image src='../../static/image/flower.png'></image>