master
zjh19990323 7 years ago
parent 716bca9ef9
commit 391026becc

@ -1,6 +1,7 @@
{ {
"pages": [ "pages": [
"denglu/denglu",
"shouye/shouye", "shouye/shouye",
"chazhao/chazhao", "chazhao/chazhao",
"jieyue/jieyue", "jieyue/jieyue",
@ -15,7 +16,7 @@
"tabBar": { "tabBar": {
"color": "#000000", "color": "#000000",
"selectedColor": "#fd9941", "selectedColor": "#fd9941",
"borderStyle": "white", "borderStyle": "black",
"backgroundColor": "#ffffff", "backgroundColor": "#ffffff",
"list": [ "list": [
{ {

@ -1,9 +1,18 @@
Page({ Page({
logBtn :function(options){ formSubmit: function (e) {
wx.switchTab({ wx.request({
url:'/shouye/shouye', 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--> <form bindsubmit="formSubmit" >
<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;">
<view class="flex-row" style="display: flex;"><text class="password" data-c_e_id="1">密码</text></view> <text class="text1" >学号</text>
<view class="flex-row" style="display: flex;"><input class="inputpassword" data-c_e_id="wx_input_dfbcd57f" password="true" name="input1" placeholder="默认身份证号后六位" type="number"/> <input class="inputnumber" maxlength="15" name="userid" placeholder="请输入您的学号" type="number" />
</view> </view>
<button class="button1" bindtap="logBtn"> <view class="flex-row" style="display: flex;">
登 录</button> <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…
Cancel
Save