liyongli 2 năm trước cách đây
mục cha
commit
761229409f

+ 6 - 1
src/App.vue

@@ -17,13 +17,18 @@ export default {
   box-sizing: border-box;
   user-select: none;
 }
+html,body{
+    width: 100%;
+    height: 100%;
+    min-width: 1805px;
+}
 #app {
   font-family: Avenir, Helvetica, Arial, sans-serif;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
   font-weight: 400;
   color: #2c3e50;
-  width: 100vw;
+  width: 100%;
   height: 100vh;
   overflow: hidden;
 }

+ 1 - 1
src/api/index.js

@@ -38,7 +38,7 @@ export function hotRank(ori) {
   return ajax({
     api: '/news/hotRank/list',
     data: ori.data,
-    method: 'POST',
+    method: 'GET',
     headers: {
       Authorization: localStorage.getItem('token'),
     },

+ 11 - 3
src/view/allMedia/H5Mall.vue

@@ -15,9 +15,9 @@
     <el-dialog v-model="show" title="已创建页面">
       <el-table :data="localList.list">
         <el-table-column property="title" label="页面名称" />
-        <el-table-column label="封面图" width="100px">
+        <el-table-column label="封面图" header-align="center" width="100px">
           <template #default="scope">
-            <img :src="scope.row.url" alt="">
+            <el-image style="width: 76px; height: 100px" :src="scope.row.cover" fit="contain" />
           </template>
         </el-table-column>
         <el-table-column label="状态" width="100px">
@@ -28,7 +28,7 @@
         <el-table-column property="url" label="操作">
           <template #default="scope">
             <el-button
-              v-if="scope.row.url"
+              v-if="showCopy(scope.row.url)"
               type="primary"
               link
               @click="() => copyurl(scope.row.url)"
@@ -158,7 +158,10 @@ const deleteBL = item => {
 
 const openurl = url => window.open(url);
 
+const showCopy = url => ('clipboard' in navigator) && url
+
 const copyurl = url => {
+    console.log(navigator)
   if (!('clipboard' in navigator)) return;
   auth().then(res => {
     if (!res) {
@@ -183,6 +186,11 @@ const copyurl = url => {
         });
       }
     );
+  }).catch(() => {
+    ElMessage({
+      type: 'error',
+      message: '授权未通过',
+    })
   });
 };
 

+ 1 - 1
src/view/allMedia/analysis.vue

@@ -213,7 +213,7 @@
   <style scoped>
   .analysis {
     height: 100%;
-    min-width: 1305px;
+    /* min-width: 1305px; */
     position: relative;
   }
   .analysis .head,

+ 1 - 1
src/view/allMedia/analysis_map.vue

@@ -287,7 +287,7 @@ const upload = () => {
 <style scoped>
 .analysis {
   height: 100%;
-  min-width: 1305px;
+  /* min-width: 1305px; */
   position: relative;
 }
 .analysis .head,

+ 1 - 0
src/view/allMedia/components/analysis_hot_list.vue

@@ -56,6 +56,7 @@ hot();
   width: 300px;
   right: 50px;
   top: 100px;
+  background-color: #fff;
 }
 .title {
   font-size: 18px;

+ 1 - 0
src/view/allMedia/main.vue

@@ -112,6 +112,7 @@ const selectMenuFunc = item => {
   display: inline-block;
   vertical-align: top;
   height: 100%;
+  overflow-y: auto;
   flex: 1;
 }
 

+ 2 - 18
src/view/allMedia/reporting.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="analysis" @scroll="scroll">
+  <div class="analysis">
     <div class="head">
       <div class="title">爆料中心</div>
       <div class="searchRow">
@@ -93,28 +93,12 @@ const setTotal = total => {
   totalPage.value = total;
 };
 
-let time = undefined;
-const scroll = e => {
-  const height =
-    document.querySelector('.analysis .head').offsetHeight +
-    document.querySelector('.analysis .body').offsetHeight -
-    document.querySelector('.analysis').offsetHeight;
-  const scrollNum = e.scrollTop.toFixed(2) - 0;
-  if (time || height - scrollNum > 0) {
-    time = window.clearTimeout(time);
-    return;
-  }
-  time = setTimeout(() => {
-    getList();
-    time = window.clearTimeout(time);
-  }, 500);
-};
 </script>
 
 <style scoped>
 .analysis {
   height: 100%;
-  min-width: 1305px;
+  /* min-width: 1305px; */
   position: relative;
 }
 .analysis .head,