Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebIM.conn.open(options)登陆后跳转页面怎么控制?我修改了,没生效 #9

Open
Skye27yang opened this issue Mar 27, 2018 · 0 comments

Comments

@Skye27yang
Copy link

//登录
var login = function () {
myAccount = user.user
var pwd = user.pwd
var options = {
apiUrl: WebIM.config.apiURL,
user: myAccount,
pwd: pwd,
appKey: WebIM.config.appkey,
success: function (res) {

wx.navigateTo({
  url: '/pages/massage/massage',
  success: function (res) {
    console.log(res)
    // success
  },
  fail: function () {
    // fail
  },
  complete: function () {
    // complete
  }
})
      // 在home页登录成功后执行相应的代码
    },
    error: function (res) {
      console.info(res)
    }
  };
  conn.open(options);
  return conn
}
login()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant