Skip to content

Commit

Permalink
Merge pull request #89 from jackKiZhu/master
Browse files Browse the repository at this point in the history
#82 第4次实验
  • Loading branch information
zengsn authored Nov 1, 2017
2 parents 3863b4a + 7cd1458 commit 5d78d7b
Show file tree
Hide file tree
Showing 103 changed files with 1,525 additions and 0 deletions.
42 changes: 42 additions & 0 deletions 1517060342/final/juedi/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
//app.js
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: {

logincg: "0",
userInfo: null
}
})
42 changes: 42 additions & 0 deletions 1517060342/final/juedi/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{

"pages":[
"pages/index/index",
"pages/logs/logs",
"pages/faxian/faxian",
"pages/AK47/AK47",
"pages/M16A4/M16A4",
"pages/game/game",
"pages/login/login",
"pages/shezhi/shezhi"
],
"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "绝地求生游戏盒子",
"navigationBarTextStyle":"black"
},
"tabBar": {

"list": [
{
"pagePath": "pages/index/index",
"iconPath": "pages/images/b.png",
"selectedIconPath": "pages/images/b.png",
"text": "排行榜"
},
{
"pagePath": "pages/faxian/faxian",
"iconPath": "pages/images/a.png",
"selectedIconPath": "pages/images/a.png",
"text": "发现"
},
{
"pagePath": "pages/shezhi/shezhi",
"iconPath": "pages/images/c.png",
"selectedIconPath": "pages/images/c.png",
"text": "留言"
}
]
}
}
11 changes: 11 additions & 0 deletions 1517060342/final/juedi/app.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**app.wxss**/
@import 'style/weui.wxss';
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 200rpx 0;
box-sizing: border-box;
}
66 changes: 66 additions & 0 deletions 1517060342/final/juedi/pages/AK47/AK47.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// pages/AK47/AK47.js
Page({

/**
* 页面的初始数据
*/
data: {

},

/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {

},

/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {

},

/**
* 生命周期函数--监听页面显示
*/
onShow: function () {

},

/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {

},

/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {

},

/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {

},

/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {

},

/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {

}
})
1 change: 1 addition & 0 deletions 1517060342/final/juedi/pages/AK47/AK47.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
5 changes: 5 additions & 0 deletions 1517060342/final/juedi/pages/AK47/AK47.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!--pages/AK47/AK47.wxml-->
<image src="../images/ak.jpg" class="ak47"></image>

<text>AK-47突击步枪,是由苏联枪械设计师米哈伊尔·季莫费耶维奇·卡拉什尼科夫(Михаил Тимофеевич Калашников)设计的自动步枪。“AK”的意思是“Автомат Калашникова”(“自动步枪”的首字母缩写)“47”的意思是“1947年产”。是苏联的第一代突击步枪。
AK-47属于突击步枪,与第二次世界大战时期的步枪相比,枪身短小、射程较短,适合较近距离的战斗。采用导气式自动原理,导气管位于枪管上方,通过活塞推动枪机动作,回转式闭锁枪机。</text>
1 change: 1 addition & 0 deletions 1517060342/final/juedi/pages/AK47/AK47.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* pages/AK47/AK47.wxss */
66 changes: 66 additions & 0 deletions 1517060342/final/juedi/pages/M16A4/M16A4.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// pages/m16a4/m16a4.js
Page({

/**
* 页面的初始数据
*/
data: {

},

/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {

},

/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {

},

/**
* 生命周期函数--监听页面显示
*/
onShow: function () {

},

/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {

},

/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {

},

/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {

},

/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {

},

/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {

}
})
1 change: 1 addition & 0 deletions 1517060342/final/juedi/pages/M16A4/M16A4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
4 changes: 4 additions & 0 deletions 1517060342/final/juedi/pages/M16A4/M16A4.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<!--pages/m16a4/m16a4.wxml-->
<image src="../images/m16a4.jpg" class="m16a4"></image>
<text>M16A4自动步枪是M16自动步枪的一种改型。M16A4作为前线美国陆军和美国海豹突击队的标准装备,它是将枪械与火控系统分别进行模块化来设计的。
M16A4自动步枪是M16自动步枪的一种改型,使用30发5.56毫米口径子弹装填的并具有3发点射功能的突击步枪。稳定的命中率和独特的3发点射功能充分体现了它瞬间火力强大的优点,但3发点射后是有较长延迟的。。</text>
1 change: 1 addition & 0 deletions 1517060342/final/juedi/pages/M16A4/M16A4.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* pages/m16a4/m16a4.wxss */
66 changes: 66 additions & 0 deletions 1517060342/final/juedi/pages/faxian/faxian.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// pages/faxian/faxian.js
Page({

/**
* 页面的初始数据
*/
data: {

},

/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {

},

/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {

},

/**
* 生命周期函数--监听页面显示
*/
onShow: function () {

},

/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {

},

/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {

},

/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {

},

/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {

},

/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {

}
})
1 change: 1 addition & 0 deletions 1517060342/final/juedi/pages/faxian/faxian.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
25 changes: 25 additions & 0 deletions 1517060342/final/juedi/pages/faxian/faxian.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<view class="page">
<view class="page__hd">
<view class="page__title">绝地求生相关咨询</view>
</view>
<view class="page__bd">
<view class="weui-cells__title">武器参数说明</view>
<view class="weui-cells weui-cells_after-title">
<navigator url="/pages/AK47/AK47" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
<view class="weui-cell__bd">AK47卡宾枪详情</view>
<view class="weui-cell__ft weui-cell__ft_in-access">打开</view>
</navigator>
<navigator url="/pages/M16A4/M16A4" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
<view class="weui-cell__bd">M16A4详情</view>
<view class="weui-cell__ft weui-cell__ft_in-access">打开</view>
</navigator>
</view>
<view class="weui-cells__title">游戏更新详情</view>
<view class="weui-cells weui-cells_after-title">
<navigator url="/pages/game/game" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
<view class="weui-cell__bd">第十六周更新说明</view>
<view class="weui-cell__ft weui-cell__ft_in-access">打开</view>
</navigator>
</view>
</view>
</view>
1 change: 1 addition & 0 deletions 1517060342/final/juedi/pages/faxian/faxian.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* pages/faxian/faxian.wxss */
Loading

0 comments on commit 5d78d7b

Please sign in to comment.