diff --git a/.eslintrc.js b/.eslintrc.js
deleted file mode 100644
index 115cc02..0000000
--- a/.eslintrc.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Eslint config file
- * Documentation: https://eslint.org/docs/user-guide/configuring/
- * Install the Eslint extension before using this feature.
- */
-module.exports = {
- env: {
- es6: true,
- browser: true,
- node: true,
- },
- ecmaFeatures: {
- modules: true,
- },
- parserOptions: {
- ecmaVersion: 2018,
- sourceType: 'module',
- },
- globals: {
- wx: true,
- App: true,
- Page: true,
- getCurrentPages: true,
- getApp: true,
- Component: true,
- requirePlugin: true,
- requireMiniProgram: true,
- },
- // extends: 'eslint:recommended',
- rules: {},
-}
diff --git a/README.md b/README.md
index ec8e256..7bf62fc 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,5 @@
-# music
-
-
-
+# music1
+
+
+
+
\ No newline at end of file
diff --git a/app.js b/app.js
deleted file mode 100644
index 1ed57c4..0000000
--- a/app.js
+++ /dev/null
@@ -1,19 +0,0 @@
-// app.js
-App({
- onLaunch() {
- // 展示本地存储能力
- const logs = wx.getStorageSync('logs') || []
- logs.unshift(Date.now())
- wx.setStorageSync('logs', logs)
-
- // 登录
- wx.login({
- success: res => {
- // 发送 res.code 到后台换取 openId, sessionKey, unionId
- }
- })
- },
- globalData: {
- userInfo: null
- }
-})
diff --git a/app.json b/app.json
index 47392ea..271e7e3 100644
--- a/app.json
+++ b/app.json
@@ -1,13 +1,7 @@
{
"pages":[
"pages/index/index",
- "pages/logs/logs"
- ],
- "window":{
- "navigationBarBackgroundColor": "#fff",
- "navigationBarTitleText": "音乐",
- "navigationBarTextStyle": "black"
- },
- "style": "v2",
- "sitemapLocation": "sitemap.json"
+ "pages/test/test"
+ ]
+
}
diff --git a/app.wxss b/app.wxss
deleted file mode 100644
index 42d75c3..0000000
--- a/app.wxss
+++ /dev/null
@@ -1,10 +0,0 @@
-/* *app.wxss*
-.container {
- height: 100%;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: space-between;
- padding: 200rpx 0;
- box-sizing: border-box;
-} */
diff --git a/pages/index/images/01.png b/pages/images/01.png
similarity index 100%
rename from pages/index/images/01.png
rename to pages/images/01.png
diff --git a/pages/index/images/02.png b/pages/images/02.png
similarity index 100%
rename from pages/index/images/02.png
rename to pages/images/02.png
diff --git a/pages/index/images/02stop.png b/pages/images/02stop.png
similarity index 100%
rename from pages/index/images/02stop.png
rename to pages/images/02stop.png
diff --git a/pages/index/images/03.png b/pages/images/03.png
similarity index 100%
rename from pages/index/images/03.png
rename to pages/images/03.png
diff --git a/pages/index/images/04.png b/pages/images/04.png
similarity index 100%
rename from pages/index/images/04.png
rename to pages/images/04.png
diff --git a/pages/index/images/05.png b/pages/images/05.png
similarity index 100%
rename from pages/index/images/05.png
rename to pages/images/05.png
diff --git a/pages/index/images/06.png b/pages/images/06.png
similarity index 100%
rename from pages/index/images/06.png
rename to pages/images/06.png
diff --git a/pages/images/MR.jpg b/pages/images/MR.jpg
new file mode 100644
index 0000000..57ab528
Binary files /dev/null and b/pages/images/MR.jpg differ
diff --git a/pages/images/NEW.jpg b/pages/images/NEW.jpg
new file mode 100644
index 0000000..c27ce9a
Binary files /dev/null and b/pages/images/NEW.jpg differ
diff --git a/pages/images/SR.jpg b/pages/images/SR.jpg
new file mode 100644
index 0000000..c8fcfa8
Binary files /dev/null and b/pages/images/SR.jpg differ
diff --git a/pages/index/images/banner.jpg b/pages/images/banner.jpg
similarity index 100%
rename from pages/index/images/banner.jpg
rename to pages/images/banner.jpg
diff --git a/pages/images/banner1.jpg b/pages/images/banner1.jpg
new file mode 100644
index 0000000..1b8b79a
Binary files /dev/null and b/pages/images/banner1.jpg differ
diff --git a/pages/images/banner2.jpg b/pages/images/banner2.jpg
new file mode 100644
index 0000000..2a36638
Binary files /dev/null and b/pages/images/banner2.jpg differ
diff --git a/pages/images/banner3.jpg b/pages/images/banner3.jpg
new file mode 100644
index 0000000..92e29db
Binary files /dev/null and b/pages/images/banner3.jpg differ
diff --git a/pages/images/bf.jpg b/pages/images/bf.jpg
new file mode 100644
index 0000000..a95e680
Binary files /dev/null and b/pages/images/bf.jpg differ
diff --git a/pages/index/images/cover.jpg b/pages/images/cover.jpg
similarity index 100%
rename from pages/index/images/cover.jpg
rename to pages/images/cover.jpg
diff --git a/pages/images/jay.png b/pages/images/jay.png
new file mode 100644
index 0000000..0cd9181
Binary files /dev/null and b/pages/images/jay.png differ
diff --git a/pages/images/mjz.png b/pages/images/mjz.png
new file mode 100644
index 0000000..1efd21c
Binary files /dev/null and b/pages/images/mjz.png differ
diff --git a/pages/images/mm.jpg b/pages/images/mm.jpg
new file mode 100644
index 0000000..564c527
Binary files /dev/null and b/pages/images/mm.jpg differ
diff --git a/pages/images/qlx.png b/pages/images/qlx.png
new file mode 100644
index 0000000..b9ec8b7
Binary files /dev/null and b/pages/images/qlx.png differ
diff --git a/pages/images/syydxb.png b/pages/images/syydxb.png
new file mode 100644
index 0000000..ccf8283
Binary files /dev/null and b/pages/images/syydxb.png differ
diff --git a/pages/index/images/test.jpg b/pages/images/test.jpg
similarity index 100%
rename from pages/index/images/test.jpg
rename to pages/images/test.jpg
diff --git a/pages/images/xyq.jpg b/pages/images/xyq.jpg
new file mode 100644
index 0000000..06d84dd
Binary files /dev/null and b/pages/images/xyq.jpg differ
diff --git a/pages/images/yhm.png b/pages/images/yhm.png
new file mode 100644
index 0000000..e3b6b20
Binary files /dev/null and b/pages/images/yhm.png differ
diff --git a/pages/images/ylxb.png b/pages/images/ylxb.png
new file mode 100644
index 0000000..dbe2153
Binary files /dev/null and b/pages/images/ylxb.png differ
diff --git a/pages/images/zt.jpg b/pages/images/zt.jpg
new file mode 100644
index 0000000..279ae64
Binary files /dev/null and b/pages/images/zt.jpg differ
diff --git a/pages/index/footer.wxml b/pages/index/footer.wxml
new file mode 100644
index 0000000..e69de29
diff --git a/pages/index/header.wxml b/pages/index/header.wxml
new file mode 100644
index 0000000..e69de29
diff --git a/pages/index/index.js b/pages/index/index.js
index cce086f..ae2ea9c 100644
--- a/pages/index/index.js
+++ b/pages/index/index.js
@@ -1,11 +1,74 @@
-// index.js
-// 获取应用实例
-const app = getApp()
-
Page({
+
+ /**
+ * 页面的初始数据
+ */
data: {
item:0,
tab:0,
+ // 播放器列表数据
+ playlist:[{
+ id:1,
+ title:"晴天",
+ singer:'周杰伦',
+ src:'http://localhost:3000/1.mp3',
+ converImgUrl:'../images/yhm.png'
+ },{
+ id:2,
+ title:"反方向的钟",
+ singer:'周杰伦',
+ src:'http://localhost:3000/2.mp3',
+ converImgUrl:'../images/yhm.png'
+ },{
+ id:3,
+ title:"兰亭序",
+ singer:'周杰伦',
+ src:'http://localhost:3000/3.mp3',
+ converImgUrl:'../images/yhm.png'
+ },{
+ id:4,
+ title:"青花瓷",
+ singer:'周杰伦',
+ src:'http://localhost:3000/4.mp3',
+ converImgUrl:'../images/yhm.png'
+ },{
+ id:5,
+ title:"本草纲目",
+ singer:'周杰伦',
+ src:'http://localhost:3000/4.mp3',
+ converImgUrl:'../images/yhm.png'
+ },{
+ id:6,
+ title:"爱在西元前",
+ singer:'周杰伦',
+ src:'http://localhost:3000/4.mp3',
+ converImgUrl:'../images/yhm.png'
+ },{
+ id:7,
+ title:"花海",
+ singer:'周杰伦',
+ src:'http://localhost:3000/4.mp3',
+ converImgUrl:'../images/yhm.png'
+ },{
+ id:8,
+ title:"半岛铁盒",
+ singer:'周杰伦',
+ src:'http://localhost:3000/4.mp3',
+ converImgUrl:'../images/yhm.png'
+ },{
+ id:9,
+ title:"轨迹",
+ singer:'周杰伦',
+ src:'http://localhost:3000/4.mp3',
+ converImgUrl:'../images/yhm.png'
+ },{
+ id:10,
+ title:"搁浅",
+ singer:'周杰伦',
+ src:'http://localhost:3000/4.mp3',
+ converImgUrl:'../images/yhm.png'
+ }
+ ],
state:'paused',
playIndex:0,
play:{
@@ -14,85 +77,112 @@ Page({
percent:0,
title:'',
singer:'',
- coverImgUrl:'./images/cover.jpg',
+ // converImgUrl:'../images/cover.jpg'
+ coverImgUrl:'../images/yhm.png'
}
},
- changeItem:function(e){
+
+ audioCtx:null,
+
+ changeItem(e){
this.setData({
- item:e.target.dataset.item
+ item : e.target.dataset.item
})
},
- changeTab:function(e){
+ changeTab(e){
this.setData({
tab:e.detail.current
})
},
- // 事件处理函数
- bindViewTap() {
- wx.navigateTo({
- url: '../logs/logs'
- })
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+
},
- onLoad() {
- if (wx.getUserProfile) {
- this.setData({
- canIUseGetUserProfile: true
- })
- }
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+ this.audioCtx = wx.createInnerAudioContext();
+ this.setMusic(0);
},
- playlist:[{
- id:1,title:'钢琴协奏曲',singer:'肖邦',
- src:'',coverImgUrl:'./images/cover.jpg'
- },{
- id:2,title:'奏鸣曲',singer:'莫扎特',
- src:'',coverImgUrl:'./images/cover.jpg'
- },{
- id:2,title:'奏鸣曲',singer:'莫扎特',
- src:'',coverImgUrl:'./images/cover.jpg'
- },{
- id:2,title:'欢乐颂',singer:'贝多芬',
- src:'',coverImgUrl:'./images/cover.jpg'
- },{
- id:2,title:'爱之梦',singer:'李斯特',
- src:'',coverImgUrl:'./images/cover.jpg'
-
- }],
- audioCtx:null,
- onReady:function(){
- this.audioCtx=wx.cteateInnerAudioContext()
- this.setMusic(0)
- } ,
- setMusic:function(index){
- var music=this.data.playlist[index]
- this.audioCtx.src=music.src
+ setMusic(index){
+ var music = this .data.playlist[index];
+ this.audioCtx.src = music.src;
this.setData({
- playIndex:index,
- 'play.title':music.title,
- 'play.singer':music.singer,
- 'play.coverImgUrl':music.coverImgUrl,
- 'play.currentTime':'00:00',
- 'play.percent':0
+ playIndex: index,
+ 'play.title': music.title,
+ 'play.singer': music.singer,
+ 'play.coverImgUrl': music.coverImgUrl,
+ 'play.currentTime': '00:00',
+ 'play.duration': '00:00',
+ 'play.percent': 0
})
},
- getUserProfile(e) {
- // 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认,开发者妥善保管用户快速填写的头像昵称,避免重复弹窗
- wx.getUserProfile({
- desc: '展示用户信息', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
- success: (res) => {
- console.log(res)
- this.setData({
- userInfo: res.userInfo,
- hasUserInfo: true
- })
- }
- })
+
+ // 播放
+ play: function() {
+ this.audioCtx.play();
+ this.setData({state: 'running'})
},
- getUserInfo(e) {
- // 不推荐使用getUserInfo获取用户信息,预计自2021年4月13日起,getUserInfo将不再弹出弹窗,并直接返回匿名的用户个人信息
- console.log(e)
- this.setData({
- userInfo: e.detail.userInfo,
- hasUserInfo: true
- })
+
+ // 暂停
+ pause: function () {
+ this.audioCtx.pause();
+ this.setData({state: 'paused'});
+ },
+
+ // 下一曲
+ next: function() {
+ var index = this.data.playIndex >= this.data.playlist.length - 1 ? 0 : this.data.playIndex + 1
+ this. setMusic(index)
+ if (this .data.state == 'running') {
+ this.play()
+ }
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
}
})
diff --git a/pages/index/index.json b/pages/index/index.json
index 7b6d892..bc7665f 100644
--- a/pages/index/index.json
+++ b/pages/index/index.json
@@ -1,6 +1,5 @@
{
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "音乐",
- "navigationBarTextStyle": "black",
- "usingComponents": {}
+ "navigationBarTextStyle": "black"
}
\ No newline at end of file
diff --git a/pages/index/index.wxml b/pages/index/index.wxml
index bb0ce8f..944514d 100644
--- a/pages/index/index.wxml
+++ b/pages/index/index.wxml
@@ -1,39 +1,37 @@
-
-
-
+
-音乐推荐
-播放器
-播放列表
+ 音乐推荐
+ 播放器
+ 播放列表
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-{{play.title}}
-{{play.singer}}
+
+
+ {{play.title}}
+ {{play.singer}}
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
diff --git a/pages/index/index.wxss b/pages/index/index.wxss
index faf0c18..ca8ea39 100644
--- a/pages/index/index.wxss
+++ b/pages/index/index.wxss
@@ -1,37 +1,35 @@
-
-page{
+page {
display: flex;
flex-direction: column;
background: #17181a;
color: #ccc;
height: 100%;
}
-
.tab{
display: flex;
}
.tab-item{
- flex: 1;
+ flex:1;
font-size: 10pt;
text-align: center;
line-height: 72rpx;
border-bottom: 6rpx solid #eee;
}
-.content{
+.tab-item.active{
+ color: #c25b5b;
+ border-bottom-color: #c25b5b;
+}
+.content {
flex: 1;
}
-.content>swiper{
+.content > swiper{
height: 100%;
}
.player{
background: #222;
- border-top: 1px solid #252525;
+ border-top:1px solid #252525;
height: 112rpx;
}
-.tab-item.active{
- color:#c25b5b;
- border-bottom-color: #c25b5b;
-}
.content-info{
height: 100%;
}
@@ -40,19 +38,21 @@ page{
height: 0;
color: transparent;
}
-.content-info-slide {
+.content-info-slide{
height: 302rpx;
- margin-top: 20px;
+ margin-bottom: 20px;
}
.content-info-slide image{
-width: 100%;
-height: 100%;
+ width: 100%;
+ height: 100%;
}
+
+/* 功能按钮 */
.content-info-portal{
display: flex;
margin-bottom: 15px;
}
-.content-info-portal>view{
+.content-info-portal > view{
flex: 1;
font-size: 11pt;
text-align: center;
@@ -63,65 +63,142 @@ height: 100%;
display: block;
margin: 20rpx auto;
}
-::-webkit-scrollbar{
- width:0;
- height:0;
- color:transparent;
-}
+
+/* 热门音乐 */
.content-info-list{
font-size: 11pt;
- margin-bottom:20rpx;
+ margin-bottom: 20rpx;
}
-.content-info-list>.list-title{
+.content-info-list > .list-title{
margin: 20rpx 35rpx;
}
-.content-info-list>.list-inner{
-display:flex;
-flex-wrap: wrap;
-margin:0 20rpx;
+.content-info-list > .list-inner{
+ display: flex;
+ flex-wrap: wrap;
+ margin: 0 20rpx;
}
-.content-info-list>.list-inner>.list-item{
+.content-info-list > .list-inner > .list-item{
flex: 1;
}
-.content-info-list>.list-inner>.list-item>image{
+.content-info-list > .list-inner > .list-item > image{
display: block;
- width:200rpx;
- height:200rpx;
- margin:0 auto;
+ width: 200rpx;
+ height: 200rpx;
+ margin: 0 auto;
border-radius: 10rpx;
- border:1rpx solid #555;
+ border: 1rpx solid #555;
}
-.content-info-list>.list-inner>.list-item>view{
- width:200rpx;
- margin:10rpx auto;
+.content-info-list > .list-inner > .list-item > view{
+ width: 200rpx;
+ margin: 10rpx auto;
font-size: 10pt;
}
-.player{
- display:flex;
+/*播放器*/
+.content-play {
+ display: flex;
+ justify-content: space-around;
+ flex-direction: column;
+ height: 100%;
+ text-align: center ;
+}
+.content-play-info > view{
+ color: #888;
+ font-size: 11pt;
+}
+/*操放进度和时间*/
+.content-play-progress{
+ display: flex;
+ align-items: center;
+ margin:0 35rpx;
+ font-size: 9pt;
+ text-align: center;
+}
+.content-play-progress > view {
+ flex: 1;
+}
+/*显示专辑页面样式*/
+.content-play-cover image {
+ animation: rotateImage 10s linear infinite;
+ width: 400rpx;
+ height: 400rpx;
+ border-radius: 50%;
+ border: 1px solid #333 ;
+}
+@keyframes rotateImage {
+ from {
+ transform: rotate(0deg);
+ }
+
+ to{
+ transform: rotate(360deg);
+ }
+}
+/* 播放进度和时间 */
+.content-play-progress{
+ display: flex;
+ align-items: flex;
+ margin: 0 35rpx;
+ font-size: 9pt;
+ text-align: center;
+}
+.content-play-progress > view {
+ flex: 1;
+}
+
+/* 底部播放器 */
+.player {
+ display: flex;
align-items: center;
background: #222;
- border-top: 1px solid #252525;
+ border-top: 1px solid #252525 ;
height: 112rpx;
}
-.player-cover{
- width:80rpx;
- height:80rpx;
+.player-cover {
+ width: 80rpx;
+ height: 80rpx;
margin-left: 15rpx;
border-radius: 8rpx;
- border: 1px solid #333;
+ border: 1px solid #333 ;
}
-.play-info{
- flex:1;
+.player-info {
+ flex: 1;
font-size: 10pt;
line-height: 38rpx;
margin-left: 20rpx;
padding-bottom: 8rpx;
}
-.play-info-singer{
- color:#888;
+.player-info-singer {
+ color: #888;
}
-.player-controls image{
- width:80rpx;
+.player-controls image {
+ width: 80rpx;
height: 80rpx;
- margin-right:15rpx ;
+ margin-right: 15rpx;
+}
+.content-playlist{
+ height: 100%;
+}
+/* 播放列表 */
+.playlist-item {
+ display: flex;
+ align-items: center;
+ border-bottom: 1rpx solid #333 ;
+ height: 112rpx;
+}
+.playlist-cover {
+ width: 20rpx;
+ height: 80rpx;
+ margin-left:15rpx;
+ border-radius: 8rpx;
+ border: 1px solid#333 ;
+}
+.playlist-info {
+ flex: 1;
+ font-size: 10pt;
+ line-height: 38rpx;
+ margin-left: 20rpx;
+ padding-bottom: 8rpx;
+}
+.playlist-info-singer {
+ color:#888;
}
diff --git a/pages/index/info.wxml b/pages/index/info.wxml
index d1e92b3..e65d154 100644
--- a/pages/index/info.wxml
+++ b/pages/index/info.wxml
@@ -1,55 +1,58 @@
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-私人FM
-
-
-
-每日歌曲推荐
-
-
-
-云音乐听歌榜
-
-
-
-
-推荐歌曲
-
-
-紫罗兰
-
-
-菩提树
-
-
-五月之歌
-
-
-欢乐颂
-
-
-安魂曲
-
-
-摇篮曲
-
-
-
-
-
-已到达底部
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 私人FM
+
+
+
+ 每日歌曲推荐
+
+
+
+ 云音乐新歌榜
+
+
+
+ 推荐歌曲
+
+
+
+ 稻香
+
+
+
+ 七里香
+
+
+
+ 夜曲
+
+
+
+ 花海
+
+
+
+ 一路向北
+
+
+
+ 以父之名
+
+
+
diff --git a/pages/index/play.wxml b/pages/index/play.wxml
index 8a1dfef..f8be5f7 100644
--- a/pages/index/play.wxml
+++ b/pages/index/play.wxml
@@ -1,3 +1,20 @@
-
-play
-
\ No newline at end of file
+
+
+
+
+ {{play.title}}
+ —— {{play.singer}} ——
+
+
+
+
+
+
+
+ {{play.currentTime}}
+
+
+
+ {{play.duration}}
+
+
diff --git a/pages/index/playlist.wxml b/pages/index/playlist.wxml
index 0de2c41..90ee7a6 100644
--- a/pages/index/playlist.wxml
+++ b/pages/index/playlist.wxml
@@ -1,3 +1,12 @@
-
-playllist
-
\ No newline at end of file
+
+
+
+
+ {{item.title}}
+ {{item.singer}}
+
+
+ 正在播放
+
+
+
diff --git a/pages/logs/logs.js b/pages/logs/logs.js
deleted file mode 100644
index 85f6aac..0000000
--- a/pages/logs/logs.js
+++ /dev/null
@@ -1,18 +0,0 @@
-// logs.js
-const util = require('../../utils/util.js')
-
-Page({
- data: {
- logs: []
- },
- onLoad() {
- this.setData({
- logs: (wx.getStorageSync('logs') || []).map(log => {
- return {
- date: util.formatTime(new Date(log)),
- timeStamp: log
- }
- })
- })
- }
-})
diff --git a/pages/logs/logs.json b/pages/logs/logs.json
deleted file mode 100644
index 3ee76c1..0000000
--- a/pages/logs/logs.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "navigationBarTitleText": "查看启动日志",
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/pages/logs/logs.wxml b/pages/logs/logs.wxml
deleted file mode 100644
index 0b6b645..0000000
--- a/pages/logs/logs.wxml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
- {{index + 1}}. {{log.date}}
-
-
diff --git a/pages/logs/logs.wxss b/pages/logs/logs.wxss
deleted file mode 100644
index 94d4b88..0000000
--- a/pages/logs/logs.wxss
+++ /dev/null
@@ -1,8 +0,0 @@
-.log-list {
- display: flex;
- flex-direction: column;
- padding: 40rpx;
-}
-.log-item {
- margin: 10rpx;
-}
diff --git a/pages/swiper.js b/pages/swiper.js
deleted file mode 100644
index 8ac97af..0000000
--- a/pages/swiper.js
+++ /dev/null
@@ -1,27 +0,0 @@
-// pages/swiper.js
-Component({
- /**
- * 组件的属性列表
- */
- properties: {
-imgUrls:Array,
- },
-
- /**
- * 组件的初始数据
- */
- data: {
-currentIndex:0,
- },
-
- /**
- * 组件的方法列表
- */
- methods: {
-swiperChange(e){
- this.setData({
- currentIndex:e.detail.cuurrent
- });
-}
-}
-})
diff --git a/pages/swiper.wxml b/pages/swiper.wxml
deleted file mode 100644
index 502b813..0000000
--- a/pages/swiper.wxml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-pages/swiper.wxml
diff --git a/pages/swiper.wxss b/pages/swiper.wxss
deleted file mode 100644
index 6f669b0..0000000
--- a/pages/swiper.wxss
+++ /dev/null
@@ -1 +0,0 @@
-/* pages/swiper.wxss */
\ No newline at end of file
diff --git a/pages/test/test.js b/pages/test/test.js
new file mode 100644
index 0000000..ea64278
--- /dev/null
+++ b/pages/test/test.js
@@ -0,0 +1,68 @@
+// pages/test/test.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+
+ },
+scroll:function(e){
+ console.log(e.detail)
+},
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/swiper.json b/pages/test/test.json
similarity index 54%
rename from pages/swiper.json
rename to pages/test/test.json
index e8cfaaf..8835af0 100644
--- a/pages/swiper.json
+++ b/pages/test/test.json
@@ -1,4 +1,3 @@
{
- "component": true,
"usingComponents": {}
}
\ No newline at end of file
diff --git a/pages/test/test.wxml b/pages/test/test.wxml
new file mode 100644
index 0000000..1b75552
--- /dev/null
+++ b/pages/test/test.wxml
@@ -0,0 +1,11 @@
+
+
+
+缩放模式测试
+
+
+裁剪模式测试
+
+
diff --git a/pages/test/test.wxss b/pages/test/test.wxss
new file mode 100644
index 0000000..3ee2480
--- /dev/null
+++ b/pages/test/test.wxss
@@ -0,0 +1 @@
+/* pages/test/test.wxss */
\ No newline at end of file
diff --git a/project.config.json b/project.config.json
index 457ad73..f6a4586 100644
--- a/project.config.json
+++ b/project.config.json
@@ -42,7 +42,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.19.4",
- "appid": "wx1f22c2b8f0b59fc1",
+ "appid": "wx43b4be9b6b720b57",
"projectname": "miniprogram-92",
"condition": {},
"editorSetting": {
diff --git a/project.private.config.json b/project.private.config.json
index 9f1032f..fd490cf 100644
--- a/project.private.config.json
+++ b/project.private.config.json
@@ -1,6 +1,6 @@
{
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
- "projectname": "miniprogram-5",
+ "projectname": "miniprogram-6",
"setting": {
"compileHotReLoad": true
}
diff --git a/sitemap.json b/sitemap.json
deleted file mode 100644
index ca02add..0000000
--- a/sitemap.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
- "rules": [{
- "action": "allow",
- "page": "*"
- }]
-}
\ No newline at end of file
diff --git a/utils/util.js b/utils/util.js
deleted file mode 100644
index 764bc2c..0000000
--- a/utils/util.js
+++ /dev/null
@@ -1,19 +0,0 @@
-const formatTime = date => {
- const year = date.getFullYear()
- const month = date.getMonth() + 1
- const day = date.getDate()
- const hour = date.getHours()
- const minute = date.getMinutes()
- const second = date.getSeconds()
-
- return `${[year, month, day].map(formatNumber).join('/')} ${[hour, minute, second].map(formatNumber).join(':')}`
-}
-
-const formatNumber = n => {
- n = n.toString()
- return n[1] ? n : `0${n}`
-}
-
-module.exports = {
- formatTime
-}