Skip to content

Commit

Permalink
v0.0.1
Browse files Browse the repository at this point in the history
1. 增加单词学习模块,包括单词拼写、音标、含义等
2. 增加单词查询模块
3. 增加个人模块
4. 词库选用英语专四、专八共计12347个单词
  • Loading branch information
airingursb committed Jan 25, 2017
1 parent 2777933 commit 23f99a3
Show file tree
Hide file tree
Showing 49 changed files with 13,503 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
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个单词
30 changes: 30 additions & 0 deletions app.js
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
}
})
40 changes: 40 additions & 0 deletions app.json
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"
}
}
14 changes: 14 additions & 0 deletions app.wxss
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;
}
Loading

0 comments on commit 23f99a3

Please sign in to comment.