Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#6 #510 #561

Merged
merged 3 commits into from
Apr 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions students/1714080903239/SY6/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
App({
onLaunch: function () {
// 展示本地存储能力
var logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
wx.setStorageSync('logs', logs)

// 登录
wx.login({
success: res => {
// 发送 res.code 到后台换取 openId, sessionKey, unionId
}
})
// 获取用户信息
wx.getSetting({
success: res => {
if (res.authSetting['scope.userInfo']) {
// 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框
wx.getUserInfo({
success: res => {
// 可以将 res 发送给后台解码出 unionId
this.globalData.userInfo = res.userInfo

// 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回
// 所以此处加入 callback 以防止这种情况
if (this.userInfoReadyCallback) {
this.userInfoReadyCallback(res)
}
}
})
}
}
})
},
globalData: {
userInfo: null
}
})
29 changes: 29 additions & 0 deletions students/1714080903239/SY6/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"pages":["pages/about/about","pages/weekly/weekly","pages/my/my"],

"tabBar": {
"color": "black",
"selectedColor": "black",
"backgroundColor": "white",
"list": [
{
"pagePath": "pages/about/about",
"text": "湖人",
"iconPath": "image/select.png",
"selectedIconPath": "image/selected.png"
},
{
"pagePath": "pages/weekly/weekly",
"text": "KOBE",
"iconPath": "image/kobeselected.png",
"selectedIconPath": "image/kobeselect.png"
},
{
"pagePath": "pages/my/my",
"text": "比赛",
"iconPath": "image/nbaselect.png",
"selectedIconPath": "image/nbaselected.png"
}
]
}
}
11 changes: 11 additions & 0 deletions students/1714080903239/SY6/app.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**app.wxss**/
@import "style/weui.wxss";
.container{
background-color: #eee;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;

}
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 students/1714080903239/SY6/image/kobeselect.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 students/1714080903239/SY6/image/kobeselected.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 students/1714080903239/SY6/image/nbaselect.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 students/1714080903239/SY6/image/nbaselected.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 students/1714080903239/SY6/image/select.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 students/1714080903239/SY6/image/selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions students/1714080903239/SY6/pages/about/about.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Page({})
5 changes: 5 additions & 0 deletions students/1714080903239/SY6/pages/about/about.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"navigationBarTitleText":"湖人",
"navigationBarBackgroundColor":"#fff",
"navigationBarTextStyle": "black"
}
8 changes: 8 additions & 0 deletions students/1714080903239/SY6/pages/about/about.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<view class='container'>
<image class='about-banner'
src="/image/t0138416d729499ee9f.jpg"></image>
<text style='font-weight:bold; font-size:60rpx;'>湖人总冠军</text>
<navigator url='/pages/weekly/weekly'
hover-class='nav-after' class='nav-before' >Kobebryant</navigator>

</view>
17 changes: 17 additions & 0 deletions students/1714080903239/SY6/pages/about/about.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@



.about-banner{
width: 375rpx;
height: 375rpx;
border-radius: 50%;
}


.nav-before{
color: gold;
}

.nav-after{
color: blue;
}
1 change: 1 addition & 0 deletions students/1714080903239/SY6/pages/my/my.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Page({})
5 changes: 5 additions & 0 deletions students/1714080903239/SY6/pages/my/my.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "比赛搜索",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
}
42 changes: 42 additions & 0 deletions students/1714080903239/SY6/pages/my/my.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<view class="page">
<view class="page__bd">
<view class="weui-search-bar">
<view class="weui-search-bar__form">
<view class="weui-search-bar__box">
<icon class="weui-icon-search_in-box" type="search" size="14"></icon>
<input type="text" class="weui-search-bar__input" placeholder="搜索" value="{{inputVal}}" focus="{{inputShowed}}" bindinput="inputTyping" />
<view class="weui-icon-clear" wx:if="{{inputVal.length > 0}}" bindtap="clearInput">
<icon type="clear" size="14"></icon>
</view>
</view>
<label class="weui-search-bar__label" hidden="{{inputShowed}}" bindtap="showInput">
<icon class="weui-icon-search" type="search" size="14"></icon>
<view class="weui-search-bar__text">搜索</view>
</label>
</view>
<view class="weui-search-bar__cancel-btn" hidden="{{!inputShowed}}" bindtap="hideInput">取消</view>
</view>
<view class="weui-cells searchbar-result" wx:if="{{inputVal.length > 0}}">
<navigator url="" class="weui-cell" hover-class="weui-cell_active">
<view class="weui-cell__bd">
<view>实时搜索文本</view>
</view>
</navigator>
<navigator url="" class="weui-cell" hover-class="weui-cell_active">
<view class="weui-cell__bd">
<view>实时搜索文本</view>
</view>
</navigator>
<navigator url="" class="weui-cell" hover-class="weui-cell_active">
<view class="weui-cell__bd">
<view>实时搜索文本</view>
</view>
</navigator>
<navigator url="" class="weui-cell" hover-class="weui-cell_active">
<view class="weui-cell__bd">
<view>实时搜索文本</view>
</view>
</navigator>
</view>
</view>
</view>
11 changes: 11 additions & 0 deletions students/1714080903239/SY6/pages/my/my.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* pages/my/my.wxss */
.searchbar-result{
margin-top: 0;
font-size: 14px;
}
.searchbar-result:before{
display: none;
}
.weui-cell{
padding: 12px 15px 12px 35px;
}
1 change: 1 addition & 0 deletions students/1714080903239/SY6/pages/weekly/weekly.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Page({})
5 changes: 5 additions & 0 deletions students/1714080903239/SY6/pages/weekly/weekly.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"navigationBarTitleText": "M V P",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
}
6 changes: 6 additions & 0 deletions students/1714080903239/SY6/pages/weekly/weekly.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<view class='container'>
<text>科比布莱恩特</text>
<image src="/image/Img382531384.jpg"></image>
<text style='fron-weight:blod; '>KobeBryant</text>
</view>

Empty file.
40 changes: 40 additions & 0 deletions students/1714080903239/SY6/project.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"description": "项目配置文件",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": true,
"es6": true,
"postcss": true,
"minified": true,
"newFeature": true,
"autoAudits": false
},
"compileType": "miniprogram",
"libVersion": "2.6.2",
"appid": "wx1ea748655a2e9024",
"projectname": "miniprogram-test-1",
"debugOptions": {
"hidedInDevtools": []
},
"isGameTourist": false,
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"currentL": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
}
}
6 changes: 6 additions & 0 deletions students/1714080903239/SY6/style/weui.wxss

Large diffs are not rendered by default.