activityDetail.vue 38 KB

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