|
@@ -17,6 +17,7 @@ Page({
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
|
|
+ console.log(options)
|
|
this.setData({
|
|
this.setData({
|
|
url:options.url,
|
|
url:options.url,
|
|
type: options.type ? options.type : 0
|
|
type: options.type ? options.type : 0
|
|
@@ -78,12 +79,15 @@ Page({
|
|
})
|
|
})
|
|
},
|
|
},
|
|
pwd(e){
|
|
pwd(e){
|
|
|
|
+
|
|
this.setData({
|
|
this.setData({
|
|
pwd: e.detail.value
|
|
pwd: e.detail.value
|
|
})
|
|
})
|
|
|
|
+ console.log(this.data.pwd)
|
|
},
|
|
},
|
|
login(){
|
|
login(){
|
|
let that = this;
|
|
let that = this;
|
|
|
|
+ console.log(this.data.pwd)
|
|
wx.request({
|
|
wx.request({
|
|
url: host +'/channelLogin',
|
|
url: host +'/channelLogin',
|
|
method:'post',
|
|
method:'post',
|
|
@@ -114,11 +118,11 @@ Page({
|
|
wx.setStorageSync('channelName', res.data.channel.channelName)
|
|
wx.setStorageSync('channelName', res.data.channel.channelName)
|
|
if(that.data.type ==1){
|
|
if(that.data.type ==1){
|
|
wx.switchTab({
|
|
wx.switchTab({
|
|
- url: that.data.url,
|
|
|
|
|
|
+ url:that.data.url,
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
wx.redirectTo({
|
|
wx.redirectTo({
|
|
- url: that.data.url,
|
|
|
|
|
|
+ url:that.data.url,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|