zhaoxiaohai 3 anni fa
parent
commit
30cef60c53

+ 10 - 3
pages/tabbar/smartStore/modules/flies.scss

@@ -5,8 +5,8 @@
     display: flex;
     justify-content: space-between;
     align-items: center;
-    height: 122rpx;
-    padding: 20rpx 30rpx;
+    height: 100rpx;
+    padding: 10rpx 30rpx 0;
 
     .flie-left {
         display: flex;
@@ -24,11 +24,18 @@
             margin-left: 25rpx;
 
             .name {
+                display: flex;
+                align-items: center;
                 height: 40rpx;
                 font-size: 28rpx;
                 font-family: PingFang SC-Bold, PingFang SC;
                 font-weight: bold;
                 color: #333333;
+
+                .line-1 {
+                    max-width: 400rpx;
+                    margin-right: 10rpx;
+                }
             }
 
             .time {
@@ -48,4 +55,4 @@
         justify-content: center;
         padding-left: 20rpx;
     }
-}
+}

+ 4 - 1
pages/tabbar/smartStore/modules/flies.wxml

@@ -2,7 +2,10 @@
     <view class="flie-left">
         <image class="image" src="{{item.cover}}" />
         <view class="details">
-            <view class="name line-1">{{item.document}}</view>
+            <view class="name">
+                <view class="line-1">{{item.document}}</view>
+                <van-icon wx:if="{{item.isCollect==1}}" name="star" color='#FADB14' />
+            </view>
             <view class="time">{{item.createdate}}</view>
         </view>
     </view>

+ 2 - 1
pages/tabbar/smartStore/modules/viewPage.js

@@ -69,7 +69,8 @@ Component({
                     icon: "none"
                 })
                 wx.showToast({
-                    title: isCollect == 0 ? '收藏成功' : "取消收藏",
+                    title: isCollect == 0 ? '收藏成功' : "已取消收藏",
+                    icon: "none"
                 })
                 let list = this.data.list,
                     index = this.data.fileSelected.queryrow - 1;