activityDetail.vue 32 KB

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