From 01308fb39bae016b6cbe48b9ecbf0c3f69d8f563 Mon Sep 17 00:00:00 2001 From: caichunsheng Date: Sat, 6 Aug 2022 09:53:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B4=AD=E7=89=A9=E8=BD=A6bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/orderList/index.json | 3 ++- pages/order/scene/index.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pages/order/orderList/index.json b/pages/order/orderList/index.json index 35cf02f..e7c6ece 100644 --- a/pages/order/orderList/index.json +++ b/pages/order/orderList/index.json @@ -1,5 +1,6 @@ { "usingComponents": { - "title":"/pages/component/TitleHeader" + "title":"/pages/component/TitleHeader", + "coupon":"../components/coupon/index" } } \ No newline at end of file diff --git a/pages/order/scene/index.js b/pages/order/scene/index.js index bc8da0f..34f21b9 100644 --- a/pages/order/scene/index.js +++ b/pages/order/scene/index.js @@ -259,8 +259,8 @@ Page({ } app.globalData.index = app.globalData.index + 1 app.globalData.product = app.globalData.list[app.globalData.index] - wx.navigateTo({ - url: '/pages/order/scene/index', + wx.redirectTo({ + url: '/pages/order/scene/index?flag='+ this.data.flag, }) return }else{ @@ -347,7 +347,7 @@ Page({ * 生命周期函数--监听页面显示 */ onShow: function () { - console.log(app.globalData.list,app.globalData.product,app.globalData.list.length) + console.log(this.data.flag); if(app.globalData.list.length != 0){ app.globalData.product = app.globalData.list[app.globalData.index] }