activityDetail.vue 34 KB

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