Skip to content

Commit

Permalink
hzuapps#1 hzuapps#90 第3次实验代码
Browse files Browse the repository at this point in the history
  • Loading branch information
YJJJack committed Nov 14, 2017
1 parent d6a97c2 commit ad13731
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 68 deletions.
4 changes: 2 additions & 2 deletions 1514080901132/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
"text": "主页"
},
{
"pagePath": "pages/logs/logs",
"pagePath": "pages/text/text",
"iconPath": "images/购物车.png",
"selectedIconPath": "images/购物车满.png",
"text": "购物车"
},
{
"pagePath": "pages/text/text",
"pagePath": "pages/logs/logs",
"iconPath": "images/我的.png",
"selectedIconPath": "images/人物.png",
"text": "我的"
Expand Down
94 changes: 32 additions & 62 deletions 1514080901132/pages/text/text.js
Original file line number Diff line number Diff line change
@@ -1,66 +1,36 @@
// pages/text/text.js
Page({

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

},

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

},

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

},

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

},

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

},

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

},

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

},

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

},

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

students: [
{
sNum: "1",
name: '鲜虾粥',
price:'38'
},
{
sNum: "2",
name: '鱼片粥',
price: '28'
},
{
sNum: "3",
name: '兴国米粉鱼',
price: '12'
},
{
sNum: "4",
name: '深海龙利鱼',
price: '16'
},
{
sNum: "5",
name: '垮多春鱼',
price: '18'
},
{
sNum: "6",
name: '酸梅汤',
price: '16'
}
]
}
})
9 changes: 7 additions & 2 deletions 1514080901132/pages/text/text.wxml
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
<!--pages/text/text.wxml-->
<text>个人中心</text>
<view>
<scroll-view scroll-y bindscrolltolower="more" style="height: 100vh">
<view class="student-tag" wx:for="{{students}}" wx:for-item="studentId">
{{studentId.sNum}} - {{studentId.name}} - {{studentId.price}}
</view>
</scroll-view>
</view>
9 changes: 8 additions & 1 deletion 1514080901132/pages/text/text.wxss
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
/* pages/text/text.wxss */
/* pages/text/text.wxss */

.student-tag {
height: 20px;
background-color: #eee;
border-bottom: 2px solid #bbb;
padding: 15px;
}
2 changes: 1 addition & 1 deletion 1514080901132/project.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"compileType": "miniprogram",
"libVersion": "1.6.4",
"appid": "touristappid",
"projectname": "%E6%99%BA%E8%83%BD%E9%A4%90%E9%A5%AE",
"projectname": "%E6%99%BA%E8%83%BD%E9%A4%90%E9%A5%AE1",
"condition": {
"search": {
"current": -1,
Expand Down

0 comments on commit ad13731

Please sign in to comment.