Skip to content

Commit

Permalink
new push
Browse files Browse the repository at this point in the history
  • Loading branch information
flymysql committed Oct 21, 2018
1 parent deee333 commit 418d82b
Show file tree
Hide file tree
Showing 68 changed files with 5,693 additions and 4,233 deletions.
41 changes: 37 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ var Bmob = require('/dist/Bmob-1.6.4.min.js');
//var qcloud = require('./vendor/wafer2-client-sdk/index');
//var config = require('./config');
var util = require('./utils/util.js')
Bmob.initialize("1f5588b50881978b44ccaf8edd435221", "132a4ff6818ca417ccf6c4c14c466081");
Bmob.initialize("你的appid", "你的secret id");

App({
globalData:{
userInfo:[]
},
appData: {
//appId: config.service.appId,
//baseUrl: `${config.service.host}/weapp/`,
Expand All @@ -18,20 +21,50 @@ App({
// this.doLogin();
Bmob.User.auth().then(res => {
console.log(res)
const query = Bmob.Query('_User');
query.get(res.objectId).then(res => {
console.log(res)
wx.setStorage({
key: 'data_objectid',
data: res.data_objectid,
})
}).catch(err => {
console.log(err)
})
wx.setStorage({
key: 'usr_objectId',
data: res.objectId,
})

console.log('一键登陆成功')

}).catch(err => {
console.log(err)
});

if(!wx.getStorageSync("word_list")){
this.globalData.userInfo=wx.getStorageSync("userInfo")
if(!wx.getStorageSync("word_list")&&!wx.getStorageSync("all_detail")){
wx.setStorage({
key: 'all_detail',
data: [],
})

wx.setStorage({
key: 'word_list',
data: [{"word":"test","ease":0.4,"day":0}],
data: [],
})
wx.setStorage({
key: 'day_task',
data: 5,
data: 30,
})
wx.setStorage({
key: "my_word_num",
data: 1000,
})

wx.setStorage({
key: "free_word_num",
data: 1000,
})
}

Expand Down
21 changes: 14 additions & 7 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"pages":[
"pages/study/study",
"pages/job/job",
"pages/all_detail/all_detail",
"pages/search/search",
"pages/detail-word/detail-word",
"pages/me/me",
Expand All @@ -11,8 +12,7 @@
"pages/audio_test/audio_test",
"pages/about/about",
"pages/my_word/my_word",
"pages/suggestion/suggestion",
"pages/rank/rank"
"pages/suggestion/suggestion"

],

Expand All @@ -32,23 +32,30 @@
"list": [
{
"pagePath": "pages/study/study",
"text": "首页",
"text": "学习",
"iconPath": "images/home2.png",
"selectedIconPath": "images/home.png"
},

{
"pagePath": "pages/job/job",
"text": "选词",
"iconPath": "images/search2.png",
"selectedIconPath": "images/search.png"
"iconPath": "images/choice.png",
"selectedIconPath": "images/choice2.png"
},

{
"pagePath": "pages/all_detail/all_detail",
"text": "统计",
"iconPath": "images/statistic.png",
"selectedIconPath": "images/statistic2.png"
},

{
"pagePath": "pages/me/me",
"text": "我的",
"iconPath": "images/ji.png",
"selectedIconPath": "images/ji2.png"
"iconPath": "images/我的.png",
"selectedIconPath": "images/我的2.png"
}
]
}
Expand Down
Binary file removed assets/font/chalkboard.ttf
Binary file not shown.
8 changes: 0 additions & 8 deletions dist/Bmob-1.6.1.min.js

This file was deleted.

8 changes: 0 additions & 8 deletions dist/Bmob-1.6.2.min.js

This file was deleted.

8 changes: 0 additions & 8 deletions dist/Bmob-1.6.3.hap.min.js

This file was deleted.

2,173 changes: 2,165 additions & 8 deletions dist/Bmob-1.6.4.min.js

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions dist/使用说明.md

This file was deleted.

Binary file added images/bottom.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/choice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/choice2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/home2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/ji.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/ji2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/search2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/statistic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/statistic2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/我的.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/我的2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion imgs/PK_equal.svg

This file was deleted.

1 change: 0 additions & 1 deletion imgs/PK_fail.svg

This file was deleted.

1 change: 0 additions & 1 deletion imgs/PK_success.svg

This file was deleted.

1 change: 0 additions & 1 deletion imgs/VS.svg

This file was deleted.

Binary file removed imgs/entry_fighting.jpg
Binary file not shown.
Binary file removed imgs/entry_friends.jpg
Binary file not shown.
1 change: 0 additions & 1 deletion imgs/entry_qr.svg

This file was deleted.

Binary file removed imgs/entry_rank.jpg
Binary file not shown.
1 change: 0 additions & 1 deletion imgs/exp.svg

This file was deleted.

Loading

0 comments on commit 418d82b

Please sign in to comment.