|
@@ -6,9 +6,21 @@
|
|
<span class="author">{{reportInfo.Department}}</span>
|
|
<span class="author">{{reportInfo.Department}}</span>
|
|
<span>{{reportInfo.PublishDate}}</span>
|
|
<span>{{reportInfo.PublishDate}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="seller-list">
|
|
|
|
+ <span>联系人:</span>
|
|
|
|
+ <span v-for="(item,index) in reportInfo.SellerList" :key="index">
|
|
|
|
+ {{item.SellerName}}({{item.SellerMobile}})
|
|
|
|
+ </span>
|
|
|
|
+ </div>
|
|
<div>
|
|
<div>
|
|
注:请务必阅读<span class="tip" @click="showTips"> 免责声明</span>
|
|
注:请务必阅读<span class="tip" @click="showTips"> 免责声明</span>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="container-text">
|
|
|
|
+ <div class="container">
|
|
|
|
+ <i class="blue-box"></i><span class="text-box">摘要:</span>
|
|
|
|
+ </div>
|
|
|
|
+ <span v-html="reportInfo.Abstract" class="content-html"></span>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="detail-report">
|
|
<div class="detail-report">
|
|
<div id="report-content" v-html="reportInfo.Body"></div>
|
|
<div id="report-content" v-html="reportInfo.Body"></div>
|
|
@@ -43,6 +55,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+//http://192.168.1.155:2000/raiReportDtl?id=3927&token=20ec44c7fe0e02ff597c324406ce49ca7c23d1b788556a5a8b743b266e897d81&fromType=mpwechat
|
|
import { RaiApi } from "@/api/api.js"
|
|
import { RaiApi } from "@/api/api.js"
|
|
import { Dialog,Toast } from 'vant';
|
|
import { Dialog,Toast } from 'vant';
|
|
export default {
|
|
export default {
|
|
@@ -68,14 +81,17 @@ export default {
|
|
/* 获取报告详情 */
|
|
/* 获取报告详情 */
|
|
getReport(id,token,type) {
|
|
getReport(id,token,type) {
|
|
if(type == 'mpwechat') {
|
|
if(type == 'mpwechat') {
|
|
|
|
+ console.log('mpwechat');
|
|
RaiApi.reportDtl({
|
|
RaiApi.reportDtl({
|
|
ArticleId: id,
|
|
ArticleId: id,
|
|
Authorization: token
|
|
Authorization: token
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
|
+ console.log(res);
|
|
if(res.Ret === 200) {
|
|
if(res.Ret === 200) {
|
|
this.haveData = res.Data.HasPermission === 1 ? true : false
|
|
this.haveData = res.Data.HasPermission === 1 ? true : false
|
|
if(res.Data.HasPermission === 1) { //有访问权限
|
|
if(res.Data.HasPermission === 1) { //有访问权限
|
|
this.reportInfo = res.Data.Detail;
|
|
this.reportInfo = res.Data.Detail;
|
|
|
|
+ console.log(this.reportInfo,'------');
|
|
$(document).on('click', '#report-content img',function(event) {
|
|
$(document).on('click', '#report-content img',function(event) {
|
|
let imgArray = [];
|
|
let imgArray = [];
|
|
let src_tag = $(this).attr('src');
|
|
let src_tag = $(this).attr('src');
|
|
@@ -96,6 +112,7 @@ export default {
|
|
ArticleIdMd5: id,
|
|
ArticleIdMd5: id,
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if(res.Ret === 200) {
|
|
if(res.Ret === 200) {
|
|
|
|
+ console.log(res);
|
|
this.haveData = res.Data.HasPermission === 1 ? true : false;
|
|
this.haveData = res.Data.HasPermission === 1 ? true : false;
|
|
if(res.Data.HasPermission === 1) { //有访问权限
|
|
if(res.Data.HasPermission === 1) { //有访问权限
|
|
this.reportInfo = res.Data.Detail;
|
|
this.reportInfo = res.Data.Detail;
|
|
@@ -115,11 +132,65 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ /* 获取报告的文章详情 */
|
|
|
|
+ getReportTwo(id,token,type) {
|
|
|
|
+ if(type == 'mpwechat') {
|
|
|
|
+ RaiApi.reportDtlTwo({
|
|
|
|
+ ArticleId: id,
|
|
|
|
+ Authorization: token
|
|
|
|
+ }).then(res => {
|
|
|
|
+ console.log(res);
|
|
|
|
+ if(res.Ret === 200) {
|
|
|
|
+ this.haveData = res.Data.HasPermission === 1 ? true : false
|
|
|
|
+ if(res.Data.HasPermission === 1) { //有访问权限
|
|
|
|
+ this.reportInfo = res.Data.Detail;
|
|
|
|
+ $(document).on('click', '#report-content img',function(event) {
|
|
|
|
+ let imgArray = [];
|
|
|
|
+ let src_tag = $(this).attr('src');
|
|
|
|
+ let parent_tag = $(this).parent();
|
|
|
|
+ if (src_tag && !parent_tag.attr('href')) {
|
|
|
|
+ $('#report-content img').each(function(index, el) {
|
|
|
|
+ let itemSrc = $(this).attr('src');
|
|
|
|
+ imgArray.push(itemSrc);
|
|
|
|
+ });
|
|
|
|
+ wx.previewImage({current:src_tag,urls:imgArray});
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }else {
|
|
|
|
+ RaiApi.lookReport({
|
|
|
|
+ ArticleIdMd5: id,
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if(res.Ret === 200) {
|
|
|
|
+ console.log(res);
|
|
|
|
+ this.haveData = res.Data.HasPermission === 1 ? true : false;
|
|
|
|
+ if(res.Data.HasPermission === 1) { //有访问权限
|
|
|
|
+ this.reportInfo = res.Data.Detail;
|
|
|
|
+ $(document).on('click', '#report-content img',function(event) {
|
|
|
|
+ let imgArray = [];
|
|
|
|
+ let src_tag = $(this).attr('src');
|
|
|
|
+ let parent_tag = $(this).parent();
|
|
|
|
+ if (src_tag && !parent_tag.attr('href')) {
|
|
|
|
+ $('#report-content img').each(function(index, el) {
|
|
|
|
+ let itemSrc = $(this).attr('src');
|
|
|
|
+ imgArray.push(itemSrc);
|
|
|
|
+ });
|
|
|
|
+ wx.previewImage({current:src_tag,urls:imgArray});
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
/* 访谈申请 */
|
|
/* 访谈申请 */
|
|
applyHandle() {
|
|
applyHandle() {
|
|
- !this.reportInfo.IsInterviewApply
|
|
|
|
|
|
+ !this.reportInfo.IsInterviewApply
|
|
&& Dialog.confirm({
|
|
&& Dialog.confirm({
|
|
title: '',
|
|
title: '',
|
|
message: '专家访谈申请会提交给您的对口销售,销售会线下与您取得联系,确定申请吗?',
|
|
message: '专家访谈申请会提交给您的对口销售,销售会线下与您取得联系,确定申请吗?',
|
|
@@ -200,15 +271,26 @@ export default {
|
|
this.resetCss()
|
|
this.resetCss()
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
|
|
+ // console.log(this.$route.query);
|
|
document.title = '纪要详情';
|
|
document.title = '纪要详情';
|
|
if(this.$route.query.id) {
|
|
if(this.$route.query.id) {
|
|
this.id = this.$route.query.id
|
|
this.id = this.$route.query.id
|
|
this.from_type = this.$route.query.fromType;
|
|
this.from_type = this.$route.query.fromType;
|
|
|
|
+ // console.log( this.from_type );
|
|
let access_token = this.$route.query.token || '';
|
|
let access_token = this.$route.query.token || '';
|
|
localStorage.setItem('access_token',access_token)
|
|
localStorage.setItem('access_token',access_token)
|
|
this.getReport(this.id,access_token,this.from_type)
|
|
this.getReport(this.id,access_token,this.from_type)
|
|
- }
|
|
|
|
- // this.getReport(3526,'49ca03822497d26a3943d5084ed59130e912a1e03f39de845be94ad87e94248c')
|
|
|
|
|
|
+ // console.log(123);
|
|
|
|
+ }else if(this.$route.query.idReport) {
|
|
|
|
+ console.log(this.$route.query.idReport);
|
|
|
|
+ this.id = this.$route.query.idReport
|
|
|
|
+ this.from_type = this.$route.query.fromType;
|
|
|
|
+ // console.log( this.from_type );
|
|
|
|
+ let access_token = this.$route.query.token || '';
|
|
|
|
+ localStorage.setItem('access_token',access_token)
|
|
|
|
+ this.getReportTwo(this.id,access_token,this.from_type)
|
|
|
|
+ }
|
|
|
|
+ // this.getReport(3927,'20ec44c7fe0e02ff597c324406ce49ca7c23d1b788556a5a8b743b266e897d81')
|
|
this.checkUa()
|
|
this.checkUa()
|
|
},
|
|
},
|
|
}
|
|
}
|
|
@@ -223,6 +305,10 @@ export default {
|
|
.van-button__content {
|
|
.van-button__content {
|
|
font-size: 17px !important;
|
|
font-size: 17px !important;
|
|
}
|
|
}
|
|
|
|
+}
|
|
|
|
+.seller-list {
|
|
|
|
+ font-size: .56rem;
|
|
|
|
+ margin-bottom: .8rem;
|
|
}
|
|
}
|
|
.van-dialog--round-button .van-dialog__footer{
|
|
.van-dialog--round-button .van-dialog__footer{
|
|
border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
|
|
border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
|
|
@@ -245,8 +331,9 @@ export default {
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
padding: 0.4rem 0.68rem 4rem;
|
|
padding: 0.4rem 0.68rem 4rem;
|
|
- font-size: 0.64rem;
|
|
|
|
|
|
+ font-size:.56rem;
|
|
.report-top {
|
|
.report-top {
|
|
|
|
+
|
|
color: #999999;
|
|
color: #999999;
|
|
.report-title {
|
|
.report-title {
|
|
color: #4A4A4A;
|
|
color: #4A4A4A;
|
|
@@ -260,9 +347,40 @@ export default {
|
|
margin: 0.4rem 0;
|
|
margin: 0.4rem 0;
|
|
}
|
|
}
|
|
.tip {
|
|
.tip {
|
|
- color: #586EB5;
|
|
|
|
|
|
+ color: #2f7afa;
|
|
display: inline;
|
|
display: inline;
|
|
}
|
|
}
|
|
|
|
+ .container-text {
|
|
|
|
+ margin-top: .8rem;
|
|
|
|
+ line-height: .88rem;
|
|
|
|
+ padding-bottom: .8rem;
|
|
|
|
+ border-bottom: .04rem dashed #999999;
|
|
|
|
+ .container {
|
|
|
|
+ display: flex;
|
|
|
|
+ .blue-box {
|
|
|
|
+ margin-right:.2rem;
|
|
|
|
+ width: .16rem;
|
|
|
|
+ height: .88rem;
|
|
|
|
+ background-color: #3385FF;
|
|
|
|
+ }
|
|
|
|
+ .text-box {
|
|
|
|
+ font-size: .64rem;
|
|
|
|
+ height: .88rem;
|
|
|
|
+ line-height: .88rem;
|
|
|
|
+ color: #333;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .content-html {
|
|
|
|
+ margin-top: .1rem;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ padding-left:.36rem !important;
|
|
|
|
+ color: #333333 !important;
|
|
|
|
+ font-size: .64rem !important;
|
|
|
|
+ line-height: 1rem !important;
|
|
|
|
+ letter-spacing:.12rem !important;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
.detail-report {
|
|
.detail-report {
|
|
padding: 0.4rem 0;
|
|
padding: 0.4rem 0;
|
|
@@ -304,4 +422,4 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|