Skip to content
Open
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
10 changes: 8 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@
"pages/index/index",
"pages/logs/logs",
"pages/submit/submit",
"pages/comment/comment"
"pages/comment/comment",
"pages/newcomment/newcomment"
],
<<<<<<< HEAD
"window": {
"backgroundTextStyle": "light",
=======
"window":{
"backgroundTextStyle":"light",
>>>>>>> master
"navigationBarBackgroundColor": "#abd",
"navigationBarTitleText": "Eat点点",
"navigationBarTextStyle":"black"
"navigationBarTextStyle": "black"
}
}
18 changes: 18 additions & 0 deletions pages/comment/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,22 @@ Page({
unlikeCount: '50'
}]
},
<<<<<<< HEAD
//保留当前页面,跳转到应用内的某个页面,使用wx.navigateBack可以返回到原页面。
to_newcomment: function () {
wx.navigateTo({
url: '../newcomment/newcomment',
success: function (res) {
// success
},
fail: function () {
// fail
},
complete: function () {
// complete
}
})
},
=======
>>>>>>> master
});
4 changes: 4 additions & 0 deletions pages/comment/comment.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
<view class="weui-panel__ft">
<view class="weui-cell weui-cell_access weui-cell_link">
<view class="weui-cell__bd">我也要评论</view>
<<<<<<< HEAD
<view class="weui-cell__ft weui-cell__ft_in-access" bindtap="to_newcomment"></view>
=======
<view class="weui-cell__ft weui-cell__ft_in-access"></view>
>>>>>>> master
</view>
</view>
</view>
Expand Down
10 changes: 10 additions & 0 deletions pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,30 @@ Page({
hasUserInfo: false,
canIUse: wx.canIUse('button.open-type.getUserInfo'),
menu:[{
<<<<<<< HEAD
=======
index: '0',
>>>>>>> master
name: '板烧鸡腿堡',
price: '5',
dsp: '香嫩多汁',
pic: '../../images/汉堡.png'
}, {
<<<<<<< HEAD
=======
index: '1',
>>>>>>> master
name: '薯条',
price: '10',
dsp: '新鲜出炉',
pic: '../../images/薯条.png'
<<<<<<< HEAD
}]
=======
}],
totalPrice: '0',
latestPrice: '0'
>>>>>>> master
},
//事件处理函数
bindViewTap: function() {
Expand Down
14 changes: 14 additions & 0 deletions pages/index/index.wxml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<!--index.wxml-->
<<<<<<< HEAD
<template name="menuItem">
=======
<template name="menuItem" >
>>>>>>> master
<view class="weui-cell">
<view class="weui-cell__hd"> <image src="{{pic}}" style="width: 150rpx; height: 150rpx;"></image>
</view>
Expand All @@ -9,7 +13,11 @@
</view>
<view class="weui-cell__ft">
<view class="food-price">¥{{price}}</view>
<<<<<<< HEAD
<image src="../../images/add.png" style="width: 50rpx; height: 50rpx;"></image>
=======
<image src="../../images/add.png" style="width: 50rpx; height: 50rpx;" data-index="{{index}}" bindtap='addDish'></image>
>>>>>>> master
</view>
</view>
</template>
Expand All @@ -31,9 +39,15 @@
</view>

<scroll-view class="weui-cells" scroll-y="true" style="height: 1000rpx;">
<<<<<<< HEAD
<view wx:for="{{menu}}" wx:key="menu_block">
<template is="menuItem" data="{{...item}}"/>
</view>
=======
<view wx:for="{{menu}}" wx:key="menu_block">
<template is="menuItem" data="{{...item}}"/>
</view>
>>>>>>> master
</scroll-view>

<view class="bar">
Expand Down
67 changes: 67 additions & 0 deletions pages/newcomment/newcomment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
// pages/newcomment/newcomment.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 pages/newcomment/newcomment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 2 additions & 0 deletions pages/newcomment/newcomment.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!--pages/newcomment/newcomment.wxml-->
<text>pages/newcomment/newcomment.wxml</text>
1 change: 1 addition & 0 deletions pages/newcomment/newcomment.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* pages/newcomment/newcomment.wxss */
32 changes: 31 additions & 1 deletion pages/submit/submit.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,35 @@
</view>
</template>

<<<<<<< HEAD
<view class='order_detail'>
<view class='order_detail_txt'>订单详情</view>
</view>

<scroll-view class="cart-list ma_pay_list" scroll-y="true" scroll-x="false">
<view wx:for="{{order}}" wx:key="order_block">
<template is="orderItem" data="{{...item}}"/>
</view>
</scroll-view>

<view class="ps">
<text class="z">备注:</text>
<input class="ps_txt z" type="text" placeholder="请输入你对菜品的要求" />
</view>


<view class="bottom">
<view class="price">
<view>总计: ¥<text class="price_num">100.00</text></view>
</view>
<view class="pay">
<button type="default">去支付</button>
</view>
</view>



=======
<view class="page">
<view class="page__bd">
<view class="weui-panel weui-panel_access">
Expand Down Expand Up @@ -45,4 +74,5 @@
</view>

</view>
</view>
</view>
>>>>>>> master
Loading