startup.js 444 B

123456789101112131415161718192021222324
  1. const app = getApp()
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. url: app.apiroot + '/openapi-' + app.globalData.wechat_config.app_id + '/v1/bindOfficial'
  8. },
  9. onShow:function(){
  10. wx.showModal({
  11. content: this.data.url,
  12. })
  13. },
  14. /**
  15. * 接受参数
  16. */
  17. getMessage: function (e) {
  18. var that = this;
  19. var options = e.detail.data[0];
  20. wx.setStorageSync('official_uid',options.official_uid);
  21. },
  22. })