activityDetail.vue 38 KB

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