jwyu 2 роки тому
батько
коміт
6597758cd2

+ 30 - 0
components/sharePoster/sharePoster.vue

@@ -0,0 +1,30 @@
+<template>
+  <view class="share-poster-wrap">
+      <image :style="style" class="share-icon" src="@/static/share-poster-icon.png" mode="aspectFill"/>
+      
+  </view>
+</template>
+
+<script>
+export default {
+    // shareData.type 分享页面; chartList(图列表), reportList(报告列表), specialColumnList(专栏列表), 
+    props:{
+        style:null,
+        shareData:null,
+    },
+
+}
+</script>
+
+<style lang="scss" scoped>
+.share-poster-wrap{
+    .share-icon{
+        position: fixed;
+        bottom: 100rpx;
+        right: 34rpx;
+        z-index: 50;
+        width: 76rpx;
+        height: 76rpx;
+    }
+}
+</style>

+ 9 - 0
pages-report/reportList.vue

@@ -51,12 +51,21 @@
 
     <!-- 音频弹窗 -->
     <audioBox v-if="showAudioPop"></audioBox>
+
+    <!-- 分享海报 -->
+    <sharePoster 
+      :style="{bottom:'140rpx'}" 
+      :shareData="{
+        type:'reportList',
+        params:{classify_id_first:classifyId,classify_id_second:selectSecClassifyId}
+      }"></sharePoster>
   </view>
 </template>
 
 <script>
 import searchBox from "./components/searchBox.vue";
 import audioBox from './components/audioBox.vue'
+import sharePoster from '@/components/sharePoster/sharePoster.vue'
 import {apiReportList,apiSubClassifyList} from '@/api/report'
 export default {
   computed: {

+ 11 - 1
pages-report/specialColumn/detail.vue

@@ -43,12 +43,21 @@
 
         <!-- 音频弹窗 -->
         <audioBox v-if="showAudioPop"></audioBox>
+
+        <!-- 分享海报 -->
+        <sharePoster
+            :style="{bottom:'140rpx'}" 
+            :shareData="{
+                type:'specialColumnDetail',
+                params:{columnId:columnId}
+            }"></sharePoster>
     </view>
 </template>
 
 <script>
 import {apiSpecialColumnDetail,apiSpecialColumnReportList} from '@/api/report'
 import audioBox from '../components/audioBox.vue'
+import sharePoster from '@/components/sharePoster/sharePoster.vue'
 export default {
     computed: {
         showAudioPop(){//是否显示音频弹窗
@@ -62,7 +71,8 @@ export default {
         }
     },
     components: {
-        audioBox
+        audioBox,
+        sharePoster
     },
     data () {
         return {

+ 10 - 0
pages-report/specialColumn/list.vue

@@ -15,13 +15,23 @@
           </view>
         </view>
       </view>
+
+      <!-- 分享海报 -->
+      <sharePoster 
+        :style="{bottom:'140rpx'}" 
+        :shareData="{type:'specialColumnList',params:{classify_id_first:classifyId}}"
+      ></sharePoster>
       
     </view>
 </template>
 
 <script>
 import {apiSpecialColumnList} from '@/api/report'
+import sharePoster from '@/components/sharePoster/sharePoster.vue'
 export default {
+  components: {
+    sharePoster
+  },
   data () {
     return {
       classifyId:0,

+ 6 - 1
pages/chart/chart.vue

@@ -92,18 +92,23 @@
           </view>
         </view>
       </van-popup>
+
+    <!-- 分享海报 -->
+    <sharePoster :style="{bottom:'250rpx'}" :shareData="{type:'chartList'}"></sharePoster>
 </template>
 
 <script>
 import chartItem from './component/chartItem.vue'
 import dragSorts from '../../components/chartClassifyItem/HM-dragSorts.vue'
 import noAuth from './component/noAuth.vue'
+import sharePoster from '../../components/sharePoster/sharePoster.vue'
 import {apiChartList,apiChartClassifyList,apiChartMove,apiClassifyMove} from '@/api/chart'
 export default {
     components: {
       'chart-item':chartItem,
       dragSorts,
-      noAuth
+      noAuth,
+      sharePoster
     },
     data() {
         return {

BIN
static/share-poster-icon.png