activityDetail.vue 34 KB

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