C端小程序
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.

30 rivejä
572 B

  1. let Http = require('../../../utils/http.js')
  2. Page({
  3. data: {
  4. list:{},
  5. openId: getApp().globalData.openId,
  6. cuponId:null
  7. },
  8. onLoad(e) {
  9. console.log(e.id)
  10. Http.getResquest('/wxCoupon/findById','加载中',{
  11. id: e.id
  12. },(res)=>{
  13. console.log(res)
  14. this.setData({
  15. list: res.data,
  16. cuponId:e.id
  17. })
  18. })
  19. },
  20. aaa(){
  21. Http.postResquest('/wxOrder/save', '加载中', {
  22. couponId: this.data.cuponId,
  23. openId: this.data.openId
  24. }, (res) => {
  25. console.log(res)
  26. })
  27. console.log(1)
  28. }
  29. })