huangjunfeng_branch
黄俊锋 2 years ago
parent a01d95a342
commit 9af0b1771f

@ -7,6 +7,21 @@
"pages/ModifyMap/ModifyMap",
"pages/ModifyInformation/ModifyInformation",
"pages/ManageAccount/ManageAccount",
"pages/index/index",
"pages/adduser/index",
"pages/addusers/index",
"pages/adduserssuccess/index",
"pages/delete/index",
"pages/deleteuser/index",
"pages/deleteusers/index",
"pages/deleteuserssuccess/index",
"pages/selectusers/index",
"pages/selectusers(ID)/index",
"pages/selectusers(college)/index",
"pages/selectuserss/index",
"pages/selectuserssuccess/index",
"pages/updateusers/index",
"pages/updateuserssuccess/index",
"pages/index_hjf/index_hjf",
"pages/index1/index1",
"pages/adlogin/adlogin",

@ -1,66 +1,70 @@
// pages/index/index.js
//连接数据库
const db = wx.cloud.database()
Page({
/**
* 页面的初始数据
*/
data: {
loginOK: false
},
//map
map() {
wx.navigateTo({
url: '/pages/ModifyMap/ModifyMap',
})
},
//information
information() {
wx.navigateTo({
url: '/pages/ModifyInformation/ModifyInformation',
})
},
//account
account() {
wx.navigateTo({
url: '/pages/index/index'
})
},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
* 页面的初始数据
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
//使用云函数
//插入数据(增)
add:function(e){
wx.navigateTo({
url: '/pages/adduser/index',
})
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
//删除数据(删)
removeDataFn:function(){
wx.navigateTo({
url: '/pages/delete/index',
})
},
//查询数据(查)
searchDataNameFn:function(){
wx.navigateTo({
url: '/pages/selectusers/index',
})
},
//修改数据(改)
updateDataFn(){
wx.navigateTo({
url: '/pages/updateusers/index',
})
},
//返回
getback:function(){
wx.navigateBack({
delta: 1,
})
},
})

@ -1,2 +1,24 @@
<!--pages/index/index.wxml-->
<text>pages/index/index.wxml</text>
<view class="add">
<button class="button" bindtap="add" type="primary">增加用户</button>
</view>
<view class="delete">
<button class="button" type="primary" bindtap="removeDataFn">删除用户</button>
</view>
<view class="get">
<button class="button" type="primary" bindtap="searchDataNameFn">查询用户</button>
</view>
<view class="update">
<button class="button" type="primary" bindtap="updateDataFn">修改用户</button>
</view>
<view class="ModifyAccount">
<button class="map" type="primary" bindtap="map" style="position: relative; left: -244rpx; top: 136rpx; width: 263rpx; height: 136rpx; display: block; box-sizing: border-box">修改地图</button>
<button class="information" type="primary" bindtap="information" style="width: 263rpx; height: 136rpx; display: block; box-sizing: border-box; left: 19rpx; top: 0rpx; position: relative">修改信息</button>
<button class="account" type="primary" bindtap="account" style="width: 263rpx; height: 136rpx; display: block; box-sizing: border-box; left: 282rpx; top: -136rpx; position: relative">管理账户</button>
</view>

@ -1,23 +1,4 @@
<!--<view class="page">
<view class="page__bd">
<view class="weui-toptips weui-toptips_warn" wx:if="{{showTopTips}}">错误提示</view>
<view class="weui-btn-area" bindtap="denglu" style="width: 750rpx; height: 190rpx; display: block; box-sizing: border-box; left: 0rpx; top: 0rpx">
<button class="denglu" type="primary" style="width: 347rpx; height: 108rpx; display: block; box-sizing: border-box; left: -174rpx; top: 95rpx; position: relative">用户登陆</button>
</view>
<view class="weui-btn-area" bindtap="zhuce" style="width: 750rpx; height: 190rpx; display: block; box-sizing: border-box; left: 0rpx; top: 0rpx">
<button class="zhuce" type="primary" style="width: 347rpx; height: 108rpx; display: block; box-sizing: border-box; left: -174rpx; top: 83rpx; position: relative">用户注册</button>
</view>
<view class="weui-btn-area" bindtap="guanliyuandenglu">
<button class="weui-btn" type="primary" style="width: 331rpx; height: 108rpx; display: block; box-sizing: border-box; left: 210rpx; top: -108rpx; position: relative">管理员登陆</button>
</view>
<view class="weui-btn-area" bindtap="adzhuce" style="width: 750rpx; height: 190rpx; display: block; box-sizing: border-box; left: 0rpx; top: 0rpx">
<button class="adzhuce" type="primary" style="width: 347rpx; height: 108rpx; display: block; box-sizing: border-box; left: -174rpx; top: -61rpx; position: relative">管理员注册</button>
</view>
<view class="weui-cells__title" style="position: relative; left: 0rpx; top: -79rpx">注册,忘记密码请联系qq:xx</view>
</view>
</view>-->
<view class="login">
<view class="me">
<button class="denglu" type="primary" bindtap="denglu">登录</button>
<button class="zhuce" type="primary" bindtap="zhuce">注册</button>
<button class="guanliyuandenglu" type="primary" bindtap="guanliyuandenglu">管理员登录</button>

Loading…
Cancel
Save