فهرست منبع

添加缺省图

xiaohaizhao 1 سال پیش
والد
کامیت
7631564469
3فایلهای تغییر یافته به همراه34 افزوده شده و 7 حذف شده
  1. 2 2
      packageA/course/list.vue
  2. 1 1
      packageCase/electricAppliances/index.vue
  3. 31 4
      pages/index/index/casePages/fullView.vue

+ 2 - 2
packageA/course/list.vue

@@ -76,7 +76,7 @@ export default {
         }).then(res => {
             console.log("获取课程详情", res)
             if (this.cutoff(res.msg)) return;
-            res.data.cover = this.getSpecifiedImage(res.data.attinfos[0] || {})
+            res.data.cover = this.getSpecifiedImage(res.data.attinfos[0] || {}) || uni.getStorageSync("site").logo || ''
             this.detail = res.data;
             uni.setNavigationBarTitle({
                 title: res.data.title,
@@ -94,7 +94,7 @@ export default {
                 console.log("获取课件列表", res)
                 if (this.cutoff(res.msg)) return;
                 res.data = res.data.map(v => {
-                    v.cover = v.attinfos.length ? this.getSpecifiedImage(v.attinfos.find(s => s.usetype == "avatar") || v.attinfos[0]) : ''
+                    v.cover = v.attinfos.length ? this.getSpecifiedImage(v.attinfos.find(s => s.usetype == "avatar") || v.attinfos[0]) : uni.getStorageSync("site").logo || ''
                     return v
                 })
                 this.list = res.pageNumber == 1 ? res.data : this.list.concat(res.data);

+ 1 - 1
packageCase/electricAppliances/index.vue

@@ -118,7 +118,7 @@ export default {
                 console.log("获取电器列表", res)
                 if (this.cutoff(res.msg)) return;
                 res.data = res.data.map(v => {
-                    v.cover = v.attinfos.length ? this.getSpecifiedImage(v.attinfos.find(s => s.usetype == "sa_fad") || v.attinfos[0]) : ''
+                    v.cover = v.attinfos.length ? this.getSpecifiedImage(v.attinfos.find(s => s.usetype == "sa_fad") || v.attinfos[0]) : uni.getStorageSync("site").logo || ''
                     return v
                 })
                 this.list = res.pageNumber == 1 ? res.data : this.list.concat(res.data);

+ 31 - 4
pages/index/index/casePages/fullView.vue

@@ -1,6 +1,10 @@
 <template>
     <view>
-        <tabs ref="tabs" @getList="getList" />
+        <tabs ref="tabs" @getList="getList">
+            <view class="tab-item">
+                全国精选
+            </view>
+        </tabs>
         <My_listbox ref="List" @getlist="getList" :bottomHeight="70">
             <navigator class="list-item" :url="'/packageA/webView/webView?url=' + item.panoramaurl" v-for="item in list"
                 hover-class="navigator-hover" :key="item.sat_sharematerialid">
@@ -8,6 +12,7 @@
                 <view class="tips">
                     <view class="label u-line-1">{{ item.title }}</view>
                 </view>
+                <view class="iconfont icon-a-720quanjing-bai" />
             </navigator>
         </My_listbox>
     </view>
@@ -17,7 +22,7 @@
 import tabs from "./tabs.vue"
 export default {
     components: { tabs },
-    name: "imgsindex",
+    name: "fullView",
     data() {
         return {
             "content": {
@@ -54,7 +59,7 @@ export default {
                     if (this.cutoff(res.msg)) return;
                     this.isInitialize = true;
                     res.data = res.data.map(v => {
-                        v.cover = v.attinfos.length ? this.getSpecifiedImage(v.attinfos.find(s => s.usetype == "sat_sharematerial") || v.attinfos[0]) : ''
+                        v.cover = v.attinfos.length ? this.getSpecifiedImage(v.attinfos.find(s => s.usetype == "sat_sharematerial") || v.attinfos[0]) : uni.getStorageSync("site").logo || ''
                         return v
                     })
                     this.list = res.pageNumber == 1 ? res.data : this.list.concat(res.data);
@@ -75,6 +80,7 @@ body {
 
 
 .list-item {
+    position: relative;
     width: 355px;
     margin: 0 auto 20px;
     border-radius: 5px;
@@ -91,7 +97,7 @@ body {
         display: flex;
         justify-content: space-between;
         height: 20px;
-        line-height: 20pxF;
+        line-height: 20px;
 
         .title {
             flex: 1;
@@ -102,5 +108,26 @@ body {
             margin-bottom: 20px;
         }
     }
+
+    .icon-a-720quanjing-bai {
+        position: absolute;
+        top: 5px;
+        right: 5px;
+        font-size: 24px;
+        color: #fff;
+    }
+}
+
+
+.tab-item {
+    flex-shrink: 0;
+    height: 24px;
+    line-height: 24px;
+    padding: 0 5px;
+    border-radius: 12px;
+    margin-right: 5px;
+    font-size: 12px;
+    background: #C30D23;
+    color: #FFFFFF;
 }
 </style>