فهرست منبع

专栏模块显示字段修改

jwyu 3 سال پیش
والد
کامیت
927bd96829
3فایلهای تغییر یافته به همراه23 افزوده شده و 5 حذف شده
  1. 3 3
      pages-report/specialColumn/detail.vue
  2. 2 1
      pages-report/specialColumn/list.vue
  3. 18 1
      pages/report/report.vue

+ 3 - 3
pages-report/specialColumn/detail.vue

@@ -7,8 +7,7 @@
                 <text>{{info.report_author}}</text>
                 <text class="tag" v-if="info.vip_title">{{info.vip_title}}</text>
             </view>
-            <view class="user-title">{{info.author_descript}}</view>
-            <view class="user-intro">{{info.abstract}}</view>
+            <view class="user-intro">{{info.author_descript}}</view>
         </view>
         <van-sticky>
         <view class="flex tab-box">
@@ -17,7 +16,7 @@
         </view>
         </van-sticky>
         <view class="section column-intro-wrap" v-if="tabActive=='专栏介绍'">
-            <view v-html="info.descript"></view>
+            <view v-html="info.abstract"></view>
         </view>
         <view class="section report-list-wrap" v-if="tabActive=='报告目录'">
             <view class="report-empty-box" v-if="finished&&list.length==0">
@@ -226,6 +225,7 @@ page{
             margin: 20rpx 0;
         }
         .user-intro{
+            margin-top: 20rpx;
             font-size: 24rpx;
             color: #666666;
             line-height: 1.7;

+ 2 - 1
pages-report/specialColumn/list.vue

@@ -10,7 +10,7 @@
           <view class="content">
             <view class="name">{{item.classify_name_second}}</view>
             <view class="author">主讲人:{{item.report_author}}</view>
-            <view class="job">{{item.author_descript}}</view>
+            <view class="van-ellipsis job">{{item.author_descript}}</view>
             <view class="num">第{{item.stage}}期 | {{item.product_name}}</view>
           </view>
         </view>
@@ -91,6 +91,7 @@ page{
       }
       .content{
         flex: 1;
+        overflow: hidden;
         .name{
           font-size: 32rpx;
           font-weight: bold;

+ 18 - 1
pages/report/report.vue

@@ -66,6 +66,15 @@
           </view>    
       </view>
     </van-popup>
+
+    <!--  -->
+    <canvas canvas-id="canvasId" style="display:none"></canvas>
+    <image
+      :src="shareImg"
+      mode="scaleToFill"
+      show-menu-by-longpress
+      style="position:fixed;left:10px;top:10px;width:100px;height:100px;z-index:100"
+    />
   </view>
 </template>
 
@@ -101,7 +110,8 @@ export default {
       dateArr:[],
       page:1,
       pageSize:20,
-      finished:false
+      finished:false,
+      shareImg:'',
     }
   },
   onLoad(){ 
@@ -119,6 +129,7 @@ export default {
 				}
 			},
 		})
+    this.createShareImg()
   },
   onPullDownRefresh() {
     this.getTopAuthList()
@@ -137,6 +148,12 @@ export default {
     }
   },
   methods: {
+    createShareImg(){
+      const ctx=uni.createCanvasContext({ canvasId: 'canvasId'})
+      console.log(ctx);
+      // ctx
+    },
+
     initNavBar(){
       let menuButtonInfo = uni.getMenuButtonBoundingClientRect()
       this.navBarStyle={