reportDetail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  1. <template>
  2. <block>
  3. <view class="container reportDetail-container" v-if="isUserBindingPhoneNumber">
  4. <block v-if="haveAuth === 1">
  5. <!-- 链接地址 -->
  6. <web-view :src="linkurl + '?id=' + id + '&fromType=mpwechat&token=' + access_token + '&IsSendWx=' + isSendWx"></web-view>
  7. </block>
  8. <view class="noauth-cont" v-else-if="haveAuth === 2 || haveAuth === 3 || haveAuth === 4 || haveAuth === 5">
  9. <block v-if="isSpecialArticle_report">
  10. <image src="https://hzstatic.hzinsights.com/cygx/czbk/noauth.png" class="noauth-ico"></image>
  11. <view class="tip" v-if="haveAuth === 3">
  12. 需要升级行业套餐权限才可查看此报告,请联系对口销售
  13. <view class="btn-cont back-btn" @click="backIndex"> 返回 </view>
  14. </view>
  15. </block>
  16. <block v-else>
  17. <block v-if="!isShowAlert">
  18. <image src="https://hzstatic.hzinsights.com/cygx/czbk/noauth.png" class="noauth-ico"></image>
  19. <block v-if="haveAuth !== 3">
  20. <view v-if="reportInfo.IsResearch" class="research-noauth">
  21. 暂无 <text class="strong-text">买方研选</text> 权限
  22. <text style="margin-bottom: 30rpx"> 您可申请开通试用 </text>
  23. </view>
  24. <view class="tip" v-else>您暂无权限查看此报告内容,若想查看可以申请开通对应的试用权限</view>
  25. <view class="btn-cont" @click="applyAuth">{{ isShowAlert ? "立即上传" : "立即申请" }} </view>
  26. </block>
  27. <view class="tip" v-if="haveAuth === 3">
  28. <view v-if="reportInfo.IsResearch" class="research-noauth">
  29. 暂无 <text class="strong-text">买方研选</text> 权限
  30. <text> 点击提交申请,提醒对口销售为你开通试用 </text>
  31. </view>
  32. <block v-else>
  33. 您暂无权限查看此报告内容
  34. <view class="contract">
  35. 若想查看可以联系对口销售
  36. <text @click="callPhone(reportInfo.SellerMobile)">
  37. {{ reportInfo.SellerName }}:<text style="color: #d4bf86">{{ reportInfo.SellerMobile }}</text>
  38. </text>
  39. </view>
  40. <view>申请开通对应的试用权限</view>
  41. </block>
  42. </view>
  43. <view v-if="haveAuth === 3" class="btn-cont" @click="sellerApplyAuth"> {{ isShowText ? "提交申请" : "立即申请" }}</view>
  44. <view class="btn-cont back-btn" @click="backIndex"> 返回 </view>
  45. <view class="product-introduction-box" v-if="reportInfo.IsResearch">
  46. <!-- <view class="research-btn" @click="goRouterResearch('介绍')">
  47. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/report_Yx.png"></image>
  48. 点击查看买方研选产品介绍
  49. </view>
  50. <view class="research-btn" @click="goRouterResearch('报价')">
  51. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/quotation_icon.png"></image>
  52. 点击查看买方研选服务报价单
  53. </view> -->
  54. <view class="product-introduction">
  55. <view class="introduction-header">
  56. <view class="introduction-header-left"></view>
  57. <view class="introduction-header-right">
  58. <view class="introduction-title-CN">
  59. 产品介绍
  60. </view>
  61. <view class="introduction-title-US">
  62. Product Introduction
  63. </view>
  64. </view>
  65. </view>
  66. <view class="introduction-body">
  67. <view class="introduction-body-box">
  68. <view class="body-box-title">
  69. 独家亮点
  70. </view>
  71. <view class="introduction-body-row"><span class="highHight-text">低至1000元</span>起访谈优质专家</view>
  72. <view class="introduction-body-row">重点公司小范围交流<span class="highHight-text">破圈</span>参加</view>
  73. <view class="introduction-body-row"><span class="highHight-text">海量</span>调研过程及纪要共享</view>
  74. </view>
  75. <view class="introduction-body-box">
  76. <view class="body-box-title">
  77. 优质资源
  78. </view>
  79. <view class="introduction-body-row"><span class="highHight-text">500+</span>篇/年调研纪要更新,</view>
  80. <view class="introduction-body-row"><span class="highHight-text">300+</span>场/年海内外重点公司小范围交流,</view>
  81. <view class="introduction-body-row"><span class="highHight-text">100+</span>场/年热点线下调研,</view>
  82. <view class="introduction-body-row"><span class="highHight-text">30000+</span>名优质行业专家长期合作,</view>
  83. <view class="introduction-body-row"><span class="highHight-text">1000+</span>名优秀买方汇集,</view>
  84. </view>
  85. <view class="introduction-body-box">
  86. <view class="body-box-title" style="margin-bottom: 18rpx;">
  87. 服务报价
  88. </view>
  89. <view class="body-row-content">
  90. <view class="body-row-title">
  91. 3万/年
  92. </view>
  93. <view class="introduction-body-row">含无限量调研纪要查阅</view>
  94. <view class="introduction-body-row"><span class="highHight-text">以及3次</span>公开专家访谈;</view>
  95. </view>
  96. <view class="body-row-content">
  97. <view class="body-row-title">
  98. 5万/年
  99. </view>
  100. <view class="introduction-body-row">含无限量调研纪要查阅</view>
  101. <view class="introduction-body-row">
  102. <span class="highHight-text">以及15次</span>公开专家访谈<span class="highHight-text">或30次</span>重点公司、专家小范围交流;
  103. </view>
  104. </view>
  105. <view class="body-row-content" style="margin-bottom: 0;">
  106. <view class="body-row-title">
  107. 10万/年
  108. </view>
  109. <view class="introduction-body-row">含无限量调研纪要查阅</view>
  110. <view class="introduction-body-row">
  111. <span class="highHight-text">以及40次</span>公开专家访谈
  112. <span class="highHight-text">或80次</span>重点公司、专家小范围交流
  113. <span class="highHight-text">或20次</span>私享专家一对一。
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. </block>
  121. <block v-else>
  122. <text class="moneh-text"> 上传名片并填写简单信息,24小时内我们会为您开通一个月的免费月卡 </text>
  123. <img src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/month_card.png" class="month_card" alt="" />
  124. <view class="btn-cont btn-dl" @click="applyAuth"> 立即上传 </view>
  125. <view class="btn-cont month-back" @click="backIndex"> 返回</view>
  126. </block>
  127. </block>
  128. </view>
  129. </view>
  130. <not-have-login v-else />
  131. <Loading />
  132. </block>
  133. </template>
  134. <script>
  135. import { Report, User, Reports, FreeButton } from "@/config/api.js";
  136. import { reportLinkUrl } from "@/config/config";
  137. import notHaveLogin from "@/components/notHaveLogin.vue";
  138. export default {
  139. components: { notHaveLogin },
  140. data() {
  141. return {
  142. access_token: "", //用户标识
  143. reportInfo: "",
  144. id: "",
  145. readTiem: 0,
  146. setIntervalTiem: null,
  147. isShowAlert: false,
  148. haveAuth: false,
  149. isSpecialArticle_report: false,
  150. isSendWx: "",
  151. };
  152. },
  153. computed: {
  154. linkurl() {
  155. return reportLinkUrl;
  156. },
  157. isShowText() {
  158. return this.haveAuth === 3 && this.reportInfo.IsResearch;
  159. },
  160. },
  161. methods: {
  162. /* 获取详情 */
  163. getDetail() {
  164. Report.reportDtl({
  165. ArticleId: this.id,
  166. PageRouter: this.$store.state.pageRouterReport,
  167. IsSendWx: this.isSendWx,
  168. }).then((res) => {
  169. if (res.Ret === 200) {
  170. this.$store.commit("setRouterReport", "报告详情");
  171. uni.setNavigationBarTitle({
  172. title: res.Data.Detail.IsSummary == 1 ? "纪要详情" : "报告详情",
  173. });
  174. this.haveAuth = res.Data.HasPermission;
  175. this.isShowWriter = res.Data.IsShow;
  176. this.isSpecialArticle_report = res.Data.IsSpecialArticle;
  177. this.reportInfo = res.Data.Detail;
  178. if (res.Data.HasPermission === 1) {
  179. //有访问权限
  180. if (res.Data.Detail.IsNeedJump) {
  181. uni.redirectTo({
  182. url: "/pageMy/reportPage/reportPage?id=" + this.id + "&IsSendWx=" + this.isSendWx,
  183. });
  184. }
  185. this.access_token = this.access_token || this.$db.get("access_token");
  186. this.$store.dispatch("statistics", { PageType: "ReportParticulars", DetailId: this.id + "" });
  187. }
  188. }
  189. });
  190. },
  191. /* 无权限申请开通权限 */
  192. applyAuth() {
  193. /* 区分是否是潜在用户 */
  194. this.haveAuth === 2
  195. ? User.applyTry({
  196. ApplyMethod: 3,
  197. TryType: "Article",
  198. DetailId: this.id,
  199. }).then((res) => {
  200. if (res.Ret === 200) {
  201. uni.navigateTo({
  202. url: "/pageMy/applyResult/applyResult",
  203. });
  204. }
  205. })
  206. : this.haveAuth === 4
  207. ? uni.navigateTo({
  208. url: "/pageMy/applyTrial/applyTrial?tryType=Article&detailId=" + this.id,
  209. })
  210. : uni.showModal({
  211. title: "",
  212. content: "您已经提交过申请了,请耐心等待",
  213. showCancel: false,
  214. confirmColor: "#365595",
  215. success: function (res) {},
  216. });
  217. },
  218. // 销售的立即申请
  219. sellerApplyAuth() {
  220. User.applyTry({
  221. TryType: "Article",
  222. DetailId: this.id,
  223. }).then((res) => {
  224. if (res.Ret === 200) {
  225. uni.showModal({
  226. title: "",
  227. content: "提交申请成功,请耐心等待",
  228. showCancel: false,
  229. confirmColor: "#365595",
  230. success: function (res) {
  231. this.backIndex();
  232. },
  233. });
  234. }
  235. });
  236. },
  237. // 返回首頁
  238. backIndex() {
  239. uni.navigateBack({
  240. fail() {
  241. uni.switchTab({
  242. url: "/pages/index/index",
  243. });
  244. },
  245. });
  246. },
  247. // 拨打电话
  248. callPhone(num) {
  249. uni.makePhoneCall({
  250. phoneNumber: num,
  251. });
  252. },
  253. /* 申请访谈 */
  254. applyHandle() {
  255. // 申请访谈
  256. !this.reportInfo.IsInterviewApply &&
  257. this.$util.modal("", "专家访谈申请会提交给您的对口销售,销售会线下与您取得联系,确定申请吗?", () => {
  258. this.interviewApi();
  259. });
  260. // 取消申请访谈 区分状态 '待邀请','待访谈','已完成','已取消'
  261. if (this.reportInfo.IsInterviewApply) {
  262. // this.reportInfo.InterviewApplyStatus
  263. this.$util.modal(
  264. "",
  265. this.reportInfo.InterviewApplyStatus == "待访谈"
  266. ? "当前无法取消访谈,若有疑问,请联系对口销售"
  267. : this.reportInfo.InterviewApplyStatus == "待邀请"
  268. ? "您要取消此次访谈申请吗?"
  269. : "该访谈已完成",
  270. () => {
  271. this.reportInfo.InterviewApplyStatus == "待邀请"
  272. ? this.interviewApi()
  273. : this.reportInfo.InterviewApplyStatus == "待访谈"
  274. ? uni.makePhoneCall({
  275. phoneNumber: "18767183922",
  276. })
  277. : "";
  278. }
  279. );
  280. }
  281. },
  282. /* 访谈接口 */
  283. interviewApi() {
  284. Report.applyRpt({
  285. ArticleId: this.id,
  286. }).then((res) => {
  287. this.reportInfo.IsInterviewApply = !this.reportInfo.IsInterviewApply;
  288. });
  289. },
  290. /* 收藏 */
  291. collectHandle() {
  292. Report.collectRpt({
  293. ArticleId: this.id,
  294. PageRouter: this.$store.state.pageRouterReport,
  295. }).then((res) => {
  296. this.reportInfo.IsCollect = !this.reportInfo.IsCollect;
  297. this.$util.toast(res.Msg);
  298. });
  299. },
  300. /* 错误 */
  301. errorDetails() {
  302. uni.showModal({
  303. confirmText: "知道了",
  304. showCancel: false,
  305. confirmColor: "#3385FF",
  306. content: "网络不好,请刷新重试",
  307. success: (res) => {
  308. uni.navigateBack({
  309. fail() {
  310. uni.switchTab({
  311. url: "/pages/index/index",
  312. });
  313. },
  314. });
  315. },
  316. });
  317. },
  318. // 获取权限弹窗是否展示免费月卡接口
  319. async userIsShowAlert() {
  320. const res = await FreeButton.userIsShowAlert();
  321. if (res.Ret === 200) {
  322. this.isShowAlert = res.Data.IsShow;
  323. }
  324. },
  325. /* 跳转研选 */
  326. goRouterResearch(type) {
  327. if (type == "介绍") {
  328. uni.navigateTo({
  329. url: "/pages-purchaser/productIntroduction/productIntroduction",
  330. });
  331. } else {
  332. uni.navigateTo({
  333. url: "/pages-purchaser/ProductQuotation/ProductQuotation",
  334. });
  335. }
  336. },
  337. },
  338. async onShow() {
  339. this.readTiem = 0;
  340. this.setIntervalTiem = setInterval(() => {
  341. this.readTiem++;
  342. }, 1000);
  343. let page = getCurrentPages(); //查看路径
  344. if (page.length === 1) {
  345. if (!this.$store.state.isAuth && !this.$store.state.isBind && this.id > 0) this.getDetail();
  346. } else {
  347. // 跳转入口
  348. this.id > 0 && this.getDetail();
  349. }
  350. },
  351. onLoad(option) {
  352. this.id = option.id ? +option.id : "";
  353. this.isSendWx = option.IsSendWx || "";
  354. if (!this.id && !this.id > 0) {
  355. this.errorDetails();
  356. }
  357. // 免费送月卡
  358. // this.userIsShowAlert();
  359. },
  360. /**
  361. * 用户点击分享
  362. */
  363. onShareAppMessage: function (res) {
  364. if (this.id) {
  365. return {
  366. title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : this.reportInfo.Title,
  367. path: "/pageMy/reportDetail/reportDetail?id=" + this.id,
  368. success: (res) => {},
  369. fail: (err) => {},
  370. };
  371. }
  372. },
  373. onHide() {
  374. //页面退出
  375. if (this.id && this.id > 0) {
  376. clearInterval(this.setIntervalTiem);
  377. Reports.addStopTime({
  378. ArticleId: this.id,
  379. StopTime: this.readTiem,
  380. OutType: 2,
  381. Source: "MOBILE",
  382. }).then((res) => {});
  383. }
  384. },
  385. onUnload() {
  386. if (this.id && this.id > 0) {
  387. //页面返回
  388. clearInterval(this.setIntervalTiem);
  389. Reports.addStopTime({
  390. ArticleId: this.id,
  391. StopTime: this.readTiem,
  392. OutType: 1,
  393. Source: "MOBILE",
  394. }).then((res) => {});
  395. }
  396. },
  397. };
  398. </script>
  399. <style lang="scss" scoped>
  400. .reportDetail-container {
  401. background-color: #fff;
  402. padding: 20rpx 0 134rpx;
  403. .report-top {
  404. color: #999999;
  405. .report-title {
  406. color: #4a4a4a;
  407. font-size: 34rpx;
  408. }
  409. .report_desc {
  410. display: flex;
  411. justify-content: space-between;
  412. align-items: center;
  413. margin: 20rpx 0;
  414. }
  415. .tip {
  416. color: #586eb5;
  417. display: inline;
  418. }
  419. }
  420. .detail-report {
  421. padding: 40rpx 0;
  422. }
  423. .statement {
  424. max-width: 670rpx;
  425. max-height: 900rpx;
  426. line-height: 42rpx;
  427. overflow-y: auto;
  428. padding: 40rpx;
  429. }
  430. .fixed_cont {
  431. width: 100%;
  432. // height: 114rpx;
  433. padding: 10rpx 0;
  434. position: fixed;
  435. bottom: 0;
  436. left: 0;
  437. z-index: 99999;
  438. display: flex;
  439. justify-content: center;
  440. align-items: center;
  441. flex-direction: row;
  442. background-color: #fff;
  443. box-shadow: 0 -3rpx 6rpx rgba($color: #6a6a6a, $alpha: 0.16);
  444. .handle-item {
  445. font-size: 24rpx;
  446. color: #d0cfd5;
  447. text-align: center;
  448. margin-right: 130rpx;
  449. &:last-child {
  450. margin-right: 0;
  451. }
  452. .img_ico {
  453. width: 56rpx;
  454. height: 54rpx;
  455. margin: 0 auto;
  456. }
  457. }
  458. .button-item {
  459. background-color: transparent;
  460. line-height: normal;
  461. }
  462. }
  463. .noauth-cont {
  464. padding-top: 170rpx;
  465. text-align: center;
  466. font-size: 28rpx;
  467. .noauth-ico {
  468. width: 365rpx;
  469. height: 229rpx;
  470. margin-bottom: 70rpx;
  471. }
  472. .tip {
  473. width: 532rpx;
  474. margin: 0 auto 100rpx;
  475. .contract {
  476. padding: 40rpx 90rpx 0;
  477. line-height: 44rpx;
  478. text {
  479. display: inline-block;
  480. }
  481. }
  482. }
  483. .btn-cont {
  484. width: 368rpx;
  485. height: 80rpx;
  486. // position: relative;
  487. background: linear-gradient(268deg, #2ddbff 0%, #1599ff 49%, #005eff 100%);
  488. color: #fff;
  489. font-size: 34rpx;
  490. margin: 0 auto;
  491. text-align: center;
  492. line-height: 80rpx;
  493. &.back-btn {
  494. background: #fff !important;
  495. color: #2c83ff;
  496. border: 1px solid #2c83ff;
  497. margin-top: 30rpx;
  498. }
  499. .btn_bg {
  500. width: 100%;
  501. height: 80rpx;
  502. position: absolute;
  503. left: 0;
  504. top: 0;
  505. }
  506. .btn-txt {
  507. width: 100%;
  508. position: absolute;
  509. z-index: 1;
  510. }
  511. }
  512. .product-introduction-box{
  513. background-color: #F7F7F7;
  514. padding-top: 10rpx;
  515. margin-top: 60rpx;
  516. .product-introduction{
  517. padding: 60rpx 60rpx 0;
  518. background-color: white;
  519. .introduction-header{
  520. margin-bottom: 40rpx;
  521. display: flex;
  522. .introduction-header-left{
  523. background-color: #CAAF8B;
  524. height: 90rpx;
  525. width: 14rpx;
  526. margin-right: 20rpx;
  527. }
  528. .introduction-header-right{
  529. text-align: left;
  530. .introduction-title-CN{
  531. font-weight: 500;
  532. font-size: 34rpx;
  533. color: #333333;
  534. line-height: 42rpx;
  535. margin-bottom: 8rpx;
  536. }
  537. .introduction-title-US{
  538. font-weight: 400;
  539. font-size: 28rpx;
  540. color: #C0C4CC;
  541. line-height: 42rpx;
  542. }
  543. }
  544. }
  545. .introduction-body{
  546. .introduction-body-box{
  547. text-align: left;
  548. margin-bottom: 40rpx;
  549. .body-row-content{
  550. margin-bottom: 40rpx;
  551. font-size: 34rpx;
  552. line-height: 48rpx;
  553. font-weight: 600;
  554. color: #CAAF8B;
  555. .body-row-title{
  556. margin-left: 40rpx;
  557. }
  558. }
  559. .body-box-title{
  560. font-weight: 600;
  561. font-size: 34rpx;
  562. line-height: 48rpx;
  563. padding-left: 40rpx;
  564. position: relative;
  565. margin-bottom: 22rpx;
  566. &::before{
  567. content: "";
  568. height: 20rpx;
  569. width: 20rpx;
  570. background-color: #CAAF8B;
  571. border-radius: 20rpx;
  572. position: absolute;
  573. left: 0;
  574. top: 16rpx;
  575. }
  576. }
  577. .introduction-body-row{
  578. margin-left: 40rpx;
  579. font-weight: 400;
  580. font-size: 26rpx;
  581. color: #333333;
  582. line-height: 36rpx;
  583. }
  584. .highHight-text{
  585. color: #CAAF8B;
  586. }
  587. }
  588. }
  589. }
  590. }
  591. }
  592. .month_card {
  593. width: 100%;
  594. height: 565rpx;
  595. padding-left: -20rpx;
  596. }
  597. .btn-dl {
  598. background: linear-gradient(253deg, #fcf3e9 0%, #eedec8 100%) !important;
  599. color: #333 !important;
  600. margin: 30rpx auto !important;
  601. }
  602. .month-back {
  603. background: #f6f6f6 !important;
  604. color: #999 !important;
  605. }
  606. .moneh-text {
  607. text-align: center;
  608. width: 632rpx;
  609. margin: 0 auto 20rpx;
  610. color: #999999;
  611. }
  612. .research-noauth {
  613. color: #333;
  614. font-size: 36rpx;
  615. width: calc(100% + 80rpx);
  616. margin-left: -40rpx;
  617. .strong-text {
  618. display: inline-block;
  619. padding: 0 10rpx;
  620. font-weight: 500;
  621. }
  622. text:last-child {
  623. font-size: 32rpx;
  624. font-size: 34rpx;
  625. color: #999999;
  626. margin-top: 10rpx;
  627. }
  628. }
  629. // .research-btn {
  630. // display: flex;
  631. // align-items: center;
  632. // font-size: 32rpx;
  633. // width: 546rpx;
  634. // height: 78rpx;
  635. // margin: 30rpx auto;
  636. // background: #f8f8fa;
  637. // border-radius: 4rpx;
  638. // padding-left: 40rpx;
  639. // /* 字体/333 */
  640. // image {
  641. // width: 40rpx;
  642. // height: 40rpx;
  643. // margin-right: 10rpx;
  644. // }
  645. // }
  646. }
  647. </style>