# wx.miniapp.bindWeixin (Object object)

iOS >= 1.0.9,Android >= 1.0.5

During the system login state is in effect, the calling interface evokes the user's WeChat APP To bind WeChat.

# parameter

# Object object

attribute type Default value Required Introductions
success function no Interface calls a successful callback function
fail function no Interface to call a failed callback function
complete function no The callback function at the end of an interface call

# object.fail callback

# parameter
# Object res
attribute type Introductions
errCode number Error code
errMsg string Error message

**res.errCode **

errCode Introductions
-1 system error
10001011 System login status invalid
10001036 WeChat already exists, Binding failure
-700000 Front End Error, errMsg Will give detailed hints

# sample code

wx.miniapp.bindWeixin ({
	success(res) {
		// Binding success	
	}
})