index.js 413 B

123456789101112131415161718
  1. const util = require("../../../utils/util.js")
  2. Page({
  3. data: {
  4. info:{}
  5. },
  6. onLoad: function (options) {
  7. this.getInfo(options.orderid);
  8. },
  9. getInfo(orderid) {
  10. let that = this;
  11. util.ajax({ func: 'v2/order/room/qrcode', data: { "orderid": orderid }},function(res){
  12. if (res.code == 0) {
  13. that.setData({info:res.data});
  14. } else
  15. util.showTips(res.reason);
  16. });
  17. }
  18. })