Rorschach 6 anni fa
parent
commit
0b1ff22b0a

+ 2 - 2
pages/user/myconcern/myconcern.wxml

@@ -18,13 +18,13 @@
       </view>
       <view class="avatar-follow" wx:if='{{ item.isEachOther }}'>
         <view class='avatar-img'>
-          <image class='avatar-images' src="../../../static/image/concerned.png" />
+          <image class='avatar-images' src="../../../static/image/concernback.png" />
         </view>
         <view class="follow-status">相互关注</view>
       </view>
       <view class="avatar-follow" wx:elif='{{ item.followBack === item.followBack || item.isEachOther }}'>
         <view class='avatar-img'>
-          <image class='avatar-images' src="../../../static/image/concernback.png" />
+          <image class='avatar-images' src="../../../static/image/concerned.png" />
         </view>
         <view class="follow-status">已关注</view>
       </view>

+ 6 - 2
pages/user/walletDetails/walletDetails.wxml

@@ -4,7 +4,11 @@
     var timeString = timeTemp.toLocaleDateString() + timeTemp.toLocaleTimeString();
     return timeString.replace('/','-').replace('/','-').replace('上午',' ').replace('下午',' ');
   }
+  function parseDouble(number) {
+    return parseFloat(number).toFixed(2);
+  }
   module.exports.formatDate = formatDate;
+  module.exports.parseDouble = parseDouble;
 </wxs>
 <view class='walletDetails'>
   <view class="walletDetails-center">
@@ -22,11 +26,11 @@
       <view class="walletDetails-right">
         <view class="avatar-value-pos" wx:if="{{ item.type === 'INCOME' }}">
           <text class="avatar-symbol">+</text>
-          <text>{{ item.price / 100 }}</text>
+          <text>{{ wxs.parseDouble(item.price / 100) }}</text>
         </view>
         <view class="avatar-value-neg" wx:else>
           <text class="avatar-symbol">-</text>
-          <text>{{ item.price / 100 }}</text>
+          <text>{{ wxs.parseDouble(item.price / 100) }}</text>
         </view>
       </view>
     </view>

+ 1 - 1
project.config.json

@@ -41,7 +41,7 @@
 				{
 					"id": 0,
 					"name": "edit",
-					"pathName": "pages/user/mycollection/mycollection",
+					"pathName": "pages/user/walletDetails/walletDetails",
 					"query": ""
 				},
 				{