detail.vue 28 KB

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