detail.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770
  1. <template>
  2. <view class="activity-detail" v-if="info">
  3. <view
  4. class="top-wrap"
  5. :style="'background-image:url(' + info.speakerBackgroundPic + ')'"
  6. >
  7. <view class="status status-before" v-if="info.activityState === 1"
  8. >未开始</view
  9. >
  10. <view class="status status-before" v-if="info.activityState === 2"
  11. >进行中</view
  12. >
  13. <view class="status status-before" v-if="info.activityState === 3"
  14. >已结束</view
  15. >
  16. <view class="title">{{ info.activityTypeName }}</view>
  17. <view class="name">主讲人:{{ info.speaker }}</view>
  18. <view class="time"
  19. >活动时间:{{
  20. info.startTime | formatActivityTime(info.endTime)
  21. }}</view
  22. >
  23. <view class="flex city" v-if="info.city">
  24. <image src="./static/position.png" model="aspectFill"></image>
  25. <text>{{ info.city }}</text>
  26. </view>
  27. </view>
  28. <view class="intro-wrap">{{ info.reportName?info.reportName.split('】')[1]:info.activityName }}</view>
  29. <!-- 音频 -->
  30. <view class="audio-wrap" v-if="info.activityState === 3">
  31. <view
  32. class="audio-item"
  33. v-for="(item,index) in audioList"
  34. :key="item.voiceUrl"
  35. @click="handleClickAudioItem(item)"
  36. >
  37. <image
  38. class="icon"
  39. src="../static/audio-doing-2.png"
  40. mode="aspectFill"
  41. v-if="item.voiceUrl==activeAudioUrl&&audioPlayStatus"
  42. />
  43. <image
  44. class="icon"
  45. src="../static/audio-pause-3.png"
  46. mode="aspectFill"
  47. v-else
  48. />
  49. <view class="name" :style="{color:item.voiceUrl==activeAudioUrl?'#D5AD79':''}">{{ item.voiceName }}</view>
  50. <view class="time">{{ item.voicePlaySeconds|formatVoiceTime }}</view>
  51. </view>
  52. <view class="box" v-if="activeAudioUrl">
  53. <view class="flex top-slider">
  54. <text>{{audioCurrentTime|formatVoiceTime}}</text>
  55. <slider
  56. class="audio-slider"
  57. activeColor="#e3b377"
  58. :max="activeAudioTime"
  59. :value="audioCurrentTime"
  60. @change="handleAudioSliderChange($event)"
  61. block-size="20"
  62. />
  63. <text>{{activeAudioTime|formatVoiceTime}}</text>
  64. </view>
  65. <view class="flex btns">
  66. <image
  67. class="before"
  68. :src="isFirstAudio?'../static/audio-before-grey.png':'../static/audio-before.png'"
  69. mode="aspectFit"
  70. @click="handleAudioBtn('before')"
  71. />
  72. <image
  73. class="center"
  74. :src="audioPlayStatus?'../static/audio-doing.png':'../static/audio-pause-3.png'"
  75. mode="aspectFit"
  76. @click="handleAudioBtn('center')"
  77. />
  78. <image
  79. class="next"
  80. :src="isLastAudio?'../static/audio-before-grey.png':'../static/audio-before.png'"
  81. mode="aspectFit"
  82. @click="handleAudioBtn('next')"
  83. />
  84. </view>
  85. </view>
  86. </view>
  87. <view class="info-wrap">
  88. <view
  89. class="flex item"
  90. v-for="item in infoList"
  91. :key="item.label"
  92. @click="handleClickInfoItem(item)"
  93. >
  94. <view class="label">{{ item.label }}:</view>
  95. <view :class="['content', item.color && 'yellow-color',item.type=='copy'&&'link']">
  96. {{item.text}}
  97. </view>
  98. <view class="copy-btn" v-if="item.type == 'copy'" @click="handleCopyLink(item.text)">复制链接</view>
  99. </view>
  100. </view>
  101. <!-- 报告链接 -->
  102. <!-- <view class="info-wrap" v-if="info.reportLink">
  103. <view class="flex item" @click="handleOpenReport">
  104. <view class="label">相关报告:</view>
  105. <view class="yellow-color">查看报告链接</view>
  106. </view>
  107. </view> -->
  108. <view class="btn-wrap">
  109. <view
  110. class="global-btn-yellow-change btn"
  111. @click="handleOpenReport"
  112. v-if="info.reportLink"
  113. >查看相关报告</view>
  114. <block v-if="info.activityState === 1">
  115. <view
  116. :class="[info.registerState == 1?'global-btn-disable':'global-btn-yellow-change' ,'btn']"
  117. v-if="info.firstActivityTypeId === 3"
  118. @click="handleSetRegister"
  119. >{{
  120. info.registerState == 0
  121. ? "报名线下参会"
  122. : "取消报名线下参会"
  123. }}({{ info.registeredNum>info.limitPeopleNum?info.limitPeopleNum:info.registeredNum }}/{{ info.limitPeopleNum }})</view
  124. >
  125. <view
  126. :class="[
  127. info.hasRemind == 1
  128. ? 'global-btn-disable'
  129. : 'global-btn-yellow-change',
  130. 'btn',
  131. ]"
  132. @click="handleSetRemind"
  133. >{{ info.hasRemind == 1 ? "取消会议提醒" : "会议提醒" }}</view
  134. >
  135. <p class="tips">(会前15分钟推送微信消息提醒)</p>
  136. </block>
  137. </view>
  138. <!-- 弹窗 -->
  139. <van-popup :show="pupData.show" @close="pupData.show = false" :close-on-click-overlay="false">
  140. <view class="global-pup">
  141. <view class="content">
  142. <rich-text :nodes="pupData.content"></rich-text>
  143. </view>
  144. <view class="flex bot" v-if="pupData.type == 'contact'">
  145. <view @click="pupData.show = false" style="color: #a9afb8">取消</view>
  146. <view @click="handleCallPhone(pupData.mobile)">拨号</view>
  147. </view>
  148. <view class="flex bot" v-else-if="pupData.type == 'apply'">
  149. <view @click="pupData.show = false" style="color: #a9afb8">取消</view>
  150. <view @click="handleApply">立即申请</view>
  151. </view>
  152. <view class="flex bot" v-else>
  153. <view @click="pupData.show = false">知道了</view>
  154. </view>
  155. </view>
  156. </van-popup>
  157. </view>
  158. </template>
  159. <script>
  160. // 活动详情
  161. import {
  162. apiActivityDetail,
  163. apiActivityAudios,
  164. apiActivityAddRemind,
  165. apiActivityCancelRemind,
  166. apiActivityRegister,
  167. apiActivityCancelRegister
  168. } from "@/api/activity";
  169. import {baseApiUrl} from '@/utils/config.js'
  170. export default {
  171. name: "ActivityDetail",
  172. computed: {
  173. isFirstAudio(){
  174. if(this.audioList.length>0){
  175. return this.activeAudioUrl==this.audioList[0].voiceUrl
  176. }
  177. },
  178. isLastAudio(){
  179. if(this.audioList.length>0){
  180. return this.activeAudioUrl==this.audioList[this.audioList.length-1].voiceUrl
  181. }
  182. },
  183. },
  184. data() {
  185. return {
  186. id: 0, //活动id
  187. infoList: [],
  188. info: null,
  189. audioList: [], //音频数据
  190. activeAudioUrl:'',//正在播放的背景音频地址
  191. activeAudioTime:0,//选择的音频数据时长
  192. audioCurrentTime:0,//音频正常播放的时间
  193. audioPlayStatus:false,//音频是否正在播放
  194. pupData: {
  195. show: false,
  196. content: "", //弹窗html字符串
  197. type: "",
  198. mobile: "",
  199. },
  200. };
  201. },
  202. onLoad(options) {
  203. this.id = options.id;
  204. this.getDetail();
  205. this.getAudios()
  206. },
  207. onUnload(){
  208. // 存一次
  209. const tag=this.audioList.some(item=>item.voiceUrl==this.globalBgMusic.src)
  210. if(tag){
  211. let obj={
  212. activityId:this.id,//活动id
  213. play:this.audioPlayStatus,//是否正在播放
  214. list:this.audioList,//音频列表数据
  215. show:false,//是否显示弹窗
  216. title:this.info.activityTypeName,//音频弹窗标题
  217. audioCurrentTime:this.audioCurrentTime,//音频播放实时时间
  218. audioTime:this.activeAudioTime,//当前音频时间
  219. audioCurrentUrl:this.activeAudioUrl,//当前音频地址
  220. }
  221. uni.setStorageSync('audioMsg', JSON.stringify(obj))
  222. }
  223. },
  224. onShareAppMessage() {
  225. let title=''
  226. if(this.info.firstActivityTypeId==1){
  227. title=this.info.reportName.split('】')[1]||this.info.activityName
  228. }else{
  229. title=this.info.activityName
  230. }
  231. const token=uni.getStorageSync('token')
  232. let imgUrl=baseApiUrl+`/activity/getActivityShareImg?activity_id=${this.id}`
  233. return {
  234. title: title,
  235. imageUrl:imgUrl
  236. }
  237. },
  238. methods: {
  239. // 点击音频项
  240. handleClickAudioItem(item){
  241. // 点击同一个音频
  242. if(item.voiceUrl==this.activeAudioUrl){
  243. // if(this.audioPlayStatus){
  244. // this.globalBgMusic.pause()
  245. // }else{
  246. // this.globalBgMusic.play()
  247. // }
  248. }else{
  249. this.handlePlayAudio(item)
  250. }
  251. },
  252. // 播放音频
  253. handlePlayAudio(e){
  254. console.log(e);
  255. this.globalBgMusic.title=e.voiceName
  256. this.globalBgMusic.src=e.voiceUrl
  257. this.globalBgMusic.onCanplay(()=>{
  258. console.log('onCanplay');
  259. this.globalBgMusic.play()
  260. this.activeAudioUrl=e.voiceUrl
  261. this.activeAudioTime=e.voicePlaySeconds
  262. })
  263. this.handleAudioFun()
  264. },
  265. // 音频事件
  266. handleAudioFun(){
  267. this.globalBgMusic.onPlay(()=>{
  268. console.log('onplay');
  269. this.audioPlayStatus=true
  270. })
  271. this.globalBgMusic.onPause(()=>{
  272. console.log('onPause');
  273. this.audioPlayStatus=false
  274. })
  275. this.globalBgMusic.onStop(()=>{
  276. console.log('onStop');
  277. this.audioPlayStatus=false
  278. this.activeAudioUrl=''
  279. this.activeAudioTime=0
  280. this.audioCurrentTime=0
  281. })
  282. this.globalBgMusic.onEnded(()=>{
  283. console.log('onEnded');
  284. this.audioPlayStatus=false
  285. this.handleAudioBtn('next','auto')
  286. })
  287. this.globalBgMusic.onError((e)=>{
  288. console.log('onError',e);
  289. uni.showToast({
  290. title:"音频播放错误",
  291. icon:'none'
  292. })
  293. })
  294. this.globalBgMusic.onTimeUpdate(()=>{
  295. if(this.globalBgMusic.src==this.activeAudioUrl){
  296. this.audioCurrentTime=parseInt(this.globalBgMusic.currentTime)
  297. }
  298. })
  299. },
  300. // 点击播放按钮
  301. handleAudioBtn(type,e){
  302. if(type==='center'){
  303. if(this.globalBgMusic.src){
  304. if(this.audioPlayStatus){
  305. this.globalBgMusic.pause()
  306. }else{
  307. this.globalBgMusic.play()
  308. }
  309. }else{
  310. this.handlePlayAudio(this.audioList[0])
  311. }
  312. }
  313. if(type==='before'){
  314. if(!this.isFirstAudio){
  315. this.audioList.forEach((_item,index)=>{
  316. if(_item.voiceUrl==this.activeAudioUrl){
  317. this.handlePlayAudio(this.audioList[index-1])
  318. }
  319. })
  320. }
  321. }
  322. if(type==='next'){
  323. if(!this.isLastAudio){
  324. this.audioList.forEach((_item,index)=>{
  325. if(_item.voiceUrl==this.activeAudioUrl){
  326. this.handlePlayAudio(this.audioList[index+1])
  327. }
  328. })
  329. }else{
  330. // 自动播放最后一个结束
  331. if(e==='auto'){
  332. this.activeAudioUrl=''
  333. this.audioPlayStatus=false
  334. this.activeAudioTime=0
  335. this.audioCurrentTime=0
  336. }
  337. }
  338. }
  339. },
  340. //音频进度条拖动
  341. handleAudioSliderChange(e){
  342. const value=e.detail.value
  343. this.globalBgMusic.seek(value)
  344. },
  345. // 获取活动音频
  346. async getAudios() {
  347. const res = await apiActivityAudios({ activity_id: Number(this.id) });
  348. if (res.code === 200&&res.data) {
  349. this.audioList = res.data
  350. let obj=uni.getStorageSync('audioMsg')
  351. if(obj){
  352. if(this.globalBgMusic.src&&JSON.parse(obj).activityId==this.id){
  353. this.activeAudioUrl=JSON.parse(obj).audioCurrentUrl
  354. this.activeAudioTime=Number(JSON.parse(obj).audioTime)
  355. this.audioCurrentTime=parseInt(this.globalBgMusic.currentTime)
  356. this.audioPlayStatus=JSON.parse(obj).play
  357. this.handleAudioFun()
  358. }
  359. }
  360. }
  361. },
  362. async getDetail() {
  363. const res = await apiActivityDetail({ activity_id: Number(this.id) });
  364. // 无权限
  365. if (res.code === 403) {
  366. uni.redirectTo({
  367. url: "/pages-activity/noAuthority?data=" + JSON.stringify(res.data),
  368. });
  369. return;
  370. }
  371. if (res.code === 200) {
  372. this.info = res.data;
  373. let arr = [
  374. {
  375. label: "大陆拨号",
  376. text: res.data.mainlandTel,
  377. color: "yellow",
  378. type: "tel",
  379. },
  380. {
  381. label: "香港拨入",
  382. text: res.data.hongKongTel,
  383. color: "yellow",
  384. type: "tel",
  385. },
  386. {
  387. label: "台湾拨入",
  388. text: res.data.taiwanTel,
  389. color: "yellow",
  390. type: "tel",
  391. },
  392. {
  393. label: "新加坡拨入",
  394. text: res.data.singaporeTel,
  395. color: "yellow",
  396. type: "tel",
  397. },
  398. {
  399. label: "美国拨入",
  400. text: res.data.americaTel,
  401. color: "yellow",
  402. type: "tel",
  403. },
  404. {
  405. label: "拨入密码",
  406. text: res.data.participationCode,
  407. },
  408. ];
  409. this.infoList = arr.filter((item) => {
  410. return item.text;
  411. });
  412. // 研究员线下沙龙
  413. if (res.data.firstActivityTypeId === 3) {
  414. // this.infoList.push({label: "活动地址",text: res.data.city + res.data.address})
  415. if(res.data.linkParticipants){
  416. this.infoList.push({label: "网络参会",text: res.data.linkParticipants,color: "yellow",type: "copy"})
  417. }
  418. }
  419. }
  420. },
  421. // 点击信息项
  422. handleClickInfoItem(e) {
  423. if (e.type === "tel" && e.text) {
  424. uni.makePhoneCall({
  425. phoneNumber: e.text,
  426. });
  427. }
  428. },
  429. // 跳转webview 打开报告
  430. handleOpenReport() {
  431. uni.navigateTo({
  432. url: "/pages-activity/reportDetail",
  433. success:(res)=>{
  434. res.eventChannel.emit('webUrl', { url: this.info.reportLink})
  435. }
  436. });
  437. },
  438. // 复制链接
  439. handleCopyLink(text){
  440. uni.setClipboardData({
  441. data: text,
  442. success: function () {
  443. uni.showToast({
  444. title:"复制成功,可在浏览器内打开",
  445. icon:"none"
  446. })
  447. },
  448. fail:function(){
  449. uni.showToast({
  450. title:"复制失败",
  451. icon:"none"
  452. })
  453. }
  454. });
  455. },
  456. // 设置会议提醒
  457. async handleSetRemind() {
  458. if (this.info.hasRemind == 1) {
  459. this.handleCancelRemind();
  460. } else {
  461. this.handleAddRemind();
  462. }
  463. },
  464. // 添加提醒
  465. async handleAddRemind() {
  466. const res = await apiActivityAddRemind({ activity_id: Number(this.info.activityId) });
  467. if (res.code === 200) {
  468. this.pupData.content = `<h4 style="text-align:center;margin-bottom:5px">设置成功</h4>
  469. <p>关注【弘则研究】公众号,接收会前15分钟微信提醒,并及时获取活动信息变更通知</p>`;
  470. this.pupData.show = true;
  471. this.handleUpateRemindStatus();
  472. } else if (res.code === 4001) {
  473. if (res.data.type == "time") {
  474. this.pupData.content = `<p>会议开始前15分钟内无法设置会议提醒</p>`;
  475. this.pupData.type = "time";
  476. }
  477. this.pupData.show = true;
  478. }
  479. },
  480. //取消提醒
  481. async handleCancelRemind() {
  482. const res = await apiActivityCancelRemind({ activity_id: Number(this.info.activityId) });
  483. if (res.code === 200) {
  484. uni.showToast({
  485. title: "取消提醒成功",
  486. icon: "none",
  487. });
  488. this.handleUpateRemindStatus();
  489. }else if(res.code===403){
  490. uni.showToast({
  491. title:res.msg,
  492. icon:"none"
  493. })
  494. }
  495. },
  496. // 更新列表提醒状态
  497. handleUpateRemindStatus() {
  498. if (this.info.hasRemind == 1) {
  499. this.info.hasRemind = 0
  500. } else {
  501. this.info.hasRemind = 1
  502. }
  503. uni.$emit('activityDetailSetRemind', { id: this.info.activityId })
  504. },
  505. // 设置报名
  506. handleSetRegister() {
  507. if (this.info.registerState == 1) {
  508. this.handleCancelRegister();
  509. } else {
  510. this.handleAddRegister();
  511. }
  512. },
  513. // 线下报名
  514. async handleAddRegister() {
  515. const res = await apiActivityRegister({ activity_id: Number(this.info.activityId) })
  516. if (res.code === 200) {
  517. this.pupData.content = `<h4 style="text-align:center;margin-bottom:5px">报名成功</h4>
  518. <p>关注【弘则研究】公众号,接收会前1小时微信提醒,并及时获取活动信息变更通知</p>`
  519. this.pupData.show = true
  520. this.handleUpdateRegister()
  521. } else if (res.code === 4001) {
  522. if (res.data.type == 'time') {
  523. this.pupData.content = `<p>活动开始前15分钟内无法设置会议提醒</p>`
  524. this.pupData.type = 'time'
  525. } else if (res.data.type == 'full') {
  526. this.pupData.content = `<p>此活动报名人数已满,请留意下期活动</p>`
  527. this.pupData.type = 'full'
  528. }
  529. this.pupData.show = true
  530. }
  531. },
  532. //取消线下报名
  533. async handleCancelRegister() {
  534. const res = await apiActivityCancelRegister({ activity_id: Number(this.info.activityId) })
  535. if (res.code === 200) {
  536. uni.showToast({
  537. title: "取消报名成功",
  538. icon: "none"
  539. })
  540. this.handleUpdateRegister()
  541. }else if(res.code===403){
  542. uni.showToast({
  543. title:res.msg,
  544. icon:"none"
  545. })
  546. }
  547. },
  548. //更新列表报名状态
  549. handleUpdateRegister() {
  550. if (this.info.registerState == 1) {
  551. this.info.registerState = 0
  552. } else {
  553. this.info.registerState = 1
  554. }
  555. this.getDetail()
  556. uni.$emit('activityDetailSetRegister', { id: this.info.activityId })
  557. }
  558. },
  559. };
  560. </script>
  561. <style lang="scss">
  562. .activity-detail {
  563. background: #fff;
  564. }
  565. .top-wrap {
  566. width: 100%;
  567. height: 370rpx;
  568. // background: linear-gradient(
  569. // 312deg,
  570. // rgba(0, 0, 0, 0.8) 0%,
  571. // rgba(43, 43, 43, 0.8) 100%
  572. // );
  573. background-color: #666666;
  574. color: $global-text-color-white;
  575. padding-top: 144rpx;
  576. padding-left: 40rpx;
  577. padding-right: 40rpx;
  578. background-size: cover;
  579. background-repeat: no-repeat;
  580. position: relative;
  581. .status {
  582. position: absolute;
  583. top: 0;
  584. left: 0;
  585. width: 116rpx;
  586. line-height: 44rpx;
  587. border-radius: 0px 0px 16rpx 0px;
  588. color: $global-text-color-white;
  589. text-align: center;
  590. font-size: $global-font-size-sm;
  591. }
  592. .status-before {
  593. background-color: #e3b377;
  594. }
  595. .status-progress {
  596. background-color: #3385ff;
  597. }
  598. .status-end {
  599. background-color: #a2a2a2;
  600. }
  601. .title {
  602. font-size: 19px;
  603. font-weight: bold;
  604. }
  605. .name {
  606. margin-top: 15rpx;
  607. margin-bottom: 40rpx;
  608. }
  609. .time {
  610. opacity: 0.8;
  611. font-size: $global-font-size-sm;
  612. }
  613. .city {
  614. font-size: $global-font-size-sm;
  615. align-items: center;
  616. position: absolute;
  617. right: 40rpx;
  618. bottom: 59rpx;
  619. image {
  620. width: 32rpx;
  621. height: 32rpx;
  622. }
  623. }
  624. }
  625. .intro-wrap {
  626. background-color: #fff;
  627. box-shadow: 0px 3px 12px rgba(196, 196, 196, 0.16);
  628. font-size: $global-font-size-lg;
  629. font-weight: bold;
  630. padding: 28rpx 34rpx;
  631. }
  632. .info-wrap {
  633. padding: 30rpx 34rpx;
  634. .item {
  635. margin-bottom: 30rpx;
  636. .label {
  637. flex-shrink: 0;
  638. }
  639. .copy-btn {
  640. background-color: #e3b377;
  641. color: #fff;
  642. padding: 4rpx 8rpx;
  643. font-size: 12px;
  644. margin-left: 4rpx;
  645. }
  646. .link{
  647. width: 300rpx;
  648. white-space:nowrap;
  649. overflow:hidden;
  650. text-overflow:ellipsis;
  651. }
  652. }
  653. .yellow-color {
  654. color: $global-text-color-main;
  655. }
  656. }
  657. .audio-wrap {
  658. padding: 0 34rpx;
  659. .audio-item {
  660. padding: 36rpx 0;
  661. border-bottom: 1px solid #E8DED2;
  662. position: relative;
  663. .icon {
  664. position: absolute;
  665. top: 50rpx;
  666. right: 6rpx;
  667. width: 40rpx;
  668. height: 40rpx;
  669. }
  670. .name {
  671. margin-bottom: 10rpx;
  672. }
  673. .time {
  674. font-size: $global-font-size-mini;
  675. }
  676. .audio-slider{
  677. margin: 20rpx 0 20rpx 20rpx;
  678. }
  679. }
  680. .box{
  681. min-height: 100rpx;
  682. margin-top: 60rpx;
  683. margin-bottom: 70rpx;
  684. padding: 30rpx 20rpx;
  685. background: #FFFFFF;
  686. border: 1px solid rgba(240, 234, 226, 0.3);
  687. box-shadow: 0px 3px 12px rgba(154, 154, 154, 0.16);
  688. border-radius: 16px;
  689. .top-slider{
  690. align-items: center;
  691. text{
  692. width: 110rpx;
  693. font-size: 12px;
  694. text-align: center;
  695. flex-shrink: 0;
  696. }
  697. .audio-slider{
  698. flex: 1;
  699. margin: 0 20rpx;
  700. }
  701. }
  702. .btns{
  703. justify-content: space-between;
  704. width: 50%;
  705. align-items: center;
  706. margin-left: auto;
  707. margin-right: auto;
  708. margin-top: 25rpx;
  709. image{
  710. width: 58rpx;
  711. height: 58rpx;
  712. }
  713. .next{
  714. transform: rotate(180deg);
  715. }
  716. }
  717. }
  718. }
  719. .btn-wrap {
  720. .btn {
  721. width: 380rpx;
  722. line-height: 70rpx;
  723. margin-left: auto;
  724. margin-right: auto;
  725. margin-top: 40rpx;
  726. }
  727. .tips {
  728. font-size: $global-font-size-sm;
  729. color: $global-text-color-999;
  730. text-align: center;
  731. }
  732. }
  733. </style>