|
@@ -12,19 +12,34 @@
|
|
|
</li>
|
|
|
</ul> -->
|
|
|
<div class="content-top">
|
|
|
- <img src="../../assets/reporter-logo.png" />
|
|
|
- <el-input
|
|
|
- placeholder="搜索"
|
|
|
- v-model="searchInput" maxlength="100">
|
|
|
- <i slot="suffix" class="el-input__icon el-icon-search" @click="getData(1)" style="cursor: pointer;"></i>
|
|
|
- </el-input>
|
|
|
- <!-- <span></span> -->
|
|
|
- <el-button type="primary" @click="changePublist" size="small">发布</el-button>
|
|
|
+ <img src="../../assets/reporter-logo.png" />
|
|
|
+ <el-input placeholder="搜索" v-model="searchInput" maxlength="100">
|
|
|
+ <i
|
|
|
+ slot="suffix"
|
|
|
+ class="el-input__icon el-icon-search"
|
|
|
+ @click="getData(1)"
|
|
|
+ style="cursor: pointer"
|
|
|
+ ></i>
|
|
|
+ </el-input>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="changePublist"
|
|
|
+ size="small"
|
|
|
+ v-if="userMessage"
|
|
|
+ >发布</el-button
|
|
|
+ >
|
|
|
+ <span v-else></span>
|
|
|
</div>
|
|
|
<ul>
|
|
|
- <li class="label-item" :class="[labelActiveIndex===indexL?'active':'']" v-for="(itemL,indexL) in labelList" :key="indexL" @click="changeLabelIndex(indexL)">
|
|
|
- # {{itemL}}
|
|
|
- </li>
|
|
|
+ <li
|
|
|
+ class="label-item"
|
|
|
+ :class="[labelActiveIndex === indexL ? 'active' : '']"
|
|
|
+ v-for="(itemL, indexL) in labelList"
|
|
|
+ :key="indexL"
|
|
|
+ @click="changeLabelIndex(indexL)"
|
|
|
+ >
|
|
|
+ # {{ itemL }}
|
|
|
+ </li>
|
|
|
</ul>
|
|
|
<div class="waterfall">
|
|
|
<vue-waterfall-easy
|
|
@@ -32,54 +47,79 @@
|
|
|
:imgsArr="imgsArr"
|
|
|
@scrollReachBottom="getData"
|
|
|
>
|
|
|
- <div class="info" slot-scope="props" @click="lookDetail(props.value.id)">
|
|
|
- <el-image class="image"
|
|
|
- :src="props.value.cover_img_url"
|
|
|
- :fit="'cover'"
|
|
|
- :style="{width:'246px',height:Math.random()*(260-180)+180+'px',borderRadius: '8px'}">
|
|
|
- <div slot="placeholder" class="image-slot" :style="'line-height:130px'">
|
|
|
- 加载中<span class="dot">...</span>
|
|
|
- </div>
|
|
|
+ <div
|
|
|
+ class="info"
|
|
|
+ slot-scope="props"
|
|
|
+ @click="lookDetail(props.value.id)"
|
|
|
+ >
|
|
|
+ <el-image
|
|
|
+ class="image"
|
|
|
+ :src="props.value.cover_img_url"
|
|
|
+ :fit="'cover'"
|
|
|
+ :style="{
|
|
|
+ width: '246px',
|
|
|
+ height: Math.random() * (260 - 180) + 180 + 'px',
|
|
|
+ borderRadius: '8px',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ slot="placeholder"
|
|
|
+ class="image-slot"
|
|
|
+ :style="'line-height:130px'"
|
|
|
+ >
|
|
|
+ 加载中<span class="dot">...</span>
|
|
|
+ </div>
|
|
|
+ </el-image>
|
|
|
+ <h3>{{ props.value.art_title }}</h3>
|
|
|
+ <p>{{ props.value.art_content }}</p>
|
|
|
+ <!-- <p>鼓浪屿实行最大承载量控制,每天最高5万人次,其中,游客3.5万人次,市民1.5万人次。鼓浪屿派出所出动无人机开展高空巡查,对重点区域动态监测客流,靠前化解风险隐患,守护群众安全。</p> -->
|
|
|
+ <div class="creator-info">
|
|
|
+ <el-image
|
|
|
+ :src="
|
|
|
+ props.value.creator_img_url
|
|
|
+ ? props.value.creator_img_url
|
|
|
+ : require('../../assets/avatar.png')
|
|
|
+ "
|
|
|
+ fit="cover"
|
|
|
+ style="width: 24px; height: 24px; margin-right: 12px"
|
|
|
+ >
|
|
|
</el-image>
|
|
|
- <h3>{{props.value.art_title}}</h3>
|
|
|
- <p>{{props.value.art_content}}</p>
|
|
|
- <!-- <p>鼓浪屿实行最大承载量控制,每天最高5万人次,其中,游客3.5万人次,市民1.5万人次。鼓浪屿派出所出动无人机开展高空巡查,对重点区域动态监测客流,靠前化解风险隐患,守护群众安全。</p> -->
|
|
|
- <div class="creator-info">
|
|
|
- <el-image
|
|
|
- :src="props.value.creator_img_url?props.value.creator_img_url:require('../../assets/avatar.png')"
|
|
|
- fit="cover" style="width:24px;height:24px;margin-right: 12px;">
|
|
|
- </el-image>
|
|
|
- <span class="name">{{props.value.creator_name}}</span>
|
|
|
- <div class="ding-box">
|
|
|
- <svg-icon icon-class="like-line" className="chat"></svg-icon>
|
|
|
- <span>{{props.value.ding_count}}</span>
|
|
|
- <svg-icon icon-class="chat-line" className="chat"></svg-icon>
|
|
|
- <span>{{props.value.comment_count}}</span>
|
|
|
- </div>
|
|
|
+ <span class="name">{{ props.value.creator_name }}</span>
|
|
|
+ <div class="ding-box">
|
|
|
+ <svg-icon icon-class="like-line" className="chat"></svg-icon>
|
|
|
+ <span>{{ props.value.ding_count }}</span>
|
|
|
+ <svg-icon icon-class="chat-line" className="chat"></svg-icon>
|
|
|
+ <span>{{ props.value.comment_count }}</span>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div slot="waterfall-over"></div>
|
|
|
</vue-waterfall-easy>
|
|
|
</div>
|
|
|
<el-dialog
|
|
|
- :visible.sync="publishFlag"
|
|
|
- :show-close="false"
|
|
|
- :close-on-click-modal="false"
|
|
|
- width="800px"
|
|
|
- :modal="false"
|
|
|
- class="login-dialog publish-report-box"
|
|
|
- v-if="publishFlag">
|
|
|
- <publish-report @closeDialog="closeDialog"></publish-report>
|
|
|
+ :visible.sync="publishFlag"
|
|
|
+ :show-close="false"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ width="800px"
|
|
|
+ :modal="false"
|
|
|
+ class="login-dialog publish-report-box"
|
|
|
+ v-if="publishFlag"
|
|
|
+ >
|
|
|
+ <publish-report @closeDialog="closeDialog"></publish-report>
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
|
- :visible.sync="reportDetailFlag"
|
|
|
- :show-close="false"
|
|
|
- :close-on-click-modal="false"
|
|
|
- width="1286px"
|
|
|
- :modal="false"
|
|
|
- class="login-dialog"
|
|
|
- v-if="reportDetailFlag">
|
|
|
- <report-detail :info="reportInfo" @closeDetail="closeDetail"></report-detail>
|
|
|
+ :visible.sync="reportDetailFlag"
|
|
|
+ :show-close="false"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ width="1286px"
|
|
|
+ :modal="false"
|
|
|
+ class="login-dialog"
|
|
|
+ v-if="reportDetailFlag"
|
|
|
+ >
|
|
|
+ <report-detail
|
|
|
+ :info="reportInfo"
|
|
|
+ @closeDetail="closeDetail"
|
|
|
+ ></report-detail>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -90,8 +130,9 @@
|
|
|
import Header from "../../components/Header.vue";
|
|
|
import vueWaterfallEasy from "vue-waterfall-easy";
|
|
|
import { getLogin } from "@/api/ajax";
|
|
|
-import PublishReport from "./components/PublishReport.vue"
|
|
|
-import ReportDetail from './components/ReportDetail.vue';
|
|
|
+import PublishReport from "./components/PublishReport.vue";
|
|
|
+import ReportDetail from "./components/ReportDetail.vue";
|
|
|
+import { getToken } from "@/utils/auth";
|
|
|
export default {
|
|
|
//import引入的组件需要注入到对象中才能使用
|
|
|
components: { Header, vueWaterfallEasy, PublishReport, ReportDetail },
|
|
@@ -101,20 +142,20 @@ export default {
|
|
|
return {
|
|
|
optionList: [
|
|
|
{
|
|
|
- label: '栏目 1',
|
|
|
+ label: "栏目 1",
|
|
|
},
|
|
|
{
|
|
|
- label: '栏目 2',
|
|
|
+ label: "栏目 2",
|
|
|
},
|
|
|
{
|
|
|
- label: '栏目 3',
|
|
|
+ label: "栏目 3",
|
|
|
},
|
|
|
{
|
|
|
- label: '栏目 4',
|
|
|
+ label: "栏目 4",
|
|
|
},
|
|
|
{
|
|
|
- label: '栏目 5',
|
|
|
- }
|
|
|
+ label: "栏目 5",
|
|
|
+ },
|
|
|
// ,
|
|
|
// {
|
|
|
// label: '合刊',
|
|
@@ -129,482 +170,482 @@ export default {
|
|
|
pageSize: 50,
|
|
|
pageNumber: 1,
|
|
|
publishFlag: false, // 发布弹窗
|
|
|
- searchInput: '',
|
|
|
- labelList:['中英双语','少儿必读','3-6 岁'],
|
|
|
+ searchInput: "",
|
|
|
+ labelList: ["中英双语", "少儿必读", "3-6 岁"],
|
|
|
labelActiveIndex: null,
|
|
|
reportDetailFlag: false,
|
|
|
- reportInfo: null
|
|
|
- }
|
|
|
+ reportInfo: null,
|
|
|
+ userMessage: getToken() ? JSON.parse(getToken()) : null,
|
|
|
+ };
|
|
|
},
|
|
|
//计算属性 类似于data概念
|
|
|
- computed: {
|
|
|
-
|
|
|
- },
|
|
|
+ computed: {},
|
|
|
//监控data中数据变化
|
|
|
watch: {},
|
|
|
//方法集合
|
|
|
methods: {
|
|
|
- handleClick(value){
|
|
|
- this.typeValue = value
|
|
|
-
|
|
|
+ handleClick(value) {
|
|
|
+ this.typeValue = value;
|
|
|
},
|
|
|
getData(page) {
|
|
|
- // var list = [
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "https://file-kf.helxsoft.cn/CSFileStore/002/00201/D-SZE3JLEDEHCOEYLDKS/F-C0IWU6OZL84WHX1KRY.jpg",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "http://cdn-chenxi.auoktalk.com/invite-share/749dcf7ae3a948ad9b99695800d2493f.jpg",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "http://cdn-chenxi.auoktalk.com/invite-share/7e8f79358274441a85ac397fbd8a2253.jpg",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "http://cdn-chenxi.auoktalk.com/invite-share/a39bca7b3e2446de9607547e7473d0d2.jpg",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "https://file-kf.helxsoft.cn/CSFileStore/002/00201/D-SZE3JLEDEHCOEYLDKS/F-GEW2JO59G9Q2X1YHMF.png",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "https://file-kf.helxsoft.cn/CSFileStore/001/00102/D-U2XDHVDGILVMLTPZI3/F-WEOZPDNMXU8L4YV7RG.png",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "https://file-kf.helxsoft.cn/CSFileStore/002/00201/D-SZE3JLEDEHCOEYLDKS/F-C0IWU6OZL84WHX1KRY.jpg",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "http://cdn-chenxi.auoktalk.com/invite-share/749dcf7ae3a948ad9b99695800d2493f.jpg",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "http://cdn-chenxi.auoktalk.com/invite-share/7e8f79358274441a85ac397fbd8a2253.jpg",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "http://cdn-chenxi.auoktalk.com/invite-share/a39bca7b3e2446de9607547e7473d0d2.jpg",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "https://file-kf.helxsoft.cn/CSFileStore/002/00201/D-SZE3JLEDEHCOEYLDKS/F-GEW2JO59G9Q2X1YHMF.png",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "https://file-kf.helxsoft.cn/CSFileStore/001/00102/D-U2XDHVDGILVMLTPZI3/F-WEOZPDNMXU8L4YV7RG.png",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "https://file-kf.helxsoft.cn/CSFileStore/002/00201/D-SZE3JLEDEHCOEYLDKS/F-C0IWU6OZL84WHX1KRY.jpg",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "http://cdn-chenxi.auoktalk.com/invite-share/749dcf7ae3a948ad9b99695800d2493f.jpg",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "http://cdn-chenxi.auoktalk.com/invite-share/7e8f79358274441a85ac397fbd8a2253.jpg",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "http://cdn-chenxi.auoktalk.com/invite-share/a39bca7b3e2446de9607547e7473d0d2.jpg",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "https://file-kf.helxsoft.cn/CSFileStore/002/00201/D-SZE3JLEDEHCOEYLDKS/F-GEW2JO59G9Q2X1YHMF.png",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // src:
|
|
|
- // "https://file-kf.helxsoft.cn/CSFileStore/001/00102/D-U2XDHVDGILVMLTPZI3/F-WEOZPDNMXU8L4YV7RG.png",
|
|
|
- // }
|
|
|
- // ];
|
|
|
- // this.page += 1;
|
|
|
- // if (this.page == 6) {
|
|
|
- // this.$refs.waterfall.waterfallOver();
|
|
|
- // } else {
|
|
|
- // this.imgsArr = this.imgsArr.concat(list);
|
|
|
- // }
|
|
|
- if(page){
|
|
|
- this.pageNumber = page
|
|
|
- this.imgsArr = []
|
|
|
+ // var list = [
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "https://file-kf.helxsoft.cn/CSFileStore/002/00201/D-SZE3JLEDEHCOEYLDKS/F-C0IWU6OZL84WHX1KRY.jpg",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "http://cdn-chenxi.auoktalk.com/invite-share/749dcf7ae3a948ad9b99695800d2493f.jpg",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "http://cdn-chenxi.auoktalk.com/invite-share/7e8f79358274441a85ac397fbd8a2253.jpg",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "http://cdn-chenxi.auoktalk.com/invite-share/a39bca7b3e2446de9607547e7473d0d2.jpg",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "https://file-kf.helxsoft.cn/CSFileStore/002/00201/D-SZE3JLEDEHCOEYLDKS/F-GEW2JO59G9Q2X1YHMF.png",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "https://file-kf.helxsoft.cn/CSFileStore/001/00102/D-U2XDHVDGILVMLTPZI3/F-WEOZPDNMXU8L4YV7RG.png",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "https://file-kf.helxsoft.cn/CSFileStore/002/00201/D-SZE3JLEDEHCOEYLDKS/F-C0IWU6OZL84WHX1KRY.jpg",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "http://cdn-chenxi.auoktalk.com/invite-share/749dcf7ae3a948ad9b99695800d2493f.jpg",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "http://cdn-chenxi.auoktalk.com/invite-share/7e8f79358274441a85ac397fbd8a2253.jpg",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "http://cdn-chenxi.auoktalk.com/invite-share/a39bca7b3e2446de9607547e7473d0d2.jpg",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "https://file-kf.helxsoft.cn/CSFileStore/002/00201/D-SZE3JLEDEHCOEYLDKS/F-GEW2JO59G9Q2X1YHMF.png",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "https://file-kf.helxsoft.cn/CSFileStore/001/00102/D-U2XDHVDGILVMLTPZI3/F-WEOZPDNMXU8L4YV7RG.png",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "https://file-kf.helxsoft.cn/CSFileStore/002/00201/D-SZE3JLEDEHCOEYLDKS/F-C0IWU6OZL84WHX1KRY.jpg",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "http://cdn-chenxi.auoktalk.com/invite-share/749dcf7ae3a948ad9b99695800d2493f.jpg",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "http://cdn-chenxi.auoktalk.com/invite-share/7e8f79358274441a85ac397fbd8a2253.jpg",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "http://cdn-chenxi.auoktalk.com/invite-share/a39bca7b3e2446de9607547e7473d0d2.jpg",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "https://file-kf.helxsoft.cn/CSFileStore/002/00201/D-SZE3JLEDEHCOEYLDKS/F-GEW2JO59G9Q2X1YHMF.png",
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // src:
|
|
|
+ // "https://file-kf.helxsoft.cn/CSFileStore/001/00102/D-U2XDHVDGILVMLTPZI3/F-WEOZPDNMXU8L4YV7RG.png",
|
|
|
+ // }
|
|
|
+ // ];
|
|
|
+ // this.page += 1;
|
|
|
+ // if (this.page == 6) {
|
|
|
+ // this.$refs.waterfall.waterfallOver();
|
|
|
+ // } else {
|
|
|
+ // this.imgsArr = this.imgsArr.concat(list);
|
|
|
+ // }
|
|
|
+ if (page) {
|
|
|
+ this.pageNumber = page;
|
|
|
+ this.imgsArr = [];
|
|
|
+ }
|
|
|
+ let MethodName = "/PaperServer/Client/Xjz/XjzArticleList";
|
|
|
+ let data = {
|
|
|
+ page_capacity: this.pageSize,
|
|
|
+ cur_page: this.pageNumber,
|
|
|
+ art_tag:
|
|
|
+ this.labelActiveIndex !== null
|
|
|
+ ? this.labelList[this.labelActiveIndex]
|
|
|
+ : "",
|
|
|
+ };
|
|
|
+ getLogin(MethodName, data).then((res) => {
|
|
|
+ if (res.status === 1) {
|
|
|
+ this.labelList = res.tags;
|
|
|
+ this.imgsArr = this.imgsArr.concat(res.data.list);
|
|
|
+ if (this.pageNumber === res.data.total_page) {
|
|
|
+ this.$refs.waterfall.waterfallOver();
|
|
|
+ } else {
|
|
|
+ this.pageNumber++;
|
|
|
+ }
|
|
|
}
|
|
|
- let MethodName = "/PaperServer/Client/Xjz/XjzArticleList";
|
|
|
- let data = {
|
|
|
- page_capacity:this.pageSize,
|
|
|
- cur_page:this.pageNumber,
|
|
|
- art_tag: this.labelActiveIndex!==null?this.labelList[this.labelActiveIndex]:''
|
|
|
- }
|
|
|
- getLogin(MethodName, data)
|
|
|
- .then((res) => {
|
|
|
- if(res.status===1){
|
|
|
- this.labelList = res.tags
|
|
|
- this.imgsArr = this.imgsArr.concat(res.data.list);
|
|
|
- if (this.pageNumber === res.data.total_page ) {
|
|
|
- this.$refs.waterfall.waterfallOver();
|
|
|
- } else {
|
|
|
- this.pageNumber ++
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
// 点击发布按钮
|
|
|
- changePublist(){
|
|
|
- this.publishFlag = true
|
|
|
+ changePublist() {
|
|
|
+ this.publishFlag = true;
|
|
|
},
|
|
|
// 点击label
|
|
|
- changeLabelIndex(index){
|
|
|
- if(this.labelActiveIndex === index){
|
|
|
- this.labelActiveIndex = null
|
|
|
- }else{
|
|
|
- this.labelActiveIndex = index
|
|
|
- }
|
|
|
- this.getData(1)
|
|
|
+ changeLabelIndex(index) {
|
|
|
+ if (this.labelActiveIndex === index) {
|
|
|
+ this.labelActiveIndex = null;
|
|
|
+ } else {
|
|
|
+ this.labelActiveIndex = index;
|
|
|
+ }
|
|
|
+ this.getData(1);
|
|
|
},
|
|
|
- closeDialog(){
|
|
|
- this.publishFlag = false
|
|
|
- this.getData(1)
|
|
|
+ closeDialog() {
|
|
|
+ this.publishFlag = false;
|
|
|
+ this.getData(1);
|
|
|
},
|
|
|
// 查看详情
|
|
|
- lookDetail(id){
|
|
|
- let MethodName = "/PaperServer/Client/Xjz/XjzArticleDetail";
|
|
|
- let data = {
|
|
|
- id: id
|
|
|
+ lookDetail(id) {
|
|
|
+ let MethodName = "/PaperServer/Client/Xjz/XjzArticleDetail";
|
|
|
+ let data = {
|
|
|
+ id: id,
|
|
|
+ };
|
|
|
+ getLogin(MethodName, data).then((res) => {
|
|
|
+ if (res.status === 1) {
|
|
|
+ this.reportInfo = res.data;
|
|
|
+ this.reportDetailFlag = true;
|
|
|
}
|
|
|
- getLogin(MethodName, data)
|
|
|
- .then((res) => {
|
|
|
- if(res.status===1){
|
|
|
- this.reportInfo = res.data
|
|
|
- this.reportDetailFlag = true
|
|
|
- }
|
|
|
- })
|
|
|
+ });
|
|
|
+ },
|
|
|
+ closeDetail() {
|
|
|
+ this.reportDetailFlag = false;
|
|
|
},
|
|
|
- closeDetail(){
|
|
|
- this.reportDetailFlag = false
|
|
|
- }
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
- created() {
|
|
|
- },
|
|
|
+ created() {},
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
mounted() {
|
|
|
this.getData();
|
|
|
- let _this = this
|
|
|
- let input = document.querySelector('input');
|
|
|
- input.addEventListener('keyup', function(event) {
|
|
|
- // 判断是否按下回车键
|
|
|
- if (event.keyCode === 13) {
|
|
|
- // 回车键被按下,执行你想要的操作
|
|
|
- _this.getData(1)
|
|
|
- }
|
|
|
+ let _this = this;
|
|
|
+ let input = document.querySelector("input");
|
|
|
+ input.addEventListener("keyup", function (event) {
|
|
|
+ // 判断是否按下回车键
|
|
|
+ if (event.keyCode === 13) {
|
|
|
+ // 回车键被按下,执行你想要的操作
|
|
|
+ _this.getData(1);
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
//生命周期-创建之前
|
|
|
- beforeCreated() { },
|
|
|
+ beforeCreated() {},
|
|
|
//生命周期-挂载之前
|
|
|
- beforeMount() { },
|
|
|
+ beforeMount() {},
|
|
|
//生命周期-更新之前
|
|
|
- beforUpdate() { },
|
|
|
+ beforUpdate() {},
|
|
|
//生命周期-更新之后
|
|
|
- updated() { },
|
|
|
+ updated() {},
|
|
|
//生命周期-销毁之前
|
|
|
- beforeDestory() { },
|
|
|
+ beforeDestory() {},
|
|
|
//生命周期-销毁完成
|
|
|
- destoryed() { },
|
|
|
+ destoryed() {},
|
|
|
//如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
- activated() { }
|
|
|
-}
|
|
|
+ activated() {},
|
|
|
+};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
/* @import url(); 引入css类 */
|
|
|
.reporter {
|
|
|
- background: #F7F8FA;
|
|
|
- height: calc(100vh - 64px);
|
|
|
- .option{
|
|
|
- list-style: none;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- margin: 0;
|
|
|
- padding: 0;
|
|
|
- background: #17171A;
|
|
|
- li{
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- border-radius: 30px;
|
|
|
- height: 36px;
|
|
|
- padding: 7px 20px;
|
|
|
- margin: 8px 4px;
|
|
|
- cursor: pointer;
|
|
|
- &:hover{
|
|
|
- background: rgba(255, 255, 255, 0.08);
|
|
|
- }
|
|
|
- &.active{
|
|
|
- background: rgba(255, 255, 255, 0.08);
|
|
|
- .icon-img,span,b{
|
|
|
- color: rgba(255, 255, 255, 0.9);
|
|
|
- }
|
|
|
- }
|
|
|
- .icon-img{
|
|
|
- width: 14px;
|
|
|
- height: 14px;
|
|
|
- margin: 1px 8px 0 0;
|
|
|
- color: rgba(255, 255, 255, 0.5);
|
|
|
- }
|
|
|
- span{
|
|
|
- color: rgba(255, 255, 255, 0.5);
|
|
|
- font-size: 14px;
|
|
|
- line-height: 22px;
|
|
|
- }
|
|
|
- b{
|
|
|
- font-weight: 400;
|
|
|
- font-size: 14px;
|
|
|
- line-height: 22px;
|
|
|
- color: rgba(255, 255, 255, 0.5);
|
|
|
- margin-left: 5px;
|
|
|
- }
|
|
|
+ background: #f7f8fa;
|
|
|
+ height: calc(100vh - 64px);
|
|
|
+ .option {
|
|
|
+ list-style: none;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+ background: #17171a;
|
|
|
+ li {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ border-radius: 30px;
|
|
|
+ height: 36px;
|
|
|
+ padding: 7px 20px;
|
|
|
+ margin: 8px 4px;
|
|
|
+ cursor: pointer;
|
|
|
+ &:hover {
|
|
|
+ background: rgba(255, 255, 255, 0.08);
|
|
|
+ }
|
|
|
+ &.active {
|
|
|
+ background: rgba(255, 255, 255, 0.08);
|
|
|
+ .icon-img,
|
|
|
+ span,
|
|
|
+ b {
|
|
|
+ color: rgba(255, 255, 255, 0.9);
|
|
|
}
|
|
|
+ }
|
|
|
+ .icon-img {
|
|
|
+ width: 14px;
|
|
|
+ height: 14px;
|
|
|
+ margin: 1px 8px 0 0;
|
|
|
+ color: rgba(255, 255, 255, 0.5);
|
|
|
+ }
|
|
|
+ span {
|
|
|
+ color: rgba(255, 255, 255, 0.5);
|
|
|
+ font-size: 14px;
|
|
|
+ line-height: 22px;
|
|
|
+ }
|
|
|
+ b {
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 14px;
|
|
|
+ line-height: 22px;
|
|
|
+ color: rgba(255, 255, 255, 0.5);
|
|
|
+ margin-left: 5px;
|
|
|
+ }
|
|
|
}
|
|
|
- .main {
|
|
|
- width: 1200px;
|
|
|
- margin: 0 auto;
|
|
|
- padding: 24px 0 0 0;
|
|
|
- .searchChangebox{
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- .searchChange-box{
|
|
|
- display: flex;
|
|
|
- }
|
|
|
- .searchChange {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- padding: 4px 12px;
|
|
|
- height: 32px;
|
|
|
- margin-right: 16px;
|
|
|
- border: 1px solid #E5E6EB;
|
|
|
- border-radius: 20px;
|
|
|
- &.active{
|
|
|
- background: #175DFF;
|
|
|
- > span{
|
|
|
- color: #FFFFFF;
|
|
|
- }
|
|
|
- .sort {
|
|
|
- > div {
|
|
|
- svg{
|
|
|
- color: #5E89EF;
|
|
|
- &.active{
|
|
|
- color: #FFFFFF;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- > span{
|
|
|
- font-weight: 400;
|
|
|
- font-size: 16px;
|
|
|
- line-height: 22px;
|
|
|
- color: #000;
|
|
|
- margin-right: 4px;
|
|
|
- }
|
|
|
- .sort {
|
|
|
- cursor: pointer;
|
|
|
- height: 20px;
|
|
|
- > div {
|
|
|
- font-size: 0;
|
|
|
- svg {
|
|
|
- width: 11px;
|
|
|
- height: 11px;
|
|
|
- color: #C2C2C2;
|
|
|
- padding: 3px 2px 2px 2px;
|
|
|
- &.icon-down{
|
|
|
- height: 9px;
|
|
|
- padding: 0 2px 2px 2px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ }
|
|
|
+ .main {
|
|
|
+ width: 1200px;
|
|
|
+ margin: 0 auto;
|
|
|
+ padding: 24px 0 0 0;
|
|
|
+ .searchChangebox {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ .searchChange-box {
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
+ .searchChange {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 4px 12px;
|
|
|
+ height: 32px;
|
|
|
+ margin-right: 16px;
|
|
|
+ border: 1px solid #e5e6eb;
|
|
|
+ border-radius: 20px;
|
|
|
+ &.active {
|
|
|
+ background: #175dff;
|
|
|
+ > span {
|
|
|
+ color: #ffffff;
|
|
|
+ }
|
|
|
+ .sort {
|
|
|
+ > div {
|
|
|
+ svg {
|
|
|
+ color: #5e89ef;
|
|
|
+ &.active {
|
|
|
+ color: #ffffff;
|
|
|
}
|
|
|
+ }
|
|
|
}
|
|
|
- .input-search{
|
|
|
- width: 220px;
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
- .show-title{
|
|
|
- color: #1F2C5C;
|
|
|
- margin: 24px 0 0 0;
|
|
|
- font-weight: 500;
|
|
|
- font-size: 24px;
|
|
|
- line-height: 32px;
|
|
|
- b{
|
|
|
- margin-left: 16px;
|
|
|
- color: #ED5F00;
|
|
|
- }
|
|
|
+ > span {
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 16px;
|
|
|
+ line-height: 22px;
|
|
|
+ color: #000;
|
|
|
+ margin-right: 4px;
|
|
|
}
|
|
|
- .list {
|
|
|
- margin-top: 28px;
|
|
|
- display: flex;
|
|
|
- flex-wrap: wrap;
|
|
|
- height: calc(100vh - 256px);
|
|
|
- overflow-y: scroll;
|
|
|
- &::-webkit-scrollbar {
|
|
|
- display: none;
|
|
|
- }
|
|
|
- > div {
|
|
|
- width: 200px;
|
|
|
- border-radius: 8px;
|
|
|
- overflow: hidden;
|
|
|
- background: #ffffff;
|
|
|
- margin-bottom: 24px;
|
|
|
- }
|
|
|
- .tips{
|
|
|
- width: 100%;
|
|
|
- text-align: center;
|
|
|
- font-size: 12px;
|
|
|
- color: #929CA8;
|
|
|
+ .sort {
|
|
|
+ cursor: pointer;
|
|
|
+ height: 20px;
|
|
|
+ > div {
|
|
|
+ font-size: 0;
|
|
|
+ svg {
|
|
|
+ width: 11px;
|
|
|
+ height: 11px;
|
|
|
+ color: #c2c2c2;
|
|
|
+ padding: 3px 2px 2px 2px;
|
|
|
+ &.icon-down {
|
|
|
+ height: 9px;
|
|
|
+ padding: 0 2px 2px 2px;
|
|
|
+ }
|
|
|
}
|
|
|
+ }
|
|
|
}
|
|
|
+ }
|
|
|
+ .input-search {
|
|
|
+ width: 220px;
|
|
|
+ }
|
|
|
}
|
|
|
- .waterfall {
|
|
|
- position: absolute;
|
|
|
- top: 216px;
|
|
|
- bottom: 0;
|
|
|
- left: 0;
|
|
|
- width: 100%;
|
|
|
+ .show-title {
|
|
|
+ color: #1f2c5c;
|
|
|
+ margin: 24px 0 0 0;
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 24px;
|
|
|
+ line-height: 32px;
|
|
|
+ b {
|
|
|
+ margin-left: 16px;
|
|
|
+ color: #ed5f00;
|
|
|
+ }
|
|
|
}
|
|
|
- .info {
|
|
|
+ .list {
|
|
|
+ margin-top: 28px;
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ height: calc(100vh - 256px);
|
|
|
+ overflow-y: scroll;
|
|
|
+ &::-webkit-scrollbar {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ > div {
|
|
|
+ width: 200px;
|
|
|
+ border-radius: 8px;
|
|
|
+ overflow: hidden;
|
|
|
+ background: #ffffff;
|
|
|
+ margin-bottom: 24px;
|
|
|
+ }
|
|
|
+ .tips {
|
|
|
+ width: 100%;
|
|
|
text-align: center;
|
|
|
- font-size: 0;
|
|
|
- h3{
|
|
|
- margin: 8px 0;
|
|
|
- overflow: hidden;
|
|
|
- color: #000;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 500;
|
|
|
- line-height: 22px;
|
|
|
- word-break: break-word;
|
|
|
- display: -webkit-box;
|
|
|
- -webkit-box-orient: vertical;
|
|
|
- -webkit-line-clamp: 2;
|
|
|
- text-overflow: ellipsis;
|
|
|
- overflow: hidden;
|
|
|
- text-align: left;
|
|
|
- padding: 0 8px;
|
|
|
- }
|
|
|
- >p{
|
|
|
- color: rgba(0, 0, 0, 0.65);
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 400;
|
|
|
- line-height: 22px;
|
|
|
- word-break: break-word;
|
|
|
- display: -webkit-box;
|
|
|
- -webkit-box-orient: vertical;
|
|
|
- -webkit-line-clamp: 2;
|
|
|
- text-overflow: ellipsis;
|
|
|
- overflow: hidden;
|
|
|
- text-align: left;
|
|
|
- padding: 0 8px;
|
|
|
- margin: 0 0 8px 0;
|
|
|
- }
|
|
|
- .creator-info{
|
|
|
- text-align: left;
|
|
|
- padding: 0 8px;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- >span{
|
|
|
- color: #2F3742;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: 400;
|
|
|
- line-height: 22px;
|
|
|
- flex: 1;
|
|
|
- overflow: hidden;
|
|
|
- }
|
|
|
- .ding-box{
|
|
|
- color: rgba(0, 0, 0, 0.30);
|
|
|
- font-size: 12px;
|
|
|
- font-weight: 400;
|
|
|
- line-height: 20px;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- .svg-icon{
|
|
|
- width: 16px;
|
|
|
- height: 16px;
|
|
|
- &.chat{
|
|
|
- color: rgba(0, 0, 0, 0.65);
|
|
|
- }
|
|
|
- }
|
|
|
- span{
|
|
|
- margin: 0 8px 0 3px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ font-size: 12px;
|
|
|
+ color: #929ca8;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .waterfall {
|
|
|
+ position: absolute;
|
|
|
+ top: 216px;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ .info {
|
|
|
+ text-align: center;
|
|
|
+ font-size: 0;
|
|
|
+ h3 {
|
|
|
+ margin: 8px 0;
|
|
|
+ overflow: hidden;
|
|
|
+ color: #000;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 500;
|
|
|
+ line-height: 22px;
|
|
|
+ word-break: break-word;
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ overflow: hidden;
|
|
|
+ text-align: left;
|
|
|
+ padding: 0 8px;
|
|
|
}
|
|
|
- .content-top{
|
|
|
+ > p {
|
|
|
+ color: rgba(0, 0, 0, 0.65);
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 400;
|
|
|
+ line-height: 22px;
|
|
|
+ word-break: break-word;
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ overflow: hidden;
|
|
|
+ text-align: left;
|
|
|
+ padding: 0 8px;
|
|
|
+ margin: 0 0 8px 0;
|
|
|
+ }
|
|
|
+ .creator-info {
|
|
|
+ text-align: left;
|
|
|
+ padding: 0 8px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ > span {
|
|
|
+ color: #2f3742;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 400;
|
|
|
+ line-height: 22px;
|
|
|
+ flex: 1;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ .ding-box {
|
|
|
+ color: rgba(0, 0, 0, 0.3);
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: 400;
|
|
|
+ line-height: 20px;
|
|
|
display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- padding: 32px 0;
|
|
|
- max-width: 1440px;
|
|
|
- margin: 0 auto;
|
|
|
- >img{
|
|
|
- height: 32px;
|
|
|
- }
|
|
|
- .el-input{
|
|
|
- width: 480px;
|
|
|
- border-radius: 40px;
|
|
|
- background: #FFF;
|
|
|
+ align-items: center;
|
|
|
+ .svg-icon {
|
|
|
+ width: 16px;
|
|
|
+ height: 16px;
|
|
|
+ &.chat {
|
|
|
+ color: rgba(0, 0, 0, 0.65);
|
|
|
+ }
|
|
|
}
|
|
|
- .el-button{
|
|
|
- width: 108px;
|
|
|
- text-align: center;
|
|
|
- border-radius: 40px;
|
|
|
- font-size: 14px;
|
|
|
+ span {
|
|
|
+ margin: 0 8px 0 3px;
|
|
|
}
|
|
|
+ }
|
|
|
}
|
|
|
- ul{
|
|
|
- padding: 0;
|
|
|
- max-width: 1440px;
|
|
|
- margin: 0 auto;
|
|
|
- display: flex;
|
|
|
- li.label-item{
|
|
|
- padding: 4px 12px;
|
|
|
- border-radius: 20px;
|
|
|
- margin-right: 8px;
|
|
|
- cursor: pointer;
|
|
|
- color: #787878;
|
|
|
- font-size: 12px;
|
|
|
- font-weight: 400;
|
|
|
- line-height: 20px;
|
|
|
- &.active{
|
|
|
- background: #ECECEC;
|
|
|
- color: #000000;
|
|
|
- }
|
|
|
- }
|
|
|
+ }
|
|
|
+ .content-top {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 32px 0;
|
|
|
+ max-width: 1440px;
|
|
|
+ margin: 0 auto;
|
|
|
+ > img {
|
|
|
+ height: 32px;
|
|
|
+ }
|
|
|
+ .el-input {
|
|
|
+ width: 480px;
|
|
|
+ border-radius: 40px;
|
|
|
+ background: #fff;
|
|
|
}
|
|
|
+ .el-button {
|
|
|
+ width: 108px;
|
|
|
+ text-align: center;
|
|
|
+ border-radius: 40px;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ul {
|
|
|
+ padding: 0;
|
|
|
+ max-width: 1440px;
|
|
|
+ margin: 0 auto;
|
|
|
+ display: flex;
|
|
|
+ li.label-item {
|
|
|
+ padding: 4px 12px;
|
|
|
+ border-radius: 20px;
|
|
|
+ margin-right: 8px;
|
|
|
+ cursor: pointer;
|
|
|
+ color: #787878;
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: 400;
|
|
|
+ line-height: 20px;
|
|
|
+ &.active {
|
|
|
+ background: #ececec;
|
|
|
+ color: #000000;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|
|
|
<style lang="scss">
|
|
|
.reporter {
|
|
|
- .el-input__inner{
|
|
|
- border-radius: 40px;
|
|
|
- border: none;
|
|
|
- }
|
|
|
+ .el-input__inner {
|
|
|
+ border-radius: 40px;
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
}
|
|
|
-.publish-report-box{
|
|
|
- .el-dialog__body{
|
|
|
- padding: 24px;
|
|
|
- }
|
|
|
+.publish-report-box {
|
|
|
+ .el-dialog__body {
|
|
|
+ padding: 24px;
|
|
|
+ }
|
|
|
}
|
|
|
-.vue-waterfall-easy{
|
|
|
- // width: 1440px !important;
|
|
|
- // margin-left: -720px !important;
|
|
|
- .img-inner-box{
|
|
|
- box-shadow: none !important;
|
|
|
- }
|
|
|
- .img-box{
|
|
|
- padding: 12px !important;
|
|
|
- width: 270px !important;
|
|
|
- }
|
|
|
+.vue-waterfall-easy {
|
|
|
+ // width: 1440px !important;
|
|
|
+ // margin-left: -720px !important;
|
|
|
+ .img-inner-box {
|
|
|
+ box-shadow: none !important;
|
|
|
+ }
|
|
|
+ .img-box {
|
|
|
+ padding: 12px !important;
|
|
|
+ width: 270px !important;
|
|
|
+ }
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|