master
parent
716bca9ef9
commit
391026becc
@ -1,9 +1,18 @@
|
||||
Page({
|
||||
logBtn :function(options){
|
||||
wx.switchTab({
|
||||
url:'/shouye/shouye',
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Page({
|
||||
formSubmit: function (e) {
|
||||
wx.request({
|
||||
url: 'http://localhost:9527/zxlogin/login',
|
||||
data: {
|
||||
'userid': e.detail.value.userid,
|
||||
'userpassword': e.detail.value.userpassword,
|
||||
},
|
||||
header: {
|
||||
"Content-Type": "application/x-www-form-urlencoded"
|
||||
},
|
||||
|
||||
methods: {
|
||||
method: "POST",
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
@ -1,7 +1,13 @@
|
||||
<!--denglu/denglu.wxml-->
|
||||
<view class="flex-row" style="display: flex;"><text class="text1" data-c_e_id="wx_text_ed857dc8">学号</text><input class="inputnumber" data-c_e_id="wx_input_40f209dc" maxlength="15" name="input1" placeholder="请输入您的学号" type="number"/></view>
|
||||
<view class="flex-row" style="display: flex;"><text class="password" data-c_e_id="1">密码</text></view>
|
||||
<view class="flex-row" style="display: flex;"><input class="inputpassword" data-c_e_id="wx_input_dfbcd57f" password="true" name="input1" placeholder="默认身份证号后六位" type="number"/>
|
||||
</view>
|
||||
<button class="button1" bindtap="logBtn">
|
||||
登 录</button>
|
||||
<form bindsubmit="formSubmit" >
|
||||
<view class="flex-row" style="display: flex;">
|
||||
<text class="text1" >学号</text>
|
||||
<input class="inputnumber" maxlength="15" name="userid" placeholder="请输入您的学号" type="number" />
|
||||
</view>
|
||||
<view class="flex-row" style="display: flex;">
|
||||
<text class="password" >密码</text></view>
|
||||
<view class="flex-row" style="display: flex;">
|
||||
<input class="inputpassword" password="true" name="userpassword" placeholder="默认身份证号后六位" type="number" />
|
||||
</view>
|
||||
<button class="button1" formType="submit" >
|
||||
登 录</button>
|
||||
</form>
|
Loading…
Reference in new issue