zhaoxiaohai 3 tahun lalu
induk
melakukan
25208b447f
3 mengubah file dengan 3 tambahan dan 62 penghapusan
  1. 2 1
      pages/college/detail.json
  2. 0 51
      pages/college/detail.scss
  3. 1 10
      pages/college/detail.wxml

+ 2 - 1
pages/college/detail.json

@@ -1,6 +1,7 @@
 {
     "navigationBarTitleText": "课程详情",
     "usingComponents": {
-        "DispalyData": "../annunciate/modules/displayData"
+        "DispalyData": "../annunciate/modules/displayData",
+        "My_accessory": "../../components/My_accessory/index"
     }
 }

+ 0 - 51
pages/college/detail.scss

@@ -1,4 +1,3 @@
-@import '../../components/My_card/index.scss';
 
 .header {
     width: 750rpx;
@@ -70,53 +69,3 @@
 
 }
 
-/* 附件 */
-.accessory {
-    display: flex;
-    align-items: center;
-    height: 122rpx;
-    background: #FFFFFF;
-    border: 1rpx solid #CCCCCC;
-
-    .icon {
-        width: 58rpx;
-        height: 58rpx;
-        margin-left: 30rpx;
-
-        .iconfont {
-            font-size: 58rpx;
-            color: var(--assist);
-        }
-    }
-
-    .explian {
-        display: flex;
-        flex-direction: column;
-        justify-content: space-between;
-        margin-left: 30rpx;
-        height: 80rpx;
-
-        .title {
-            width: 380rpx;
-            font-size: 28rpx;
-            font-family: PingFang SC-Bold, PingFang SC;
-            font-weight: bold;
-            color: #333333;
-        }
-
-        .time {
-            font-size: 20rpx;
-            font-family: PingFang SC-Regular, PingFang SC;
-            color: #999999;
-        }
-    }
-
-    .v-but {
-        width: 140rpx;
-        height: 60rpx;
-        background: #3874F6;
-        border-radius: 30rpx;
-        margin-left: 30rpx;
-    }
-
-}

+ 1 - 10
pages/college/detail.wxml

@@ -20,16 +20,7 @@
 <view style="height: 20rpx;" />
 <van-tabs swipeable sticky title-active-color='var(--assist)' color='var(--assist)'>
     <van-tab title="课件">
-        <navigator url="#" class="accessory my-card" wx:for="{{5}}">
-            <view class="icon">
-                <text class="iconfont icon-word" />
-            </view>
-            <view class="explian">
-                <view class="title line-1">销售策略销售策略销售策略销售策略</view>
-                <view class="time">2022-01-12 15:30</view>
-            </view>
-            <van-button type="primary" custom-class='v-but'>下载</van-button>
-        </navigator>
+        <My_accessory></My_accessory>
     </van-tab>
     <van-tab title="数据">
         <DispalyData></DispalyData>