detail.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833
  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. <!-- 分享海报 -->
  158. <sharePoster
  159. :style="{bottom:'250rpx'}"
  160. :shareData="{
  161. type:'activity_detail',
  162. code_page:'pages-activity/detail',
  163. code_scene:code_scene,
  164. data:shareParams
  165. }"
  166. ></sharePoster>
  167. </view>
  168. </template>
  169. <script>
  170. // 活动详情
  171. import {
  172. apiActivityDetail,
  173. apiActivityAudios,
  174. apiActivityAddRemind,
  175. apiActivityCancelRemind,
  176. apiActivityRegister,
  177. apiActivityCancelRegister
  178. } from "@/api/activity";
  179. import {apiGetSceneToParams} from '@/api/common'
  180. import {baseApiUrl} from '@/utils/config.js'
  181. import sharePoster from '../components/sharePoster/sharePoster.vue'
  182. const moment=require('@/utils/moment-with-locales.min')
  183. moment.locale('zh-cn');
  184. export default {
  185. name: "ActivityDetail",
  186. components: {
  187. sharePoster
  188. },
  189. computed: {
  190. isFirstAudio(){
  191. if(this.audioList.length>0){
  192. return this.activeAudioUrl==this.audioList[0].voiceUrl
  193. }
  194. },
  195. isLastAudio(){
  196. if(this.audioList.length>0){
  197. return this.activeAudioUrl==this.audioList[this.audioList.length-1].voiceUrl
  198. }
  199. },
  200. shareParams(){ //生成海报数据
  201. if(this.info){
  202. let obj={
  203. activity_title:this.info.activityTypeName+'电话会',
  204. activity_speaker:this.info.speaker,
  205. activity_time:this.formatActivityTime(this.info.startTime,this.info.endTime),
  206. activity_avatar:this.info.speakerHeadPic
  207. }
  208. return obj
  209. }
  210. },
  211. code_scene(){//生成海报的小程序页面参数
  212. return JSON.stringify({id:this.id})
  213. }
  214. },
  215. data() {
  216. return {
  217. id: 0, //活动id
  218. infoList: [],
  219. info: null,
  220. audioList: [], //音频数据
  221. activeAudioUrl:'',//正在播放的背景音频地址
  222. activeAudioTime:0,//选择的音频数据时长
  223. audioCurrentTime:0,//音频正常播放的时间
  224. audioPlayStatus:false,//音频是否正在播放
  225. pupData: {
  226. show: false,
  227. content: "", //弹窗html字符串
  228. type: "",
  229. mobile: "",
  230. },
  231. };
  232. },
  233. onLoad(options) {
  234. if(options.scene){
  235. this.init(options.scene)
  236. }else{
  237. this.id = options.id;
  238. this.getDetail();
  239. this.getAudios()
  240. }
  241. },
  242. onUnload(){
  243. // 存一次
  244. const tag=this.audioList.some(item=>item.voiceUrl==this.globalBgMusic.src)
  245. if(tag){
  246. let obj={
  247. activityId:this.id,//活动id
  248. play:this.audioPlayStatus,//是否正在播放
  249. list:this.audioList,//音频列表数据
  250. show:false,//是否显示弹窗
  251. title:this.info.activityTypeName,//音频弹窗标题
  252. audioCurrentTime:this.audioCurrentTime,//音频播放实时时间
  253. audioTime:this.activeAudioTime,//当前音频时间
  254. audioCurrentUrl:this.activeAudioUrl,//当前音频地址
  255. }
  256. uni.setStorageSync('audioMsg', JSON.stringify(obj))
  257. }
  258. },
  259. onShareAppMessage() {
  260. let title=''
  261. if(this.info.firstActivityTypeId==1){
  262. title=this.info.reportName.split('】')[1]||this.info.activityName
  263. }else{
  264. title=this.info.activityName
  265. }
  266. const token=uni.getStorageSync('token')
  267. const timestamp=new Date().getTime()
  268. let imgUrl=baseApiUrl+`/activity/getActivityShareImg?activity_id=${this.id}&timestamp=${timestamp}`
  269. return {
  270. title: title,
  271. imageUrl:imgUrl
  272. }
  273. },
  274. methods: {
  275. async init(e){
  276. const res=await apiGetSceneToParams({scene_key:e})
  277. if(res.code==200){
  278. const obj=JSON.parse(res.data)
  279. this.id=obj.id
  280. this.getDetail()
  281. this.getAudios()
  282. }
  283. },
  284. formatActivityTime(start,end){
  285. const week=moment(start).format('dddd');
  286. const day=moment(start).format('YYYY-MM-DD');
  287. const startTime=moment(start).format('HH:mm');
  288. const endTime=moment(end).format('HH:mm');
  289. return `${day} ${startTime}-${endTime} ${week}`
  290. },
  291. // 点击音频项
  292. handleClickAudioItem(item){
  293. // 点击同一个音频
  294. if(item.voiceUrl==this.activeAudioUrl){
  295. // if(this.audioPlayStatus){
  296. // this.globalBgMusic.pause()
  297. // }else{
  298. // this.globalBgMusic.play()
  299. // }
  300. }else{
  301. this.handlePlayAudio(item)
  302. }
  303. },
  304. // 播放音频
  305. handlePlayAudio(e){
  306. console.log(e);
  307. this.globalBgMusic.title=e.voiceName
  308. this.globalBgMusic.src=e.voiceUrl
  309. this.globalBgMusic.onCanplay(()=>{
  310. console.log('onCanplay');
  311. this.globalBgMusic.play()
  312. this.activeAudioUrl=e.voiceUrl
  313. this.activeAudioTime=e.voicePlaySeconds
  314. })
  315. this.handleAudioFun()
  316. },
  317. // 音频事件
  318. handleAudioFun(){
  319. this.globalBgMusic.onPlay(()=>{
  320. console.log('onplay');
  321. this.audioPlayStatus=true
  322. })
  323. this.globalBgMusic.onPause(()=>{
  324. console.log('onPause');
  325. this.audioPlayStatus=false
  326. })
  327. this.globalBgMusic.onStop(()=>{
  328. console.log('onStop');
  329. this.audioPlayStatus=false
  330. this.activeAudioUrl=''
  331. this.activeAudioTime=0
  332. this.audioCurrentTime=0
  333. })
  334. this.globalBgMusic.onEnded(()=>{
  335. console.log('onEnded');
  336. this.audioPlayStatus=false
  337. this.handleAudioBtn('next','auto')
  338. })
  339. this.globalBgMusic.onError((e)=>{
  340. console.log('onError',e);
  341. uni.showToast({
  342. title:"音频播放错误",
  343. icon:'none'
  344. })
  345. })
  346. this.globalBgMusic.onTimeUpdate(()=>{
  347. if(this.globalBgMusic.src==this.activeAudioUrl){
  348. this.audioCurrentTime=parseInt(this.globalBgMusic.currentTime)
  349. }
  350. })
  351. },
  352. // 点击播放按钮
  353. handleAudioBtn(type,e){
  354. if(type==='center'){
  355. if(this.globalBgMusic.src){
  356. if(this.audioPlayStatus){
  357. this.globalBgMusic.pause()
  358. }else{
  359. this.globalBgMusic.play()
  360. }
  361. }else{
  362. this.handlePlayAudio(this.audioList[0])
  363. }
  364. }
  365. if(type==='before'){
  366. if(!this.isFirstAudio){
  367. this.audioList.forEach((_item,index)=>{
  368. if(_item.voiceUrl==this.activeAudioUrl){
  369. this.handlePlayAudio(this.audioList[index-1])
  370. }
  371. })
  372. }
  373. }
  374. if(type==='next'){
  375. if(!this.isLastAudio){
  376. this.audioList.forEach((_item,index)=>{
  377. if(_item.voiceUrl==this.activeAudioUrl){
  378. this.handlePlayAudio(this.audioList[index+1])
  379. }
  380. })
  381. }else{
  382. // 自动播放最后一个结束
  383. if(e==='auto'){
  384. this.activeAudioUrl=''
  385. this.audioPlayStatus=false
  386. this.activeAudioTime=0
  387. this.audioCurrentTime=0
  388. }
  389. }
  390. }
  391. },
  392. //音频进度条拖动
  393. handleAudioSliderChange(e){
  394. const value=e.detail.value
  395. this.globalBgMusic.seek(value)
  396. },
  397. // 获取活动音频
  398. async getAudios() {
  399. const res = await apiActivityAudios({ activity_id: Number(this.id) });
  400. if (res.code === 200&&res.data) {
  401. this.audioList = res.data
  402. let obj=uni.getStorageSync('audioMsg')
  403. if(obj){
  404. if(this.globalBgMusic.src&&JSON.parse(obj).activityId==this.id){
  405. this.activeAudioUrl=JSON.parse(obj).audioCurrentUrl
  406. this.activeAudioTime=Number(JSON.parse(obj).audioTime)
  407. this.audioCurrentTime=parseInt(this.globalBgMusic.currentTime)
  408. this.audioPlayStatus=JSON.parse(obj).play
  409. this.handleAudioFun()
  410. }
  411. }
  412. }
  413. },
  414. async getDetail() {
  415. const res = await apiActivityDetail({ activity_id: Number(this.id) });
  416. // 无权限
  417. if (res.code === 403) {
  418. // 如果是pc进入的 则不跳转
  419. //防止无权限用户在pc点击分享的或者识别的二维码,没法正常跳转到pc页
  420. uni.getSystemInfo({
  421. success:(e)=>{
  422. if (e.windowWidth < 700){
  423. uni.redirectTo({
  424. url: "/pages-activity/noAuthority?data=" + JSON.stringify(res.data),
  425. });
  426. }
  427. }
  428. })
  429. return;
  430. }
  431. if (res.code === 200) {
  432. this.info = res.data;
  433. let arr = [
  434. {
  435. label: "大陆拨号",
  436. text: res.data.mainlandTel,
  437. color: "yellow",
  438. type: "tel",
  439. },
  440. {
  441. label: "香港拨入",
  442. text: res.data.hongKongTel,
  443. color: "yellow",
  444. type: "tel",
  445. },
  446. {
  447. label: "台湾拨入",
  448. text: res.data.taiwanTel,
  449. color: "yellow",
  450. type: "tel",
  451. },
  452. {
  453. label: "新加坡拨入",
  454. text: res.data.singaporeTel,
  455. color: "yellow",
  456. type: "tel",
  457. },
  458. {
  459. label: "美国拨入",
  460. text: res.data.americaTel,
  461. color: "yellow",
  462. type: "tel",
  463. },
  464. {
  465. label: "拨入密码",
  466. text: res.data.participationCode,
  467. },
  468. ];
  469. this.infoList = arr.filter((item) => {
  470. return item.text;
  471. });
  472. // 研究员线下沙龙
  473. if (res.data.firstActivityTypeId === 3) {
  474. // this.infoList.push({label: "活动地址",text: res.data.city + res.data.address})
  475. if(res.data.linkParticipants){
  476. this.infoList.push({label: "网络参会",text: res.data.linkParticipants,color: "yellow",type: "copy"})
  477. }
  478. }
  479. }
  480. },
  481. // 点击信息项
  482. handleClickInfoItem(e) {
  483. if (e.type === "tel" && e.text) {
  484. uni.makePhoneCall({
  485. phoneNumber: e.text,
  486. });
  487. }
  488. },
  489. // 跳转webview 打开报告
  490. handleOpenReport() {
  491. uni.navigateTo({
  492. url: "/pages-activity/reportDetail",
  493. success:(res)=>{
  494. res.eventChannel.emit('webUrl', { url: this.info.reportLink})
  495. }
  496. });
  497. },
  498. // 复制链接
  499. handleCopyLink(text){
  500. uni.setClipboardData({
  501. data: text,
  502. success: function () {
  503. uni.showToast({
  504. title:"复制成功,可在浏览器内打开",
  505. icon:"none"
  506. })
  507. },
  508. fail:function(){
  509. uni.showToast({
  510. title:"复制失败",
  511. icon:"none"
  512. })
  513. }
  514. });
  515. },
  516. // 设置会议提醒
  517. async handleSetRemind() {
  518. if (this.info.hasRemind == 1) {
  519. this.handleCancelRemind();
  520. } else {
  521. this.handleAddRemind();
  522. }
  523. },
  524. // 添加提醒
  525. async handleAddRemind() {
  526. const res = await apiActivityAddRemind({ activity_id: Number(this.info.activityId) });
  527. if (res.code === 200) {
  528. this.pupData.content = `<h4 style="text-align:center;margin-bottom:5px">设置成功</h4>
  529. <p>关注【弘则研究】公众号,接收会前15分钟微信提醒,并及时获取活动信息变更通知</p>`;
  530. this.pupData.show = true;
  531. this.handleUpateRemindStatus();
  532. } else if (res.code === 4001) {
  533. if (res.data.type == "time") {
  534. this.pupData.content = `<p>会议开始前15分钟内无法设置会议提醒</p>`;
  535. this.pupData.type = "time";
  536. }
  537. this.pupData.show = true;
  538. }
  539. },
  540. //取消提醒
  541. async handleCancelRemind() {
  542. const res = await apiActivityCancelRemind({ activity_id: Number(this.info.activityId) });
  543. if (res.code === 200) {
  544. uni.showToast({
  545. title: "取消提醒成功",
  546. icon: "none",
  547. });
  548. this.handleUpateRemindStatus();
  549. }else if(res.code===403){
  550. uni.showToast({
  551. title:res.msg,
  552. icon:"none"
  553. })
  554. }
  555. },
  556. // 更新列表提醒状态
  557. handleUpateRemindStatus() {
  558. if (this.info.hasRemind == 1) {
  559. this.info.hasRemind = 0
  560. } else {
  561. this.info.hasRemind = 1
  562. }
  563. uni.$emit('activityDetailSetRemind', { id: this.info.activityId })
  564. },
  565. // 设置报名
  566. handleSetRegister() {
  567. if (this.info.registerState == 1) {
  568. this.handleCancelRegister();
  569. } else {
  570. this.handleAddRegister();
  571. }
  572. },
  573. // 线下报名
  574. async handleAddRegister() {
  575. const res = await apiActivityRegister({ activity_id: Number(this.info.activityId) })
  576. if (res.code === 200) {
  577. this.pupData.content = `<h4 style="text-align:center;margin-bottom:5px">报名成功</h4>
  578. <p>关注【弘则研究】公众号,接收会前1小时微信提醒,并及时获取活动信息变更通知</p>`
  579. this.pupData.show = true
  580. this.handleUpdateRegister()
  581. } else if (res.code === 4001) {
  582. if (res.data.type == 'time') {
  583. this.pupData.content = `<p>活动开始前15分钟内无法设置会议提醒</p>`
  584. this.pupData.type = 'time'
  585. } else if (res.data.type == 'full') {
  586. this.pupData.content = `<p>此活动报名人数已满,请留意下期活动</p>`
  587. this.pupData.type = 'full'
  588. }
  589. this.pupData.show = true
  590. }
  591. },
  592. //取消线下报名
  593. async handleCancelRegister() {
  594. const res = await apiActivityCancelRegister({ activity_id: Number(this.info.activityId) })
  595. if (res.code === 200) {
  596. uni.showToast({
  597. title: "取消报名成功",
  598. icon: "none"
  599. })
  600. this.handleUpdateRegister()
  601. }else if(res.code===403){
  602. uni.showToast({
  603. title:res.msg,
  604. icon:"none"
  605. })
  606. }
  607. },
  608. //更新列表报名状态
  609. handleUpdateRegister() {
  610. if (this.info.registerState == 1) {
  611. this.info.registerState = 0
  612. } else {
  613. this.info.registerState = 1
  614. }
  615. this.getDetail()
  616. uni.$emit('activityDetailSetRegister', { id: this.info.activityId })
  617. }
  618. },
  619. };
  620. </script>
  621. <style lang="scss">
  622. .activity-detail {
  623. background: #fff;
  624. }
  625. .top-wrap {
  626. width: 100%;
  627. height: 370rpx;
  628. // background: linear-gradient(
  629. // 312deg,
  630. // rgba(0, 0, 0, 0.8) 0%,
  631. // rgba(43, 43, 43, 0.8) 100%
  632. // );
  633. background-color: #666666;
  634. color: $global-text-color-white;
  635. padding-top: 144rpx;
  636. padding-left: 40rpx;
  637. padding-right: 40rpx;
  638. background-size: cover;
  639. background-repeat: no-repeat;
  640. position: relative;
  641. .status {
  642. position: absolute;
  643. top: 0;
  644. left: 0;
  645. width: 116rpx;
  646. line-height: 44rpx;
  647. border-radius: 0px 0px 16rpx 0px;
  648. color: $global-text-color-white;
  649. text-align: center;
  650. font-size: $global-font-size-sm;
  651. }
  652. .status-before {
  653. background-color: #e3b377;
  654. }
  655. .status-progress {
  656. background-color: #3385ff;
  657. }
  658. .status-end {
  659. background-color: #a2a2a2;
  660. }
  661. .title {
  662. font-size: 19px;
  663. font-weight: bold;
  664. }
  665. .name {
  666. margin-top: 15rpx;
  667. margin-bottom: 40rpx;
  668. }
  669. .time {
  670. opacity: 0.8;
  671. font-size: $global-font-size-sm;
  672. }
  673. .city {
  674. font-size: $global-font-size-sm;
  675. align-items: center;
  676. position: absolute;
  677. right: 40rpx;
  678. bottom: 59rpx;
  679. image {
  680. width: 32rpx;
  681. height: 32rpx;
  682. }
  683. }
  684. }
  685. .intro-wrap {
  686. background-color: #fff;
  687. box-shadow: 0px 3px 12px rgba(196, 196, 196, 0.16);
  688. font-size: $global-font-size-lg;
  689. font-weight: bold;
  690. padding: 28rpx 34rpx;
  691. }
  692. .info-wrap {
  693. padding: 30rpx 34rpx;
  694. .item {
  695. margin-bottom: 30rpx;
  696. .label {
  697. flex-shrink: 0;
  698. }
  699. .copy-btn {
  700. background-color: #e3b377;
  701. color: #fff;
  702. padding: 4rpx 8rpx;
  703. font-size: 12px;
  704. margin-left: 4rpx;
  705. }
  706. .link{
  707. width: 300rpx;
  708. white-space:nowrap;
  709. overflow:hidden;
  710. text-overflow:ellipsis;
  711. }
  712. }
  713. .yellow-color {
  714. color: $global-text-color-main;
  715. }
  716. }
  717. .audio-wrap {
  718. padding: 0 34rpx;
  719. .audio-item {
  720. padding: 36rpx 0;
  721. border-bottom: 1px solid #E8DED2;
  722. position: relative;
  723. .icon {
  724. position: absolute;
  725. top: 50rpx;
  726. right: 6rpx;
  727. width: 40rpx;
  728. height: 40rpx;
  729. }
  730. .name {
  731. margin-bottom: 10rpx;
  732. }
  733. .time {
  734. font-size: $global-font-size-mini;
  735. }
  736. .audio-slider{
  737. margin: 20rpx 0 20rpx 20rpx;
  738. }
  739. }
  740. .box{
  741. min-height: 100rpx;
  742. margin-top: 60rpx;
  743. margin-bottom: 70rpx;
  744. padding: 30rpx 20rpx;
  745. background: #FFFFFF;
  746. border: 1px solid rgba(240, 234, 226, 0.3);
  747. box-shadow: 0px 3px 12px rgba(154, 154, 154, 0.16);
  748. border-radius: 16px;
  749. .top-slider{
  750. align-items: center;
  751. text{
  752. width: 110rpx;
  753. font-size: 12px;
  754. text-align: center;
  755. flex-shrink: 0;
  756. }
  757. .audio-slider{
  758. flex: 1;
  759. margin: 0 20rpx;
  760. }
  761. }
  762. .btns{
  763. justify-content: space-between;
  764. width: 50%;
  765. align-items: center;
  766. margin-left: auto;
  767. margin-right: auto;
  768. margin-top: 25rpx;
  769. image{
  770. width: 58rpx;
  771. height: 58rpx;
  772. }
  773. .next{
  774. transform: rotate(180deg);
  775. }
  776. }
  777. }
  778. }
  779. .btn-wrap {
  780. .btn {
  781. width: 380rpx;
  782. line-height: 70rpx;
  783. margin-left: auto;
  784. margin-right: auto;
  785. margin-top: 40rpx;
  786. }
  787. .tips {
  788. font-size: $global-font-size-sm;
  789. color: $global-text-color-999;
  790. text-align: center;
  791. }
  792. }
  793. </style>