activityDetail.vue 32 KB

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