微信小程序开发之——婚礼邀请函-邀请函页面(4

地点:北京市海淀区XX路XX酒店

3.2 样式文件(pages/index/index.wxss)

/*播放器 */

.player{

position: fixed; top: 20rpx;right: 20rpx;

z-index: 1;

}

.player>image:first-child{

width: 80rpx;height: 80rpx;

animation: musicRotate 3s linear infinite;

}

.player>image:last-child{

width: 28rpx; height: 80rpx; margin-left: -5px;

}

@keyframes musicRotate{

from{transform:rotate(0deg);}

to{transform: rotate(360deg);}

}

/* 播放暂停 */

.player-play>image:first-child{

animation-play-state: running;

}

.player-play>image:last-child{

animation: musicStart 0.2s linear forwards;

}

.player-pause>image:first-child{

animation-play-state: paused;

}

.player-pause>image:last-child{

animation: musicStop 0.2s linear forwards;

}

@keyframes musicStart{

from{transform: rotate(0deg);}

to {transform: rotate(20deg);}

}

@keyframes musicStop{

from{transform: rotate(20deg);}

to {transform: rotate(0deg);}

}

/* 背景 */

.bg{

width: 100vw;height: 100vh;

}

.content{

width: 100vw;height: 100vh;position: fixed;

display: flex;flex-direction: column;align-items:center ;

}

.content-gif{

width: 19vh;height: 18.6vh;margin-bottom: 1.5vh;

}

.content-title{

font-size: 5vh;color: #ff4c91;text-align: center;

margin-bottom: 2.5vh;

}

.content-avatar image{

width: 24vh;height: 24vh; border: 3px solid #ff4c91;

border-radius: 50%;

}

/* 拨打电话*/

.content-info{

width: 45vw;text-align: center;margin-top: 4vh;

display: flex;align-items: center;

}

.content-wedding{flex: 1;}

.content-wedding>image{

width: 5.5vh;height: 5.5vh;margin-left: 20rpx;

}

.content-name{

color: #ff4c91;font-size: 2.7vh;line-height: 4.5vh;

font-weight: bold;position: relative;

}

.content-name>image{

width: 2.6vh;height: 2.6vh;border: 1px solid #ff4c91;

}

3.3 功能逻辑文件(pagese/index/index.js)

Page({

/**

  • 页面的初始数据

*/

bgm:null,

music_url:‘http://music.163.com/song/media/outer/url?id=419485661.mp3’,

music_coverImgUrl:‘https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2727026051,3456690252&fm=15&gp=0.jpg’,

data: {

isPlayingMusic:false,

},

/**

  • 生命周期函数–监听页面加载

*/

onLoad: function (options) {

},

/**

  • 生命周期函数–监听页面初次渲染完成

*/

onReady: function () {

this.bgm=wx.getBackgroundAudioManager()

// this.bgm.title=‘marry me’

// this.bgm.epname=‘wedding’

// this.bgm.singer=‘singer’

// this.bgm.coverImgUrl=this.music_coverImgUrl

// this.bgm.onCanplay(()=>{

// this.bgm.pause()

// })

// this.bgm.src=this.music_url

},

/**

  • 生命周期函数–监听页面显示

*/

onShow: function () {

},

/**

  • 生命周期函数–监听页面隐藏

*/

onHide: function () {

},

/**

  • 生命周期函数–监听页面卸载

*/

onUnload: function () {

},

/**

  • 页面相关事件处理函数–监听用户下拉动作

*/

onPullDownRefresh: function () {

},

/**

  • 页面上拉触底事件的处理函数

*/

onReachBottom: function () {

},

/**

  • 用户点击右上角分享

*/

onShareAppMessage: function () {

},

play:function(e){

if(this.data.isPlayingMusic){

this.bgm.pause()

}else{

this.bgm.play()

如何做好面试突击,规划学习方向?

面试题集可以帮助你查漏补缺,有方向有针对性的学习,为之后进大厂做准备。但是如果你仅仅是看一遍,而不去学习和深究。那么这份面试题对你的帮助会很有限。最终还是要靠资深技术水平说话。

网上学习 Android的资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。建议先制定学习计划,根据学习计划把知识点关联起来,形成一个系统化的知识体系。

学习方向很容易规划,但是如果只通过碎片化的学习,对自己的提升是很慢的。

我们搜集整理过这几年字节跳动,以及腾讯,阿里,华为,小米等公司的面试题,把面试的要求和技术点梳理成一份大而全的“ Android架构师”面试 Xmind(实际上比预期多花了不少精力),包含知识脉络 + 分支细节。

img

我们在搭建这些技术框架的时候,还整理了系统的高级进阶教程,会比自己碎片化学习效果强太多

《Android学习笔记总结+移动架构视频+大厂面试真题+项目实战源码》点击传送门,即可获取!
个系统化的知识体系。

学习方向很容易规划,但是如果只通过碎片化的学习,对自己的提升是很慢的。

我们搜集整理过这几年字节跳动,以及腾讯,阿里,华为,小米等公司的面试题,把面试的要求和技术点梳理成一份大而全的“ Android架构师”面试 Xmind(实际上比预期多花了不少精力),包含知识脉络 + 分支细节。

[外链图片转存中…(img-FH1V0k9D-1715266015023)]

我们在搭建这些技术框架的时候,还整理了系统的高级进阶教程,会比自己碎片化学习效果强太多

《Android学习笔记总结+移动架构视频+大厂面试真题+项目实战源码》点击传送门,即可获取!

  • 5
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值