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.

26 lines
756 B

hint: Updates were rejected because the remote contains work that you do not
hint: have locally. This is usually caused by another repository pushing to
hint: the same ref. If you want to integrate the remote changes, use
hint: 'git pull' before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
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"
})
}
})