activityDetail.vue 35 KB

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