activityDetail.vue 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018
  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. })
  405. .then((res) => {
  406. if (res.Ret == 200) {
  407. this.haveAuth = res.Data.HasPermission;
  408. this.jurisdictionList = res.Data;
  409. if (res.Data.HasPermission == 1) {
  410. this.detailData = res.Data.Detail;
  411. let pages = getCurrentPages();
  412. let prevPage = pages[pages.length - 2];
  413. let path = prevPage ? prevPage.$page.fullPath : "";
  414. if (path.includes("/activityPages/themeActivity/themeActivity") || path.includes("/pages-search/indedxSearch/indedxSearch")) {
  415. const index = prevPage.$vm.collectList.findIndex((item) => item.ActivityId == this.id);
  416. prevPage.$vm.collectList[index].IsSignup = this.detailData.IsSignup;
  417. prevPage.$vm.collectList[index].SignupNum = this.detailData.SignupNum;
  418. prevPage.$vm.collectList[index].IsAppointment = this.detailData.IsAppointment;
  419. prevPage.$vm.collectList[index].IsCancelMeetingReminder = this.detailData.IsCancelMeetingReminder;
  420. }
  421. }
  422. }
  423. });
  424. },
  425. // 拨打电话
  426. phonebtn(phone) {
  427. uni.makePhoneCall({
  428. phoneNumber: phone,
  429. });
  430. },
  431. // 跳转新的小程序
  432. networkBtn() {
  433. if (this.detailData.OnlineParticipation.includes("http")) {
  434. uni.navigateTo({
  435. url: "/activityPages/networkAttend/networkAttend?url=" + this.detailData.OnlineParticipation,
  436. });
  437. } else {
  438. uni.navigateToMiniProgram({
  439. appId: "wxade30ff0c4ee757d",
  440. path: this.detailData.OnlineParticipation,
  441. });
  442. }
  443. },
  444. // 弹框的回调事件
  445. cancelEnsure() {
  446. this.getActivityDetail();
  447. },
  448. // 跳转
  449. goDetail(id) {
  450. uni.navigateTo({
  451. url: "/pageMy/reportDetail/reportDetail?id=" + id,
  452. });
  453. },
  454. // 提问
  455. askingGo(type = "") {
  456. uni.navigateTo({
  457. url: "/activityPages/generationAsk/generationAsk?id=" + this.id + "&type=" + type,
  458. });
  459. },
  460. //点击了严选
  461. strictSelection() {
  462. activity.descriptionOfResearch().then((res) => {
  463. if (res.Ret == 200) {
  464. uni.showModal({
  465. content: res.Data.Item.ConfigValue,
  466. confirmText: "知道了",
  467. showCancel: false,
  468. confirmColor: "#3385FF",
  469. success: function (res) {},
  470. });
  471. }
  472. });
  473. },
  474. // 复制的操作
  475. copyLink() {
  476. uni.setClipboardData({
  477. data: this.detailData.LinkParticipants || this.detailData.OnlineParticipation,
  478. success: function () {
  479. uni.showToast({
  480. title: "复制成功,可在浏览器打开",
  481. icon: "none",
  482. duration: 2000,
  483. });
  484. },
  485. });
  486. },
  487. // 跳转产业标签
  488. goDustrialHandler(item) {
  489. if (!item.IsJump) return;
  490. if (item.IsResearch) {
  491. //严选
  492. this.$store.dispatch("checkHandle", "/reportPages/researchTheme/researchTheme?id=" + item.IndustrialManagementId);
  493. } else {
  494. //非严选
  495. this.$store.dispatch("checkHandle", "/reportPages/IndustryReport/IndustryReport?id=" + item.IndustrialManagementId);
  496. }
  497. },
  498. // 音频点击暂停播放
  499. audioPlayBack() {
  500. if (this.$store.state.audioBg.activityId == this.detailData.ActivityId) {
  501. if (this.globalBgAudioManager.paused) {
  502. this.globalBgAudioManager.play();
  503. } else {
  504. this.globalBgAudioManager.pause();
  505. }
  506. } else {
  507. this.$store.commit("audioBg/addAudio", { list: this.detailData.VoiceList, activityId: this.detailData.ActivityId, activityTitle: this.detailData.ActivityName });
  508. }
  509. },
  510. // 拖动进度条
  511. handleAudioSliderChangeing(e) {
  512. this.curTime = e.detail.value;
  513. },
  514. // 拖动进度条
  515. handleAudioSliderChange(e) {
  516. const value = e.detail.value;
  517. this.globalBgAudioManager.seek(value);
  518. this.$refs.childrenAudio.isRecord = false;
  519. setTimeout(() => {
  520. this.$store.commit("audioBg/setSlide", false);
  521. }, 300);
  522. },
  523. // 手指离开拖动进度条
  524. touchstartHandler() {
  525. this.$store.commit("audioBg/setSlide", true);
  526. },
  527. //倍速播放
  528. isTimesHandler(i) {
  529. if (this.$store.state.audioBg.activityId == this.detailData.ActivityId) {
  530. let index = i == 3 ? 0 : i + 1;
  531. this.$store.commit("audioBg/setMultiple", this.timesTheSpeed[index].value);
  532. this.globalBgAudioManager.playbackRate = this.isTimes;
  533. this.globalBgAudioManager.startTime = this.curTime;
  534. if (this.globalBgAudioManager.paused) {
  535. this.globalBgAudioManager.play();
  536. }
  537. } else {
  538. this.$store.commit("audioBg/removeAudio");
  539. this.$store.commit("audioBg/addAudio", { list: this.detailData.VoiceList, activityId: this.detailData.ActivityId, activityTitle: this.detailData.ActivityName });
  540. }
  541. this.$refs.childrenAudio.isRecord = false;
  542. },
  543. //快进 快退
  544. speedReverseHandler(type) {
  545. let isTime = type == "reverse" ? this.curTime - 15 : this.curTime + 15;
  546. isTime = isTime <= 0 ? 0 : isTime >= this.detailData.VoiceList.PlaySeconds ? this.detailData.VoiceList.PlaySeconds - 1 : isTime;
  547. this.globalBgAudioManager.seek(isTime);
  548. this.$refs.childrenAudio.isRecord = false;
  549. },
  550. //视频元数据加载完成时触发
  551. loadedmetadataHandle() {
  552. this.videoContext = wx.createVideoContext(this.detailData.ActivityId.toString(), this);
  553. let curVideoTime = 0;
  554. if (this.activityVideoId == this.detailData.ActivityId) {
  555. curVideoTime = this.$store.state.videoPlay.palyCurrentTime;
  556. } else {
  557. this.$store.commit("videoPlay/playVideoActivity", this.detailData.ActivityId);
  558. }
  559. this.videoContext.seek(curVideoTime);
  560. },
  561. //视频播放结束
  562. handleVideoEnd() {
  563. // 此处因为如果不调用退出全屏方法 安卓和ios页面均会表现异常,安卓横屏不恢复竖屏,ios底部tabbar渲染异常
  564. this.videoContext.exitFullScreen();
  565. },
  566. //视频时间的更新
  567. handleVideoTimeUpdate(e) {
  568. let time = parseInt(e.detail.currentTime);
  569. this.$store.commit("videoPlay/palyTimeUpdate", time);
  570. },
  571. //视频的播放事件
  572. handelVideoPlay() {
  573. if (!this.isVideoPlay) {
  574. Home.microAideoHistoryAdd({ VideoId: this.detailData.ActivityId, SourceType: 2 });
  575. }
  576. this.isVideoPlay = true;
  577. },
  578. // 标题超出省略...
  579. detailTitle(val) {
  580. console.log(val.length);
  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. await this.$store.dispatch("checkHandle");
  609. // this.listenAudio()
  610. if (!this.$store.state.isAuth && !this.$store.state.isBind) {
  611. //已授权已绑定
  612. this.getActivityDetail();
  613. }
  614. },
  615. /**
  616. * 用户点击分享
  617. */
  618. onShareAppMessage: function (res) {
  619. return {
  620. title: this.isHorzMobile ? "好友向您推荐此内容,上传名片享查研观向免费月卡!" : "活动详情",
  621. path: "/activityPages/activityDetail/activityDetail?id=" + this.id,
  622. success: (res) => {},
  623. fail: (err) => {},
  624. };
  625. },
  626. };
  627. </script>
  628. <style lang="scss">
  629. .activity-detail {
  630. padding-bottom: 100rpx;
  631. .notice {
  632. height: 60rpx;
  633. width: 100%;
  634. }
  635. .content {
  636. padding: 34rpx 34rpx 0rpx;
  637. margin-bottom: -20rpx;
  638. color: #333333;
  639. font-size: 28rpx;
  640. view {
  641. padding-left: 20rpx;
  642. }
  643. text {
  644. line-height: 80rpx;
  645. padding-left: 20rpx;
  646. }
  647. .phone {
  648. padding: 0;
  649. display: inline-block;
  650. color: #2c83ff;
  651. }
  652. .new_icon {
  653. width: 60rpx;
  654. height: 30rpx;
  655. margin: 0 20rpx 20rpx 0;
  656. }
  657. .dialog-title {
  658. width: 682rpx;
  659. padding: 20rpx;
  660. background: #f2f2f2;
  661. opacity: 0.8;
  662. font-size: 30rpx;
  663. font-weight: bold;
  664. margin-bottom: 15rpx;
  665. color: #000;
  666. }
  667. .brackets-title {
  668. padding-left: 20rpx;
  669. }
  670. .city-box {
  671. display: flex;
  672. align-items: center;
  673. text {
  674. padding: 0;
  675. }
  676. .city {
  677. display: flex;
  678. color: #2088ff;
  679. align-items: center;
  680. image {
  681. width: 27rpx;
  682. height: 32rpx;
  683. margin-right: 12rpx;
  684. }
  685. .choose-limit {
  686. position: relative;
  687. display: flex;
  688. align-items: center;
  689. margin-right: 20rpx;
  690. image {
  691. width: 130rpx;
  692. height: 38rpx;
  693. }
  694. .limit-img {
  695. position: absolute;
  696. top: -13rpx;
  697. right: -30rpx;
  698. width: 46rpx;
  699. height: 26rpx;
  700. }
  701. }
  702. }
  703. }
  704. }
  705. .network {
  706. margin-bottom: 30rpx;
  707. padding: 0 !important;
  708. display: flex;
  709. .network-left {
  710. width: 160rpx;
  711. text-align-last: justify;
  712. text-align: justify;
  713. flex-shrink: 0;
  714. }
  715. .network-right {
  716. width: 480rpx;
  717. }
  718. .dustrial-content {
  719. display: flex;
  720. flex-wrap: wrap;
  721. .item {
  722. display: flex;
  723. align-items: center;
  724. padding-left: 0;
  725. margin-left: 0;
  726. }
  727. }
  728. .network-zoom {
  729. .text_zoom {
  730. width: 100%;
  731. word-break: break-all;
  732. color: #333333;
  733. }
  734. view {
  735. padding: 0 !important;
  736. margin: 0 !important;
  737. }
  738. .copy-zoom {
  739. display: inline-block;
  740. padding: 5rpx 17rpx !important;
  741. border-radius: 34rpx;
  742. background-color: #ebf4ff;
  743. font-size: 24rpx;
  744. color: #2c83ff;
  745. margin: 0 10rpx;
  746. margin-top: 30rpx;
  747. }
  748. }
  749. .network-link {
  750. width: 520rpx !important;
  751. view {
  752. padding: 0 !important;
  753. margin: 0 !important;
  754. width: 100%;
  755. display: flex;
  756. justify-content: space-between;
  757. :first-child {
  758. width: 350rpx;
  759. }
  760. .copy-link {
  761. padding: 5rpx 17rpx !important;
  762. border-radius: 34rpx;
  763. background-color: #ebf4ff;
  764. font-size: 24rpx;
  765. color: #2c83ff;
  766. }
  767. }
  768. }
  769. }
  770. .default {
  771. // padding: 0 !important;
  772. // margin: 0;
  773. padding-left: 0 !important;
  774. line-height: 40rpx !important;
  775. }
  776. .content-bottom {
  777. margin: 50rpx 0 30rpx;
  778. .make-outbound {
  779. margin: 0 auto;
  780. width: 368rpx;
  781. height: 80rpx;
  782. background: linear-gradient(268deg, #2ddbff 0%, #1599ff 49%, #005eff 100%);
  783. opacity: 1;
  784. border-radius: 4rpx;
  785. color: #ffffff;
  786. font-size: 34rpx;
  787. line-height: 80rpx;
  788. text-align: center;
  789. }
  790. .make-generation {
  791. padding-top: 0rpx !important;
  792. line-height: 76rpx;
  793. }
  794. .make-conference {
  795. margin: 30rpx auto;
  796. width: 368rpx;
  797. height: 80rpx;
  798. border: 2px solid #2c83ff;
  799. opacity: 1;
  800. border-radius: 4rpx;
  801. padding-top: 5rpx;
  802. text-align: center;
  803. color: #2c83ff;
  804. font-size: 30rpx;
  805. text {
  806. font-size: 16rpx;
  807. }
  808. }
  809. }
  810. .bottom-env {
  811. position: fixed;
  812. bottom: 0;
  813. padding-bottom: constant(safe-area-inset-bottom);
  814. padding-bottom: env(safe-area-inset-bottom);
  815. left: 0;
  816. width: 100%;
  817. background-color: #ffffff;
  818. }
  819. .apply-box {
  820. width: 100%;
  821. height: 100rpx;
  822. display: flex;
  823. font-size: 32rpx;
  824. color: #333333;
  825. line-height: 100rpx;
  826. .cancel-apply {
  827. display: flex;
  828. padding-left: 50rpx;
  829. flex: 1;
  830. border: 2rpx solid #005eff;
  831. background-color: #fff;
  832. text {
  833. color: #005eff;
  834. }
  835. }
  836. .ok-apply {
  837. flex: 1;
  838. background: linear-gradient(268deg, #2ddbff 0%, #1599ff 49%, #005eff 100%);
  839. text-align: center;
  840. color: #ffffff;
  841. }
  842. }
  843. .select-box {
  844. width: 100%;
  845. view {
  846. height: 95prx;
  847. line-height: 95rpx;
  848. text-align: center;
  849. font-size: 32rpx;
  850. border-bottom: 1rpx solid #ebebeb;
  851. }
  852. }
  853. .dustrial-ui {
  854. margin-bottom: 10rpx !important;
  855. }
  856. .dustrial-li {
  857. display: flex;
  858. align-items: center;
  859. padding: 0 13rpx;
  860. margin: 0 20rpx 20rpx 0;
  861. }
  862. .dustrial-item {
  863. background: #edf4ff;
  864. border: 1px solid #3385ff;
  865. border-radius: 4rpx;
  866. color: #3385ff;
  867. }
  868. .audio-card {
  869. width: 100%;
  870. height: 334rpx;
  871. background: #fff;
  872. box-shadow: 0px 3rpx 8rpx 0rpx rgba(0, 0, 0, 0.05);
  873. border-radius: 8rpx;
  874. margin: 0 auto;
  875. padding: 30rpx;
  876. padding-left: 30rpx;
  877. view {
  878. padding-left: 0;
  879. }
  880. .slider {
  881. width: 100%;
  882. margin: 0;
  883. }
  884. .slider-paly {
  885. display: flex;
  886. height: 80rpx;
  887. align-items: center;
  888. padding-left: 20rpx;
  889. }
  890. .card-title {
  891. margin-top: 20rpx;
  892. font-size: 28rpx;
  893. padding: 15rpx 0 0 15rpx;
  894. line-height: 44rpx;
  895. height: 100rpx;
  896. position: relative;
  897. }
  898. .card-time {
  899. display: flex;
  900. justify-content: space-between;
  901. color: #999999;
  902. font-size: 20rpx;
  903. }
  904. .title-image {
  905. position: absolute;
  906. bottom: 0;
  907. right: 0;
  908. width: 150rpx;
  909. height: 40rpx;
  910. padding-left: 15rpx;
  911. display: flex;
  912. justify-content: space-between;
  913. image {
  914. width: 40rpx;
  915. height: 40rpx;
  916. }
  917. }
  918. .is-paly-card {
  919. width: 70rpx;
  920. height: 70rpx;
  921. flex-shrink: 0;
  922. margin-left: 30rpx;
  923. image {
  924. width: 70rpx;
  925. height: 70rpx;
  926. }
  927. }
  928. .fast-reverse {
  929. display: flex;
  930. align-items: center;
  931. justify-content: center;
  932. margin-top: 30rpx;
  933. .speed-button {
  934. width: 96rpx;
  935. height: 47rpx;
  936. background: #eaeaea;
  937. border-radius: 8rpx;
  938. text-align: center;
  939. line-height: 47rpx;
  940. margin: 0 70rpx;
  941. padding-left: 0;
  942. }
  943. .speed-img {
  944. width: 50rpx;
  945. height: 50rpx;
  946. }
  947. }
  948. }
  949. .video-play {
  950. width: 100%;
  951. padding-left: 0rpx !important;
  952. height: 456rpx;
  953. border-radius: 8rpx;
  954. overflow: hidden;
  955. box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.05);
  956. font-size: 28rpx;
  957. color: #333333;
  958. margin-top: 20rpx;
  959. video {
  960. height: 340rpx;
  961. width: 100%;
  962. }
  963. .title {
  964. padding: 15rpx 0 0 15rpx !important;
  965. font-size: 28rpx;
  966. line-height: 44rpx;
  967. height: 100rpx;
  968. position: relative;
  969. .title-flat {
  970. float: right;
  971. width: 150rpx;
  972. height: 40rpx;
  973. margin-top: -36rpx;
  974. background-color: #f00;
  975. }
  976. .title-image {
  977. position: absolute;
  978. bottom: 0;
  979. right: 0;
  980. width: 150rpx;
  981. height: 40rpx;
  982. padding-left: 15rpx;
  983. display: flex;
  984. justify-content: space-between;
  985. image {
  986. width: 40rpx;
  987. height: 40rpx;
  988. }
  989. }
  990. }
  991. }
  992. }
  993. </style>