1. LoginAndGetUserInfo User information function page
  2. RequestPayment function page
  3. ChooseAddress Harvest Address function page
<! -- sample.wxml --><functional-page-navigator name="loginAndGetUserInfo" bind:success="loginSuccess">
  <button>Logging in to the plug-in</button>
</functional-page-navigator>
Copy the code
// redirect.js navigator.js
Component({
  methods: {
    loginSuccess: function(e) {
      console.log(e.detail.code) // wx.login 的 code
      console.log(e.detail.userInfo) / / wx. GetUserInfo the userInfo}}})Copy the code