activityDetail.vue 36 KB

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