Rorschach 6 năm trước cách đây
mục cha
commit
d0663dfda6
3 tập tin đã thay đổi với 11 bổ sung4 xóa
  1. 4 2
      component/hot/hot.wxss
  2. 6 1
      pages/social/works/works.js
  3. 1 1
      pages/social/works/works.wxml

+ 4 - 2
component/hot/hot.wxss

@@ -310,7 +310,9 @@ swiper {
     flex-wrap: wrap;
     flex-direction: row;
     overflow-x: hidden;
-    justify-content: space-between;
+    justify-content: space-around;
+    align-items: center;
+
     padding: 0 20rpx;
     box-sizing: border-box;
     position: absolute;
@@ -322,7 +324,7 @@ swiper {
     display: flex;
     /* margin-right: 35rpx; */
     flex-direction: column;
-
+    justify-content: space-between;
     width: 214rpx;
     height: 330rpx;
 }

+ 6 - 1
pages/social/works/works.js

@@ -656,4 +656,9 @@ Page({
         //登录页信息
         this.onLoad(this.data.onLoadOption);
     },
-})
+    goToClass: function(){
+        wx.navigateTo({
+            url:`../../main/class/class?id=${this.data.classId}`
+        })
+    }
+})

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

@@ -70,7 +70,7 @@
     </view>
     <view class="footSection">
         <image class="blackbord" src="../../../static/image/blackbord.png" />
-        <view class="collectBtn footerBtn" bindtap="reward">
+        <view class="collectBtn footerBtn" bindtap="goToClass">
             <!-- <view wx:if="{{isIOS}}" class="stop-default"></view> -->
             <image src="../../../static/image/listen_carfully.png" />
             <text>听配音</text>