activityDetail.vue 36 KB

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