activityDetail.vue 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021
  1. <template>
  2. <view class="container activity-detail">
  3. <view class="" v-if="haveAuth == 1">
  4. <block v-if="detailData.YidongActivityUrl">
  5. <web-view :src="detailData.YidongActivityUrl"></web-view>
  6. </block>
  7. <block v-else>
  8. <!-- 头部滚动显示 -->
  9. <view class="notice" v-if="detailData.IsLimitPeople == 1">
  10. <van-notice-bar color="#FFFFFF" background="#FE9000" text="该活动参与名额有限,报名客户请按时参加,若不能按时参加请及时取消报名,爽约会影响您的后续报名资格" />
  11. </view>
  12. <!-- 内容部分 -->
  13. <view class="content">
  14. <view v-if="detailData.ActivityName" class="dialog-title" :class="1 == 1 ? 'brackets-title' : ''">{{ detailData.ActivityName }}</view>
  15. <block v-if="detailData.FileType == 1">
  16. <view class="audio-card" v-if="detailData.VoiceList && detailData.VoiceList.Url">
  17. <view class="slider-paly">
  18. <view style="flex: 1; padding-top: 20rpx">
  19. <slider
  20. activeColor="#3385FF"
  21. :max="detailData.VoiceList.PlaySeconds"
  22. :value="curTime"
  23. @touchstart="touchstartHandler"
  24. @change="handleAudioSliderChange($event)"
  25. @changing="handleAudioSliderChangeing($event)"
  26. block-size="16"
  27. class="slider"
  28. />
  29. <view class="card-time">
  30. <view class="time">{{ curTime | formatVoiceTime }}</view>
  31. <view class="time">{{ detailData.VoiceList.PlaySeconds | formatVoiceTime }}</view>
  32. </view>
  33. </view>
  34. <view class="is-paly-card">
  35. <image
  36. @click.stop="audioPlayBack"
  37. class=""
  38. :src="
  39. curVoiceId === detailData.ActivityId && !curAudioPaused
  40. ? 'https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/play_icon.gif'
  41. : 'https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/pause_icon.png'
  42. "
  43. ></image>
  44. </view>
  45. </view>
  46. <view class="fast-reverse">
  47. <image @click="speedReverseHandler('reverse')" class="speed-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/fastReverse_icon.png"></image>
  48. <block v-for="(item, index) in timesTheSpeed" :key="item.value">
  49. <view class="speed-button" v-if="isTimes == item.value" @click="isTimesHandler(index)">
  50. {{ item.name }}
  51. </view>
  52. </block>
  53. <image @click="speedReverseHandler('speed')" class="speed-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/speed_icon.png"></image>
  54. </view>
  55. <view class="card-title text_twoLine">
  56. {{ detailTitle(detailData.VoiceList.Name) }}
  57. <view class="title-image">
  58. <image @click="myLeavingMessageHandler" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/multimedia/leaving_message.png"></image>
  59. <image
  60. @click="isCollectionHandeler"
  61. :src="
  62. detailData.IsCollect
  63. ? 'https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/multimedia/collected_icon.png'
  64. : 'https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/multimedia/not_collected.png'
  65. "
  66. ></image>
  67. </view>
  68. </view>
  69. </view>
  70. </block>
  71. <block v-if="detailData.FileType == 2">
  72. <view class="video-play" v-if="detailData.VideoDetail && detailData.VideoDetail.ResourceUrl">
  73. <video
  74. :id="detailData.ActivityId"
  75. :src="detailData.VideoDetail.ResourceUrl"
  76. enable-play-gesture
  77. :custom-cache="false"
  78. object-fit="contain"
  79. show-mute-btn
  80. @ended="handleVideoEnd"
  81. @play="handelVideoPlay"
  82. @loadedmetadata="loadedmetadataHandle"
  83. @timeupdate="handleVideoTimeUpdate"
  84. ></video>
  85. <view class="title text_twoLine">
  86. {{ detailTitle(detailData.VideoDetail.Title) }}
  87. <view class="title-image">
  88. <image @click="myLeavingMessageHandler" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/multimedia/leaving_message.png"></image>
  89. <image
  90. @click="isCollectionHandeler"
  91. :src="
  92. detailData.IsCollect
  93. ? 'https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/multimedia/collected_icon.png'
  94. : 'https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/multimedia/not_collected.png'
  95. "
  96. ></image>
  97. </view>
  98. </view>
  99. </view>
  100. </block>
  101. <view class="city-box">
  102. <text v-if="detailData.ActivityTypeName">活动类型:</text>
  103. <view class="city">
  104. <text style="color: #333">
  105. <block v-if="detailData.ChartPermissionName !== '买方研选'">({{ detailData.ChartPermissionName }})</block>
  106. {{ detailData.ActivityTypeName }}
  107. </text>
  108. <view class="choose-limit" @click="strictSelection">
  109. <image v-if="detailData.ChartPermissionName.includes('研选')" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/purchaser.png" mode=""></image>
  110. <image v-if="detailData.IsShowSustainable" class="limit-img" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/limit_icon.png" mode=""></image>
  111. </view>
  112. <image v-if="detailData.City" style="margin-left: 15rpx" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/location.png" mode=""></image>
  113. <text v-if="detailData.City">{{ detailData.City }}</text>
  114. </view>
  115. </view>
  116. <view v-if="detailData.Listndustrial.length" class="network dustrial-ui">
  117. <view class="network-left">产业标签:</view>
  118. <view class="network-right dustrial-content">
  119. <view class="item" v-for="item in detailData.Listndustrial" :key="item.IndustrialManagementId">
  120. <view :class="['dustrial-li', item.IsJump && 'dustrial-item']" @click="goDustrialHandler(item)">{{ item.IndustryName }} </view>
  121. <image v-if="item.IndustryNewLabel" class="new_icon" src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/new_report.png" mode=""></image>
  122. </view>
  123. </view>
  124. </view>
  125. <view v-if="detailData.ActivityTimeText" class="network">
  126. <view class="network-left">活动时间:</view>
  127. <view class="network-right">{{ detailData.ActivityTimeText }}</view>
  128. </view>
  129. <view v-if="detailData.DistinguishedGuest" class="network">
  130. <view class="network-left">嘉&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;宾:</view>
  131. <view class="network-right">{{ detailData.DistinguishedGuest }}</view>
  132. </view>
  133. <view v-if="detailData.Host" class="network">
  134. <view class="network-left">主&nbsp;&nbsp;持&nbsp;人:</view>
  135. <view class="network-right">{{ detailData.Host }}</view>
  136. </view>
  137. <view v-if="detailData.Speaker" class="network">
  138. <view class="network-left">主&nbsp;&nbsp;讲&nbsp;人:</view>
  139. <view class="network-right">{{ detailData.Speaker }}</view>
  140. </view>
  141. <view v-if="detailData.Expert" class="network">
  142. <view class="network-left">专家背景:</view>
  143. <view class="network-right">
  144. <rich-text :nodes="detailData.Expert"></rich-text>
  145. </view>
  146. </view>
  147. <view v-if="detailData.MainlandTell" class="network">
  148. <view class="network-left">大陆拨入:</view>
  149. <view class="network-right" style="color: #2c83ff" @click="phonebtn(detailData.MainlandTell)">{{ detailData.MainlandTell }}</view>
  150. </view>
  151. <view v-if="detailData.HongKongTell" class="network">
  152. <view class="network-left">香港拨入:</view>
  153. <view class="network-right" style="color: #2c83ff" @click="phonebtn(detailData.HongKongTell)">{{ detailData.HongKongTell }}</view>
  154. </view>
  155. <view v-if="detailData.TaiwanTell" class="network">
  156. <view class="network-left">台湾拨入:</view>
  157. <view class="network-right" style="color: #2c83ff" @click="phonebtn(detailData.TaiwanTell)">{{ detailData.TaiwanTell }}</view>
  158. </view>
  159. <view v-if="detailData.AmericaTell" class="network">
  160. <view class="network-left">美国拨入:</view>
  161. <view class="network-right" style="color: #2c83ff" @click="phonebtn(detailData.AmericaTell)">{{ detailData.AmericaTell }}</view>
  162. </view>
  163. <view v-if="detailData.ParticipationCode" class="network">
  164. <view class="network-left">拨入密码:</view>
  165. <view class="network-right">{{
  166. detailData.ActivityTypeName == "公司调研电话会" && detailData.IsLimitPeople == 1 && detailData.IsSignup == 0 ? "请报名获取" : detailData.ParticipationCode
  167. }}</view>
  168. </view>
  169. <view class="network" v-if="detailData.OnlineParticipation">
  170. <view class="network-left">网络参会:</view>
  171. <view class="network-right network-link" style="color: #2c83ff">
  172. <view class="">
  173. <text class="default text_oneLine" @click="networkBtn">{{ detailData.OnlineParticipation }}</text>
  174. <text class="default copy-link" @click="copyLink">复制链接</text>
  175. </view>
  176. </view>
  177. </view>
  178. <view class="network" v-if="detailData.LinkParticipants">
  179. <view class="network-left">链接参会:</view>
  180. <view class="network-right network-zoom" style="color: #2c83ff">
  181. <view>
  182. <text class="default text_zoom">{{ detailData.LinkParticipants }}</text>
  183. <view> 点击<text class="default copy-link copy-zoom" @click="copyLink">复制链接</text>在手机浏览器打开,并输入会议密码 </view>
  184. </view>
  185. </view>
  186. </view>
  187. <view v-if="detailData.AppAttendance" class="network">
  188. <view class="network-left">App参会: </view>
  189. <view class="network-right">
  190. <rich-text :nodes="detailData.AppAttendance"></rich-text>
  191. </view>
  192. </view>
  193. <view v-if="detailData.ConferencePassword" class="network">
  194. <view class="network-left">拨入密码:</view>
  195. <view class="network-right">{{
  196. detailData.ActivityTypeName == "公司调研电话会" && detailData.IsLimitPeople == 1 && detailData.IsSignup == 0 ? "请报名获取" : detailData.ConferencePassword
  197. }}</view>
  198. </view>
  199. <view v-if="detailData.Address" class="network">
  200. <view class="network-left">活动地址:</view>
  201. <view class="network-right" v-if="detailData.IsSignup == 0 && detailData.ActivityTypeName == '公司线下调研' && detailData.IsLimitPeople == 1">请报名获取 </view>
  202. <view class="network-right" v-else>{{ detailData.Address }}</view>
  203. </view>
  204. <view v-if="detailData.Highlights" class="network">
  205. <view class="network-left">活动亮点: </view>
  206. <view class="network-right">
  207. <rich-text :nodes="detailData.Highlights"></rich-text>
  208. </view>
  209. </view>
  210. <view class="network" v-if="detailData.ArticleList.length">
  211. <view class="network-left">相关报告:</view>
  212. <view class="network-right" style="color: #2c83ff">
  213. <view style="margin-left: -20rpx" class="text_oneLine" @click="goDetail(item.ArticleId)" v-for="item in detailData.ArticleList" :key="item.ArticleId"> {{ item.ReportLink }}</view>
  214. </view>
  215. </view>
  216. <view v-if="detailData.Theme" class="network">
  217. <view class="network-left">主&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;题: </view>
  218. <view class="network-right">
  219. <rich-text :nodes="detailData.Theme"></rich-text>
  220. </view>
  221. </view>
  222. <view v-if="detailData.Remarks" class="network">
  223. <view class="network-left">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注: </view>
  224. <view class="network-right">
  225. <rich-text :nodes="detailData.Remarks"></rich-text>
  226. </view>
  227. </view>
  228. </view>
  229. <view class="" style="height: 50rpx"></view>
  230. <!-- 操作按钮部分 -->
  231. <view class="content-bottom">
  232. <block v-if="detailData.ActiveState == 1">
  233. <view class="make-outbound" @click="signupIsAddOfCancel(1)" v-if="detailData.IsShowOutboundCall">
  234. {{ detailData.LimitPeopleNum > 0 ? `${showOutboundCall}(${detailData.SignupNum}/${detailData.LimitPeopleNum})` : showOutboundCall }}
  235. </view>
  236. <view @click="meetingReminderCancel" class="make-conference" v-if="detailData.IsShowMeetingReminder">
  237. {{ detailData.IsCancelMeetingReminder == 1 ? "取消会议提醒" : "会议提醒" }}
  238. <text>(会前15分钟推送微信消息提醒)</text>
  239. </view>
  240. <view v-if="detailData.IsShowAppointment" @click="summaryIsHandel" class="make-generation make-conference">{{ detailData.IsAppointment == 1 ? "取消纪要" : "预约纪要" }}</view>
  241. <view v-if="detailData.IsShowHelpSsk" class="make-generation make-conference" @click="askingGo"> 帮我带问 </view>
  242. <view class="make-outbound" @click="wanttosignup" v-if="detailData.IsSignup == 0 && detailData.IsShowSignup">
  243. {{ detailData.LimitPeopleNum > 0 ? `我要报名(${detailData.SignupNum}/${detailData.LimitPeopleNum})` : "我要报名" }}
  244. </view>
  245. <view v-if="detailData.IsSignup != 0 && detailData.IsShowSignup" class="make-outbound" @click="signupIsAddOfCancel(2)">
  246. {{ detailData.LimitPeopleNum > 0 ? `${showWay}(${detailData.SignupNum}/${detailData.LimitPeopleNum})` : showWay }}
  247. </view>
  248. </block>
  249. <view class="content-bottom" v-if="detailData.ActiveState == 2 && detailData.ActivityTypeId == 1">
  250. <view class="make-conference" @click="askingGo('提问')">
  251. 实时提问
  252. <text>会议过程中,分析师可替您提问专家</text>
  253. </view>
  254. </view>
  255. </view>
  256. </block>
  257. <!-- 参会方式的弹出层 -->
  258. <view class="select-box">
  259. <u-popup v-model="selectShow" mode="bottom">
  260. <view style="color: #333333; font-size: 28rpxrpx">请选择参会方式</view>
  261. <view style="color: #2c83ff" @click="signupIsAddOfCancel(1)">预约外呼</view>
  262. <view style="color: #2c83ff" @click="signupIsAddOfCancel(2)">自主拨入</view>
  263. <view style="color: #a9afb8" @click="selectShow = false">取消</view>
  264. </u-popup>
  265. </view>
  266. <!-- 各种弹框部分 -->
  267. <modalDialog
  268. :isShow="isShow"
  269. :signupType="signupType"
  270. :goFollow="goFollow"
  271. :isCancelShow="isCancelShow"
  272. :idTypeCancel="idTypeCancel"
  273. :editIsShow="editIsShow"
  274. :countryCode="countryCode"
  275. :mobileEdit="mobileEdit"
  276. :goOnNextStep="goOnNextStep"
  277. :jurisdictionList="jurisdictionList"
  278. :mailboxBinding="mailboxBinding"
  279. />
  280. </view>
  281. <!-- 权限部分 -->
  282. <view v-else>
  283. <jurisdiction :idAct="id" :jurisdictionList="jurisdictionList"></jurisdiction>
  284. </view>
  285. <freeCharge class="free-charge" :isShowFreeBtn="isShowFree" />
  286. <view v-show="false">
  287. <audioModule ref="childrenAudio" :showAudioPop="showAudioPop" />
  288. </view>
  289. </view>
  290. </template>
  291. <script>
  292. import { activity, User, Home } from "@/config/api.js";
  293. import modalDialog from "@/components/modalDialog.vue";
  294. import jurisdiction from "./jurisdiction/components.vue";
  295. import freeCharge from "@/components/freeCharge";
  296. import audioModule from "@/components/audioModule/index";
  297. import manageMixin from "./manageMixin";
  298. let app = getApp({ allowDefault: true });
  299. export default {
  300. filters: {
  301. formatVoiceTime(e) {
  302. let m = parseInt(e / 60);
  303. let s = parseInt(e % 60);
  304. return `${m > 9 ? m : "0" + m}:${s > 9 ? s : "0" + s}`;
  305. },
  306. },
  307. data() {
  308. return {
  309. id: "",
  310. detailData: {},
  311. isShowJurisdiction: false,
  312. isGain: true,
  313. signupType: "", //关注类型
  314. goFollow: false, //是否关注公众号
  315. isShow: false, //弹框
  316. isCancelShow: false,
  317. idTypeCancel: {
  318. id: "",
  319. type: 1,
  320. cutId: "",
  321. state: "",
  322. },
  323. selectShow: false,
  324. haveAuth: "",
  325. jurisdictionList: {},
  326. editIsShow: false, //外呼莫泰框
  327. countryCode: "", //外呼区号
  328. mobileEdit: "", //外呼手机号
  329. goOnNextStep: "", //设置外呼号后弹出哪个
  330. mailboxBinding: false, //是否绑定邮箱
  331. play: false,
  332. timesTheSpeed: [
  333. { name: "倍速", value: 1 },
  334. { name: "1.25倍", value: 1.25 },
  335. { name: "1.5倍", value: 1.5 },
  336. { name: "2倍", value: 2 },
  337. ],
  338. curTime: 0,
  339. videoContext: null,
  340. isVideoPlay: false,
  341. };
  342. },
  343. mixins: [manageMixin],
  344. computed: {
  345. curVoiceId() {
  346. //当前正在播放的音频id
  347. return this.$store.state.audioBg.activityId;
  348. },
  349. curAudioPaused() {
  350. //当前音频是否暂停状态
  351. return this.$store.state.audioBg.paused;
  352. },
  353. //视频的id
  354. activityVideoId() {
  355. return this.$store.state.videoPlay.playVideoActId;
  356. },
  357. //报名的显示
  358. showWay() {
  359. let text = this.detailData.SignupType == 1 ? "取消外呼" : "取消报名";
  360. return text;
  361. },
  362. showOutboundCall() {
  363. let text = this.detailData.IsSignup == 1 ? "取消外呼" : "预约外呼";
  364. return text;
  365. },
  366. //几倍的播放数度
  367. isTimes() {
  368. let isMultiple = this.curVoiceId === this.detailData.ActivityId ? this.$store.state.audioBg.multiple : 1;
  369. return isMultiple;
  370. },
  371. showAudioPop() {
  372. return this.$store.state.audioBg.show;
  373. },
  374. },
  375. components: {
  376. modalDialog,
  377. jurisdiction,
  378. freeCharge,
  379. audioModule,
  380. },
  381. watch: {
  382. haveAuth: {
  383. handler() {
  384. if (this.haveAuth == 1) {
  385. this.$store.dispatch("statistics", { PageType: "ActivitParticulars", DetailId: this.id });
  386. }
  387. },
  388. immediate: true,
  389. },
  390. "$store.state.audioBg.curTime": {
  391. handler(newVal) {
  392. this.curTime = this.curVoiceId === this.detailData.ActivityId ? newVal : 0;
  393. },
  394. immediate: true,
  395. deep: true,
  396. },
  397. },
  398. methods: {
  399. // 获取详情
  400. getActivityDetail() {
  401. activity
  402. .getActivityDetail({
  403. ActivityId: this.id,
  404. PageRouter: this.$store.state.pageRouterActivity,
  405. })
  406. .then((res) => {
  407. if (res.Ret == 200) {
  408. this.haveAuth = res.Data.HasPermission;
  409. this.jurisdictionList = res.Data;
  410. if (res.Data.HasPermission == 1) {
  411. this.detailData = res.Data.Detail;
  412. let pages = getCurrentPages();
  413. let prevPage = pages[pages.length - 2];
  414. let path = prevPage ? prevPage.$page.fullPath : "";
  415. if (path.includes("/activityPages/themeActivity/themeActivity") || path.includes("/pages-search/indedxSearch/indedxSearch")) {
  416. const index = prevPage.$vm.collectList.findIndex((item) => item.ActivityId == this.id);
  417. prevPage.$vm.collectList[index].IsSignup = this.detailData.IsSignup;
  418. prevPage.$vm.collectList[index].SignupNum = this.detailData.SignupNum;
  419. prevPage.$vm.collectList[index].IsAppointment = this.detailData.IsAppointment;
  420. prevPage.$vm.collectList[index].IsCancelMeetingReminder = this.detailData.IsCancelMeetingReminder;
  421. }
  422. }
  423. }
  424. });
  425. },
  426. // 拨打电话
  427. phonebtn(phone) {
  428. uni.makePhoneCall({
  429. phoneNumber: phone,
  430. });
  431. },
  432. // 跳转新的小程序
  433. networkBtn() {
  434. if (this.detailData.OnlineParticipation.includes("http")) {
  435. uni.navigateTo({
  436. url: "/activityPages/networkAttend/networkAttend?url=" + this.detailData.OnlineParticipation,
  437. });
  438. } else {
  439. uni.navigateToMiniProgram({
  440. appId: "wxade30ff0c4ee757d",
  441. path: this.detailData.OnlineParticipation,
  442. });
  443. }
  444. },
  445. // 弹框的回调事件
  446. cancelEnsure() {
  447. this.getActivityDetail();
  448. },
  449. // 跳转
  450. goDetail(id) {
  451. uni.navigateTo({
  452. url: "/pageMy/reportDetail/reportDetail?id=" + id,
  453. });
  454. },
  455. // 提问
  456. askingGo(type = "") {
  457. uni.navigateTo({
  458. url: "/activityPages/generationAsk/generationAsk?id=" + this.id + "&type=" + type,
  459. });
  460. },
  461. //点击了严选
  462. strictSelection() {
  463. activity.descriptionOfResearch().then((res) => {
  464. if (res.Ret == 200) {
  465. uni.showModal({
  466. content: res.Data.Item.ConfigValue,
  467. confirmText: "知道了",
  468. showCancel: false,
  469. confirmColor: "#3385FF",
  470. success: function (res) {},
  471. });
  472. }
  473. });
  474. },
  475. // 复制的操作
  476. copyLink() {
  477. uni.setClipboardData({
  478. data: this.detailData.LinkParticipants || this.detailData.OnlineParticipation,
  479. success: function () {
  480. uni.showToast({
  481. title: "复制成功,可在浏览器打开",
  482. icon: "none",
  483. duration: 2000,
  484. });
  485. },
  486. });
  487. },
  488. // 跳转产业标签
  489. goDustrialHandler(item) {
  490. if (!item.IsJump) return;
  491. if (item.IsResearch) {
  492. //严选
  493. this.$store.dispatch("checkHandle", "/reportPages/researchTheme/researchTheme?id=" + item.IndustrialManagementId);
  494. } else {
  495. //非严选
  496. this.$store.dispatch("checkHandle", "/reportPages/IndustryReport/IndustryReport?id=" + item.IndustrialManagementId);
  497. }
  498. },
  499. // 音频点击暂停播放
  500. audioPlayBack() {
  501. if (this.$store.state.audioBg.activityId == this.detailData.ActivityId) {
  502. if (this.globalBgAudioManager.paused) {
  503. this.globalBgAudioManager.play();
  504. } else {
  505. this.globalBgAudioManager.pause();
  506. }
  507. } else {
  508. this.$store.commit("audioBg/addAudio", { list: this.detailData.VoiceList, activityId: this.detailData.ActivityId, activityTitle: this.detailData.ActivityName });
  509. }
  510. },
  511. // 拖动进度条
  512. handleAudioSliderChangeing(e) {
  513. this.curTime = e.detail.value;
  514. },
  515. // 拖动进度条
  516. handleAudioSliderChange(e) {
  517. const value = e.detail.value;
  518. this.globalBgAudioManager.seek(value);
  519. this.$refs.childrenAudio.isRecord = false;
  520. setTimeout(() => {
  521. this.$store.commit("audioBg/setSlide", false);
  522. }, 300);
  523. },
  524. // 手指离开拖动进度条
  525. touchstartHandler() {
  526. this.$store.commit("audioBg/setSlide", true);
  527. },
  528. //倍速播放
  529. isTimesHandler(i) {
  530. if (this.$store.state.audioBg.activityId == this.detailData.ActivityId) {
  531. let index = i == 3 ? 0 : i + 1;
  532. this.$store.commit("audioBg/setMultiple", this.timesTheSpeed[index].value);
  533. this.globalBgAudioManager.playbackRate = this.isTimes;
  534. this.globalBgAudioManager.startTime = this.curTime;
  535. if (this.globalBgAudioManager.paused) {
  536. this.globalBgAudioManager.play();
  537. }
  538. } else {
  539. this.$store.commit("audioBg/removeAudio");
  540. this.$store.commit("audioBg/addAudio", { list: this.detailData.VoiceList, activityId: this.detailData.ActivityId, activityTitle: this.detailData.ActivityName });
  541. }
  542. this.$refs.childrenAudio.isRecord = false;
  543. },
  544. //快进 快退
  545. speedReverseHandler(type) {
  546. let isTime = type == "reverse" ? this.curTime - 15 : this.curTime + 15;
  547. isTime = isTime <= 0 ? 0 : isTime >= this.detailData.VoiceList.PlaySeconds ? this.detailData.VoiceList.PlaySeconds - 1 : isTime;
  548. this.globalBgAudioManager.seek(isTime);
  549. this.$refs.childrenAudio.isRecord = false;
  550. },
  551. //视频元数据加载完成时触发
  552. loadedmetadataHandle() {
  553. this.videoContext = wx.createVideoContext(this.detailData.ActivityId.toString(), this);
  554. let curVideoTime = 0;
  555. if (this.activityVideoId == this.detailData.ActivityId) {
  556. curVideoTime = this.$store.state.videoPlay.palyCurrentTime;
  557. } else {
  558. this.$store.commit("videoPlay/playVideoActivity", this.detailData.ActivityId);
  559. }
  560. this.videoContext.seek(curVideoTime);
  561. },
  562. //视频播放结束
  563. handleVideoEnd() {
  564. // 此处因为如果不调用退出全屏方法 安卓和ios页面均会表现异常,安卓横屏不恢复竖屏,ios底部tabbar渲染异常
  565. this.videoContext.exitFullScreen();
  566. },
  567. //视频时间的更新
  568. handleVideoTimeUpdate(e) {
  569. let time = parseInt(e.detail.currentTime);
  570. this.$store.commit("videoPlay/palyTimeUpdate", time);
  571. },
  572. //视频的播放事件
  573. handelVideoPlay() {
  574. if (!this.isVideoPlay) {
  575. Home.microAideoHistoryAdd({ VideoId: this.detailData.ActivityId, SourceType: 2 });
  576. }
  577. this.isVideoPlay = true;
  578. },
  579. // 标题超出省略...
  580. detailTitle(val) {
  581. let str = val.length > 41 ? val.slice(0, 41) + "..." : val;
  582. return str;
  583. },
  584. // 微路演留言
  585. myLeavingMessageHandler() {
  586. let title = this.detailData.FileType == 1 ? this.detailData.VoiceList.Name : this.detailData.VideoDetail.Title;
  587. uni.navigateTo({
  588. url: "/activityPages/generationAsk/generationAsk?id=" + this.detailData.ActivityId + "&type=文章&roadshow=" + this.detailData.FileType + "&roadshowTitle=" + title,
  589. });
  590. },
  591. // 微路演收藏
  592. async isCollectionHandeler() {
  593. const res = await Home.microRoadshowCollect({
  594. Id: this.detailData.FileType == 1 ? this.detailData.VoiceList.ActivityVoiceId : this.detailData.VideoDetail.Id,
  595. SourceType: this.detailData.FileType,
  596. });
  597. if (res.Ret === 200) {
  598. uni.showToast({
  599. title: res.Msg,
  600. duration: 2000,
  601. });
  602. this.detailData.IsCollect = !this.detailData.IsCollect;
  603. }
  604. },
  605. },
  606. async onLoad(option) {
  607. this.id = option.id || "";
  608. this.$store.commit("setRouterReport", "活动详情");
  609. // 详情页面不写路径
  610. await this.$store.dispatch("checkHandle");
  611. // this.listenAudio()
  612. if (!this.$store.state.isAuth && !this.$store.state.isBind) {
  613. //已授权已绑定
  614. this.getActivityDetail();
  615. }
  616. },
  617. /**
  618. * 用户点击分享
  619. */
  620. onShareAppMessage: function (res) {
  621. return {
  622. title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : "活动详情",
  623. path: "/activityPages/activityDetail/activityDetail?id=" + this.id,
  624. success: (res) => {},
  625. fail: (err) => {},
  626. };
  627. },
  628. };
  629. </script>
  630. <style lang="scss">
  631. .activity-detail {
  632. padding-bottom: 100rpx;
  633. .notice {
  634. height: 60rpx;
  635. width: 100%;
  636. }
  637. .content {
  638. padding: 34rpx 34rpx 0rpx;
  639. margin-bottom: -20rpx;
  640. color: #333333;
  641. font-size: 28rpx;
  642. view {
  643. padding-left: 20rpx;
  644. }
  645. text {
  646. line-height: 80rpx;
  647. padding-left: 20rpx;
  648. }
  649. .phone {
  650. padding: 0;
  651. display: inline-block;
  652. color: #2c83ff;
  653. }
  654. .new_icon {
  655. width: 60rpx;
  656. height: 30rpx;
  657. margin: 0 20rpx 20rpx 0;
  658. }
  659. .dialog-title {
  660. width: 682rpx;
  661. padding: 20rpx;
  662. background: #f2f2f2;
  663. opacity: 0.8;
  664. font-size: 30rpx;
  665. font-weight: bold;
  666. margin-bottom: 15rpx;
  667. color: #000;
  668. }
  669. .brackets-title {
  670. padding-left: 20rpx;
  671. }
  672. .city-box {
  673. display: flex;
  674. align-items: center;
  675. text {
  676. padding: 0;
  677. }
  678. .city {
  679. display: flex;
  680. color: #2088ff;
  681. align-items: center;
  682. image {
  683. width: 27rpx;
  684. height: 32rpx;
  685. margin-right: 12rpx;
  686. }
  687. .choose-limit {
  688. position: relative;
  689. display: flex;
  690. align-items: center;
  691. margin-right: 20rpx;
  692. image {
  693. width: 130rpx;
  694. height: 38rpx;
  695. }
  696. .limit-img {
  697. position: absolute;
  698. top: -13rpx;
  699. right: -30rpx;
  700. width: 46rpx;
  701. height: 26rpx;
  702. }
  703. }
  704. }
  705. }
  706. }
  707. .network {
  708. margin-bottom: 30rpx;
  709. padding: 0 !important;
  710. display: flex;
  711. .network-left {
  712. width: 160rpx;
  713. text-align-last: justify;
  714. text-align: justify;
  715. flex-shrink: 0;
  716. }
  717. .network-right {
  718. width: 480rpx;
  719. }
  720. .dustrial-content {
  721. display: flex;
  722. flex-wrap: wrap;
  723. .item {
  724. display: flex;
  725. align-items: center;
  726. padding-left: 0;
  727. margin-left: 0;
  728. }
  729. }
  730. .network-zoom {
  731. .text_zoom {
  732. width: 100%;
  733. word-break: break-all;
  734. color: #333333;
  735. }
  736. view {
  737. padding: 0 !important;
  738. margin: 0 !important;
  739. }
  740. .copy-zoom {
  741. display: inline-block;
  742. padding: 5rpx 17rpx !important;
  743. border-radius: 34rpx;
  744. background-color: #ebf4ff;
  745. font-size: 24rpx;
  746. color: #2c83ff;
  747. margin: 0 10rpx;
  748. margin-top: 30rpx;
  749. }
  750. }
  751. .network-link {
  752. width: 520rpx !important;
  753. view {
  754. padding: 0 !important;
  755. margin: 0 !important;
  756. width: 100%;
  757. display: flex;
  758. justify-content: space-between;
  759. :first-child {
  760. width: 350rpx;
  761. }
  762. .copy-link {
  763. padding: 5rpx 17rpx !important;
  764. border-radius: 34rpx;
  765. background-color: #ebf4ff;
  766. font-size: 24rpx;
  767. color: #2c83ff;
  768. }
  769. }
  770. }
  771. }
  772. .default {
  773. // padding: 0 !important;
  774. // margin: 0;
  775. padding-left: 0 !important;
  776. line-height: 40rpx !important;
  777. }
  778. .content-bottom {
  779. margin: 50rpx 0 30rpx;
  780. .make-outbound {
  781. margin: 0 auto;
  782. width: 368rpx;
  783. height: 80rpx;
  784. background: linear-gradient(268deg, #2ddbff 0%, #1599ff 49%, #005eff 100%);
  785. opacity: 1;
  786. border-radius: 4rpx;
  787. color: #ffffff;
  788. font-size: 34rpx;
  789. line-height: 80rpx;
  790. text-align: center;
  791. }
  792. .make-generation {
  793. padding-top: 0rpx !important;
  794. line-height: 76rpx;
  795. }
  796. .make-conference {
  797. margin: 30rpx auto;
  798. width: 368rpx;
  799. height: 80rpx;
  800. border: 2px solid #2c83ff;
  801. opacity: 1;
  802. border-radius: 4rpx;
  803. padding-top: 5rpx;
  804. text-align: center;
  805. color: #2c83ff;
  806. font-size: 30rpx;
  807. text {
  808. font-size: 16rpx;
  809. }
  810. }
  811. }
  812. .bottom-env {
  813. position: fixed;
  814. bottom: 0;
  815. padding-bottom: constant(safe-area-inset-bottom);
  816. padding-bottom: env(safe-area-inset-bottom);
  817. left: 0;
  818. width: 100%;
  819. background-color: #ffffff;
  820. }
  821. .apply-box {
  822. width: 100%;
  823. height: 100rpx;
  824. display: flex;
  825. font-size: 32rpx;
  826. color: #333333;
  827. line-height: 100rpx;
  828. .cancel-apply {
  829. display: flex;
  830. padding-left: 50rpx;
  831. flex: 1;
  832. border: 2rpx solid #005eff;
  833. background-color: #fff;
  834. text {
  835. color: #005eff;
  836. }
  837. }
  838. .ok-apply {
  839. flex: 1;
  840. background: linear-gradient(268deg, #2ddbff 0%, #1599ff 49%, #005eff 100%);
  841. text-align: center;
  842. color: #ffffff;
  843. }
  844. }
  845. .select-box {
  846. width: 100%;
  847. view {
  848. height: 95prx;
  849. line-height: 95rpx;
  850. text-align: center;
  851. font-size: 32rpx;
  852. border-bottom: 1rpx solid #ebebeb;
  853. }
  854. }
  855. .dustrial-ui {
  856. margin-bottom: 10rpx !important;
  857. }
  858. .dustrial-li {
  859. display: flex;
  860. align-items: center;
  861. padding: 0 13rpx;
  862. margin: 0 20rpx 20rpx 0;
  863. }
  864. .dustrial-item {
  865. background: #edf4ff;
  866. border: 1px solid #3385ff;
  867. border-radius: 4rpx;
  868. color: #3385ff;
  869. }
  870. .audio-card {
  871. width: 100%;
  872. height: 334rpx;
  873. background: #fff;
  874. box-shadow: 0px 3rpx 8rpx 0rpx rgba(0, 0, 0, 0.05);
  875. border-radius: 8rpx;
  876. margin: 0 auto;
  877. padding: 30rpx;
  878. padding-left: 30rpx;
  879. view {
  880. padding-left: 0;
  881. }
  882. .slider {
  883. width: 100%;
  884. margin: 0;
  885. }
  886. .slider-paly {
  887. display: flex;
  888. height: 80rpx;
  889. align-items: center;
  890. padding-left: 20rpx;
  891. }
  892. .card-title {
  893. margin-top: 20rpx;
  894. font-size: 28rpx;
  895. padding: 15rpx 0 0 15rpx;
  896. line-height: 44rpx;
  897. height: 100rpx;
  898. position: relative;
  899. }
  900. .card-time {
  901. display: flex;
  902. justify-content: space-between;
  903. color: #999999;
  904. font-size: 20rpx;
  905. }
  906. .title-image {
  907. position: absolute;
  908. bottom: 0;
  909. right: 0;
  910. width: 150rpx;
  911. height: 40rpx;
  912. padding-left: 15rpx;
  913. display: flex;
  914. justify-content: space-between;
  915. image {
  916. width: 40rpx;
  917. height: 40rpx;
  918. }
  919. }
  920. .is-paly-card {
  921. width: 70rpx;
  922. height: 70rpx;
  923. flex-shrink: 0;
  924. margin-left: 30rpx;
  925. image {
  926. width: 70rpx;
  927. height: 70rpx;
  928. }
  929. }
  930. .fast-reverse {
  931. display: flex;
  932. align-items: center;
  933. justify-content: center;
  934. margin-top: 30rpx;
  935. .speed-button {
  936. width: 96rpx;
  937. height: 47rpx;
  938. background: #eaeaea;
  939. border-radius: 8rpx;
  940. text-align: center;
  941. line-height: 47rpx;
  942. margin: 0 70rpx;
  943. padding-left: 0;
  944. }
  945. .speed-img {
  946. width: 50rpx;
  947. height: 50rpx;
  948. }
  949. }
  950. }
  951. .video-play {
  952. width: 100%;
  953. padding-left: 0rpx !important;
  954. padding-bottom: 15rpx;
  955. height: 470rpx;
  956. border-radius: 8rpx;
  957. overflow: hidden;
  958. box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.05);
  959. font-size: 28rpx;
  960. color: #333333;
  961. margin-top: 20rpx;
  962. video {
  963. height: 340rpx;
  964. width: 100%;
  965. }
  966. .title {
  967. padding: 15rpx 0 0 15rpx !important;
  968. font-size: 28rpx;
  969. line-height: 44rpx;
  970. height: 100rpx;
  971. position: relative;
  972. .title-flat {
  973. float: right;
  974. width: 150rpx;
  975. height: 40rpx;
  976. margin-top: -36rpx;
  977. background-color: #f00;
  978. }
  979. .title-image {
  980. position: absolute;
  981. bottom: 0;
  982. right: 0;
  983. width: 150rpx;
  984. height: 40rpx;
  985. padding-left: 15rpx;
  986. display: flex;
  987. justify-content: space-between;
  988. image {
  989. width: 40rpx;
  990. height: 40rpx;
  991. }
  992. }
  993. }
  994. }
  995. }
  996. </style>