From 5f902c23ec585876bf89a5d2474a80453a7ed9c9 Mon Sep 17 00:00:00 2001 From: fjc <2499842112@qq.com> Date: Wed, 20 Nov 2024 10:45:57 +0800 Subject: [PATCH] 222 --- yuan ma/mp-shop/pages/buy/buy.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/yuan ma/mp-shop/pages/buy/buy.js b/yuan ma/mp-shop/pages/buy/buy.js index 8772b92..035ed1b 100644 --- a/yuan ma/mp-shop/pages/buy/buy.js +++ b/yuan ma/mp-shop/pages/buy/buy.js @@ -4,6 +4,18 @@ Page({ data: { goodsData:{} }, - + onLoad(options) { + getBuy({ id:options.id }).then(res =>{ + console.log(res.data); + this.setData({ + goodsData:res.data.data[0] + }) + }) + }, + onSubmit(){ + wx.showToast({ + title: '购买完成', + icon:"success" + }) } }) \ No newline at end of file