瀏覽代碼

缺省图为站点logo

xiaohaizhao 1 年之前
父節點
當前提交
b608f94458

+ 1 - 1
pages/index/cloud/dataBank.vue

@@ -55,7 +55,7 @@ export default {
                     resolve()
                     if (this.cutoff(res.msg)) return;
                     res.data = res.data.map(v => {
-                        v.cover = v.attinfos.length ? this.getSpecifiedImage(v.attinfos.find(s => v.usetype == "avatar")) : "";
+                        v.cover = v.attinfos.length ? this.getSpecifiedImage(v.attinfos.find(s => v.usetype == "avatar")) : uni.getStorageSync("site").logo || '';
                         return v
                     });
                     this.list = res.pageNumber == 1 ? res.data : this.list.concat(res.data);

+ 1 - 1
pages/index/cloud/product.vue

@@ -164,7 +164,7 @@ export default {
                     resolve();
                     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);

+ 1 - 1
pages/index/cloud/school.vue

@@ -57,7 +57,7 @@ export default {
                     resolve()
                     if (this.cutoff(res.msg)) return;
                     res.data = res.data.map(v => {
-                        v.cover = v.attinfos.length ? this.getSpecifiedImage(v.attinfos.find(s => v.usetype == "avatar")) : "";
+                        v.cover = v.attinfos.length ? this.getSpecifiedImage(v.attinfos.find(s => v.usetype == "avatar")) : uni.getStorageSync("site").logo || '';
                         return v
                     });
                     this.list = res.pageNumber == 1 ? res.data : this.list.concat(res.data);

+ 4 - 13
pages/index/index/casePages/imgs.vue

@@ -12,7 +12,8 @@
                 <image class="image" :src="item.cover" mode="aspectFill" lazy-load="true" />
                 <view class="tips">
                     <view class="label u-line-1">{{ item.title }}</view>
-                    <view class="iconfont icon-liulanliang"><text style="padding-left: 5px;" />{{ item.readcount }}</view>
+                    <view class="iconfont icon-liulanliang"><text style="padding-left: 5px;" />{{ item.readcount +
+                        item.readcount_start }}</view>
                 </view>
             </navigator>
         </My_listbox>
@@ -68,7 +69,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);
@@ -90,16 +91,6 @@ body {
     overflow: hidden;
 }
 
-.tab-item {
-    flex-shrink: 0;
-    height: 24px;
-    line-height: 24px;
-    padding: 0 5px;
-    background: #F2F2F2;
-    border-radius: 12px;
-    margin-right: 5px;
-}
-
 .list-item {
     width: 355px;
     margin: 0 auto 20px;
@@ -117,7 +108,7 @@ body {
         display: flex;
         justify-content: space-between;
         height: 20px;
-        line-height: 20pxF;
+        line-height: 20px;
 
         .title {
             flex: 1;

+ 3 - 2
pages/login/modules/dispose.js

@@ -13,7 +13,7 @@ function loginMsg(account_list, _this, storage = true) {
         query_userauth();
         // query_adspacelist();
         querySite_Parameter();
-        querySite()
+        querySite(that)
     } else {
         uni.navigateTo({
             url: '/pages/login/selectSite'
@@ -58,7 +58,7 @@ function querySite_Parameter() {
 }
 
 /* 查询站点数据 */
-function querySite() {
+function querySite(that) {
     that.$Http.basic({
         "classname": "webmanage.site.site",
         "method": "querySite",
@@ -69,6 +69,7 @@ function querySite() {
             title: res.msg,
             icon: "none"
         });
+        res.data.logo = res.data.attinfos.length ? that.getSpecifiedImage(res.data.attinfos.find(s => s.usetype == "actionlogo") || res.data.attinfos[0]) : ''
         uni.setStorageSync('site', res.data);
         count += 1;
         toHome();