activityDetail.vue 38 KB

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