Browse Source

推荐页summary获取

孙志雷 6 years ago
parent
commit
57d5ea5cde
4 changed files with 6 additions and 5 deletions
  1. 1 0
      component/follow/follow.js
  2. 1 1
      component/follow/follow.wxml
  3. 2 2
      component/hot/hot.js
  4. 2 2
      component/hot/hot.wxml

+ 1 - 0
component/follow/follow.js

@@ -58,6 +58,7 @@ export const followInit = (that) => {
         temp.img = item.userRead.iconImg;
         temp.id = item.userRead.id;
         temp.title = item.userRead.title;
+        temp.summary = item.userRead.summary;
         temp.time = formatDate(item.userRead.gmtCreated, 3);
         // 还差一些字段
         that.data.followData.push(temp);

+ 1 - 1
component/follow/follow.wxml

@@ -11,7 +11,7 @@
       <image class="wareCardImg" src="{{item.img}}" />
       <text class="wareCardTitle">{{item.title}}</text>
       <view class="bottomData">
-        <text class="wareCardTip">{{item.grade}}</text>
+        <text class="wareCardTip">{{item.summary}}</text>
         <view class="wareCardPlays">
             <image class="wareCardPlaysImg" src="../../static/image/hotPlays.png" />
             <text>{{item.plays}}</text>

+ 2 - 2
component/hot/hot.js

@@ -94,7 +94,7 @@ export const hotInit = (that) => {
         oTemp.img = item.boothContent;
         oTemp.classId = item.operationContent;
         oTemp.title = item.title;
-        oTemp.grade = item.summary;
+        oTemp.summary = item.summary;
         recommendTemp.push(oTemp);
       });
       let bannerIndex = 'hotData.banner';
@@ -117,7 +117,7 @@ export const hotInit = (that) => {
         recommendRes.forEach(item => {
           const temp = {};
           temp.title = item.userRead.title;
-          temp.grade = item.userRead.title;
+          temp.summary = item.userRead.summary;
           temp.img = item.userRead.iconImg;
           temp.plays = item.userRead.playAmount ? item.userRead.playAmount : 0;
           temp.likes = item.userRead.likeAmount ? item.userRead.likeAmount : 0;

+ 2 - 2
component/hot/hot.wxml

@@ -26,7 +26,7 @@
                 <image class="wareCardImg" src="{{item.img}}" />
                 <text class="wareCardTitle">{{item.title}}</text>
                 <view class="bottomData">
-                    <text class="wareCardTip">{{item.grade}}</text>
+                    <text class="wareCardTip">{{item.summary}}</text>
                     <!-- <view class="wareCardPlays">
                         <image class="wareCardPlaysImg" src="../../static/image/hotPlays.png" />
                         <text>{{item.plays}}</text>
@@ -51,7 +51,7 @@
                 <image class="wareCardImg" src="{{item.img}}" />
                 <text class="wareCardTitle">{{item.title}}</text>
                 <view class="bottomData">
-                    <text class="wareCardTip">{{item.grade}}</text>
+                    <text class="wareCardTip">{{item.summary}}</text>
                     <view class="wareCardPlays">
                         <image class="wareCardPlaysImg" src="../../static/image/hotPlays.png" />
                         <text>{{item.plays}}</text>