You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

26 lines
495 B

// pages/first/first.js
const app = getApp();
var network = require("../../utils/net.js");
var openid;
Page({
data: {
url:"",
},
onLoad: function(options) {
// var code = options.code;
var that = this;
wx.login({
success: function (res) {
var code = res.code;
var itemUrl = "https://miniprogram.food988.com/WeixinBindPhonePage.aspx?code=" + code + "&state=bindphone";
that.setData({
url: itemUrl,
})
}
});
},
})