pull/21/head
chounrs 2 years ago
parent d6df400bf7
commit a5d7754ed4

@ -40,7 +40,7 @@
"minifyWXML": true,
"ignoreUploadUnusedFiles": true
},
"appid": "wx5e77d1bb9e24f179",
"appid": "wx5871b0202e96c9d3",
"projectname": "quickstart-wx-cloud",
"libVersion": "2.14.1",
"cloudfunctionTemplateRoot": "cloudfunctionTemplate/",

@ -1,31 +0,0 @@
/*
* Eslint config file
* Documentation: https://eslint.org/docs/user-guide/configuring/
* Install the Eslint extension before using this feature.
*/
module.exports = {
env: {
es6: true,
browser: true,
node: true,
},
ecmaFeatures: {
modules: true,
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
globals: {
wx: true,
App: true,
Page: true,
getCurrentPages: true,
getApp: true,
Component: true,
requirePlugin: true,
requireMiniProgram: true,
},
// extends: 'eslint:recommended',
rules: {},
}

@ -1,12 +0,0 @@
# 云开发 quickstart
这是云开发的快速启动指引,其中演示了如何上手使用云开发的三大基础能力:
- 数据库:一个既可在小程序前端操作,也能在云函数中读写的 JSON 文档型数据库
- 文件存储:在小程序前端直接上传/下载云端文件,在云开发控制台可视化管理
- 云函数:在云端运行的代码,微信私有协议天然鉴权,开发者只需编写业务逻辑代码
## 参考文档
- [云开发文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/basis/getting-started.html)

@ -1,6 +0,0 @@
{
"permissions": {
"openapi": [
]
}
}

@ -1,83 +0,0 @@
// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init()
// 云函数入口函数
exports.main = async (event, context) => {
const wxContext = cloud.getWXContext()
//写有关于数据库操作的地方
//获取数据库的连接对象
const db = cloud.database();
//在一个云函数里面有4种数据库操作。所以要先判断是什么操作增删改查
//增
if(event.option=='add'){
return await db.collection('users').add({
//花括号里面是你要添加的对象
data:event.addData
//可添加多条或一条
//event:包含传过来的所有数据的一个对象
});
}
//删
else if(event.option=="deleteuser"){
return await db.collection('users').where({
//将要删除的值赋给name
User_ID:event.delUser_ID
}).remove();
}
else if(event.option=="deleteusers"){
return await db.collection('users').where({
//将要删除的值赋给name
User_College:event.delUser_College,
User_Grade:event.delUser_Grade,
User_Class:event.delUser_Class
}).remove();
}
//查
else if(event.option=="getID"){
return await db.collection('users').where({
User_ID:event.getUser_ID
}).get({
success:function(res){
return res
}
})
}
else if(event.option=="getCollege"){
return await db.collection('users').where({
User_College:event.getUser_College,
User_Grade:event.getUser_Grade,
User_Class:event.getUser_Class
}).get({
success:function(res){
return res
}
})
}
else if(event.option=="getusers"){
return await db.collection('users').where({
}).get({
success:function(res){
return res
}
})
}
//改
else if(event.option=="update"){
return await db.collection('users').where({
User_ID:event.updateUser_ID
}).update({
data:{
User_College:event.updateUser_College
}
})
}
}

@ -1,14 +0,0 @@
{
"name": "useroption",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"wx-server-sdk": "~2.6.3"
}
}

@ -1,20 +0,0 @@
// app.js
App({
onLaunch: function () {
if (!wx.cloud) {
console.error('请使用 2.2.3 或以上的基础库以使用云能力');
} else {
wx.cloud.init({
// env 参数说明:
// env 参数决定接下来小程序发起的云开发调用wx.cloud.xxx会默认请求到哪个云环境的资源
// 此处请填入环境 ID, 环境 ID 可打开云控制台查看
// 如不填则使用默认环境(第一个创建的环境)
// env: 'my-env-id',
env:'cloud1-7gnkwzfv6ba72e50',
traceUser: true,
});
}
this.globalData = {};
}
});

@ -1,28 +0,0 @@
{
"pages": [
"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"
],
"window": {
"backgroundColor": "#F6F6F6",
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#F6F6F6",
"navigationBarTitleText": "管理用户",
"navigationBarTextStyle": "black"
},
"sitemapLocation": "sitemap.json",
"style": "v2"
}

@ -1,27 +0,0 @@
/**app.wxss**/
.container {
display: flex;
flex-direction: column;
align-items: center;
box-sizing: border-box;
}
button {
background: initial;
}
button:focus{
outline: 0;
}
button::after{
border: none;
}
page {
background: #f6f6f6;
display: flex;
flex-direction: column;
justify-content: flex-start;
}

@ -1,37 +0,0 @@
// miniprogram/components/cloudTipModal/index.js
const { isMac } = require('../../envList.js');
Component({
/**
* 页面的初始数据
*/
data: {
showUploadTip: false,
tipText: isMac ? 'sh ./uploadCloudFunction.sh' : './uploadCloudFunction.bat'
},
properties: {
showUploadTipProps: Boolean
},
observers: {
showUploadTipProps: function(showUploadTipProps) {
this.setData({
showUploadTip: showUploadTipProps
});
}
},
methods: {
onChangeShowUploadTip() {
this.setData({
showUploadTip: !this.data.showUploadTip
});
},
copyShell() {
wx.setClipboardData({
data: this.data.tipText,
});
},
}
});

@ -1,13 +0,0 @@
<!--miniprogram/components/cloudTipModal/index.wxml-->
<view class="install_tip" wx:if="{{showUploadTip}}">
<view class="install_tip_back"></view>
<view class="install_tip_detail">
<view class="install_tip_detail_title">体验前需部署云资源</view>
<view class="install_tip_detail_tip">请开启调试器进入终端窗口,复制并运行以下命令</view>
<view class="install_tip_detail_shell">
{{tipText}}
<view bindtap="copyShell" class="install_tip_detail_copy">复制</view>
</view>
<view bindtap="onChangeShowUploadTip" class="install_tip_detail_button">已执行命令</view>
</view>
</view>

@ -1,57 +0,0 @@
.install_tip_back {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(0,0,0,0.4);
z-index: 1;
}
.install_tip_detail {
position: fixed;
background-color: white;
right: 0;
bottom: 0;
left: 0;
top: 60%;
border-radius: 40rpx 40rpx 0 0;
padding: 50rpx;
z-index: 9;
}
.install_tip_detail_title {
font-weight: 400;
font-size: 40rpx;
text-align: center;
}
.install_tip_detail_tip {
font-size: 25rpx;
color: rgba(0,0,0,0.4);
margin-top: 20rpx;
text-align: center;
}
.install_tip_detail_shell {
margin: 70rpx 0;
display: flex;
justify-content: center;
}
.install_tip_detail_copy {
color: #546488;
margin-left: 10rpx;
}
.install_tip_detail_button {
color: #07C160;
font-weight: 500;
background-color: rgba(0,0,0,0.1);
width: 60%;
text-align: center;
height: 90rpx;
line-height: 90rpx;
border-radius: 10rpx;
margin: 0 auto;
}

@ -1,6 +0,0 @@
const envList = [{"envId":"cloud1-7gnkwzfv6ba72e50","alias":"cloud1"}]
const isMac = false
module.exports = {
envList,
isMac
}

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="8px" height="14px" viewBox="0 0 8 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>☀ iOS/☀ 图标/线型/icons_outlined_arrow@3x</title>
<g id="控件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" fill-opacity="0.3">
<g id="4.列表/z.覆盖层/右边/箭头" transform="translate(-334.000000, -21.000000)" fill="#000000">
<g id="☀-iOS/☀-图标/线型/icons_outlined_arrow" transform="translate(332.000000, 16.000000)">
<path d="M2.45405845,6.58064919 L3.51471863,5.51998901 L9.29361566,11.298886 C9.68374096,11.6890113 9.6872014,12.318069 9.29361566,12.7116547 L3.51471863,18.4905518 L2.45405845,17.4298916 L7.87867966,12.0052704 L2.45405845,6.58064919 Z" id="Combined-Shape"></path>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 906 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 328 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 KiB

@ -1,89 +0,0 @@
// pages/index/index.js
//连接数据库
const db = wx.cloud.database()
Page({
/**
* 页面的初始数据
*/
data: {
User_ID:'',
User_College:'',
User_Key:'',
User_Class:'',
User_Grade:''
},
//监听并修改用户名和年龄的输入
inputID:function(e){
this.setData({
User_ID:e.detail.value
})
},
inputCollege:function(e){
this.setData({
User_College:e.detail.value
})
},
inputGrade:function(e){
this.setData({
User_Grade:e.detail.value
})
},
inputClass:function(e){
this.setData({
User_Class:e.detail.value
})
},
inputKey:function(e){
this.setData({
User_Key:e.detail.value
})
},
//使用云函数
//插入数据(增)
add:function(e){
//要添加的数据是一个对象
// var user={
// username:this.data.username,
// age:this.data.age
// };
console.log(e);
wx.cloud.callFunction({
name: 'useroption',
data: {
option: 'add',
addData:{
User_ID:this.data.User_ID,
User_College:this.data.User_College,
User_Grade:this.data.User_Grade,
User_Class:this.data.User_Class,
User_Key:this.data.User_Key
}
},
success: res => {
wx.showToast({
title: '用户添加成功',
})
console.log("添加成功")
console.log(res)
},
fail:err => {
wx.showToast({
title: '用户添加失败',
})
}
})
},
getback:function(){
wx.navigateBack({
delta:1,
})
}
})

@ -1,35 +0,0 @@
<!--pages/addusers/index.wxml-->
<view class="add">
<input
type="text"
value="{{User_ID}}"
placeholder="请输入学号"
bindblur="inputID"
/>
<input
type="text"
value="{{User_College}}"
bindblur="inputCollege"
placeholder="请输入用户院系"
/>
<input
type="text"
value="{{User_Class}}"
bindblur="inputClass"
placeholder="请输入用户班级"
/>
<input
type="text"
value="{{User_Grade}}"
bindblur="inputGrade"
placeholder="请输入用户年级"
/>
<input
type="text"
value="{{User_Key}}"
bindblur="inputKey"
placeholder="请输入用户密码"
/>
<button class="button" bindtap="add" type="primary">增加</button>
</view>
<button class="button" type="primary" bindtap="getback">返回</button>

@ -1,100 +0,0 @@
/* pages/addusers/index.wxss */
page {
padding-top: 54rpx;
background-color: #f6f6f6;
padding-bottom: 60rpx;
}
.button {
margin-top: 50px;
margin-left: 50px;
margin-right: 50px;
}
.title {
font-family: PingFang SC;
font-weight: 500;
color: #000000;
font-size: 44rpx;
margin-bottom: 40rpx;
}
.top_tip {
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 400;
color: #888888;
margin-bottom: 28rpx;
}
.power {
margin-top: 30rpx;
border-radius: 5px;
background-color: white;
width: 93%;
padding-bottom: 1rpx;
}
.power_info {
display: flex;
padding: 30rpx 25rpx;
align-items: center;
justify-content: space-between;
}
.power_info_more {
width: 30rpx;
height: 30rpx;
transform: rotate(90deg);
}
.power_info_less {
width: 30rpx;
height: 30rpx;
transform: rotate(270deg);
}
.power_info_text {
display: flex;
flex-direction: column;
}
.power_info_text_title {
margin-bottom: 10rpx;
font-weight: 400;
font-size: 35rpx;
}
.power_info_text_tip {
color: rgba(0, 0, 0, 0.4);
font-size: 25rpx;
}
.power_item {
padding: 30rpx 25rpx;
display: flex;
justify-content: space-between;
}
.power_item_title {
font-size: 30rpx;
}
.power_item_icon {
width: 30rpx;
height: 30rpx;
}
.line {
width: 95%;
margin: 0 auto;
height: 2rpx;
background-color: rgba(0, 0, 0, 0.1);
}
.environment {
color: rgba(0, 0, 0, 0.4);
font-size: 24rpx;
margin-top: 25%;
}

@ -1,88 +0,0 @@
// pages/addusers/index.js
const db = wx.cloud.database()
Page({
/**
* 页面的初始数据
*/
data: {
User_ID:'',
User_College:'',
User_Key:'',
User_Class:'',
User_Grade:''
},
//监听并修改用户名和年龄的输入
inputID:function(e){
this.setData({
User_ID:e.detail.value
})
},
inputCollege:function(e){
this.setData({
User_College:e.detail.value
})
},
inputGrade:function(e){
this.setData({
User_Grade:e.detail.value
})
},
inputClass:function(e){
this.setData({
User_Class:e.detail.value
})
},
inputKey:function(e){
this.setData({
User_Key:e.detail.value
})
},
//使用云函数
//插入数据(增)
add:function(e){
//要添加的数据是一个对象
// var user={
// username:this.data.username,
// age:this.data.age
// };
console.log(e);
wx.cloud.callFunction({
name: 'useroption',
data: {
option: 'add',
addData:{
User_ID:this.data.User_ID,
User_College:this.data.User_College,
User_Grade:this.data.User_Grade,
User_Class:this.data.User_Class,
User_Key:this.data.User_Key
}
},
success: res => {
wx.showToast({
title: '用户添加成功',
})
console.log("添加成功")
console.log(res)
},
fail:err => {
wx.showToast({
title: '用户添加失败',
})
}
})
},
getback:function(){
wx.navigateBack({
delta:1,
})
}
})

@ -1,36 +0,0 @@
<!--pages/addusers/index.wxml-->
<!--pages/addusers/index.wxml-->
<view class="add">
<input
type="text"
value="{{User_ID}}"
placeholder="请输入学号"
bindblur="inputID"
/>
<input
type="text"
value="{{User_College}}"
bindblur="inputCollege"
placeholder="请输入用户院系"
/>
<input
type="text"
value="{{User_Class}}"
bindblur="inputClass"
placeholder="请输入用户班级"
/>
<input
type="text"
value="{{User_Grade}}"
bindblur="inputGrade"
placeholder="请输入用户年级"
/>
<input
type="text"
value="{{User_Key}}"
bindblur="inputKey"
placeholder="请输入用户密码"
/>
<button class="button" bindtap="add" type="primary">增加</button>
</view>
<button class="button" type="primary" bindtap="getback">返回</button>

@ -1,100 +0,0 @@
/* pages/addusers/index.wxss */
page {
padding-top: 54rpx;
background-color: #f6f6f6;
padding-bottom: 60rpx;
}
.button {
margin-top: 50px;
margin-left: 50px;
margin-right: 50px;
}
.title {
font-family: PingFang SC;
font-weight: 500;
color: #000000;
font-size: 44rpx;
margin-bottom: 40rpx;
}
.top_tip {
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 400;
color: #888888;
margin-bottom: 28rpx;
}
.power {
margin-top: 30rpx;
border-radius: 5px;
background-color: white;
width: 93%;
padding-bottom: 1rpx;
}
.power_info {
display: flex;
padding: 30rpx 25rpx;
align-items: center;
justify-content: space-between;
}
.power_info_more {
width: 30rpx;
height: 30rpx;
transform: rotate(90deg);
}
.power_info_less {
width: 30rpx;
height: 30rpx;
transform: rotate(270deg);
}
.power_info_text {
display: flex;
flex-direction: column;
}
.power_info_text_title {
margin-bottom: 10rpx;
font-weight: 400;
font-size: 35rpx;
}
.power_info_text_tip {
color: rgba(0, 0, 0, 0.4);
font-size: 25rpx;
}
.power_item {
padding: 30rpx 25rpx;
display: flex;
justify-content: space-between;
}
.power_item_title {
font-size: 30rpx;
}
.power_item_icon {
width: 30rpx;
height: 30rpx;
}
.line {
width: 95%;
margin: 0 auto;
height: 2rpx;
background-color: rgba(0, 0, 0, 0.1);
}
.environment {
color: rgba(0, 0, 0, 0.4);
font-size: 24rpx;
margin-top: 25%;
}

@ -1,66 +0,0 @@
// pages/adduserssuccess/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

@ -1,2 +0,0 @@
<!--pages/adduserssuccess/index.wxml-->
<text>pages/adduserssuccess/index.wxml</text>

@ -1,14 +0,0 @@
// pages/delete/index.js
const db = wx.cloud.database()
Page({
removeuser:function(){
wx.navigateTo({
url: '/pages/deleteuser/index',
})
},
removeusers:function(){
wx.navigateTo({
url: '/pages/deleteusers/index',
})
},
})

@ -1,7 +0,0 @@
<!--pages/delete/index.wxml-->
<view class="delete">
<button class="button" type="primary" bindtap="removeuser">删除单个用户</button>
</view>
<view class="delete">
<button class="button" type="primary" bindtap="removeusers">删除一批用户</button>
</view>

@ -1,100 +0,0 @@
/* pages/delete/index.wxss */
page {
padding-top: 54rpx;
background-color: #f6f6f6;
padding-bottom: 60rpx;
}
.button {
margin-top: 50px;
margin-left: 50px;
margin-right: 50px;
}
.title {
font-family: PingFang SC;
font-weight: 500;
color: #000000;
font-size: 44rpx;
margin-bottom: 40rpx;
}
.top_tip {
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 400;
color: #888888;
margin-bottom: 28rpx;
}
.power {
margin-top: 30rpx;
border-radius: 5px;
background-color: white;
width: 93%;
padding-bottom: 1rpx;
}
.power_info {
display: flex;
padding: 30rpx 25rpx;
align-items: center;
justify-content: space-between;
}
.power_info_more {
width: 30rpx;
height: 30rpx;
transform: rotate(90deg);
}
.power_info_less {
width: 30rpx;
height: 30rpx;
transform: rotate(270deg);
}
.power_info_text {
display: flex;
flex-direction: column;
}
.power_info_text_title {
margin-bottom: 10rpx;
font-weight: 400;
font-size: 35rpx;
}
.power_info_text_tip {
color: rgba(0, 0, 0, 0.4);
font-size: 25rpx;
}
.power_item {
padding: 30rpx 25rpx;
display: flex;
justify-content: space-between;
}
.power_item_title {
font-size: 30rpx;
}
.power_item_icon {
width: 30rpx;
height: 30rpx;
}
.line {
width: 95%;
margin: 0 auto;
height: 2rpx;
background-color: rgba(0, 0, 0, 0.1);
}
.environment {
color: rgba(0, 0, 0, 0.4);
font-size: 24rpx;
margin-top: 25%;
}

@ -1,34 +0,0 @@
// pages/deleteuser/index.js
Page({
inputdelID:function(e){
this.setData({
delUser_ID:e.detail.value
})
},
removeDataFn:function(){
wx.cloud.callFunction({
name: 'useroption',
data: {
option: 'deleteuser',
//要删除的数据
delUser_ID:this.data.delUser_ID
},
success: res => {
wx.showToast({
title: '用户删除成功',
})
console.log(res)
},
fail: err => {
wx.showToast({
title: '用户删除失败',
})
}
})
},
getback:function(){
wx.navigateBack({
delta:2,
})
}
})

@ -1,10 +0,0 @@
<!--pages/deleteuser/index.wxml-->
<view class="delete">
<input
value="{{delUser_ID}}"
placeholder="请输入要删除用户的学号"
bindblur="inputdelID"
/>
</view>
<button class="button" type="primary" bindtap="removeDataFn">删除用户</button>
<button class="button" type="primary" bindtap="getback">返回</button>

@ -1,100 +0,0 @@
/* pages/deleteuser/index.wxss */
page {
padding-top: 54rpx;
background-color: #f6f6f6;
padding-bottom: 60rpx;
}
.button {
margin-top: 50px;
margin-left: 50px;
margin-right: 50px;
}
.title {
font-family: PingFang SC;
font-weight: 500;
color: #000000;
font-size: 44rpx;
margin-bottom: 40rpx;
}
.top_tip {
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 400;
color: #888888;
margin-bottom: 28rpx;
}
.power {
margin-top: 30rpx;
border-radius: 5px;
background-color: white;
width: 93%;
padding-bottom: 1rpx;
}
.power_info {
display: flex;
padding: 30rpx 25rpx;
align-items: center;
justify-content: space-between;
}
.power_info_more {
width: 30rpx;
height: 30rpx;
transform: rotate(90deg);
}
.power_info_less {
width: 30rpx;
height: 30rpx;
transform: rotate(270deg);
}
.power_info_text {
display: flex;
flex-direction: column;
}
.power_info_text_title {
margin-bottom: 10rpx;
font-weight: 400;
font-size: 35rpx;
}
.power_info_text_tip {
color: rgba(0, 0, 0, 0.4);
font-size: 25rpx;
}
.power_item {
padding: 30rpx 25rpx;
display: flex;
justify-content: space-between;
}
.power_item_title {
font-size: 30rpx;
}
.power_item_icon {
width: 30rpx;
height: 30rpx;
}
.line {
width: 95%;
margin: 0 auto;
height: 2rpx;
background-color: rgba(0, 0, 0, 0.1);
}
.environment {
color: rgba(0, 0, 0, 0.4);
font-size: 24rpx;
margin-top: 25%;
}

@ -1,46 +0,0 @@
// pages/deleteusers/index.js
Page({
inputdelCollege:function(e){
this.setData({
delUser_College:e.detail.value,
})
},
inputdelGrade:function(e){
this.setData({
delUser_Grade:e.detail.value,
})
},
inputdelClass:function(e){
this.setData({
delUser_Class:e.detail.value,
})
},
removeDataFn:function(){
wx.cloud.callFunction({
name: 'useroption',
data: {
option: 'deleteusers',
//要删除的数据
delUser_College:this.data.delUser_College,
delUser_Grade:this.data.delUser_Grade,
delUser_Class:this.data.delUser_Class
},
success: res => {
wx.showToast({
title: '用户删除成功',
})
console.log(res)
},
fail: err => {
wx.showToast({
title: '用户删除失败',
})
}
})
},
getback:function(){
wx.navigateBack({
delta:2,
})
}
})

@ -1,20 +0,0 @@
<!--pages/deleteusers/index.wxml-->
<view class="delete">
<input
value="{{delUser_College}}"
placeholder="请输入要删除用户的院系"
bindblur="inputdelCollege"
/>
<input
value="{{delUser_Grade}}"
placeholder="请输入要删除用户的年级"
bindblur="inputdelGrade"
/>
<input
value="{{delUser_Class}}"
placeholder="请输入要删除用户的班级"
bindblur="inputdelClass"
/>
</view>
<button class="button" type="primary" bindtap="removeDataFn">删除用户</button>
<button class="button" type="primary" bindtap="getback">返回</button>

@ -1,100 +0,0 @@
/* pages/deleteusers/index.wxss */
page {
padding-top: 54rpx;
background-color: #f6f6f6;
padding-bottom: 60rpx;
}
.button {
margin-top: 50px;
margin-left: 50px;
margin-right: 50px;
}
.title {
font-family: PingFang SC;
font-weight: 500;
color: #000000;
font-size: 44rpx;
margin-bottom: 40rpx;
}
.top_tip {
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 400;
color: #888888;
margin-bottom: 28rpx;
}
.power {
margin-top: 30rpx;
border-radius: 5px;
background-color: white;
width: 93%;
padding-bottom: 1rpx;
}
.power_info {
display: flex;
padding: 30rpx 25rpx;
align-items: center;
justify-content: space-between;
}
.power_info_more {
width: 30rpx;
height: 30rpx;
transform: rotate(90deg);
}
.power_info_less {
width: 30rpx;
height: 30rpx;
transform: rotate(270deg);
}
.power_info_text {
display: flex;
flex-direction: column;
}
.power_info_text_title {
margin-bottom: 10rpx;
font-weight: 400;
font-size: 35rpx;
}
.power_info_text_tip {
color: rgba(0, 0, 0, 0.4);
font-size: 25rpx;
}
.power_item {
padding: 30rpx 25rpx;
display: flex;
justify-content: space-between;
}
.power_item_title {
font-size: 30rpx;
}
.power_item_icon {
width: 30rpx;
height: 30rpx;
}
.line {
width: 95%;
margin: 0 auto;
height: 2rpx;
background-color: rgba(0, 0, 0, 0.1);
}
.environment {
color: rgba(0, 0, 0, 0.4);
font-size: 24rpx;
margin-top: 25%;
}

@ -1,66 +0,0 @@
// pages/deleteuserssuccess/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

@ -1,2 +0,0 @@
<!--pages/deleteuserssuccess/index.wxml-->
<text>pages/deleteuserssuccess/index.wxml</text>

@ -1,43 +0,0 @@
// pages/index/index.js
//连接数据库
const db = wx.cloud.database()
Page({
/**
* 页面的初始数据
*/
//使用云函数
//插入数据(增)
add:function(e){
wx.navigateTo({
url: '/pages/adduser/index',
})
},
//删除数据(删)
removeDataFn:function(){
wx.navigateTo({
url: '/pages/delete/index',
})
},
//查询数据(查)
searchDataNameFn:function(){
wx.navigateTo({
url: '/pages/selectusers/index',
})
},
//修改数据(改)
updateDataFn(){
wx.navigateTo({
url: '/pages/updateusers/index',
})
},
})

@ -1,5 +0,0 @@
{
"usingComponents": {
"cloud-tip-modal": "/components/cloudTipModal/index"
}
}

@ -1,18 +0,0 @@
<!--pages/index/index.wxml-->
<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>

@ -1,101 +0,0 @@
/**index.wxss**/
page {
padding-top: 54rpx;
background-color: #f6f6f6;
padding-bottom: 60rpx;
}
.button {
margin-top: 50px;
margin-left: 50px;
margin-right: 50px;
}
.title {
font-family: PingFang SC;
font-weight: 500;
color: #000000;
font-size: 44rpx;
margin-bottom: 40rpx;
}
.top_tip {
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 400;
color: #888888;
margin-bottom: 28rpx;
}
.power {
margin-top: 30rpx;
border-radius: 5px;
background-color: white;
width: 93%;
padding-bottom: 1rpx;
}
.power_info {
display: flex;
padding: 30rpx 25rpx;
align-items: center;
justify-content: space-between;
}
.power_info_more {
width: 30rpx;
height: 30rpx;
transform: rotate(90deg);
}
.power_info_less {
width: 30rpx;
height: 30rpx;
transform: rotate(270deg);
}
.power_info_text {
display: flex;
flex-direction: column;
}
.power_info_text_title {
margin-bottom: 10rpx;
font-weight: 400;
font-size: 35rpx;
}
.power_info_text_tip {
color: rgba(0, 0, 0, 0.4);
font-size: 25rpx;
}
.power_item {
padding: 30rpx 25rpx;
display: flex;
justify-content: space-between;
}
.power_item_title {
font-size: 30rpx;
}
.power_item_icon {
width: 30rpx;
height: 30rpx;
}
.line {
width: 95%;
margin: 0 auto;
height: 2rpx;
background-color: rgba(0, 0, 0, 0.1);
}
.environment {
color: rgba(0, 0, 0, 0.4);
font-size: 24rpx;
margin-top: 25%;
}

@ -1,36 +0,0 @@
// pages/selectusers/index.js
Page({
inputgetID:function(e){
this.setData({
getUser_ID:e.detail.value
})
},
searchDataNameFn:function(){
wx.cloud.callFunction({
name: 'useroption',
data: {
option: 'getID',
getUser_ID:this.data.getUser_ID
},
success: res => {
this.setData({
array: res.result.data
})
wx.showToast({
title: '用户查询成功',
})
console.log(res.result.data)
},
fail: err => {
wx.showToast({
title: '用户查询失败',
})
}
})
},
getback:function(){
wx.navigateBack({
delta:2,
})
}
})

@ -1,31 +0,0 @@
<!--pages/selectusers/index.wxml-->
<view class="getID">
<input
value="{{getUser_ID}}"
placeholder="请输入要查询用户的学号"
bindblur="inputgetID"
/>
</view>
<view>
<view wx:if="{{array}}" class="code_box">
<view class="code_box_title">用户库</view>
<view class="code_box_record">
<view class="code_box_record_title">年级</view>
<view class="code_box_record_title">院系</view>
<view class="code_box_record_title">班级</view>
<view class="code_box_record_title">学号</view>
</view>
<view class="line"></view>
<view class="code_box_record" wx:for="{{array}}" wx:key="_id">
<view class="code_box_record_detail">{{item.User_College}}</view>
<view class="code_box_record_detail">{{item.User_Grade}}</view>
<view class="code_box_record_detail">{{item.User_Class}}</view>
<view class="code_box_record_detail">{{item.User_ID}}</view>
</view>
</view>
</view>
<button class="button" type="primary" bindtap="searchDataNameFn">查询</button>
<button class="button" type="primary" bindtap="getback">返回</button>

@ -1,145 +0,0 @@
/* pages/selectusers/index.wxss */
/* pages/selectusers(college)/index.wxss */
page {
padding-top: 54rpx;
background-color: #f6f6f6;
padding-bottom: 60rpx;
}
.button {
margin-top: 50px;
margin-left: 50px;
margin-right: 50px;
}
.title {
font-family: PingFang SC;
font-weight: 500;
color: #000000;
font-size: 44rpx;
margin-bottom: 40rpx;
}
.top_tip {
font-size: 28rpx;
color: rgba(0, 0, 0, 0.5);
width: 90%;
text-align: left;
margin-top: 30rpx;
margin-left: 20rpx;
}
.power {
margin-top: 30rpx;
border-radius: 5px;
background-color: white;
width: 93%;
padding-bottom: 1rpx;
}
.power_info {
display: flex;
padding: 30rpx 25rpx;
align-items: center;
justify-content: space-between;
}
.power_info_more {
width: 30rpx;
height: 30rpx;
transform: rotate(90deg);
}
.power_info_less {
width: 30rpx;
height: 30rpx;
transform: rotate(270deg);
}
.power_info_text {
display: flex;
flex-direction: column;
}
.power_info_text_title {
margin-bottom: 10rpx;
font-weight: 400;
font-size: 35rpx;
}
.power_info_text_tip {
color: rgba(0, 0, 0, 0.4);
font-size: 25rpx;
}
.power_item {
padding: 30rpx 25rpx;
display: flex;
justify-content: space-between;
}
.power_item_title {
font-size: 30rpx;
}
.power_item_icon {
width: 30rpx;
height: 30rpx;
}
.line {
width: 95%;
margin: 0 auto;
height: 2rpx;
background-color: rgba(0, 0, 0, 0.1);
}
.environment {
color: rgba(0, 0, 0, 0.4);
font-size: 24rpx;
margin-top: 25%;
}
.code_box {
text-align: center;
background-color: white;
margin-top: 30rpx;
padding: 17rpx;
}
.code_box_title {
color: rgba(0, 0, 0, 0.5);
font-size: 26rpx;
margin-bottom: 20rpx;
text-align: left;
}
.code_box_record {
display: flex;
}
.code_box_record_title {
width: 33%;
font-size: 26rpx;
color: rgba(0, 0, 0, 0.5);
padding: 20rpx 0;
}
.code_box_record_detail {
width: 33%;
font-size: 26rpx;
padding: 20rpx 0;
}
.button {
width: 300rpx;
text-align: center;
margin: 20% auto 0 auto;
height: 80rpx;
color: white;
border-radius: 5px;
line-height: 80rpx;
background-color: #07c160;
}

@ -1,48 +0,0 @@
// pages/selectusers(college)/index.js
Page({
inputgetCollege:function(e){
this.setData({
getUser_College:e.detail.value
})
},
inputgetGrade:function(e){
this.setData({
getUser_Grade:e.detail.value
})
},
inputgetClass:function(e){
this.setData({
getUser_Class:e.detail.value
})
},
searchDataNameFn:function(){
wx.cloud.callFunction({
name: 'useroption',
data: {
option: 'getCollege',
getUser_College:this.data.getUser_College,
getUser_Grade:this.data.getUser_Grade,
getUser_Class:this.data.getUser_Class
},
success: res => {
this.setData({
array: res.result.data
})
wx.showToast({
title: '用户查询成功',
})
console.log(res.result.data)
},
fail: err => {
wx.showToast({
title: '用户查询失败',
})
}
})
},
getback:function(){
wx.navigateBack({
delta:2,
})
}
})

@ -1,41 +0,0 @@
<!--pages/selectusers(college)/index.wxml-->
<view class="getCollege">
<input
value="{{getUser_College}}"
placeholder="请输入要查询用户的学院"
bindblur="inputgetCollege"
/>
<input
value="{{getUser_Grade}}"
placeholder="请输入要查询用户的年级"
bindblur="inputgetGrade"
/>
<input
value="{{getUser_Class}}"
placeholder="请输入要查询用户的班级"
bindblur="inputgetClass"
/>
</view>
<view>
<view wx:if="{{array}}" class="code_box">
<view class="code_box_title">用户库</view>
<view class="code_box_record">
<view class="code_box_record_title">年级</view>
<view class="code_box_record_title">院系</view>
<view class="code_box_record_title">班级</view>
<view class="code_box_record_title">学号</view>
</view>
<view class="line"></view>
<view class="code_box_record" wx:for="{{array}}" wx:key="_id">
<view class="code_box_record_detail">{{item.User_College}}</view>
<view class="code_box_record_detail">{{item.User_Grade}}</view>
<view class="code_box_record_detail">{{item.User_Class}}</view>
<view class="code_box_record_detail">{{item.User_ID}}</view>
</view>
</view>
</view>
<button class="button" type="primary" bindtap="searchDataNameFn">查询</button>
<button class="button" type="primary" bindtap="getback">返回</button>

@ -1,144 +0,0 @@
/* pages/selectusers(college)/index.wxss */
page {
padding-top: 54rpx;
background-color: #f6f6f6;
padding-bottom: 60rpx;
}
.button {
margin-top: 50px;
margin-left: 50px;
margin-right: 50px;
}
.title {
font-family: PingFang SC;
font-weight: 500;
color: #000000;
font-size: 44rpx;
margin-bottom: 40rpx;
}
.top_tip {
font-size: 28rpx;
color: rgba(0, 0, 0, 0.5);
width: 90%;
text-align: left;
margin-top: 30rpx;
margin-left: 20rpx;
}
.power {
margin-top: 30rpx;
border-radius: 5px;
background-color: white;
width: 93%;
padding-bottom: 1rpx;
}
.power_info {
display: flex;
padding: 30rpx 25rpx;
align-items: center;
justify-content: space-between;
}
.power_info_more {
width: 30rpx;
height: 30rpx;
transform: rotate(90deg);
}
.power_info_less {
width: 30rpx;
height: 30rpx;
transform: rotate(270deg);
}
.power_info_text {
display: flex;
flex-direction: column;
}
.power_info_text_title {
margin-bottom: 10rpx;
font-weight: 400;
font-size: 35rpx;
}
.power_info_text_tip {
color: rgba(0, 0, 0, 0.4);
font-size: 25rpx;
}
.power_item {
padding: 30rpx 25rpx;
display: flex;
justify-content: space-between;
}
.power_item_title {
font-size: 30rpx;
}
.power_item_icon {
width: 30rpx;
height: 30rpx;
}
.line {
width: 95%;
margin: 0 auto;
height: 2rpx;
background-color: rgba(0, 0, 0, 0.1);
}
.environment {
color: rgba(0, 0, 0, 0.4);
font-size: 24rpx;
margin-top: 25%;
}
.code_box {
text-align: center;
background-color: white;
margin-top: 30rpx;
padding: 17rpx;
}
.code_box_title {
color: rgba(0, 0, 0, 0.5);
font-size: 26rpx;
margin-bottom: 20rpx;
text-align: left;
}
.code_box_record {
display: flex;
}
.code_box_record_title {
width: 33%;
font-size: 26rpx;
color: rgba(0, 0, 0, 0.5);
padding: 20rpx 0;
}
.code_box_record_detail {
width: 33%;
font-size: 26rpx;
padding: 20rpx 0;
}
.button {
width: 300rpx;
text-align: center;
margin: 20% auto 0 auto;
height: 80rpx;
color: white;
border-radius: 5px;
line-height: 80rpx;
background-color: #07c160;
}

@ -1,22 +0,0 @@
// pages/selectusers/index.js
const db = wx.cloud.database()
Page({
//查询数据(查)
searchID:function(){
wx.navigateTo({
url: '/pages/selectusers(ID)/index',
})
},
searchCollege:function(){
wx.navigateTo({
url: '/pages/selectusers(college)/index',
})
},
search:function(){
wx.navigateTo({
url: '/pages/selectuserss/index',
})
},
})

@ -1,12 +0,0 @@
<!--pages/selectusers/index.wxml-->
<view class="get">
<button class="button" type="primary" bindtap="searchID">查询单个用户</button>
</view>
<view class="get">
<button class="button" type="primary" bindtap="searchCollege">查询多个用户</button>
</view>
<view class="get">
<button class="button" type="primary" bindtap="search">查询所有用户</button>
</view>

@ -1,101 +0,0 @@
/* pages/selectusers/index.wxss */
page {
padding-top: 54rpx;
background-color: #f6f6f6;
padding-bottom: 60rpx;
}
.button {
margin-top: 50px;
margin-left: 50px;
margin-right: 50px;
}
.title {
font-family: PingFang SC;
font-weight: 500;
color: #000000;
font-size: 44rpx;
margin-bottom: 40rpx;
}
.top_tip {
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 400;
color: #888888;
margin-bottom: 28rpx;
}
.power {
margin-top: 30rpx;
border-radius: 5px;
background-color: white;
width: 93%;
padding-bottom: 1rpx;
}
.power_info {
display: flex;
padding: 30rpx 25rpx;
align-items: center;
justify-content: space-between;
}
.power_info_more {
width: 30rpx;
height: 30rpx;
transform: rotate(90deg);
}
.power_info_less {
width: 30rpx;
height: 30rpx;
transform: rotate(270deg);
}
.power_info_text {
display: flex;
flex-direction: column;
}
.power_info_text_title {
margin-bottom: 10rpx;
font-weight: 400;
font-size: 35rpx;
}
.power_info_text_tip {
color: rgba(0, 0, 0, 0.4);
font-size: 25rpx;
}
.power_item {
padding: 30rpx 25rpx;
display: flex;
justify-content: space-between;
}
.power_item_title {
font-size: 30rpx;
}
.power_item_icon {
width: 30rpx;
height: 30rpx;
}
.line {
width: 95%;
margin: 0 auto;
height: 2rpx;
background-color: rgba(0, 0, 0, 0.1);
}
.environment {
color: rgba(0, 0, 0, 0.4);
font-size: 24rpx;
margin-top: 25%;
}

@ -1,30 +0,0 @@
// pages/selectuserss/index.js
Page({
searchDataNameFn:function(){
wx.cloud.callFunction({
name: 'useroption',
data: {
option: 'getusers',
},
success: res => {
this.setData({
array: res.result.data
})
wx.showToast({
title: '用户查询成功',
})
console.log(res.result.data)
},
fail: err => {
wx.showToast({
title: '用户查询失败',
})
}
})
},
getback:function(){
wx.navigateBack({
delta:2,
})
}
})

@ -1,20 +0,0 @@
<!--pages/selectuserss/index.wxml-->
<view>
<view wx:if="{{array}}" class="code_box">
<view class="code_box_title">用户库</view>
<view class="code_box_record">
<view class="code_box_record_title">年级</view>
<view class="code_box_record_title">院系</view>
<view class="code_box_record_title">班级</view>
<view class="code_box_record_title">学号</view>
</view>
<view class="line"></view>
<view class="code_box_record" wx:for="{{array}}" wx:key="_id">
<view class="code_box_record_detail">{{item.User_College}}</view>
<view class="code_box_record_detail">{{item.User_Grade}}</view>
<view class="code_box_record_detail">{{item.User_Class}}</view>
<view class="code_box_record_detail">{{item.User_ID}}</view>
</view>
</view>
</view>
<button class="button" type="primary" bindtap="searchDataNameFn">查询</button>

@ -1,145 +0,0 @@
/* pages/selectuserss/index.wxss */
/* pages/selectusers(college)/index.wxss */
page {
padding-top: 54rpx;
background-color: #f6f6f6;
padding-bottom: 60rpx;
}
.button {
margin-top: 50px;
margin-left: 50px;
margin-right: 50px;
}
.title {
font-family: PingFang SC;
font-weight: 500;
color: #000000;
font-size: 44rpx;
margin-bottom: 40rpx;
}
.top_tip {
font-size: 28rpx;
color: rgba(0, 0, 0, 0.5);
width: 90%;
text-align: left;
margin-top: 30rpx;
margin-left: 20rpx;
}
.power {
margin-top: 30rpx;
border-radius: 5px;
background-color: white;
width: 93%;
padding-bottom: 1rpx;
}
.power_info {
display: flex;
padding: 30rpx 25rpx;
align-items: center;
justify-content: space-between;
}
.power_info_more {
width: 30rpx;
height: 30rpx;
transform: rotate(90deg);
}
.power_info_less {
width: 30rpx;
height: 30rpx;
transform: rotate(270deg);
}
.power_info_text {
display: flex;
flex-direction: column;
}
.power_info_text_title {
margin-bottom: 10rpx;
font-weight: 400;
font-size: 35rpx;
}
.power_info_text_tip {
color: rgba(0, 0, 0, 0.4);
font-size: 25rpx;
}
.power_item {
padding: 30rpx 25rpx;
display: flex;
justify-content: space-between;
}
.power_item_title {
font-size: 30rpx;
}
.power_item_icon {
width: 30rpx;
height: 30rpx;
}
.line {
width: 95%;
margin: 0 auto;
height: 2rpx;
background-color: rgba(0, 0, 0, 0.1);
}
.environment {
color: rgba(0, 0, 0, 0.4);
font-size: 24rpx;
margin-top: 25%;
}
.code_box {
text-align: center;
background-color: white;
margin-top: 30rpx;
padding: 17rpx;
}
.code_box_title {
color: rgba(0, 0, 0, 0.5);
font-size: 26rpx;
margin-bottom: 20rpx;
text-align: left;
}
.code_box_record {
display: flex;
}
.code_box_record_title {
width: 33%;
font-size: 26rpx;
color: rgba(0, 0, 0, 0.5);
padding: 20rpx 0;
}
.code_box_record_detail {
width: 33%;
font-size: 26rpx;
padding: 20rpx 0;
}
.button {
width: 300rpx;
text-align: center;
margin: 20% auto 0 auto;
height: 80rpx;
color: white;
border-radius: 5px;
line-height: 80rpx;
background-color: #07c160;
}

@ -1,66 +0,0 @@
// pages/selectuserssuccess/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

@ -1,2 +0,0 @@
<!--pages/selectuserssuccess/index.wxml-->
<text>pages/selectuserssuccess/index.wxml</text>

@ -1,46 +0,0 @@
// pages/updateusers/index.js
Page({
//修改数据(改)
inputupdateID:function(e){
this.setData({
updateUser_ID:e.detail.value
})
},
inputupdateCollege:function(e){
this.setData({
updateUser_College:e.detail.value
})
},
inputupdateKey:function(e){
this.setData({
updateUser_Key:e.detail.value
})
},
updateDataFn(){
wx.cloud.callFunction({
name: 'useroption',
data: {
option: 'update',
updateUser_ID:this.data.updateUser_ID,
updateUser_College:this.data.updateUser_College,
updateUser_Key:this.data.updateUser_Key
},
success: res => {
wx.showToast({
title: '用户修改成功',
})
console.log(res)
},
fail:err => {
wx.showToast({
title: '用户修改失败',
})
}
})
},
getback:function(){
wx.navigateBack({
delta:1,
})
}
})

@ -1,24 +0,0 @@
<!--pages/updateusers/index.wxml-->
<view class="update">
<input
value="{{updateUser_ID}}"
placeholder="请输入要修改用户的学号"
bindblur="inputupdateID"
/>
</view>
<view class="update">
<input
value="{{updateUser_College}}"
placeholder="请输入修改之后的学院(不改则不改变)"
bindblur="inputupdateCollege"
/>
</view>
<view class="update">
<input
value="{{updateUser_Key}}"
placeholder="请输入修改之后的密码(不改则不改变)"
bindblur="inputupdateKey"
/>
</view>
<button class="button" type="primary" bindtap="updateDataFn">修改用户</button>
<button class="button" type="primary" bindtap="getback">返回</button>

@ -1,100 +0,0 @@
/* pages/updateusers/index.wxss */
page {
padding-top: 54rpx;
background-color: #f6f6f6;
padding-bottom: 60rpx;
}
.button {
margin-top: 50px;
margin-left: 50px;
margin-right: 50px;
}
.title {
font-family: PingFang SC;
font-weight: 500;
color: #000000;
font-size: 44rpx;
margin-bottom: 40rpx;
}
.top_tip {
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 400;
color: #888888;
margin-bottom: 28rpx;
}
.power {
margin-top: 30rpx;
border-radius: 5px;
background-color: white;
width: 93%;
padding-bottom: 1rpx;
}
.power_info {
display: flex;
padding: 30rpx 25rpx;
align-items: center;
justify-content: space-between;
}
.power_info_more {
width: 30rpx;
height: 30rpx;
transform: rotate(90deg);
}
.power_info_less {
width: 30rpx;
height: 30rpx;
transform: rotate(270deg);
}
.power_info_text {
display: flex;
flex-direction: column;
}
.power_info_text_title {
margin-bottom: 10rpx;
font-weight: 400;
font-size: 35rpx;
}
.power_info_text_tip {
color: rgba(0, 0, 0, 0.4);
font-size: 25rpx;
}
.power_item {
padding: 30rpx 25rpx;
display: flex;
justify-content: space-between;
}
.power_item_title {
font-size: 30rpx;
}
.power_item_icon {
width: 30rpx;
height: 30rpx;
}
.line {
width: 95%;
margin: 0 auto;
height: 2rpx;
background-color: rgba(0, 0, 0, 0.1);
}
.environment {
color: rgba(0, 0, 0, 0.4);
font-size: 24rpx;
margin-top: 25%;
}

@ -1,66 +0,0 @@
// pages/updateuserssuccess/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

@ -1,2 +0,0 @@
<!--pages/updateuserssuccess/index.wxml-->
<text>pages/updateuserssuccess/index.wxml</text>

@ -1,7 +0,0 @@
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}

@ -1,79 +0,0 @@
{
"miniprogramRoot": "miniprogram/",
"cloudfunctionRoot": "cloud/",
"setting": {
"urlCheck": true,
"es6": true,
"enhance": true,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
"newFeature": true,
"coverView": true,
"nodeModules": false,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": false,
"lazyloadPlaceholderEnable": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"enableEngineNative": false,
"useIsolateContext": true,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"disableUseStrict": false,
"showES6CompileOption": false,
"useCompilerPlugins": false,
"minifyWXML": true
},
"appid": "wx5871b0202e96c9d3",
"projectname": "quickstart-wx-cloud",
"libVersion": "2.14.1",
"cloudfunctionTemplateRoot": "cloudfunctionTemplate/",
"condition": {
"search": {
"list": []
},
"conversation": {
"list": []
},
"plugin": {
"list": []
},
"game": {
"list": []
},
"miniprogram": {
"list": [
{
"id": -1,
"name": "db guide",
"pathName": "pages/databaseGuide/databaseGuide"
}
]
}
},
"srcMiniprogramRoot": "miniprogram/",
"compileType": "miniprogram",
"packOptions": {
"ignore": [],
"include": []
},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
}
}

@ -1,60 +0,0 @@
{
"setting": {
"compileHotReLoad": true
},
"condition": {
"miniprogram": {
"list": [
{
"name": "db guide",
"pathName": "pages/databaseGuide/databaseGuide",
"query": ""
},
{
"name": "pages/getOpenId/index",
"pathName": "pages/getOpenId/index",
"query": "",
"scene": null
},
{
"name": "pages/deployService/index",
"pathName": "pages/deployService/index",
"query": "",
"scene": null
},
{
"name": "pages/selectRecord/index",
"pathName": "pages/selectRecord/index",
"query": "",
"scene": null
},
{
"name": "pages/sumRecordResult/index",
"pathName": "pages/sumRecordResult/index",
"query": "",
"scene": null
},
{
"name": "pages/updateRecord/index",
"pathName": "pages/updateRecord/index",
"query": "",
"scene": null
},
{
"name": "pages/updateRecordResult/index",
"pathName": "pages/updateRecordResult/index",
"query": "",
"scene": null
},
{
"name": "pages/updateRecordSuccess/index",
"pathName": "pages/updateRecordSuccess/index",
"query": "",
"scene": null
}
]
}
},
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"projectname": "%E6%A0%A1%E5%9B%AD%E5%AF%BC%E8%88%AA%EF%BC%88%E7%AE%A1%E7%90%86%E7%94%A8%E6%88%B7%EF%BC%89"
}

@ -1 +0,0 @@
"E:\小程序制作软件\微信web开发者工具\cli.bat" cloud functions deploy --e cloud1-7gnkwzfv6ba72e50 --n quickstartFunctions --r --project "E:\校园导航(管理用户)" --report_first --report
Loading…
Cancel
Save