格式化代码

This commit is contained in:
Rain Sun 2018-10-03 13:05:05 +08:00
parent 3c1eef3297
commit 804f4f3a16
41 changed files with 499 additions and 445 deletions

70
app.js
View File

@ -1,4 +1,4 @@
var daraObj=require("data/data.js") var daraObj = require("data/data.js")
import { import {
DBPost DBPost
} from 'db/DBpost.js'; } from 'db/DBpost.js';
@ -10,26 +10,30 @@ App({
/** /**
* 当小程序初始化完成时会触发 onLaunch全局只触发一次 * 当小程序初始化完成时会触发 onLaunch全局只触发一次
*/ */
onLaunch: function () { onLaunch: function() {
var dbPost = new DBPost(); var dbPost = new DBPost();
var loginTime=dbPost.getloginTimeData();//获取上次登陆时间没有记录为0 var loginTime = dbPost.getloginTimeData(); //获取上次登陆时间没有记录为0
if(loginTime){ if (loginTime) {
var timestamp = + new Date(); var timestamp = +new Date();
timestamp = timestamp / 1000; timestamp = timestamp / 1000;
timestamp = parseInt(timestamp); timestamp = parseInt(timestamp);
var difference=timestamp-loginTime;//两次时间差 var difference = timestamp - loginTime; //两次时间差
if(difference>=86400){ if (difference >= 86400) {
wx.clearStorageSync(); wx.clearStorageSync();
wx.redirectTo({ url: 'welcome/login/login' }) wx.redirectTo({
url: 'welcome/login/login'
})
console.log("登录超时") console.log("登录超时")
}else{ } else {
wx.switchTab({ wx.switchTab({
url: 'pages/post/post' url: 'pages/post/post'
}) })
console.log("校验通过") console.log("校验通过")
} }
}else{ } else {
wx.redirectTo({ url: 'welcome/login/login' }) wx.redirectTo({
url: 'welcome/login/login'
})
console.log("无登录记录") console.log("无登录记录")
} }
}, },
@ -37,45 +41,45 @@ App({
/** /**
* 当小程序启动或从后台进入前台显示会触发 onShow * 当小程序启动或从后台进入前台显示会触发 onShow
*/ */
onShow: function (options) { onShow: function(options) {
}, },
/** /**
* 当小程序从前台进入后台会触发 onHide * 当小程序从前台进入后台会触发 onHide
*/ */
onHide: function () { onHide: function() {
}, },
/** /**
* 当小程序发生脚本错误或者 api 调用失败时会触发 onError 并带上错误信息 * 当小程序发生脚本错误或者 api 调用失败时会触发 onError 并带上错误信息
*/ */
onError: function (msg) { onError: function(msg) {
}, },
globalData:{ globalData: {
xingming: "", xingming: "",
xuehao: "", xuehao: "",
zhuanye: "", zhuanye: "",
xueyuan: "", xueyuan: "",
UQ: "", UQ: "",
nicheng:"", nicheng: "",
mima:"", mima: "",
shijian:"", shijian: "",
didian:"", didian: "",
renyuan1:"", renyuan1: "",
renyuan2:"", renyuan2: "",
shijianchuo:"", shijianchuo: "",
banji1:'', banji1: '',
banji2:'', banji2: '',
banji3:'', banji3: '',
banji4:'', banji4: '',
banji5:'', banji5: '',
queqin: [0], queqin: [0],
bingjia: [0], bingjia: [0],
shijia: [0] shijia: [0]
} }
}) })

View File

@ -1,4 +1,5 @@
/**app.wxss**/ /**app.wxss**/
.container { .container {
height: 100%; height: 100%;
display: flex; display: flex;
@ -7,5 +8,4 @@
justify-content: space-between; justify-content: space-between;
padding: 200rpx 0; padding: 200rpx 0;
box-sizing: border-box; box-sizing: border-box;
} }

View File

@ -83,7 +83,7 @@ Page({
}, },
bindMultiPickerChange1: function(e) { bindMultiPickerChange1: function(e) {
this.data.xuehaonum= 1; this.data.xuehaonum = 1;
if (this.data.xuehaonum && this.data.yuanyinnum) { if (this.data.xuehaonum && this.data.yuanyinnum) {
this.setData({ this.setData({
disabled: false disabled: false
@ -237,7 +237,7 @@ Page({
this.setData(data); this.setData(data);
}, },
bindMultiPickerChange2: function(e) { bindMultiPickerChange2: function(e) {
this.data.yuanyinnum= 1; this.data.yuanyinnum = 1;
if (this.data.xuehaonum && this.data.yuanyinnum) { if (this.data.xuehaonum && this.data.yuanyinnum) {
this.setData({ this.setData({
disabled: false disabled: false
@ -252,14 +252,14 @@ Page({
this.setData({ this.setData({
yuanyinIndex: e.detail.value yuanyinIndex: e.detail.value
}) })
this.data.yuanyin= this.data.yuanyinArray[0][this.data.yuanyinIndex[0]] //原因!!!!! this.data.yuanyin = this.data.yuanyinArray[0][this.data.yuanyinIndex[0]] //原因!!!!!
console.log('原因', this.data.yuanyin); console.log('原因', this.data.yuanyin);
}, },
sumit1: function() { sumit1: function() {
var a = this.data.xueyuan var a = this.data.xueyuan
var b = this.data.banji var b = this.data.banji
var c = this.data.geren var c = this.data.geren
this.data.newxuehao= (a + b + c) this.data.newxuehao = (a + b + c)
console.log("学号为", this.data.newxuehao) console.log("学号为", this.data.newxuehao)
console.log("原因为", this.data.yuanyin) console.log("原因为", this.data.yuanyin)
var dbPost = new DBPost(); var dbPost = new DBPost();

View File

@ -1,10 +1,6 @@
<!--manage/absent/absent.wxml--> <!--manage/absent/absent.wxml-->
<view class='allpage'> <view class='allpage'>
<image src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/signin/zhuce1.jpg' class='signin'></image> <image src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/signin/zhuce1.jpg' class='signin'></image>
<view class="section"> <view class="section">
<image class='xuehao-png' src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/xinxi/xuehao.png'></image> <image class='xuehao-png' src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/xinxi/xuehao.png'></image>
<view class='txt'>学号</view> <view class='txt'>学号</view>
@ -23,16 +19,12 @@
</view> </view>
</picker> </picker>
</view> </view>
<view class='kongbai'></view> <view class='kongbai'></view>
<view class="btn-area" id="buttonContainer"> <view class="btn-area" id="buttonContainer">
<button type="warn" disabled='{{disabled}}' bindtap='sumit1' style='opacity: {{opacity}};background-color: #139aec;'>确认录入</button> <button type="warn" disabled='{{disabled}}' bindtap='sumit1' style='opacity: {{opacity}};background-color: #139aec;'>确认录入</button>
</view> </view>
<view class='kongbai1'></view> <view class='kongbai1'></view>
<view class="btn-area" id="buttonContainer"> <view class="btn-area" id="buttonContainer">
<button type="warn" bindtap='sumit2' style='background-color: #139aec;'>选择班级</button> <button type="warn" bindtap='sumit2' style='background-color: #139aec;'>选择班级</button>
</view> </view>
</view> </view>

View File

@ -1,13 +1,16 @@
/* manage/absent/absent.wxss */ /* manage/absent/absent.wxss */
.allpage{
.allpage {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
.SRCS{
.SRCS {
height: 350rpx; height: 350rpx;
width: 500rpx; width: 500rpx;
} }
.section { .section {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -22,23 +25,28 @@
margin-left: 100rpx; margin-left: 100rpx;
width: 410rpx; width: 410rpx;
} }
.xuehao-png{
.xuehao-png {
height: 30rpx; height: 30rpx;
width: 40rpx; width: 40rpx;
margin-right: 20rpx; margin-right: 20rpx;
} }
.txt { .txt {
font-size: 120%; font-size: 120%;
} }
.btn-area { .btn-area {
margin-top: 40rpx; margin-top: 40rpx;
box-sizing: border-box; box-sizing: border-box;
width: 80%; width: 80%;
padding: 0 30rpx; padding: 0 30rpx;
} }
.kongbai{
.kongbai {
margin-top: 100rpx; margin-top: 100rpx;
} }
.signin { .signin {
height: 462rpx; height: 462rpx;
width: 750rpx; width: 750rpx;

View File

@ -4,12 +4,10 @@
<view class="section"> <view class="section">
<image class='shijian-png' src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/xinxi/shijian.png'></image> <image class='shijian-png' src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/xinxi/shijian.png'></image>
<view class='txt'>时间</view> <view class='txt'>时间</view>
<picker mode="multiSelector" bindchange="bindMultiPickerChange1" value="{{multiIndex}}" range="{{multiArray}}"> <picker mode="multiSelector" bindchange="bindMultiPickerChange1" value="{{multiIndex}}" range="{{multiArray}}">
<view class="picker">{{multiArray[0][multiIndex[0]]}}_{{multiArray[1][multiIndex[1]]}}_{{multiArray[2][multiIndex[2]]}}</view> <view class="picker">{{multiArray[0][multiIndex[0]]}}_{{multiArray[1][multiIndex[1]]}}_{{multiArray[2][multiIndex[2]]}}</view>
</picker> </picker>
</view> </view>
<view class='item'> <view class='item'>
<image class='didian-png' src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/xinxi/didian.png'></image> <image class='didian-png' src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/xinxi/didian.png'></image>
<view class='txt'>地点</view> <view class='txt'>地点</view>
@ -20,18 +18,14 @@
<view class='txt'>教师</view> <view class='txt'>教师</view>
<input class="input" placeholder="例:吕堂红(离散数学)" bindinput="bindKeyInput2" /> <input class="input" placeholder="例:吕堂红(离散数学)" bindinput="bindKeyInput2" />
</view> </view>
<view class="section">
<view class="section">
<image class='png' src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/xinxi/nicheng.png'></image> <image class='png' src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/xinxi/nicheng.png'></image>
<view class='txt'>人员</view> <view class='txt'>人员</view>
<picker mode="multiSelector" bindchange="bindMultiPickerChange2" value="{{renyuanIndex}}" range="{{renyuanArray}}"> <picker mode="multiSelector" bindchange="bindMultiPickerChange2" value="{{renyuanIndex}}" range="{{renyuanArray}}">
<view class="picker">{{renyuanArray[0][renyuanIndex[0]]}}_{{renyuanArray[1][renyuanIndex[1]]}}</view> <view class="picker">{{renyuanArray[0][renyuanIndex[0]]}}_{{renyuanArray[1][renyuanIndex[1]]}}</view>
</picker> </picker>
</view> </view>
<view class='kongbai' style='margin-top:70rpx;'></view> <view class='kongbai' style='margin-top:70rpx;'></view>
<view class="btn-area" id="buttonContainer"> <view class="btn-area" id="buttonContainer">
<button type="warn" bindtap='sumit' disabled="{{disabled}}" style='opacity: {{opacity}};background-color: #139aec;'>开始点名</button> <button type="warn" bindtap='sumit' disabled="{{disabled}}" style='opacity: {{opacity}};background-color: #139aec;'>开始点名</button>
</view> </view>

View File

@ -30,9 +30,10 @@
height: 40rpx; height: 40rpx;
width: 30rpx; width: 30rpx;
margin-right: 25rpx; margin-right: 25rpx;
margin-left: 5rpx; margin-left: 5rpx;
} }
.jiaoshi-png{
.jiaoshi-png {
height: 32rpx; height: 32rpx;
width: 48rpx; width: 48rpx;
margin-right: 12rpx; margin-right: 12rpx;

View File

@ -1,73 +1,75 @@
// manage/rollcall/rollcall.js // manage/rollcall/rollcall.js
import { DBPost } from '../../db/DBpost.js'; import {
DBPost
} from '../../db/DBpost.js';
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function(options) {
}, },
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { onReady: function() {
}, },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function() {
}, },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () { onHide: function() {
}, },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () { onUnload: function() {
}, },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () { onPullDownRefresh: function() {
}, },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () { onReachBottom: function() {
}, },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { onShareAppMessage: function() {
}, },
scanQRCode: function () { scanQRCode: function() {
var that = this; var that = this;
wx.scanCode({ wx.scanCode({
success: function (res) { success: function(res) {
var dbPost = new DBPost(); var dbPost = new DBPost();
var res1 = res.result; var res1 = res.result;
console.log(res.result); console.log(res.result);
@ -86,8 +88,7 @@ Page({
mask: true, mask: true,
icon: "success" icon: "success"
}) })
} } else if (res1.length != 19) {
else if (res1.length != 19) {
wx.showModal({ wx.showModal({
title: "警告", title: "警告",
content: "您扫描了错误的二维码!请检查!", content: "您扫描了错误的二维码!请检查!",
@ -96,12 +97,14 @@ Page({
}) })
} }
}, },
fail: function (e) { fail: function(e) {
console.log(e); console.log(e);
} }
}) })
}, },
sumit: function () { sumit: function() {
wx.redirectTo({ url: '../absent/absent' }) wx.redirectTo({
url: '../absent/absent'
})
} }
}) })

View File

@ -1,4 +1,4 @@
{ {
"navigationBarBackgroundColor": "#14aeee", "navigationBarBackgroundColor": "#14aeee",
"navigationBarTitleText": "正在查课中……" "navigationBarTitleText": "正在查课中……"
} }

View File

@ -2,23 +2,16 @@
<view class='allpage'> <view class='allpage'>
<image src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/signin/zhuce1.jpg' class='signin'></image> <image src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/signin/zhuce1.jpg' class='signin'></image>
<view class='kongbai'></view> <view class='kongbai'></view>
<view class="btn-area" id="buttonContainer"> <view class="btn-area" id="buttonContainer">
<button type="warn" bindtap='scanQRCode' style='opacity: {{opacity}};background-color: #139aec;'>立即点名</button> <button type="warn" bindtap='scanQRCode' style='opacity: {{opacity}};background-color: #139aec;'>立即点名</button>
</view> </view>
<view class='kongbai1'></view> <view class='kongbai1'></view>
<view class="btn-area" id="buttonContainer"> <view class="btn-area" id="buttonContainer">
<button type="warn" bindtap='sumit' style='opacity: {{opacity}};background-color: #139aec;'>录入缺勤信息</button> <button type="warn" bindtap='sumit' style='opacity: {{opacity}};background-color: #139aec;'>录入缺勤信息</button>
</view> </view>
</view> </view>

View File

@ -1,4 +1,5 @@
/* manage/rollcall/rollcall.wxss */ /* manage/rollcall/rollcall.wxss */
/* welcome/signin/signin.wxss */ /* welcome/signin/signin.wxss */
page { page {
@ -16,16 +17,17 @@ page {
width: 750rpx; width: 750rpx;
} }
.btn-area { .btn-area {
margin-top: 40rpx; margin-top: 40rpx;
box-sizing: border-box; box-sizing: border-box;
width: 80%; width: 80%;
padding: 0 30rpx; padding: 0 30rpx;
} }
.kongbai{
.kongbai {
margin-top: 300rpx; margin-top: 300rpx;
} }
.kongbai1{
.kongbai1 {
margin-top: 20rpx; margin-top: 20rpx;
} }

View File

@ -224,7 +224,7 @@ Page({
case "": case "":
{ {
app.globalData.queqin.push(i); app.globalData.queqin.push(i);
this.data.querennum= this.data.querennum + 1 this.data.querennum = this.data.querennum + 1
console.log(this.data.querennum) console.log(this.data.querennum)
} }
break; break;
@ -622,7 +622,7 @@ Page({
case "病假": case "病假":
{ {
app.globalData.bingjia.push(i); app.globalData.bingjia.push(i);
this.data.bingjianum= this.data.bingjianum + 1 this.data.bingjianum = this.data.bingjianum + 1
console.log(this.data.bingjianum) console.log(this.data.bingjianum)
} }
break; break;

View File

@ -13,13 +13,7 @@
<view class="btn-area" id="buttonContainer"> <view class="btn-area" id="buttonContainer">
<button type="warn" disabled='{{disabled}}' bindtap='queren' style='opacity: {{opacity}};background-color: #139aec;'>添加班级</button> <button type="warn" disabled='{{disabled}}' bindtap='queren' style='opacity: {{opacity}};background-color: #139aec;'>添加班级</button>
</view> </view>
<view class='kongbai2'></view> <view class='kongbai2'></view>
<view class='btn2'> <view class='btn2'>
<view class="btn-area1" id="buttonContainer"> <view class="btn-area1" id="buttonContainer">
<button type="warn" disabled='{{disabled1}}' bindtap='tongji' style='background-color: #11ceec;opacity: {{opacity1}};'>统计结果</button> <button type="warn" disabled='{{disabled1}}' bindtap='tongji' style='background-color: #11ceec;opacity: {{opacity1}};'>统计结果</button>

View File

@ -1,4 +1,5 @@
/* manage/select/select.wxss */ /* manage/select/select.wxss */
/* welcome/signin/signin.wxss */ /* welcome/signin/signin.wxss */
page { page {
@ -55,7 +56,8 @@ page {
width: 40rpx; width: 40rpx;
margin-right: 20rpx; margin-right: 20rpx;
} }
.xuehao-png{
.xuehao-png {
height: 30rpx; height: 30rpx;
width: 40rpx; width: 40rpx;
margin-right: 20rpx; margin-right: 20rpx;
@ -71,27 +73,32 @@ page {
align-items: center; align-items: center;
margin-top: 60rpx; margin-top: 60rpx;
} }
.mima-input{
border-bottom-color: #000; .mima-input {
border-bottom-color: #000;
border-bottom-style: solid; border-bottom-style: solid;
border-bottom-width: thin; border-bottom-width: thin;
margin-left: 30rpx; margin-left: 30rpx;
width: 410rpx; width: 410rpx;
} }
.btn-area { .btn-area {
margin-top: 40rpx; margin-top: 40rpx;
box-sizing: border-box; box-sizing: border-box;
width: 80%; width: 80%;
padding: 0 30rpx; padding: 0 30rpx;
} }
.kongbai1{
.kongbai1 {
margin-top: 50rpx; margin-top: 50rpx;
} }
.kongbai2{
.kongbai2 {
margin-top: 150rpx; margin-top: 150rpx;
} }
/* manage/rollcall/rollcall.wxss */ /* manage/rollcall/rollcall.wxss */
/* welcome/signin/signin.wxss */ /* welcome/signin/signin.wxss */
page { page {
@ -109,7 +116,6 @@ page {
width: 750rpx; width: 750rpx;
} }
.btn-area1 { .btn-area1 {
margin-top: 40rpx; margin-top: 40rpx;
box-sizing: border-box; box-sizing: border-box;
@ -117,8 +123,8 @@ page {
padding: 0 30rpx; padding: 0 30rpx;
} }
.btn2{ .btn2 {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
} }

View File

@ -1,5 +1,7 @@
// manage/show1/show1.js // manage/show1/show1.js
import { DBPost } from '../../db/DBpost.js'; import {
DBPost
} from '../../db/DBpost.js';
var app = getApp(); var app = getApp();
Page({ Page({
@ -16,7 +18,7 @@ Page({
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function(options) {
var dbPost = new DBPost(); var dbPost = new DBPost();
this.setData({ this.setData({
xingming: dbPost.getxingmingData(), xingming: dbPost.getxingmingData(),
@ -24,7 +26,7 @@ Page({
zhuanye: dbPost.getzhuanyeData(), zhuanye: dbPost.getzhuanyeData(),
xueyuan: dbPost.getxueyuanData(), xueyuan: dbPost.getxueyuanData(),
admin: dbPost.getadminData(), admin: dbPost.getadminData(),
loginTime:dbPost.getloginTimeData(), loginTime: dbPost.getloginTimeData(),
}); });
this.setData({ this.setData({
jiaoshi: dbPost.getjiaoshiData() jiaoshi: dbPost.getjiaoshiData()
@ -66,84 +68,84 @@ Page({
newbingjia: app.globalData.bingjia.join(' ') newbingjia: app.globalData.bingjia.join(' ')
}) })
console.log(this.data.jiaoshi, this.data.shijian, this.data.didian, this.data.renyuan1, this.data.renyuan2) console.log(this.data.jiaoshi, this.data.shijian, this.data.didian, this.data.renyuan1, this.data.renyuan2)
console.log('1', this.data.banji1,'2',this.data.banji2,'3',this.data.banji3,'4',this.data.banji4,'5',this.data.banji5) console.log('1', this.data.banji1, '2', this.data.banji2, '3', this.data.banji3, '4', this.data.banji4, '5', this.data.banji5)
}, },
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { onReady: function() {
}, },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function() {
}, },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () { onHide: function() {
}, },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () { onUnload: function() {
}, },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () { onPullDownRefresh: function() {
}, },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () { onReachBottom: function() {
}, },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { onShareAppMessage: function() {
}, },
post:function(){ post: function() {
var that=this; var that = this;
var dbPost = new DBPost(); var dbPost = new DBPost();
wx.request({ wx.request({
url: 'https://powerrain.cn/rcs/API/shangchuan.php', //仅为示例,并非真实的接口地址 url: 'https://powerrain.cn/rcs/API/shangchuan.php', //仅为示例,并非真实的接口地址
data: { data: {
time:that.data.shijian, time: that.data.shijian,
add:that.data.didian, add: that.data.didian,
teacher:that.data.jiaoshi, teacher: that.data.jiaoshi,
ren1:that.data.renyuan1, ren1: that.data.renyuan1,
ren2:that.data.renyuan2, ren2: that.data.renyuan2,
class1:that.data.banji1, class1: that.data.banji1,
class2: that.data.banji2, class2: that.data.banji2,
class3: that.data.banji3, class3: that.data.banji3,
class4: that.data.banji4, class4: that.data.banji4,
class5: that.data.banji5, class5: that.data.banji5,
queqin:that.data.newqueqin, queqin: that.data.newqueqin,
bingjia:that.data.newbingjia, bingjia: that.data.newbingjia,
shijia:that.data.newshijia shijia: that.data.newshijia
}, },
header: { header: {
'content-type': 'application/json' // 默认值 'content-type': 'application/json' // 默认值
}, },
success: function (res) { success: function(res) {
app.globalData.queqin=""; app.globalData.queqin = "";
app.globalData.shijia=""; app.globalData.shijia = "";
app.globalData.bingjia=""; app.globalData.bingjia = "";
app.globalData.banji1 = ""; app.globalData.banji1 = "";
app.globalData.banji2 = ""; app.globalData.banji2 = "";
app.globalData.banji3 = ""; app.globalData.banji3 = "";
@ -157,11 +159,13 @@ Page({
dbPost.newxueyuan(that.data.xueyuan); dbPost.newxueyuan(that.data.xueyuan);
dbPost.newadmin(that.data.admin); dbPost.newadmin(that.data.admin);
dbPost.newloginTime(that.data.loginTime); dbPost.newloginTime(that.data.loginTime);
wx.switchTab({ url: '../../pages/post/post' }); wx.switchTab({
url: '../../pages/post/post'
});
console.log(res.data); console.log(res.data);
} }
}) })
} }
}) })

View File

@ -48,7 +48,7 @@
</block> </block>
<view class='btn2'> <view class='btn2'>
<view class="btn-area1" id="buttonContainer"> <view class="btn-area1" id="buttonContainer">
<button type="warn" bindtap='post' style='background-color: #11ceec;'>保存并退出</button> <button type="warn" bindtap='post' style='background-color: #11ceec;'>保存并退出</button>
</view> </view>
</view> </view>

View File

@ -1,7 +1,5 @@
/* manage/show/show.wxss */ /* manage/show/show.wxss */
.detail-item { .detail-item {
display: flex; display: flex;
margin-left: 30rpx; margin-left: 30rpx;
@ -69,6 +67,7 @@
margin-bottom: 20rpx; margin-bottom: 20rpx;
border-bottom: 3rpx dashed #d9d9d9; border-bottom: 3rpx dashed #d9d9d9;
} }
.btn-area1 { .btn-area1 {
margin-top: 40rpx; margin-top: 40rpx;
box-sizing: border-box; box-sizing: border-box;
@ -77,8 +76,8 @@
margin-bottom: 50rpx; margin-bottom: 50rpx;
} }
.btn2{ .btn2 {
display: flex; display: flex;
flex-direction:column; flex-direction: column;
align-items: center; align-items: center;
} }

View File

@ -11,14 +11,13 @@
<view class="cen"> <view class="cen">
<view class="w"> <view class="w">
<view class="title"> <view class="title">
<view>请输入反馈*</view> <view>请输入反馈*</view>
<view class="{{feedBack_error?'showError':'showNormal'}}">请输入内容</view> <view class="{{feedBack_error?'showError':'showNormal'}}">请输入内容</view>
</view> </view>
<textarea class="item" placeholder="{{placeholder}}" bindinput="fankui" maxlength="300"></textarea> <textarea class="item" placeholder="{{placeholder}}" bindinput="fankui" maxlength="300"></textarea>
<view class="title"> <view class="title">
<view>联系方式(选填)</view> <view>联系方式(选填)</view>
<view class="{{qqNum_error?'showError':'showNormal'}}">请输入正确的qq号</view> <view class="{{qqNum_error?'showError':'showNormal'}}">请输入正确的qq号</view>
</view> </view>
<input class="item_2" placeholder='请填写您的QQ号码以便我们向您反馈处理结果' type='number' bindinput='qqNum'> <input class="item_2" placeholder='请填写您的QQ号码以便我们向您反馈处理结果' type='number' bindinput='qqNum'>
</input> </input>

View File

@ -1,5 +1,7 @@
// pages/main/index.js // pages/main/index.js
import { DBPost } from '../../../db/DBpost.js'; import {
DBPost
} from '../../../db/DBpost.js';
var app = getApp(); var app = getApp();
var QR = require("../../../data/QRcode.js"); var QR = require("../../../data/QRcode.js");
Page({ Page({
@ -7,18 +9,18 @@ Page({
canvasHidden: false, canvasHidden: false,
maskHidden: true, maskHidden: true,
imagePath: '', imagePath: '',
placeholder: '1525873266' //默认二维码生成文本 placeholder: '1525873266' //默认二维码生成文本
}, },
onLoad: function (options) { onLoad: function(options) {
// 页面初始化 options为页面跳转所带来的参数 // 页面初始化 options为页面跳转所带来的参数
var dbPost = new DBPost(); var dbPost = new DBPost();
var xuehao1 = dbPost.getxuehaoData(); var xuehao1 = dbPost.getxuehaoData();
var shijianchuo1 = xuehao1+dbPost.getshijianchuoData(); var shijianchuo1 = xuehao1 + dbPost.getshijianchuoData();
this.setData({ this.setData({
placeholder: shijianchuo1.toString() //数字转字符串 placeholder: shijianchuo1.toString() //数字转字符串
}); });
console.log(this.data.placeholder) console.log(this.data.placeholder)
var size = this.setCanvasSize();//动态设置画布大小 var size = this.setCanvasSize(); //动态设置画布大小
var initUrl = this.data.placeholder; var initUrl = this.data.placeholder;
this.createQrCode(initUrl, "mycanvas", size.w, size.h); this.createQrCode(initUrl, "mycanvas", size.w, size.h);
wx.setScreenBrightness({ wx.setScreenBrightness({
@ -26,28 +28,27 @@ Page({
}) })
}, },
onReady: function () { onReady: function() {},
}, onShow: function() {
onShow: function () {
// 页面显示 // 页面显示
}, },
onHide: function () { onHide: function() {
// 页面隐藏 // 页面隐藏
}, },
onUnload: function () { onUnload: function() {
// 页面关闭 // 页面关闭
}, },
//适配不同屏幕大小的canvas //适配不同屏幕大小的canvas
setCanvasSize: function () { setCanvasSize: function() {
var size = {}; var size = {};
try { try {
var res = wx.getSystemInfoSync(); var res = wx.getSystemInfoSync();
var scale = 750 / 686;//不同屏幕下canvas的适配比例设计稿是750宽 var scale = 750 / 686; //不同屏幕下canvas的适配比例设计稿是750宽
var width = res.windowWidth / scale; var width = res.windowWidth / scale;
var height = width;//canvas画布为正方形 var height = width; //canvas画布为正方形
size.w = width; size.w = width;
size.h = height; size.h = height;
} catch (e) { } catch (e) {
@ -56,18 +57,20 @@ Page({
} }
return size; return size;
}, },
createQrCode: function (url, canvasId, cavW, cavH) { createQrCode: function(url, canvasId, cavW, cavH) {
//调用插件中的draw方法绘制二维码图片 //调用插件中的draw方法绘制二维码图片
QR.api.draw(url, canvasId, cavW, cavH); QR.api.draw(url, canvasId, cavW, cavH);
setTimeout(() => { this.canvasToTempImage(); }, 1000); setTimeout(() => {
this.canvasToTempImage();
}, 1000);
}, },
//获取临时缓存照片路径存入data中 //获取临时缓存照片路径存入data中
canvasToTempImage: function () { canvasToTempImage: function() {
var that = this; var that = this;
wx.canvasToTempFilePath({ wx.canvasToTempFilePath({
canvasId: 'mycanvas', canvasId: 'mycanvas',
success: function (res) { success: function(res) {
var tempFilePath = res.tempFilePath; var tempFilePath = res.tempFilePath;
console.log(tempFilePath); console.log(tempFilePath);
that.setData({ that.setData({
@ -75,13 +78,13 @@ Page({
// canvasHidden:true // canvasHidden:true
}); });
}, },
fail: function (res) { fail: function(res) {
console.log(res); console.log(res);
} }
}); });
}, },
//点击图片进行预览,长按保存分享图片 //点击图片进行预览,长按保存分享图片
previewImg: function (e) { previewImg: function(e) {
var img = this.data.imagePath; var img = this.data.imagePath;
console.log(img); console.log(img);
wx.previewImage({ wx.previewImage({
@ -89,7 +92,7 @@ Page({
urls: [img] // 需要预览的图片http链接列表 urls: [img] // 需要预览的图片http链接列表
}) })
}, },
formSubmit: function (e) { formSubmit: function(e) {
var that = this; var that = this;
var url = e.detail.value.url; var url = e.detail.value.url;
that.setData({ that.setData({
@ -100,7 +103,7 @@ Page({
icon: 'loading', icon: 'loading',
duration: 2000 duration: 2000
}); });
var st = setTimeout(function () { var st = setTimeout(function() {
wx.hideToast() wx.hideToast()
var size = that.setCanvasSize(); var size = that.setCanvasSize();
//绘制二维码 //绘制二维码
@ -112,7 +115,9 @@ Page({
}, 2000) }, 2000)
}, },
sumit: function () { sumit: function() {
wx.switchTab({ url: '../post' }) wx.switchTab({
url: '../post'
})
} }
}) })

View File

@ -1,4 +1,4 @@
{ {
"navigationBarBackgroundColor": "#0061bf", "navigationBarBackgroundColor": "#0061bf",
"navigationBarTitleText": "正在签到" "navigationBarTitleText": "正在签到"
} }

View File

@ -9,7 +9,6 @@
</view> </view>
</view> </view>
</view> </view>
<view hidden="{{maskHidden}}" class="mask"></view> <view hidden="{{maskHidden}}" class="mask"></view>
<view class="canvas-box"> <view class="canvas-box">
<canvas hidden="{{canvasHidden}}" style="width: 686rpx;height: 686rpx;background:#f1f1f1;" canvas-id="mycanvas" /> <canvas hidden="{{canvasHidden}}" style="width: 686rpx;height: 686rpx;background:#f1f1f1;" canvas-id="mycanvas" />

View File

@ -1,41 +1,82 @@
/* pages/main/index.wxss */ /* pages/main/index.wxss */
.container-box{background-color: #efeff4;height: 100vh}
.img-box{padding: 32rpx;background-color: #fff;border-bottom: 1rpx solid #e5e5e5;position: relative} .container-box {
.img-box image{width: 686rpx;height: 686rpx;background-color: #f9f9f9} background-color: #efeff4;
.input-row{ height: 100vh;
margin: 30rpx auto; }
border-bottom: 1rpx solid #e5e5e5;
border-top: 1rpx solid #e5e5e5; .img-box {
display: flex; padding: 32rpx;
align-items: center; background-color: #fff;
height: 88rpx; border-bottom: 1rpx solid #e5e5e5;
padding: 0 32rpx; position: relative;
background-color: #fff; }
font-size: 34rpx;
color: #000 .img-box image {
width: 686rpx;
height: 686rpx;
background-color: #f9f9f9;
}
.input-row {
margin: 30rpx auto;
border-bottom: 1rpx solid #e5e5e5;
border-top: 1rpx solid #e5e5e5;
display: flex;
align-items: center;
height: 88rpx;
padding: 0 32rpx;
background-color: #fff;
font-size: 34rpx;
color: #000;
}
.input-row input {
margin-left: 100rpx;
flex: 1;
}
.mybtn {
width: 686rpx;
margin: 60rpx auto;
}
.mask {
position: fixed;
top: 0;
left: 0;
z-index: 3;
width: 100%;
height: 100%;
opacity: 0;
}
.canvas-box {
position: fixed;
top: 999999rpx;
left: 0;
} }
.input-row input{margin-left: 100rpx;flex: 1}
.mybtn{width:686rpx;margin: 60rpx auto }
.mask{position: fixed;top: 0;left: 0;z-index: 3; width: 100%;height: 100%;opacity: 0;}
.canvas-box{position: fixed;top:999999rpx;left: 0}
.btn-area { .btn-area {
margin-top: 40rpx; margin-top: 40rpx;
box-sizing: border-box; box-sizing: border-box;
width: 80%; width: 80%;
padding: 0 30rpx; padding: 0 30rpx;
} }
.kongbai{
.kongbai {
margin-top: 100rpx; margin-top: 100rpx;
} }
.btn{
.btn {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
.btn-area { .btn-area {
margin-top: 40rpx; margin-top: 40rpx;
box-sizing: border-box; box-sizing: border-box;
width: 80%; width: 80%;
padding: 0 30rpx; padding: 0 30rpx;
} }

View File

@ -18,10 +18,10 @@ Page({
*/ */
onLoad: function(options) { onLoad: function(options) {
var dbPost = new DBPost(); var dbPost = new DBPost();
this.data.admin= dbPost.getadminData(), this.data.admin = dbPost.getadminData(),
wx.setScreenBrightness({ wx.setScreenBrightness({
value: 0.5 value: 0.5
}) })
}, },
/** /**
@ -73,12 +73,12 @@ Page({
}, },
sumit: function() { sumit: function() {
var timestamp = + new Date(); var timestamp = +new Date();
timestamp = timestamp / 1000; timestamp = timestamp / 1000;
timestamp =parseInt(timestamp); timestamp = parseInt(timestamp);
console.log("当前时间戳为:" + timestamp); console.log("当前时间戳为:" + timestamp);
this.data.newshijianchuo= timestamp; this.data.newshijianchuo = timestamp;
var dbPost = new DBPost(); var dbPost = new DBPost();
dbPost.newshijianchuo(this.data.newshijianchuo); dbPost.newshijianchuo(this.data.newshijianchuo);
wx.navigateTo({ wx.navigateTo({
@ -93,7 +93,7 @@ Page({
title: '确认', title: '确认',
content: '是否开始点名', content: '是否开始点名',
confirmColor: '#10aeff', confirmColor: '#10aeff',
success: function (res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
wx.redirectTo({ wx.redirectTo({
url: '../../manage/manage' url: '../../manage/manage'

View File

@ -1,3 +1,3 @@
{ {
"navigationBarBackgroundColor": "#003b97" "navigationBarBackgroundColor": "#003b97"
} }

View File

@ -7,7 +7,7 @@
.postImgXH { .postImgXH {
width: 200rpx; width: 200rpx;
height: 200rpx; height: 200rpx;
margin-bottom:30rpx; margin-bottom: 30rpx;
} }
.postImgCLT { .postImgCLT {
@ -41,34 +41,34 @@
page { page {
background-image: url(http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/background.png); background-image: url(http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/background.png);
background-repeat: no-repeat; background-repeat: no-repeat;
background-size:100% 100%; background-size: 100% 100%;
border:none; border: none;
background-color: #003b97; background-color: #003b97;
} }
.box_1 { .box_1 {
height:100rpx; height: 100rpx;
width:300rpx; width: 300rpx;
background:rgba(43, 107, 243, 0.4); background: rgba(43, 107, 243, 0.4);
border-radius:10rpx; border-radius: 10rpx;
box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.301); box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.301);
margin-top:200rpx; margin-top: 200rpx;
text-align: center; text-align: center;
line-height: 100rpx; line-height: 100rpx;
font-size: 30rpx; font-size: 30rpx;
color: #fff; color: #fff;
letter-spacing:2px; letter-spacing: 2px;
} }
.box_1:active{ .box_1:active {
height:100rpx; height: 100rpx;
width:320rpx; width: 320rpx;
background:rgba(43, 106, 243, 0.6); background: rgba(43, 106, 243, 0.6);
box-shadow: 0px 0px 0px rgba(255, 255, 255, 0.301); box-shadow: 0px 0px 0px rgba(255, 255, 255, 0.301);
border-radius:10rpx; border-radius: 10rpx;
margin-top:210rpx; margin-top: 210rpx;
text-align: center; text-align: center;
line-height: 100rpx; line-height: 100rpx;
font-size: 30rpx; font-size: 30rpx;
color: #fff; color: #fff;
} }

View File

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

View File

@ -13,8 +13,8 @@
</view> </view>
<view class='kongbai'></view> <view class='kongbai'></view>
<view class='banquan'> <view class='banquan'>
<view class='BT'>Designed by Rain Sun</view> <view class='BT'>Designed by Rain Sun</view>
<view class='BT'>计算机科学技术学院 团委学生会学习部</view> <view class='BT'>计算机科学技术学院 团委学生会学习部</view>
<view class='BT'>All Rights Reserved</view> <view class='BT'>All Rights Reserved</view>
</view> </view>
</view> </view>

View File

@ -83,7 +83,6 @@
color: #7f8389; color: #7f8389;
font-size: 20rpx; font-size: 20rpx;
flex: 1; flex: 1;
} }
.banquan { .banquan {

View File

@ -1,82 +1,82 @@
// pages/user/user.js // pages/user/user.js
var app = getApp(); var app = getApp();
import { DBPost } from '../../db/DBpost.js'; import {
DBPost
} from '../../db/DBpost.js';
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {},
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function(options) {
}, },
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { onReady: function() {
}, },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function() {},
},
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () { onHide: function() {
}, },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () { onUnload: function() {
}, },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () { onPullDownRefresh: function() {
}, },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () { onReachBottom: function() {
}, },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { onShareAppMessage: function() {
}, },
xinxi:function(event){ xinxi: function(event) {
wx.navigateTo({ wx.navigateTo({
url: 'xinxi/xinxi', url: 'xinxi/xinxi',
}) })
}, },
guanyu: function (event) { guanyu: function(event) {
wx.navigateTo({ wx.navigateTo({
url: 'guanyu/guanyu', url: 'guanyu/guanyu',
}) })
}, },
fankui: function (event) { fankui: function(event) {
wx.navigateTo({ wx.navigateTo({
url: '../feedBack/feedBack', url: '../feedBack/feedBack',
}) })
} }
}) })

View File

@ -8,7 +8,7 @@
<view>{{userInfo.country}}</view>--> <view>{{userInfo.country}}</view>-->
<view class='allPage'> <view class='allPage'>
<view class='PNQ'> <view class='PNQ'>
<open-data class='UP' type="userAvatarUrl"></open-data> <open-data class='UP' type="userAvatarUrl"></open-data>
<view class='NQ'> <view class='NQ'>
<open-data class='UN' type="userNickName"></open-data> <open-data class='UN' type="userNickName"></open-data>
<view class='UQ'>校训: 明德博学,求是创新</view> <view class='UQ'>校训: 明德博学,求是创新</view>
@ -20,7 +20,8 @@
<image src="http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/user/xinxi.png"></image> <image src="http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/user/xinxi.png"></image>
<text>账号信息</text> <text>账号信息</text>
<view class="detail-item-btn"></view> <view class="detail-item-btn"></view>
</view><view class="detail-item" catchtap="fankui"> </view>
<view class="detail-item" catchtap="fankui">
<image src="http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/user/fankui.png"></image> <image src="http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/user/fankui.png"></image>
<text>反馈中心</text> <text>反馈中心</text>
<view class="detail-item-btn"></view> <view class="detail-item-btn"></view>

View File

@ -9,7 +9,7 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
background-color: #003b97; background-color: #003b97;
} }
.UP { .UP {
@ -17,7 +17,7 @@
width: 150rpx; width: 150rpx;
border-radius: 50%; border-radius: 50%;
margin: 30rpx; margin: 30rpx;
overflow:hidden; overflow: hidden;
} }
.NQ { .NQ {
@ -30,7 +30,6 @@
font-weight: bold; font-weight: bold;
font-size: 130%; font-size: 130%;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
.UQ { .UQ {
@ -38,56 +37,60 @@
font-size: small; font-size: small;
font-weight: 200; font-weight: 200;
} }
page{
page {
background-color: #eee; background-color: #eee;
} }
.category-item { .category-item {
width: 100%; width: 100%;
margin: 20rpx 0; margin: 20rpx 0;
border-top: 1rpx solid #d9d9d9; border-top: 1rpx solid #d9d9d9;
border-bottom: 1rpx solid #d9d9d9; border-bottom: 1rpx solid #d9d9d9;
background-color: #fff; background-color: #fff;
} }
.detail-item{
display: flex;
margin-left: 30rpx;
border-bottom: 1px solid RGBA(217, 217, 217, .4);
height:85rpx;
align-items: center;
}
.detail-item:last-child{
border-bottom:none;
}
.detail-item image{
height: 40rpx;
width:40rpx;
.detail-item {
display: flex;
margin-left: 30rpx;
border-bottom: 1px solid RGBA(217, 217, 217, 0.4);
height: 85rpx;
align-items: center;
} }
.detail-item text{
color:#7F8389; .detail-item:last-child {
font-size:24rpx; border-bottom: none;
flex:1;
margin-left: 30rpx;
} }
.detail-item .detail-item-btn{
width: 50rpx; .detail-item image {
color: #d9d9d9; height: 40rpx;
height: 40rpx; width: 40rpx;
margin-right: 20rpx; }
text-align: center;
.detail-item text {
color: #7f8389;
font-size: 24rpx;
flex: 1;
margin-left: 30rpx;
}
.detail-item .detail-item-btn {
width: 50rpx;
color: #d9d9d9;
height: 40rpx;
margin-right: 20rpx;
text-align: center;
}
.detail-item .detail-item-btn::after {
display: inline-block;
content: '';
width: 16rpx;
height: 16rpx;
color: #d9d9d9;
margin-top: 8rpx;
border: 3rpx #d9d9d9 solid;
border-top-color: transparent;
border-left-color: transparent;
transform: rotate(-45deg);
} }
.detail-item .detail-item-btn::after{
display: inline-block;
content:'';
width: 16rpx;
height: 16rpx;
color: #d9d9d9;
margin-top: 8rpx;
border:3rpx #d9d9d9 solid;
border-top-color:transparent;
border-left-color:transparent;
transform: rotate(-45deg);
}

View File

@ -1,6 +1,8 @@
// pages/user/xinxi/xinxi.js // pages/user/xinxi/xinxi.js
var app = getApp(); var app = getApp();
import { DBPost } from '../../../db/DBpost.js'; import {
DBPost
} from '../../../db/DBpost.js';
Page({ Page({
/** /**
@ -13,76 +15,76 @@ Page({
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function(options) {
var dbPost = new DBPost(); var dbPost = new DBPost();
this.setData({ this.setData({
xingming:dbPost.getxingmingData(), xingming: dbPost.getxingmingData(),
xuehao:dbPost.getxuehaoData(), xuehao: dbPost.getxuehaoData(),
zhuanye:dbPost.getzhuanyeData(), zhuanye: dbPost.getzhuanyeData(),
xueyuan:dbPost.getxueyuanData(), xueyuan: dbPost.getxueyuanData(),
}); });
}, },
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { onReady: function() {
}, },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function() {
}, },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () { onHide: function() {
}, },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () { onUnload: function() {
}, },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () { onPullDownRefresh: function() {
}, },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () { onReachBottom: function() {
}, },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { onShareAppMessage: function() {
}, },
bangDingError(){ bangDingError() {
wx.showModal({ wx.showModal({
title: '联系客服', title: '联系客服',
content: 'QQ1144131090', content: 'QQ1144131090',
confirmText: '复制', confirmText: '复制',
confirmColor: '#003b97', confirmColor: '#003b97',
success: function (res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
wx.setClipboardData({ wx.setClipboardData({
data: '1144131090', data: '1144131090',
success: function (res) { success: function(res) {
wx.showToast({ wx.showToast({
title: '复制成功', title: '复制成功',
icon: 'success' icon: 'success'

View File

@ -29,6 +29,6 @@
<text>校训:明德博学,求是创新</text> <text>校训:明德博学,求是创新</text>
</view> </view>
</view> </view>
<view class='foot' bindtap='bangDingError'>绑定错误?快速戳我!</view> <view class='foot' bindtap='bangDingError'>绑定错误?快速戳我!</view>
</view> </view>

View File

@ -1,4 +1,5 @@
/* pages/user/xinxi/xinxi.wxss */ /* pages/user/xinxi/xinxi.wxss */
/* pages/user/user.wxss */ /* pages/user/user.wxss */
.allPage { .allPage {
@ -10,7 +11,7 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
background-color: #003b97; background-color: #003b97;
} }
.UP { .UP {
@ -18,7 +19,7 @@
width: 150rpx; width: 150rpx;
border-radius: 50%; border-radius: 50%;
margin: 30rpx; margin: 30rpx;
overflow:hidden; overflow: hidden;
} }
.NQ { .NQ {
@ -32,67 +33,71 @@
font-size: 130%; font-size: 130%;
} }
page {
page{
background-color: #eee; background-color: #eee;
} }
.category-item { .category-item {
width: 100%; width: 100%;
margin: 20rpx 0; margin: 20rpx 0;
border-top: 1rpx solid #d9d9d9; border-top: 1rpx solid #d9d9d9;
border-bottom: 1rpx solid #d9d9d9; border-bottom: 1rpx solid #d9d9d9;
background-color: #fff; background-color: #fff;
} }
.detail-item{
display: flex;
margin-left: 30rpx;
border-bottom: 1px solid RGBA(217, 217, 217, .4);
height:85rpx;
align-items: center;
}
.detail-item:last-child{
border-bottom:none;
}
.detail-item image{
height: 40rpx;
width:40rpx;
.detail-item {
display: flex;
margin-left: 30rpx;
border-bottom: 1px solid RGBA(217, 217, 217, 0.4);
height: 85rpx;
align-items: center;
} }
.detail-item text{
color:#7F8389; .detail-item:last-child {
font-size:24rpx; border-bottom: none;
flex:1;
margin-left: 30rpx;
} }
.detail-item .detail-item-btn{
width: 50rpx; .detail-item image {
color: #d9d9d9; height: 40rpx;
height: 40rpx; width: 40rpx;
margin-right: 20rpx;
text-align: center;
} }
.detail-item .detail-item-btn::after{
display: inline-block; .detail-item text {
content:''; color: #7f8389;
width: 16rpx; font-size: 24rpx;
height: 16rpx; flex: 1;
color: #d9d9d9; margin-left: 30rpx;
margin-top: 8rpx;
border:3rpx #d9d9d9 solid;
border-top-color:transparent;
border-left-color:transparent;
transform: rotate(-45deg);
} }
.btn-area{
.detail-item .detail-item-btn {
width: 50rpx;
color: #d9d9d9;
height: 40rpx;
margin-right: 20rpx;
text-align: center;
}
.detail-item .detail-item-btn::after {
display: inline-block;
content: '';
width: 16rpx;
height: 16rpx;
color: #d9d9d9;
margin-top: 8rpx;
border: 3rpx #d9d9d9 solid;
border-top-color: transparent;
border-left-color: transparent;
transform: rotate(-45deg);
}
.btn-area {
margin-top: 60rpx; margin-top: 60rpx;
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
padding: 0 30rpx; padding: 0 30rpx;
} }
.kongbai{
.kongbai {
margin-bottom: 200rpx; margin-bottom: 200rpx;
} }
@ -103,6 +108,6 @@ page{
height: 50rpx; height: 50rpx;
line-height: 50rpx; line-height: 50rpx;
position: fixed; position: fixed;
bottom: 15px; bottom: 15px;
width:100%; width: 100%;
} }

View File

@ -16,7 +16,7 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function(options) { onLoad: function(options) {
}, },
/** /**
@ -96,7 +96,7 @@ Page({
dbPost.newadmin(result.data.admin); dbPost.newadmin(result.data.admin);
that.data.xuehao = result.data.xueHao; that.data.xuehao = result.data.xueHao;
console.log(that.data.xuehao); console.log(that.data.xuehao);
var timestamp = + new Date(); var timestamp = +new Date();
timestamp = timestamp / 1000; timestamp = timestamp / 1000;
timestamp = parseInt(timestamp); timestamp = parseInt(timestamp);
dbPost.newloginTime(timestamp); dbPost.newloginTime(timestamp);
@ -151,7 +151,7 @@ Page({
}) })
} }
}, },
fail: function () { fail: function() {
wx.hideLoading(); wx.hideLoading();
wx.showToast({ wx.showToast({
title: "登录失败", title: "登录失败",

View File

@ -3,10 +3,10 @@
<image src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/login/denglu1.jpg' class='SRCS'></image> <image src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/login/denglu1.jpg' class='SRCS'></image>
<view class='btn2'> <view class='btn2'>
<view class="btn-area" id="buttonContainer"> <view class="btn-area" id="buttonContainer">
<button type="warn" bindtap='denglu' style='background-color: #11ceec;'>登录</button> <button type="warn" bindtap='denglu' style='background-color: #11ceec;'>登录</button>
</view> </view>
<view class="btn-area" id="buttonContainer"> <view class="btn-area" id="buttonContainer">
<button type="warn" bindtap='zhuce' style='background-color: #139aec;'>注册</button> <button type="warn" bindtap='zhuce' style='background-color: #139aec;'>注册</button>
</view> </view>
</view> </view>
<view class='txt'>Design by RainSun</view> <view class='txt'>Design by RainSun</view>

View File

@ -11,12 +11,10 @@ page {
} }
.SRCS { .SRCS {
height: 900rpx; height: 900rpx;
width: 100%; width: 100%;
} }
.btn-area { .btn-area {
margin-top: 40rpx; margin-top: 40rpx;
box-sizing: border-box; box-sizing: border-box;
@ -24,19 +22,20 @@ page {
padding: 0 30rpx; padding: 0 30rpx;
} }
.btn2{ .btn2 {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
} }
.txt { .txt {
margin-top: 100rpx; margin-top: 100rpx;
color: #7f8389; color: #7f8389;
font-size: 15rpx; font-size: 15rpx;
flex: 1; flex: 1;
} }
.txt1 {
.txt1 {
color: #7f8389; color: #7f8389;
font-size: 15rpx; font-size: 15rpx;
flex: 1; flex: 1;

View File

@ -122,18 +122,18 @@ Page({
}; };
data.multiIndex[e.detail.column] = e.detail.value; data.multiIndex[e.detail.column] = e.detail.value;
switch (e.detail.column) {//选择改变的列 switch (e.detail.column) { //选择改变的列
case 0: case 0:
switch (data.multiIndex[0]) { //判断第一列目前的值 switch (data.multiIndex[0]) { //判断第一列目前的值
case 0://1705 case 0: //1705
data.multiArray[1] = ['111', '112', '113', '114', '115', '116', '117', '121', '122', '211', '212', '213', '221', '222']; //1.2 data.multiArray[1] = ['111', '112', '113', '114', '115', '116', '117', '121', '122', '211', '212', '213', '221', '222']; //1.2
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30']; //1.2.1 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30']; //1.2.1
break; break;
case 1://1805 case 1: //1805
data.multiArray[1] = ['112', '113', '114', '115', '116', '117', '121', '122', '123', '211', '212', '213', '214', '221', '222']; //1.2 data.multiArray[1] = ['112', '113', '114', '115', '116', '117', '121', '122', '123', '211', '212', '213', '214', '221', '222']; //1.2
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39']; //1.2.1 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39']; //1.2.1
break; break;
case 2://其他学院 case 2: //其他学院
data.multiArray[1] = ['暂缓开通']; //2.2 data.multiArray[1] = ['暂缓开通']; //2.2
data.multiArray[2] = ['暂缓开通']; //2.2.1 data.multiArray[2] = ['暂缓开通']; //2.2.1
break; break;
@ -144,7 +144,7 @@ Page({
case 1: case 1:
switch (data.multiIndex[0]) { switch (data.multiIndex[0]) {
case 0: case 0:
switch (data.multiIndex[1]) {//选择班级 switch (data.multiIndex[1]) { //选择班级
case 0: case 0:
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38']; data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38'];
break; break;
@ -194,51 +194,51 @@ Page({
break; break;
case 1: case 1:
switch (data.multiIndex[1]) {//选择班级 switch (data.multiIndex[1]) { //选择班级
case 0: case 0:
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38','39']; //1805112 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39']; //1805112
break; break;
case 1: case 1:
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38','39','40'];//1805113 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40']; //1805113
break; break;
case 2: case 2:
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40','41'];//1805114 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41']; //1805114
break; break;
case 3: case 3:
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39'];//1805115 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39']; //1805115
break; break;
case 4: case 4:
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39'];//1805116 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39']; //1805116
break; break;
case 5: case 5:
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39'];//1805117 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39']; //1805117
break; break;
case 6: case 6:
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37'];//1805121 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37']; //1805121
break; break;
case 7: case 7:
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37'];//1805122 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37']; //1805122
break; break;
case 8: case 8:
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36'];//1805123 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36']; //1805123
break; break;
case 9: case 9:
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36','37'];//1805211 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37']; //1805211
break; break;
case 10: case 10:
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36','37'];//1805212 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37']; //1805212
break; break;
case 11: case 11:
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36'];//1805213 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36']; //1805213
break; break;
case 12: case 12:
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36'];//1805214 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36']; //1805214
break; break;
case 13: case 13:
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37','38'];//1805221 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38']; //1805221
break; break;
case 14: case 14:
data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37'];//1805222 data.multiArray[2] = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37']; //1805222
break; break;
} }
@ -328,7 +328,7 @@ Page({
dbPost.newadmin(result.data.admin); dbPost.newadmin(result.data.admin);
that.data.xuehao = result.data.xueHao; that.data.xuehao = result.data.xueHao;
console.log(that.data.xuehao); console.log(that.data.xuehao);
if(that.data.xuehao){ if (that.data.xuehao) {
wx.switchTab({ wx.switchTab({
url: '../../pages/post/post' url: '../../pages/post/post'
}) })
@ -337,15 +337,15 @@ Page({
icon: 'success', icon: 'success',
duration: 2000 duration: 2000
}) })
}else{ } else {
wx.showToast({ wx.showToast({
title: "注册失败,请重试", title: "注册失败,请重试",
icon: "none" icon: "none"
}) })
} }
}, },
fail:function(){ fail: function() {
wx.showToast({ wx.showToast({
title: "网络不畅,注册失败", title: "网络不畅,注册失败",
icon: "none" icon: "none"
@ -484,11 +484,11 @@ Page({
content: 'QQ1144131090', content: 'QQ1144131090',
confirmText: '复制', confirmText: '复制',
confirmColor: '#10aeff', confirmColor: '#10aeff',
success: function (res) { success: function(res) {
if (res.confirm) { if (res.confirm) {
wx.setClipboardData({ wx.setClipboardData({
data: '1144131090', data: '1144131090',
success: function (res) { success: function(res) {
wx.showToast({ wx.showToast({
title: '复制成功', title: '复制成功',
icon: 'success' icon: 'success'

View File

@ -1,4 +1,4 @@
{ {
"navigationBarBackgroundColor": "#10aeff", "navigationBarBackgroundColor": "#10aeff",
"navigationBarTitleText": "欢迎加入RCS大家庭" "navigationBarTitleText": "欢迎加入RCS大家庭"
} }

View File

@ -1,7 +1,6 @@
<!--welcome/signin/signin.wxml--> <!--welcome/signin/signin.wxml-->
<view class='allpage'> <view class='allpage'>
<image src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/signin/zhuce1.jpg' class='signin'></image> <image src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/signin/zhuce1.jpg' class='signin'></image>
<view class="section"> <view class="section">
<image class='xuehao-png' src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/xinxi/xuehao.png'></image> <image class='xuehao-png' src='http://supcache.wanyuanyin.cn/data/maoye.club/yingbo/rcs/images/xinxi/xuehao.png'></image>
<view class='txt'>学号</view> <view class='txt'>学号</view>
@ -10,10 +9,7 @@
</picker> </picker>
<button bindtap='yanzheng' class="minibtn" type="primary" disabled='{{disabled1}}' style='border-radius: 30px;background-color: #10aeff;' size="mini">验证</button> <button bindtap='yanzheng' class="minibtn" type="primary" disabled='{{disabled1}}' style='border-radius: 30px;background-color: #10aeff;' size="mini">验证</button>
</view> </view>
<view class='kongbai'></view> <view class='kongbai'></view>
<view class="btn-area" id="buttonContainer"> <view class="btn-area" id="buttonContainer">
<button type="warn" bindtap='sumit' disabled="{{disabled}}" style='opacity: {{opacity}};background-color: #10aeff;'>完成注册</button> <button type="warn" bindtap='sumit' disabled="{{disabled}}" style='opacity: {{opacity}};background-color: #10aeff;'>完成注册</button>
</view> </view>

View File

@ -54,7 +54,8 @@ page {
width: 40rpx; width: 40rpx;
margin-right: 20rpx; margin-right: 20rpx;
} }
.xuehao-png{
.xuehao-png {
height: 30rpx; height: 30rpx;
width: 40rpx; width: 40rpx;
margin-right: 20rpx; margin-right: 20rpx;
@ -70,22 +71,26 @@ page {
align-items: center; align-items: center;
margin-top: 60rpx; margin-top: 60rpx;
} }
.mima-input{
border-bottom-color: #000; .mima-input {
border-bottom-color: #000;
border-bottom-style: solid; border-bottom-style: solid;
border-bottom-width: thin; border-bottom-width: thin;
margin-left: 30rpx; margin-left: 30rpx;
width: 410rpx; width: 410rpx;
} }
.btn-area { .btn-area {
margin-top: 40rpx; margin-top: 40rpx;
box-sizing: border-box; box-sizing: border-box;
width: 80%; width: 80%;
padding: 0 30rpx; padding: 0 30rpx;
} }
.kongbai{
.kongbai {
margin-top: 170rpx; margin-top: 170rpx;
} }
.foot { .foot {
font-size: 25rpx; font-size: 25rpx;
color: #10aeff; color: #10aeff;
@ -93,6 +98,6 @@ page {
height: 50rpx; height: 50rpx;
line-height: 50rpx; line-height: 50rpx;
position: fixed; position: fixed;
bottom: 15px; bottom: 15px;
width:100%; width: 100%;
} }