MoreRSS

site iconEdzbe | 耳朵修改

以期刊的形式分享歌特、厄运、朋克、流行、后摇、重金属等小众风格音乐的电台博客。
请复制 RSS 到你的阅读器,或快速订阅到 :

Inoreader Feedly Follow Feedbin Local Reader

Edzbe | 耳朵的 RSS 预览

又是一年博饼时,迎中秋庆国庆•叙乡情促公益

2025-10-01 02:43:43

时光飞逝,唰一下,一年又一年,去年刚更新的日记《公益促进会晚宴,迎中秋庆国庆,叙乡情促公益。》好像也没过多久,又临近中秋了。

第二届安溪县官桥镇善坛公益促进会第四次会员大会暨中秋联谊活动在厦门牡丹港都圆满举行。

会长致辞:中秋节是团圆的节日,是丰收的节日,也是感恩的节日。今夜,我们虽然身处他乡,但我们的心与故乡紧密相连。今晚,让我们共同品尝美食美酒,共同享受团圆的喜悦,也共同感受由血脉和乡情编织的温暖。安溪县官桥镇善坛村公益促进会成立9年来,积极为厦门和善坛村的发展架起一座合作的桥梁,努力促成在厦善坛宗亲们的互动互联、互帮互助、共同进步,致力于让每位在厦宗亲感受到大家庭的关爱与温暖。在过去的一年里,我们先后组织了高考助学奖学、环善坛公益跑等活动,实实在在为父老乡亲办了一些事。

在今后的日子,善坛公益促进会将继续秉持并发扬“善”的精神,努力为善坛宗亲服务,为家乡善坛村的发展鼓舞与欢呼,并在建设宗亲共同心灵家园的过程中,将善坛公益促进会的“公益”两个字擦得更加响亮。

监事报告:2024年先后开展如下公益活动:

1)  春节敬老扶助活动;

2)  “迎春接福,环村公益跑”;

3)  奖学助学活动;

4)  漳州海澄祭祖活动等。

5) 组织并赞助篮球队参与新春篮球赛。

领导祝酒,举杯共饮家乡情。

晚宴联谊,嗯,突然发现,好多新一代的小伙子,呃,我不认识,侧面反映我开始步入中年,青年一代突起了。

魔术表演,手法,呃,还行。

凤舞舞蹈表演,我们畲族的图腾是凤凰,这个节目挺贴近。

川剧变脸,气氛不错,高潮不断。

小朋友们很喜欢这个节目。

萨克斯演奏,很优雅,我以前学过,但是技艺就上不了台了。

舞蹈节目名称我没记住,但是,哈哈,跳得挺好看,哈哈哈哈。

宴席结束后开启博饼活动。

博饼规则介绍,挺好玩的,不是福建人,也可以试着组织玩一下,博到状元代表接下来的一年都会好运连连。

博饼起源于厦门,是闽南地区特有的中秋民俗活动,相传由明末清初郑成功为解士兵思乡之情、鼓舞士气而创设,将科举制度的功名等级融入掷骰子游戏中。

博饼核心是用6粒骰子掷出不同组合,对应“状元”“榜眼”“探花”等不同奖项,奖品多为月饼或日常用品,如今已成为亲友、同事间中秋聚会的趣味互动。

活动奖品清单,虽然都是些生活用品,但是实用,图中骰子开出来的就是状元插金花,四个四,两个一,天牌的存在。

此次战利品,四个三红奖品,我们拿了三个回家,哈哈,还有几个四进,我已经好多年没有博出状元了,反正乐在参与。

过几天还有几场博饼宴要参加,祝我好运,哈哈,嗯,就这么水了一篇文章。

又没有车,为什么要等红灯,是不是傻。

2025-09-14 19:45:14

昨晚,八九点的时候,接到朋友的电话,问我晚上有空吗?约我喝茶,应约了。

陪娃儿看了部好电影《姥姥的外孙》,泰剧,剧情情节就不透了,可以去看看,潮汕族裔和我们闽南一脉相传的一致,所以剧情代入感极强,几次眼泪婆娑,差点滴落,娃儿在身旁,嗯,故作坚强。

看完电影,催娃洗漱,哄娃睡觉,这是每天的常规流程,折腾完十一点多了,才想起有约,溜达出门,心想也不远,就不开车了,机车在小区车棚里,要步行一段路,小毛驴在小区门口,就骑小毛驴吧,其实我很不喜欢骑小毛驴,总觉得底盘太轻,过弯就晃着飘,当然也许是我太重了。

慢慢悠悠的溜达,前方绿灯倒数12秒,目测距离,小毛驴25km/h可能连黄灯都追不上,呃,也许可能勉强可以,还是算了,等吧,停着等红灯的时候,右后方来了一辆小毛驴,一对中年夫妇,因我在前停车等候,他们从右转道直行闯红灯通过,后座的女的,回头看我一眼,念叨一句:又没有车,为什么要等红灯,是不是傻。

尽管她说的很小声,但是夜太静了,我字字句句都听得很清楚,呃,同是闽南话,她的口音明显是本地土著,听到这句话,我没有感觉到被冒犯,我只是突然间想到了,对哦,都没有车,为什么我还要遵守规则等着红绿灯呢?

然后,我还是等到了绿灯亮起,呃,我觉得遵守交通规则,是一位公民基本的素养,我不能看别人没素质,我也跟着没素质吧,哈哈,再着,万一路口也来一台不礼让的车呢,故事就悲伤了。

读书的时候《道德与法治》里面教的:无规矩不成方圆,我隐约记得是孟子说的。我是一个固守规则的人,生活中一些小小细节,我总是遵从规则,所以我应该是挺无趣的一个人。

到了公司,等了快一个小时,他才来,和另外一个认识的小伙伴一起来的,我在泡茶区泡着茶,大家唠了一会嗑,后来小伙伴先走了,就剩我俩,也没啥主题,就他泡茶,我打一会游戏玩玩手机,气氛看似很正常,平时也经常就这状态,我并没有想多什么。

快三点的时候,他问我,打完了吗?

呃,这是有事聊啊!

我赶紧收起手机,一本正经的,来,啥事?

Ps:其实,我猜到了些什么,他还没开口的时候。

他:想开口再跟你借点钱,这次真的要死了,资金转不过来了。

听到这句话的时候,我有点儿不高兴了,我直接怼回去了。

我:我话就直说了,你也别不高兴,你去年就开始叫要死了要死了,这么久了,还是要死了,你咋不去死?去年说第二天按揭还不上,我就帮你安排了,你说后面还给我,你也没还我,后来你说要再创业,我也入资帮扶你了,一毛钱也没见给我分过,这次又要死了要死了,逮着我造是吗?对不起,我不接受这样的事,救急不救穷,你这不是急,你这是穷,穷还是你自己造的,我帮不上你了。

他一脸的不好意思,任凭我输出,末了还是坚持着希望我能帮帮他:我那个房子想卖,但是现在的行情不好,而且学区房,新学校,没有高年级的班,转学的转不了,所以最近都没有人来看房,有两三组带看的客户,都说考虑一下。

我:来看房就是要买房,你真的想解决问题,就降价赶紧把房子卖了,不然一个月还要一万八的按揭,越拖越死。

他:有啊,我都比别人挂的价格低了。

我:不是挂的价格问题,你就直接一口价,直接别人的成交价再降20万,我不相信还会没人买,你从去年就说你要把这套房子卖了,说了一年你也没卖,你就想着能翻身,然后让别人帮你度难关,你信不信这次我拿给你,你就拿去先解决自己的问题了,房子你还是不会卖。

他:这次不会了,我肯定是要卖的,就是这两三个月比较没什么人看房,过年那会应该价格会比较好出手。

我:你这就很过分了,你手握着房产资产,然后遇到难关就要别人帮你,你如果觉得我说的有道理,你就尽快把房子出手了,你也不是说只有这一套房,卖了就没地方住。

他:你这次再帮我一下,你相信我,我年底肯定把房子卖了,马上把你的钱还你。

我:这无关相不相信,你还是这几天就去操作吧,如果我这次再帮你,你又可以拖一段时间,有得拖,你也不会去做,等把这钱再用完了,你又会是今天这状态。

我拒绝得很坚决,其实内心多少还有些不好意思的,但是我觉得不能一而再再而三了,那我就是冤大头了。认识两年多,受朋友所托,让我多多帮扶,我也挺用心的帮扶了,但这,就有点过分了。

我这一生至此,有欠过别人钱,那也只是生意上的亏损欠款,想法设法都要还清,我从来没有找别人借钱用来度生活,口袋只有十块钱,我都会掰着花,熬过去。

他不止一套房,说要卖掉的房子,还是投资房没有住,按揭还不上,怕断供,就要借钱,为什么不自己去承担呢?把压力给到朋友帮他担着,所谓朋友,这是朋友吗?

然后三点多,我就回家了,四点多他截图和他媳妇的聊天记录给我看,对话中意思是这次他们真的要破产了,他媳妇想到这个点烦死了还睡不着。然后他说他也是没办法才又找我的,希望我能再帮帮他。

我直接已读不回,呃,你睡不着,关我什么事,你破不破产关我什么事,又不是我害你破产的。

我想,朋友,应该是资源上互相整合促进共同发展,而不是,朋友,借点钱花花。

我想,我的坚持是对的,这一次。

我们终有老的那一天。

2025-09-03 04:32:56

这个暑假唰一下就过了,小郡主钢琴考级集训陪练了半个月,贝勒爷奥数班特训接送了半个月,各种补习培训班排满满,所以这个暑假就没有带娃出远途玩了,只是在同城周边的一些小景点晃悠一下,带娃去深山里溯溪,玩是挺好玩的,就是山涧里的石头爬满青苔太滑溜,出去玩,其实就是时刻盯着保护着娃儿。八月中才想起带贝勒爷去噶了下包皮,然后临近开学了。

趁着暑期的尾巴,带娃回老家山里住了几天,刚好镇区医院进行年度公卫体检下乡活动,给村里的老人家做体检,闲着也闲着,我做了志愿者义工,每天早上6点多就起床Standby,连续五天,呃,起床太早,确实有些不太习惯,但是好在坚持住了,每天都准时到岗。

村里常住人口也就七百多个吧,都是些留守老人,总共给537位65岁以上的老人家做了综合体检,验血象、B超、肺部拍片、心电图、血压、血糖、白内障筛查、尿检、中医问诊。检查项目比较多,年长的老人有近百岁,很多都是不识字的,医生叫到普通话名字反应不过来的,好在都是同村老人,我的作用就体现了,穿过来跑过去的扶这位过来这里检查,扶那位到那边检查。

第一天,刚开始,比较没经验,现场才收身份证,导致很多老人家总想着占便宜,想要插队串队排到前面去,整个村委会的会场乱糟糟,明明喊到的名字不是他,就给人家坐下去要抽血,护士小姐姐解释说要按照名字打的条码来抽血,人家就是不听劝,硬要插队。形形色色的人,各种丑态,甚至恶心的嘴脸都有,因为要抽血检查,所以通知的就是空腹抽血,但是人比较多,怕老人家会肚子饿,我爸掏钱买了两千多块钱的牛奶和面包,分成一份份,准备给老人家抽完血垫肚子充饥的,看到有免费的东西拿,竟然有人偷拿(未达65周岁,没有体本次体检资格的人),还有走一圈过来拿一份,不注意,又来拿一份。唉,无奈,甚是无奈。第一天就在这样乱糟糟的状态下,顺利完成了任务。

第二天开始,按照名单,排队一道一道项目检查下去,终于捋顺,除了行动不便的老人,或者近百高龄,和基础慢性病的老人,由我搀扶着的优先可以做项目检查,其他的全部一律按照名单,想插队的直接告知,你可以选择自己去镇区医院做检查,我们不提供服务。一般想插队的都是六十五出头,还行动很健全的人,嗯,我凶起来还是有用的,毕竟江湖传说我年少的时候,也是个小流氓来着。

之后,我发现了一个问题,就是没有一个年轻人,或者后辈陪同这些老人,一个都没有,没有人陪他们来体检,看着有些心疼,看到一个个白发苍苍,步履阑珊的老人,这些都是留守孤寡…  我甚至有些想问候他们的孩子,用最脏的脏话。

第二天开始,我就多了个业务,接送老人,开着车在村子里串来串去的,让老人自发的组织人员在某个位置等我,我去接他们,我们村子挺大的,最远的距离有三公里多,丘陵地貌,环山公路,老人家徒步来去实在太远和不方便,因为开车接送,所以和老人们接触就多了,得到最多赞美是:你人真好,你好善良,还接送我们。

嗯,内心是有些窃喜的,至少是被赞扬了嘛!

前后五天,最后一天的检查,终于在会场看到一位年轻家属,唯一一个,大概三十出头,虽然长相一般,但是我觉得她很美,因为她全程搀扶着一位老奶奶做检查,听到边上的人讨论,说那是老奶奶的孙媳妇。

我们终有老的一天,我站在这个角度上,尽心用心耐心的服务他们,搀扶着,温柔的解释指导,搀扶着,我也闻到了所谓的老人味,这是我未曾闻过的,嗯,味道确实很不好,但是我就是个服务志愿者,我上手了,我也因为我直接上手而给自己一个赞,同时也获得到老人们的真诚夸赞,这是双向的情感互动,我乐在其中。

我们终有老的一天,我希望那时候,我的孩子们可以有人陪着我做体检,不然我依然会骂最脏的脏话,我也希望那时候我能遇见另一个我。

呃,此文不表我的爱心,我只是帮助完成我父亲卫健的医院工作,当然,我不否认在当下,我的爱心确实存在。

装修记:石材进度完成,接下来木作进场。

2025-07-30 18:57:20

电子垃圾堆柜子里有三台电脑,一台华为Matebook 14,网卡坏了,驱动怎么更新都无果,搜不到WiFi ,可能重装一下系统就可以了,但是我懒啊,丢进柜子里了;一台MacBook Pro 2017,呃,十次有九次硬盘读取错误,开机显示文件夹,听说是版本通病,半年前被我扔进冷宫了;整理家里老旧物件的时候,淘出来一台微软Surface Book 2,这台老家伙应该是N多年前路过香港买的,原本开不了机,在海鲜市场买了电池和电源,它启动起来的那一刻,我有点感动,心想这不得再伴我苦战个两三年,看来期望值还是太高了,上个月偶发键盘N/M键故障,敲打带一堆符号,呃,而后不是偶发,是完全坏透,心想要不再闲鱼买个键盘回来自己换吧,呃,我懒,我不想再折腾了,丢进去柜子了。

所以已经好久没有敲电脑了,好久没有更新博客了,我叨叨了这么长篇幅,就是为了解释我为啥最近没更新,呃,不是我偷懒,是没电脑用啊,现在用手机更新,真的很不习惯,也很不方便。

最近工地比较忙,所以在老家待了很长一段时间跟进,直到娃儿要期末考了,提前一周回厦门窝家里,待命辅导。

……

上面的内容是7月4号打的文字,没打完就草稿了,嗯,七月份的工期不能拖到8月份更新,好吧,续写。

客厅公区效果图

先更新下石材部分内容吧,这个装修基本亲力亲为,都有参与到。

这些背景奢石真心搞得我有点累,加工厂问题不断,石英材质太硬又脆,版面又大,运输只能分成好几车好几趟运输,单运输和保险就花了一万多。

运过来一路坎坷,卸下来更是头疼得很,农村丘陵地方,虽然路修到了家门口,路却是又弯又陡,7米多长的货车根本就开不下去,其实可能司机师傅胆子大一点点就开下去了,但是人家看了下边上的悬崖,愣是不敢,咱也不敢逼人家不是。

只能想办法找了台农用车卸装分趟运到家门口,想用吊车,吊车可以在大路上卸装到小车上,但是小车上要卸下来,吊车也下不去,所以作罢。叫来了叉车,叉车师傅也是看了一下路,说它的刹车刹不住,太陡了,他也下不去,然后扭头就说要走了,空车来没工作,还得给他500元加油费。

然后叫来一台轮拐,就是挖掘机,我们这叫怪手,司机是敢,但是它的机械臂拉伸的力度不够,石头太重,差点就把石头给磕碎了。

最后,叫来了装载机,就是推土车,呃,好不容易,唉。

大家都不专业,一群人忙活了四个多小时才弄完,唉,然后磕破磕断了好多大理石,呃,加上原来大理石有些阴阳色,版面不好看的切掉,只能去买新的白玉兰石材,又补了几万块的石头材料费。

好吧,好事多磨,慢慢来吧!

石头卸下来了,就火急火燎的要弄背景灯板,之前想着直接找给我做楼梯感应灯带的小伙子做吧,人还算实诚,妈蛋,实诚,实诚个鬼,我想用品牌的灯源,他硬给我安利推荐一个我也没听过的牌子,而且价格也不算便宜。

中间还闹了不愉快,我送娃儿去上钢琴课的时候,得闲就搜了一下,他介绍的品牌,唉,小公司小杂牌,我就想说要不用外墙灯光的光源吧,三雄极光,人家好歹是上市公司,应该比较有保障。

所以就找三雄极光询了价,人家产品价格便宜一半,安装费也很行情,只要2000元。这个小伙子要安装费6000元,我又不傻,我也是会比价的好吧,心想找人家跑现场看了,优先想让他做,看我买三雄极光的灯带,安装费也2000元,他做吗?他不同意,我就答应三雄极光的人了,鉴于此情况,我还发了300红包给那师傅,人家还不高兴了,意思是我不厚道,说给他做,最后不给他做,还给我闹脾气了,说红包他不收,不收个毛,最后红包和订货的运费,他都收了。

算了算了算了,格局太小,不和他计较了,他这得罪我了,我们村的项目,他是一个都别想拿了。

灯光效果我自己设计的,我弄了两个色温,一个3000k,一个4000K,灯带底板用的亚克力瓷白板,然后每隔5cm跳着贴一条灯带,这样同色温的每条灯带距离10cm,底板和石材距离10cm,出光效果不错不错。

辛苦三雄极光的两位小兄弟了,我们一起弄了两天才完成,唉,2000安装费,那他们俩的工薪就每人每天500元,确实不好赚。

灯光好了,就到石材上墙了,呃,这个我虽然我没有参与,因为我怕我碍手碍脚的帮倒忙。

各位师傅辛苦了,每块石头500多斤,好几个个师傅一二一二的才弄好,一块石头的上墙费5000元,这五块奢石就花了25000元,好吧,好吧,这钱该人家赚,真的太不容易。

师傅安装完工后,露出了好高兴的表情,终于完工了。

接下来,嗯,半成品展示时间,我是挺满意的。

客厅背景白色潘多拉发光效果,呃,照片像素损了。

门厅入户潘多拉,这块最贵,上面好多玉化的云母片。

门厅的紫气东来,这块也是可以透光的,但是如果透光就和大理石门框不搭配了,算了,这块就没透光,也很好看,到时候放一块玄关几,上面打射灯也行。

楼梯的这块蓝天玉奢石太赞了,完全满足我期待的效果,这块石头刚出来,那会没什么设计师采用,最近发现抖音很多设计师开始用上了这块石材,价格也水涨船高了,嘿嘿,我眼光可以。

视频像素还是压缩丢了,唉,不然真真好看,等后面竣工再用好设备出片不压缩。

木作师傅是我亲三叔,他做木工三十几年了,我就全部交给他负责了,买的几套房子装修也都是他负责,住了这么久,一点毛病都挑不出来的那种,所以我就比较没回去巡查了,交给他就好了,过几天再回去看看,家具柜子也准备全部手工制作,不想用全屋定制。

夜色属于孤独的盛宴,黑暗与光影交织,灵魂在低沉中沉淀。

2025-06-14 01:46:17

夜幕低垂,夜色将城市浸染成一片深邃的黑。很久没有听哥特金属类的歌单了,落地窗外街灯昏黄的光晕,就像一朵开败了的花,我知道它还是花,只是它还可以是花吗?随着风吹动的枝芽,让光影渐渐的迷离,我以为我能看清,只是我以为。

我的世界里,哥特音乐的低沉旋律缓缓流淌,如同夜色本身的呼吸,低回、缠绵、又带着一丝无法言喻的悲怆。低音如同深夜里幽灵的叹息,高音则像寒风中孤寂的哭泣。那些尖锐的音符,刺破了夜的宁静,却又精准地触碰到了我灵魂深处最阴暗的角落。

无法言说的孤独,放大、渲染,直至凝成实体。

我好像迷路了,在迷离的世界里游荡,我找不到人和我说话,连自己的影子都找不到。

早知道当初… 呃,电台新版发布了。

2025-06-05 05:18:34

书到用时方恨少,早知道当初年少就不应该沉迷于QQ聊天泡妞,就应该多买几本技术类教程书籍多看看…

我不知道今天抽什么风,突然间就想把电台的PC端和H5端给完善一下,然后,我太自信了,呃,这完全是在我能力之外的工作啊!

从昨天AM10:42到现在AM3:40,几个小时我算算,呃,十六还是十七个小时,啊啊啊,我现在脑壳短路,算不明白了。中途就吃了晚饭半个小时,然后辅导娃儿作业一个小时,其余时间我就抱着电脑死命磕磕磕,我的老腰啊……

想法一大堆,但是奈何水平不够,总是碰到一大堆问题,借助Gemini才勉勉强强完成。

电台页面:https://www.edzbe.com/fm/top

去年搞了这个电台页面,用的还是七八九年前的jplayer播放器,直接用代码套来套去整出来的,但是这个播放器源码太老了,总是能遇到一大堆乱七八糟的问题,索性就用Jquery从新搞一个,前端后端的水平都有限,UI啥的也是这里找那里抄,唉。

电台切换页面也得弄一下,我个小破站,为什么要弄这么多歌曲分类,唉,我真的是服了自己。

这个页面抄的QQ音乐的界面,呃,老实交代了。

因为歌曲较多,每次加载json,如果全部加载的话,那网页就卡得不要不要的,设置了获取100首歌,每次刷新随机替换一批。

封装成桌面端了,下载地址:EdzbeFm_0.0.1_x64-setup.exe

H5版折腾了最长时间,还有个问题就是滑动歌曲列表的时候,悬浮的播放器没办法移到最底部,会遮挡到歌曲列表,这个我实在是搞不定,唉,就这样将就吧!

20250606补充,呃,说将就吧,浑身不得劲,唉,这该死的强迫症。

H5版播放器增加了响应式自适应,现在可以把悬浮的播放器根据页面滑动加载缩放到网页底部了,不会遮挡了,呃,果然,方法总比问题多,再坚持坚持就解决了。

H5手机版首页做了个电台的入口,按照喜怒哀乐四种情绪把电台分类给分开。

分享下电脑端和手机端的播放器源码吧,需要的自取。

电脑端:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8"/>
  <title>电脑版黑胶唱片音乐播放器</title>
  <style>
    @import url(https://fonts.googleapis.com/css?family=Raleway:400,300,700);
    *, *:before, *:after {
      box-sizing: border-box;
    }

    body {
      background-color: #fef29c;
     color: #515044;
     font-family: "Raleway", sans-serif;
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0;
    }

    .music-player-container {
      -webkit-transform: translate(-50%, -50%);
      -moz-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
      -o-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
      display: inline-block;
      height: 370px;
      position: absolute;
      min-width: 460px;
      left: 50%;
      top: 50%;
    }
    .music-player-container:after {
      -webkit-filter: blur(8px);
      filter: blur(8px);
      background-color: rgba(0, 0, 0, 0.8);
      bottom: -2px;
      content: " ";
      display: block;
      height: 10px;
      left: 19px;
      position: absolute;
      transform: rotate(-3deg);
      width: 70%;
      z-index: 0;
    }

    .music-player {
      background-color: #fff;
     height: 370px;
      padding: 40px 250px 40px 40px;
      position: absolute;
      text-align: right;
      width: 460px;
      z-index: 3;
    }

    .player-content-container {
      -webkit-transform: translateY(-50%);
      -moz-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
      -o-transform: translateY(-50%);
      transform: translateY(-50%);
      top: 50%;
      position: relative;
    }

    .artist-name {
      font-size: 24px;
      font-weight: 200;
      margin: 0 0 0.75em 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 170px;
    }

    .album-title {
      font-weight: 200;
      font-size: 18px;
      margin: 0 0 1.75em 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 170px;
    }

    .song-title {
      font-size: 28px;
      font-weight: normal;
      margin: 0 0 0.5em 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 170px;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      padding: 5px 0;
    }
   
    .song-title:hover {
      color: #878787;
   }
   
    .song-title::after {
      content: "点击打开链接";
      position: absolute;
      bottom: -20px;
      left: 0;
      font-size: 10px;
      opacity: 0;
      transition: opacity 0.3s ease;
      background: rgba(0,0,0,0.7);
      color: white;
      padding: 2px 5px;
      border-radius: 3px;
      white-space: nowrap;
    }
   
    .song-title:hover::after {
      opacity: 1;
    }

    .album {
      box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.65);
      height: 315px;
      margin-left: 250px;
      margin-top: 27px;
      position: relative;
      width: 315px;
      z-index: 10;
    }

    .album-art {
      height: 315px;
      position: relative;
      width: 315px;
      z-index: 10;
      background-size: cover;
      background-position: center;
    }

    .vinyl {
      -webkit-animation: spin 2s linear infinite;
      -moz-animation: spin 2s linear infinite;
      animation: spin 2s linear infinite;
      -webkit-transition: all 500ms;
      -moz-transition: all 500ms;
      transition: all 500ms;
      background-position: center, center;
      background-size: cover, 40% auto;
      background-repeat: no-repeat;
      border-radius: 100%;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
      height: 300px;
      left: 0;
      position: absolute;
      top: 5px;
      width: 300px;
      z-index: 5;
      will-change: transform, left;
      animation-play-state: paused; /* 初始状态为暂停 */
    }
    .is-playing .vinyl {
      left: 52%;
      animation-play-state: running; /* 播放时运行动画 */
    }

    .music-player-controls {
      text-align: center;
    }

    [class^=control-] {
      -webkit-filter: brightness(95%);
      filter: brightness(95%);
      border-radius: 100%;
      display: inline-block;
      height: 44px;
      margin: 0 3px;
      width: 44px;
    }
    [class^=control-]:hover {
      -webkit-filter: brightness(85%);
      filter: brightness(85%);
      cursor: pointer;
    }

    .control-play {
      background: transparent url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/play.svg") center/cover no-repeat;
    }
    .is-playing .control-play {
      background: transparent url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/pause.svg") center/cover no-repeat;
    }

    .control-forwards {
      background: transparent url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/forwards.svg") center/cover no-repeat;
    }

    .control-back {
      background: transparent url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/backwards.svg") center/cover no-repeat;
    }

    @-webkit-keyframes spin {
      0% {
        -webkit-transform: rotate(0deg);
      }
      100% {
        -webkit-transform: rotate(360deg);
      }
    }
    @-moz-keyframes spin {
      0% {
        -moz-transform: rotate(0deg);
      }
      100% {
        -moz-transform: rotate(360deg);
      }
    }
    @keyframes spin {
      0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
      }
      100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
      }
    }
   
    /* 播放控制面板 */
    .player-controls {
      margin-top: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
   
    .progress-container {
      width: 200px;
      height: 4px;
      background: #d3d3d3;
     border-radius: 2px;
      margin-bottom: 8px;
      cursor: pointer;
      position: relative;
    }
   
    .progress-bar {
      height: 100%;
      background: #515044;
     border-radius: 2px;
      transition: width 0.1s linear;
    }
   
    .time-display {
      font-size: 14px;
      color: #666;
     width: 100%;
      display: flex;
      justify-content: space-between;
    }
   
    .volume-container {
      display: flex;
      align-items: center;
      margin-top: 10px;
      width: 200px;
    }
   
    .volume-icon {
      margin-right: 10px;
      width: 20px;
      text-align: center;
    }
   
    .volume-slider {
      flex: 1;
      height: 4px;
      background: #d3d3d3;
     border-radius: 2px;
      cursor: pointer;
      position: relative;
    }
   
    .volume-level {
      height: 100%;
      background: #515044;
     border-radius: 2px;
    }
   
    .playlist-btn {
      background: none;
      border: none;
      color: #515044;
     cursor: pointer;
      font-size: 14px;
      margin-top: 15px;
      text-decoration: underline;
      padding: 5px 10px;
      border-radius: 4px;
      transition: all 0.3s ease;
    }
   
    .playlist-btn:hover {
      background: rgba(52, 152, 219, 0.1);
    }
   
    /* 播放列表样式 */
    .playlist-container {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 100;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }
   
    .playlist-container.active {
      opacity: 1;
      pointer-events: all;
    }
   
    .playlist-content {
      background: #fff;
     width: 80%;
      max-width: 500px;
      max-height: 80vh;
      padding: 20px;
      border-radius: 8px;
      overflow-y: auto;
      box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    }
   
    .playlist-header {
      font-size: 24px;
      margin-bottom: 15px;
      color: #515044;
     border-bottom: 1px solid #ddd;
     padding-bottom: 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
   
    .playlist-item {
      padding: 12px;
      border-bottom: 1px solid #eee;
     cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
   
    .playlist-item:hover {
      background: #f0f0f0;
   }
   
    .playlist-item.active {
      background: #fef29c;
     font-weight: bold;
    }
   
    .playlist-info {
      flex: 1;
    }
   
    .song-name {
      font-size: 16px;
      margin-bottom: 5px;
      cursor: pointer;
      color: #000000;
     transition: all 0.2s ease;
    }
   
    .song-name:hover {
      text-decoration: underline;
      color: #878787;
   }
   
    .song-singer {
      font-size: 14px;
      color: #666;
   }
   
    .close-btn {
      position: absolute;
      top: 20px;
      right: 20px;
      background: transparent;
      border: none;
      color: white;
      font-size: 24px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
   
    .close-btn:hover {
      transform: scale(1.2);
      color: #f1c40f;
   }
   
    .song-link-btn {
      background: #5c5c5c;
     color: white;
      border: none;
      border-radius: 4px;
      padding: 5px 10px;
      cursor: pointer;
      font-size: 12px;
      transition: all 0.3s ease;
    }
   
    .song-link-btn:hover {
      background: #000000;
   }
   
    /* 响应式设计 */
    @media (max-width: 600px) {
      .music-player-container {
        transform: translate(-50%, -50%) scale(0.8);
      }
     
      .playlist-content {
        width: 90%;
      }
    }
     /* 提示信息 */
    .click-outside-hint {
      position: absolute;
      bottom: 15px;
      left: 0;
      width: 100%;
      text-align: center;
      font-size: 12px;
      color: #999;
     font-style: italic;
    }
  </style>
</head>
<body>
  <!-- 移除了初始的 is-playing 类 -->
  <div class="music-player-container">
    <div class="music-player">
      <div class="player-content-container">
        <h1 class="song-title">歌曲标题</h1>
        <h2 class="artist-name">歌手</h2>
        <h3 class="album-title">专辑</h3>
       
        <div class="music-player-controls">
          <div class="control-back"></div>
          <div class="control-play"></div>
          <div class="control-forwards"></div>
        </div>
       
        <div class="player-controls">
          <div class="progress-container">
            <div class="progress-bar" style="width: 0%"></div>
          </div>
          <div class="time-display">
            <span class="current-time">0:00</span>
            <span class="total-time">0:00</span>
          </div>
         
          <div class="volume-container">
            <div class="volume-icon">🔊</div>
            <div class="volume-slider">
              <div class="volume-level" style="width: 80%"></div>
            </div>
          </div>
         
          <button class="playlist-btn">播放列表 (4)</button>
        </div>
      </div>
    </div>

    <div class="album">
      <div class="album-art"></div>
      <div class="vinyl"></div>
    </div>
  </div>
 
  <div class="playlist-container">
    <button class="close-btn">×</button>
    <div class="playlist-content">
      <div class="playlist-header">
        <span>播放列表</span>
        <span>当前歌曲: <span id="current-song-indicator">1</span></span>
      </div>
      <div class="playlist-items">
        <!-- 播放列表内容由JS生成 -->
      </div>
      <div class="click-outside-hint">点击播放列表外部区域关闭</div>
    </div>
  </div>

  <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
  <script>
   // 歌曲数据
    const songs = [
      {
        name: "归",
        singer: "龙井",
        album: "龙井摇滚1",
        path: "https://edzbecom.edzbe.com/Music/2014031305281167131.mp3",
        image: "https://www.edzbe.com/wp-content/uploads/2010/10/15102-150x150.jpg",
        url: "https://www.example.com/song1"
      },
      {
        name: "Tu Phir Se Aana",
        singer: "Raftaar x Salim Merchant x Karma",
        album: "龙井摇滚2",
        path: "https://mp3.vlcmusic.com/download.php?track_id=34213&format=320",
        image: "https://1.bp.blogspot.com/-kX21dGUuTdM/X85ij1SBeEI/AAAAAAAAKK4/feboCtDKkls19cZw3glZWRdJ6J8alCm-gCNcBGAsYHQ/s16000/Tu%2BAana%2BPhir%2BSe%2BRap%2BSong%2BLyrics%2BBy%2BRaftaar.jpg",
        url: "https://www.example.com/song2"
      },
      {
        name: "时间里的",
        singer: "马頔",
        album: "龙井摇滚3",
        path: "https://edzbecom.edzbe.com/Music/2015080304061065494.mp3",
        image: "https://www.edzbe.com/wp-content/uploads/2015/08/13116882321422539101.jpg",
        url: "https://www.example.com/song15"
      },
      {
        name: "Feeling You",
        singer: "Raftaar x Harjas",
        album: "龙井摇滚4",
        path: "https://mp3.filmisongs.com/go.php?id=Damn%20Song%20Raftaar%20Ft%20KrSNa.mp3",
        image: "https://a10.gaanacdn.com/gn_img/albums/YoEWlabzXB/oEWlj5gYKz/size_xxl_1586752323.webp",
        url: "https://www.example.com/song18"
      }
    ];
    </script>
  <script>
    (function($) {
      $(document).ready(function() {
        // 创建音频对象
        const audio = new Audio();
        let currentSongIndex = 0;
        let isPlaying = false;
       
        // 获取DOM元素
        const playerContainer = $('.music-player-container');
        const artistName = $('.artist-name');
        const albumTitle = $('.album-title');
        const songTitle = $('.song-title');
        const albumArt = $('.album-art');
        const vinyl = $('.vinyl');
        const backBtn = $('.control-back');
        const playBtn = $('.control-play');
        const forwardBtn = $('.control-forwards');
        const progressBar = $('.progress-bar');
        const progressContainer = $('.progress-container');
        const currentTimeEl = $('.current-time');
        const totalTimeEl = $('.total-time');
        const volumeSlider = $('.volume-level');
        const volumeContainer = $('.volume-slider');
        const playlistBtn = $('.playlist-btn');
        const playlistContainer = $('.playlist-container');
        const playlistItems = $('.playlist-items');
        const currentSongIndicator = $('#current-song-indicator');
       
        // 初始化播放器
        function initPlayer() {
          // 确保初始状态正确
          playerContainer.removeClass('is-playing');
          vinyl.css('animation-play-state', 'paused');
         
          // 加载第一首歌
          loadSong(currentSongIndex);
         
          // 初始化播放列表
          renderPlaylist();
         
          // 为歌曲标题添加点击事件
          songTitle.on('click', function() {
            const currentSong = songs[currentSongIndex];
            window.open(currentSong.url, '_blank');
          });
         
          // 添加点击外部关闭播放列表的功能
          addClickOutsideClose();
        }
       
        // 添加点击外部关闭播放列表的功能
        function addClickOutsideClose() {
          // 点击播放列表外部区域关闭
          playlistContainer.on('click', function(e) {
            // 如果点击的是背景(不是播放列表内容区域)
            if (e.target === this) {
              togglePlaylist();
            }
          });
         
          // 阻止播放列表内容区域的点击事件冒泡
          $('.playlist-content').on('click', function(e) {
            e.stopPropagation();
          });
        }
       
        // 加载歌曲
        function loadSong(index) {
          currentSongIndex = index;
          const song = songs[index];
         
          // 更新UI
          artistName.text(song.singer);
          albumTitle.text(song.album);
          songTitle.text(`"${song.name}"`);
          albumArt.css('background-image', `url(${song.image})`);
         
          // 更新唱片背景
          vinyl.css('background-image',
                    `url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/vinyl.png'), url('${song.image}')`);
         
          // 设置音频源
          audio.src = song.path;
         
          // 重置进度条
          progressBar.css('width', '0%');
          currentTimeEl.text('0:00');
         
          // 更新当前歌曲指示器
          currentSongIndicator.text(index + 1);
         
          // 加载完成后更新总时长
          audio.addEventListener('loadedmetadata', function() {
            const totalMinutes = Math.floor(audio.duration / 60);
            const totalSeconds = Math.floor(audio.duration % 60);
            totalTimeEl.text(`${totalMinutes}:${totalSeconds < 10 ? '0' : ''}${totalSeconds}`);
          });
         
          // 更新播放列表高亮
          updatePlaylistHighlight();
         
          // 自动播放当前歌曲(如果正在播放)
          if (isPlaying) {
            audio.play();
          }
        }
       
        // 播放/暂停功能
        function togglePlayback() {
          if (isPlaying) {
            audio.pause();
            playerContainer.removeClass('is-playing');
            vinyl.css('animation-play-state', 'paused');
          } else {
            audio.play();
            playerContainer.addClass('is-playing');
            vinyl.css('animation-play-state', 'running');
          }
          isPlaying = !isPlaying;
        }
       
        // 上一首
        function prevSong() {
          currentSongIndex = (currentSongIndex - 1 + songs.length) % songs.length;
          loadSong(currentSongIndex);
          if (isPlaying) {
            audio.play();
          }
        }
       
        // 下一首
        function nextSong() {
          currentSongIndex = (currentSongIndex + 1) % songs.length;
          loadSong(currentSongIndex);
          if (isPlaying) {
            audio.play();
          }
        }
       
        // 更新进度条
        function updateProgress(e) {
          const { duration, currentTime } = e.target;
          const progressPercent = (currentTime / duration) * 100;
          progressBar.css('width', `${progressPercent}%`);
         
          // 更新当前时间
          const currentMinutes = Math.floor(currentTime / 60);
          const currentSeconds = Math.floor(currentTime % 60);
          currentTimeEl.text(`${currentMinutes}:${currentSeconds < 10 ? '0' : ''}${currentSeconds}`);
        }
       
        // 设置进度
        function setProgress(e) {
          const width = progressContainer.width();
          const clickX = e.offsetX;
          const duration = audio.duration;
         
          audio.currentTime = (clickX / width) * duration;
        }
       
        // 设置音量
        function setVolume(e) {
          const width = volumeContainer.width();
          const clickX = e.offsetX;
          const volume = clickX / width;
         
          audio.volume = volume;
          volumeSlider.css('width', `${volume * 100}%`);
        }
       
        // 渲染播放列表
        function renderPlaylist() {
          playlistItems.empty();
         
          songs.forEach((song, index) => {
            const playlistItem = $('<div>').addClass('playlist-item').data('index', index).html(`
              <div class="playlist-info">
                <div class="song-name" data-url="${song.url}">${song.name}</div>
                <div class="song-singer">${song.singer}</div>
              </div>
              <button class="song-link-btn" data-url="${song.url}">歌曲详情</button>
            `);
           
            // 绑定播放列表项的点击事件
            playlistItem.on('click', function() {
              const index = $(this).data('index');
              loadSong(index);
              if (!isPlaying) {
                togglePlayback();
              }
            });
           
            // 绑定歌曲名称的点击事件  这个我先隐藏了
    //        playlistItem.find('.song-name').on('click', function(e) {
    //          e.stopPropagation();
    //          window.open($(this).data('url'), '_blank');
    //        });
           
            // 绑定按钮的点击事件
            playlistItem.find('.song-link-btn').on('click', function(e) {
              e.stopPropagation();
              window.open($(this).data('url'), '_blank');
            });
           
            playlistItems.append(playlistItem);
          });
         
          // 更新播放列表高亮
          updatePlaylistHighlight();
        }
       
        // 更新播放列表高亮
        function updatePlaylistHighlight() {
          $('.playlist-item').removeClass('active');
          $('.playlist-item').eq(currentSongIndex).addClass('active');
        }
       
        // 显示/隐藏播放列表
        function togglePlaylist() {
          playlistContainer.toggleClass('active');
        }
       
        // 事件监听
        playBtn.on('click', togglePlayback);
        backBtn.on('click', prevSong);
        forwardBtn.on('click', nextSong);
        playlistBtn.on('click', togglePlaylist);
        $('.close-btn').on('click', togglePlaylist);
       
        // 进度条控制
        progressContainer.on('click', setProgress);
        volumeContainer.on('click', setVolume);
       
        // 音频事件
        audio.addEventListener('timeupdate', updateProgress);
        audio.addEventListener('ended', nextSong);
       
        // 初始化播放器
        initPlayer();
      });
    })(jQuery);
  </div></script>
</body>
</html>

手机端:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8"/>
  <title>耳朵电台手机端播放器</title>
  <link rel="stylesheet" href="./style.css"/>

</head>
<body>
<!-- partial:index.partial.html -->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" integrity="sha512-HK5fgLBL+xu6dm/Ii3z4xhlSUyZgTT9tuc/hSrtw6uzJOvgRr2a9jyxxT1ely+B+xFAmJKVSTbpM/CuL7qxO8w==" crossorigin="anonymous" />
<link rel="preconnect" href="https://fonts.gstatic.com"/>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet"/>

<div class="player">
  <!-- Dashboard -->
  <div class="dashboard">
    <!-- Header -->
    <header>
      <h4>Now playing:</h4>
      <h2>String 57th & 9th</h2>
    </header>

    <!-- CD -->
    <div class="cd">
      <div class="cd-thumb">
      </div>
    </div>

    <!-- Control -->
    <div class="control">
      <div class="btn btn-repeat">
        <i class="fas fa-redo"></i>
      </div>
      <div class="btn btn-prev">
        <i class="fas fa-step-backward"></i>
      </div>
      <div class="btn btn-toggle-play">
        <i class="fas fa-pause icon-pause"></i>
        <i class="fas fa-play icon-play"></i>
      </div>
      <div class="btn btn-next">
        <i class="fas fa-step-forward"></i>
      </div>
      <div class="btn btn-random">
        <i class="fas fa-random"></i>
      </div>
    </div>

    <input id="progress" class="progress" type="range" value="0" step="1" min="0" max="100"/>

    <audio id="audio" src=""></audio>
  </div>

  <!-- Playlist -->
  <div class="playlist">
  </div>
</div>

<!-- partial -->

<script>
const songs = [
  {
    name: "镜子中",
    singer: "扭曲的机器",
    path: "https://edzbecom.oss-cn-hangzhou.aliyuncs.com/Music/2014031305281167131.mp3",
    image: "https://www.edzbe.com/wp-content/uploads/2010/10/15102-150x150.jpg"
  },
  {
    name: "Tu Phir Se Aana",
    singer: "Raftaar x Salim Merchant x Karma",
    path: "https://mp3.vlcmusic.com/download.php?track_id=34213&format=320",
    image:
      "https://1.bp.blogspot.com/-kX21dGUuTdM/X85ij1SBeEI/AAAAAAAAKK4/feboCtDKkls19cZw3glZWRdJ6J8alCm-gCNcBGAsYHQ/s16000/Tu%2BAana%2BPhir%2BSe%2BRap%2BSong%2BLyrics%2BBy%2BRaftaar.jpg"
  },
  {
    name: "时间里的",
    singer: "马頔",
    path: "https://edzbecom.oss-cn-hangzhou.aliyuncs.com/Music/2015080304061065494.mp3",
    image: "https://www.edzbe.com/wp-content/uploads/2015/08/13116882321422539101.jpg"
  },
  {
    name: "Feeling You",
    singer: "Raftaar x Harjas",
    path: "https://mp3.filmisongs.com/go.php?id=Damn%20Song%20Raftaar%20Ft%20KrSNa.mp3",
    image:
      "https://a10.gaanacdn.com/gn_img/albums/YoEWlabzXB/oEWlj5gYKz/size_xxl_1586752323.webp"
  }
];

</script>

<!--音频数据一定要在APP.JS之前加载-->
<script src="./app.js"></script>
</body>
</html>

手机端 App.js 文件代码:

const $ = document.querySelector.bind(document);
const $$ = document.querySelectorAll.bind(document);

const PlAYER_STORAGE_KEY = "F8_PLAYER";

const player = $(".player");
const cd = $(".cd");
const heading = $("header h2");
const cdThumb = $(".cd-thumb");
const audio = $("#audio");
const playBtn = $(".btn-toggle-play");
const progress = $("#progress");
const prevBtn = $(".btn-prev");
const nextBtn = $(".btn-next");
const randomBtn = $(".btn-random");
const repeatBtn = $(".btn-repeat");
const playlist = $(".playlist");

const app = {
  currentIndex: 0,
  isPlaying: false,
  isRandom: false,
  isRepeat: false,
  config: {},
  // (1/2) 解注释以下代码行以使用localStorage
  // config: JSON.parse(localStorage.getItem(PlAYER_STORAGE_KEY)) || {},
  songs: [], // 从data.js文件中导入歌曲数据
  setConfig: function (key, value) {
    this.config[key] = value;
    // (2/2) 解注释以下代码行以使用localStorage
    // localStorage.setItem(PlAYER_STORAGE_KEY, JSON.stringify(this.config));
  },
  render: function () {
    const htmls = this.songs.map((song, index) => {
      return `
                        <div class="song ${
                          index === this.currentIndex ? "
active" : ""
                        }"
data-index="${index}">
                            <div class="thumb"
                                style="background-image: url('${song.image}')">
                            </div>
                            <div class="body">
                                <h3 class="title">${song.name}</h3>
                                <p class="author">${song.singer}</p>
                            </div>
                            <div class="option">
                                <i class="fas fa-ellipsis-h"></i>
                            </div>
                        </div>
                    `;
    });
    playlist.innerHTML = htmls.join("");
  },
  defineProperties: function () {
    Object.defineProperty(this, "currentSong", {
      get: function () {
        return this.songs[this.currentIndex];
      }
    });
  },
  handleEvents: function () {
    const _this = this;
    const cdWidth = cd.offsetWidth;

    // 处理CD旋转/停止
    const cdThumbAnimate = cdThumb.animate([{ transform: "rotate(360deg)" }], {
      duration: 10000, // 10秒
      iterations: Infinity
    });
    cdThumbAnimate.pause();

    // 处理CD放大/缩小
    document.onscroll = function () {
      const scrollTop = window.scrollY || document.documentElement.scrollTop;
      const newCdWidth = cdWidth - scrollTop;

      cd.style.width = newCdWidth > 0 ? newCdWidth + "px" : 0;
      cd.style.opacity = newCdWidth / cdWidth;
    };

    // 处理点击播放
    playBtn.onclick = function () {
      if (_this.isPlaying) {
        audio.pause();
      } else {
        audio.play();
      }
    };

    // 当歌曲播放时
    audio.onplay = function () {
      _this.isPlaying = true;
      player.classList.add("playing");
      cdThumbAnimate.play();
    };

    // 当歌曲暂停时
    audio.onpause = function () {
      _this.isPlaying = false;
      player.classList.remove("playing");
      cdThumbAnimate.pause();
    };

    // 当歌曲进度改变时
    audio.ontimeupdate = function () {
      if (audio.duration) {
        const progressPercent = Math.floor(
          (audio.currentTime / audio.duration) * 100
        );
        progress.value = progressPercent;
      }
    };

    // 处理歌曲拖动
    progress.onchange = function (e) {
      const seekTime = (audio.duration / 100) * e.target.value;
      audio.currentTime = seekTime;
    };

    // 下一首歌曲
    nextBtn.onclick = function () {
      if (_this.isRandom) {
        _this.playRandomSong();
      } else {
        _this.nextSong();
      }
      audio.play();
      _this.render();
      _this.scrollToActiveSong();
    };

    // 上一首歌曲
    prevBtn.onclick = function () {
      if (_this.isRandom) {
        _this.playRandomSong();
      } else {
        _this.prevSong();
      }
      audio.play();
      _this.render();
      _this.scrollToActiveSong();
    };

    // 处理随机播放开关
    randomBtn.onclick = function (e) {
      _this.isRandom = !_this.isRandom;
      _this.setConfig("isRandom", _this.isRandom);
      randomBtn.classList.toggle("active", _this.isRandom);
    };

    // 处理单曲循环
    repeatBtn.onclick = function (e) {
      _this.isRepeat = !_this.isRepeat;
      _this.setConfig("isRepeat", _this.isRepeat);
      repeatBtn.classList.toggle("active", _this.isRepeat);
    };

    // 处理音频播放结束后的下一首歌曲
    audio.onended = function () {
      if (_this.isRepeat) {
        audio.play();
      } else {
        nextBtn.click();
      }
    };

    // 监听播放列表点击事件
    playlist.onclick = function (e) {
      const songNode = e.target.closest(".song:not(.active)");

      if (songNode || e.target.closest(".option")) {
        // 处理点击歌曲
        if (songNode) {
          _this.currentIndex = Number(songNode.dataset.index);
          _this.loadCurrentSong();
          _this.render();
          audio.play();
        }

        // 处理点击歌曲选项
        if (e.target.closest(".option")) {
        }
      }
    };
  },
  scrollToActiveSong: function () {
    setTimeout(() => {
      $(".song.active").scrollIntoView({
        behavior: "smooth",
        block: "nearest"
      });
    }, 300);
  },
  loadCurrentSong: function () {
    heading.textContent = this.currentSong.name;
    cdThumb.style.backgroundImage = `url('${this.currentSong.image}')`;
    audio.src = this.currentSong.path;
  },
  loadConfig: function () {
    this.isRandom = this.config.isRandom;
    this.isRepeat = this.config.isRepeat;
  },
  nextSong: function () {
    this.currentIndex++;
    if (this.currentIndex >= this.songs.length) {
      this.currentIndex = 0;
    }
    this.loadCurrentSong();
  },
  prevSong: function () {
    this.currentIndex--;
    if (this.currentIndex < 0) {
      this.currentIndex = this.songs.length - 1;
    }
    this.loadCurrentSong();
  },
  playRandomSong: function () {
    let newIndex;
    do {
      newIndex = Math.floor(Math.random() * this.songs.length);
    } while (newIndex === this.currentIndex);

    this.currentIndex = newIndex;
    this.loadCurrentSong();
  },
  start: function () {
    // 从data.js加载歌曲数据
    this.songs = songs;

    // 将配置从config赋值给应用
    this.loadConfig();

    // 定义对象的属性
    this.defineProperties();

    // 监听/处理事件(DOM事件)
    this.handleEvents();

    // 运行应用时将第一首歌曲信息加载到UI
    this.loadCurrentSong();

    // 渲染播放列表
    this.render();

    // 显示重复和随机按钮的初始状态
    randomBtn.classList.toggle("active", this.isRandom);
    repeatBtn.classList.toggle("active", this.isRepeat);
  }
};

app.start();

手机端 style.css 样式代码:

:root {
  --primary-color: #ec1f55;
 --text-color: #333;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: inherit;
}

body {
  background-color: #f5f5f5;
}

html {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.player {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.player .icon-pause {
  display: none;
}

.player.playing .icon-pause {
  display: inline-block;
}

.player.playing .icon-play {
  display: none;
}

.dashboard {
  padding: 16px 16px 14px;
  background-color: #fff;
 position: fixed;
  top: 0;
  width: 100%;
  max-width: 480px;
  border-bottom: 1px solid #ebebeb;
}

/* HEADER */
header {
  text-align: center;
  margin-bottom: 10px;
}

header h4 {
  color: var(--primary-color);
  font-size: 12px;
}

header h2 {
  color: var(--text-color);
  font-size: 20px;
}

/* CD */
.cd {
  display: flex;
  margin: auto;
  width: 200px;
}

.cd-thumb {
  width: 100%;
  padding-top: 100%;
  border-radius: 50%;
  background-color: #333;
 background-size: cover;
  margin: auto;
}

/* CONTROL */
.control {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 18px 0 8px 0;
}

.control .btn {
  color: #666;
 padding: 18px;
  font-size: 18px;
}

.control .btn.active {
  color: var(--primary-color);
}

.control .btn-toggle-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 24px;
  color: #fff;
 display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
}

.progress {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: #d3d3d3;
 outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}

.progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 6px;
  background-color: var(--primary-color);
  cursor: pointer;
}

/* PLAYLIST */
.playlist {
  margin-top: 408px;
  padding: 12px;
}

.song {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  background-color: #fff;
 padding: 8px 16px;
  border-radius: 5px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.song.active {
  background-color: var(--primary-color);
}

.song:active {
  opacity: 0.8;
}

.song.active .option,
.song.active .author,
.song.active .title {
  color: #fff;
}

.song .thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  margin: 0 8px;
}

.song .body {
  flex: 1;
  padding: 0 16px;
}

.song .title {
  font-size: 18px;
  color: var(--text-color);
}

.song .author {
  font-size: 12px;
  color: #999;
}

.song .option {
  padding: 16px 8px;
  color: #999;
 font-size: 18px;
}

啊啊啊啊啊啊啊,我又想到了,安卓版好久没维护更新了,啊啊啊啊啊啊啊啊啊,当时弄的安卓版还是独立的系统,需要我博客更新一篇音频,安卓后台在更新一遍,啊,双遍工作量,我不玩了,我不玩了。

哎呀,唉,我不玩了,我好饿,我叫了份霸王牛肉面,三点多送来了,凉了,我要去吃了。