activityDetail.vue 37 KB

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