Skip to content

Commit

Permalink
Merge pull request #489 from hzuzkt/master
Browse files Browse the repository at this point in the history
#5 #88 第五次实验
  • Loading branch information
zengsn authored Dec 6, 2017
2 parents 581f3ab + 60eaea4 commit 6862f4b
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 1514080901135/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"pages/index/index",
"pages/logs/logs"
],

"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "WeChat",
"navigationBarTextStyle":"black"
"navigationBarTextStyle":"black"
}
}
25 changes: 25 additions & 0 deletions 1514080901135/pages/page6/page6.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//index.js
//获取应用实例
const app = getApp()

Page({
data: {
result: []
},

onLoad: function () {
var that = this;
wx.request({
url: 'https://infoaas.com/data/1514080901135/data.json',
method: 'GET',
header: {
'content-type': 'application/json'
},
success: function (res) {
that.setData({
result: res.data
})
}
})
}
})
1 change: 1 addition & 0 deletions 1514080901135/pages/page6/page6.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
10 changes: 10 additions & 0 deletions 1514080901135/pages/page6/page6.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<view wx:for="{{result}}" wx:for-item="item">
<!--index默认为下标,item为每项-->
<view>{{index}}</view>
<view>名称:{{item.name}}</view>

<view>学号:{{item.id}}</view>

<view>班级:{{item.class}} </view>
<view>-----------------</view>
</view>
Empty file.

0 comments on commit 6862f4b

Please sign in to comment.