diff --git a/app.json b/app.json index 0bac513..a601e51 100644 --- a/app.json +++ b/app.json @@ -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" } } \ No newline at end of file diff --git a/pages/comment/comment.js b/pages/comment/comment.js index 5b9a74d..b6f8bd3 100644 --- a/pages/comment/comment.js +++ b/pages/comment/comment.js @@ -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 }); \ No newline at end of file diff --git a/pages/comment/comment.wxml b/pages/comment/comment.wxml index 917c213..102948a 100644 --- a/pages/comment/comment.wxml +++ b/pages/comment/comment.wxml @@ -39,7 +39,11 @@ 我也要评论 +<<<<<<< HEAD + +======= +>>>>>>> master diff --git a/pages/index/index.js b/pages/index/index.js index fa4875f..1347300 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -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() { diff --git a/pages/index/index.wxml b/pages/index/index.wxml index 65987fe..9d9a58e 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -1,5 +1,9 @@ +<<<<<<< HEAD +