-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. 增加单词学习模块,包括单词拼写、音标、含义等 2. 增加单词查询模块 3. 增加个人模块 4. 词库选用英语专四、专八共计12347个单词
- Loading branch information
1 parent
2777933
commit 23f99a3
Showing
49 changed files
with
13,503 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
# miemie | ||
# 咩咩单词 | ||
微信小程序:咩咩单词 | ||
|
||
![images/search-logo.png] | ||
|
||
## 版本说明 | ||
|
||
### v0.0.1 | ||
|
||
1. 增加单词学习模块,包括单词拼写、音标、含义等 | ||
2. 增加单词查询模块 | ||
3. 增加个人模块 | ||
4. 词库选用英语专四、专八共计12347个单词 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//app.js | ||
App({ | ||
onLaunch: function () { | ||
//调用API从本地缓存中获取数据 | ||
var logs = wx.getStorageSync('logs') || [] | ||
logs.unshift(Date.now()) | ||
wx.setStorageSync('logs', logs) | ||
}, | ||
getUserInfo:function(cb){ | ||
var that = this | ||
if(this.globalData.userInfo){ | ||
typeof cb == "function" && cb(this.globalData.userInfo) | ||
}else{ | ||
//调用登录接口 | ||
wx.login({ | ||
success: function () { | ||
wx.getUserInfo({ | ||
success: function (res) { | ||
that.globalData.userInfo = res.userInfo | ||
typeof cb == "function" && cb(that.globalData.userInfo) | ||
} | ||
}) | ||
} | ||
}) | ||
} | ||
}, | ||
globalData:{ | ||
userInfo:null | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"pages":[ | ||
"pages/word/word", | ||
"pages/search/search", | ||
"pages/settings/settings", | ||
"pages/search/detail/detail", | ||
"pages/settings/clause/clause", | ||
"pages/settings/help/help", | ||
"pages/settings/feedback/feedback" | ||
], | ||
"tabBar": { | ||
"backgroundColor" : "#F7F7FA", | ||
"borderStyle": "white", | ||
"list": [{ | ||
"pagePath": "pages/word/word", | ||
"text": "单词", | ||
"iconPath": "images/home.png", | ||
"selectedIconPath": "images/home-selected.png" | ||
}, | ||
{ | ||
"pagePath": "pages/search/search", | ||
"text": "辞典", | ||
"iconPath": "images/search.png", | ||
"selectedIconPath": "images/search-selected.png" | ||
}, | ||
{ | ||
"pagePath": "pages/settings/settings", | ||
"text": "设置", | ||
"iconPath": "images/settings.png", | ||
"selectedIconPath": "images/settings-selected.png" | ||
}] | ||
}, | ||
"window":{ | ||
"backgroundTextStyle":"light", | ||
"backgroundColor": "#EFEFF4", | ||
"navigationBarBackgroundColor": "#2C2D31", | ||
"navigationBarTitleText": "咩咩单词", | ||
"navigationBarTextStyle":"white" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/**app.wxss**/ | ||
|
||
page { | ||
background-color: #EFEFF4; | ||
} | ||
|
||
.container { | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: space-between; | ||
box-sizing: border-box; | ||
} |
Oops, something went wrong.