activityDetail.vue 31 KB

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