Explorar el Código

用户朗读推荐人的进入处理

孙志雷 hace 6 años
padre
commit
689f0c0a31

+ 1 - 1
app.json

@@ -25,7 +25,7 @@
   "window": {
     "backgroundTextStyle": "light",
     "navigationBarBackgroundColor": "#61CA54",
-    "navigationBarTitleText": "小学语文课文朗读",
+    "navigationBarTitleText": "小学语文朗读配音",
     "navigationBarTextStyle": "white",
     "backgroundColor": "#61CA54",
     "onReachBottomDistance": 50

+ 1 - 1
pages/groupPage/grade-details/grade-details.wxml

@@ -8,7 +8,7 @@
         </view>
         <view class="catalog">
             <image src="../../../static/groupImg/Rectangle 34@2x.png"></image>
-            <text>文目录</text>
+            <text>文目录</text>
         </view>
         <view class="catalog-list">
             <view class="catalog-item" wx:for="{{lessonList}}" wx:key="{{index}}" data-id="{{item.id}}" data-title="{{item.title}}" bindtap="goToClass">

+ 1 - 1
pages/groupPage/group-details/group-details.wxml

@@ -48,7 +48,7 @@
         </view>
         <view class="catalog">
             <image src="../../../static/groupImg/Rectangle 34@2x.png"></image>
-            <text>文目录</text>
+            <text>文目录</text>
         </view>
         <view class="catalog-list">
             <view class="catalog-item" wx:for="{{lessonList}}" wx:key="{{index}}" data-id="{{item.id}}" data-title="{{item.title}}">

+ 4 - 2
pages/social/works/works.js

@@ -50,7 +50,9 @@ Page({
             const works = res.data.data.userRead;
             const othersTemp = [];
             others.forEach((item) => {
-                const temp = {};
+              const temp = {};
+                temp.uid = item.userRead.id;
+                temp.title = item.userRead.title;
                 temp.image = item.user.avatar;
                 temp.nickName = item.user.wechatName;
                 othersTemp.push(temp);
@@ -191,7 +193,7 @@ Page({
     // 去其他用户的作品页
     goToOthers: function (e) {
         wx.navigateTo({
-            url: `../../main/reading/reading?id=${id}&title=${title}`
+          url: `../../social/works/works?id=${e.currentTarget.dataset.uid}&title=${e.currentTarget.dataset.title}`
         })
     },
     // 查询回复

+ 1 - 1
pages/social/works/works.wxml

@@ -19,7 +19,7 @@
         <scroll-view scroll-x class="scrollWrapper" scroll-with-animation="true">
             <view class="avatarRow">
                 <view class="userItem" wx:for="{{user}}" wx:key="{{index}}">
-                    <image src="{{item.image}}" bindtap="goToOthers" data-uid="{{item.uid}}" />
+                    <image src="{{item.image}}" bindtap="goToOthers" data-uid="{{item.uid}}" data-title="{{item.title}}" />
                 </view>
             </view>
         </scroll-view>