From c63b86466fce2d8535c1447d600bbc455a19161c Mon Sep 17 00:00:00 2001 From: asd <374367073@qq.com> Date: Mon, 16 Dec 2019 19:56:41 +0800 Subject: [PATCH] luyou --- components/classify/list/index.js | 13 ++-- components/classify/list/index.wxml | 6 +- components/order/commodity/index.js | 11 ++- components/order/commodity/index.wxml | 2 +- components/order/tab/index.json | 12 +-- pages/undetermined/undetermined.js | 101 ++++++++++++++------------ pages/undetermined/undetermined.wxml | 4 +- 7 files changed, 82 insertions(+), 67 deletions(-) diff --git a/components/classify/list/index.js b/components/classify/list/index.js index 035c745..738a0e9 100644 --- a/components/classify/list/index.js +++ b/components/classify/list/index.js @@ -1,8 +1,11 @@ Component({ - properties: { - }, - data: { - }, + properties: {}, + data: {}, methods: { + todetail() { + wx.navigateTo({ + url: "/pages/product/product" + }) + } } - }) \ No newline at end of file +}) \ No newline at end of file diff --git a/components/classify/list/index.wxml b/components/classify/list/index.wxml index 2e5e664..68eb4f4 100644 --- a/components/classify/list/index.wxml +++ b/components/classify/list/index.wxml @@ -1,5 +1,5 @@ - + @@ -11,7 +11,7 @@ - + @@ -23,7 +23,7 @@ - + diff --git a/components/order/commodity/index.js b/components/order/commodity/index.js index 9f59aa7..8cd65c8 100644 --- a/components/order/commodity/index.js +++ b/components/order/commodity/index.js @@ -1,8 +1,11 @@ Component({ - properties: { - }, - data: { - }, + properties: {}, + data: {}, methods: { + todetail() { + wx.navigateTo({ + url: "/pages/undetermined/undetermined" + }) + } } }) \ No newline at end of file diff --git a/components/order/commodity/index.wxml b/components/order/commodity/index.wxml index e7264f2..1f117a5 100644 --- a/components/order/commodity/index.wxml +++ b/components/order/commodity/index.wxml @@ -1,4 +1,4 @@ - + 共计1件商品 合计: diff --git a/components/order/tab/index.json b/components/order/tab/index.json index 86d254c..e37cddb 100644 --- a/components/order/tab/index.json +++ b/components/order/tab/index.json @@ -1,8 +1,8 @@ { - "component": true, - "usingComponents": { - "commodity":"../commodity/index", - "van-tab": "../utils/dist/tab/index", - "van-tabs": "../utils/dist/tabs/index" - } + "component": true, + "usingComponents": { + "commodity": "../commodity", + "van-tab": "../utils/dist/tab/index", + "van-tabs": "../utils/dist/tabs/index" + } } \ No newline at end of file diff --git a/pages/undetermined/undetermined.js b/pages/undetermined/undetermined.js index 1767652..291518d 100644 --- a/pages/undetermined/undetermined.js +++ b/pages/undetermined/undetermined.js @@ -1,66 +1,75 @@ // pages/undetermined/undetermined.js Page({ - /** - * 页面的初始数据 - */ - data: { + /** + * 页面的初始数据 + */ + data: { - }, + }, - /** - * 生命周期函数--监听页面加载 - */ - onLoad: function (options) { + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function(options) { - }, + }, + chooseaddr() { + wx.navigateTo({ + url: "/pages/chooseaddr/chooseaddr" + }) + }, + todetail() { + wx.navigateTo({ + url: "/pages/product/product" + }) + }, + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function() { - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { + }, - }, + /** + * 生命周期函数--监听页面显示 + */ + onShow: function() { - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { + }, - }, + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function() { - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { + }, - }, + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function() { - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { + }, - }, + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function() { - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { + }, - }, + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function() { - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { + }, - }, + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function() { - /** - * 用户点击右上角分享 - */ - onShareAppMessage: function () { - - } + } }) \ No newline at end of file diff --git a/pages/undetermined/undetermined.wxml b/pages/undetermined/undetermined.wxml index f4dcfd5..2102198 100644 --- a/pages/undetermined/undetermined.wxml +++ b/pages/undetermined/undetermined.wxml @@ -1,4 +1,4 @@ - - + + \ No newline at end of file -- 2.39.5