activityDetail.vue 34 KB

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