You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
const { getBuy } = require("../../api/index.js")
|
|
|
|
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"
|
|
})
|
|
}
|
|
}) |