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