b2bInfo.js 616 B

1234567891011121314151617181920212223242526272829
  1. // pages/user/info/index.js
  2. const app = getApp();
  3. const util = require("../../../util/util.js")
  4. Page({
  5. data: {
  6. info:{}
  7. },
  8. onLoad: function (options) {
  9. console.log(options)
  10. let id = +options.id||100044;
  11. util.http('/wx/getWxB2BInfo', {id}, (err,res)=>{
  12. if( err != 0) return;
  13. console.log( "res", res)
  14. this.setData({info: res})
  15. })
  16. },
  17. previewImage: function (e) {
  18. var current = e.target.dataset.src;
  19. wx.previewImage({
  20. current: current,
  21. urls: [current]
  22. })
  23. },
  24. gotoSign(){
  25. wx.navigateTo({
  26. url: '/pages/tool/sign/signature',
  27. })
  28. }
  29. })