|
|
|
@ -1,4 +1,4 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<view class='wrap'>
|
|
|
|
<view class='wrap'>
|
|
|
|
<view class="formwrap">
|
|
|
|
<view class="formwrap">
|
|
|
|
<view class='logintitle'>
|
|
|
|
<view class='logintitle'>
|
|
|
|
@ -30,7 +30,7 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<u-picker @confirm="confirmParty" keyName="name" @cancel='cancelParty' :show="partyShow" :columns="partyColumns"></u-picker>
|
|
|
|
<u-picker @confirm="confirmParty" keyName="name" @cancel='cancelParty' :show="partyShow" :columns="partyColumns"></u-picker>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <view class="loginsucess" v-if="showSucess" :style="{'height':maskHeight+'px'}">
|
|
|
|
<!-- <view class="loginsucess" v-if="showSucess" :style="{'height':maskHeight+'px'}">
|
|
|
|
<view class="loginsucesswrap">
|
|
|
|
<view class="loginsucesswrap">
|
|
|
|
<view class="answerBtn">
|
|
|
|
<view class="answerBtn">
|
|
|
|
@ -67,7 +67,7 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="tipcenter">
|
|
|
|
<view class="tipcenter">
|
|
|
|
<view>
|
|
|
|
<view>
|
|
|
|
<view v-html="active_tip"></view>
|
|
|
|
<view v-html="active_tip"></view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="answerBtn">
|
|
|
|
<view class="answerBtn">
|
|
|
|
@ -75,13 +75,13 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="tipbottom"></view>
|
|
|
|
<view class="tipbottom"></view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
logintitle:require("../../static/logintitle.png"),
|
|
|
|
logintitle:require("../../static/logintitle.png"),
|
|
|
|
loginicon:require("../../static/loginicon.png"),
|
|
|
|
loginicon:require("../../static/loginicon.png"),
|
|
|
|
@ -89,12 +89,12 @@ export default {
|
|
|
|
tip:require("../../static/logintip.png"),
|
|
|
|
tip:require("../../static/logintip.png"),
|
|
|
|
partyShow:false,
|
|
|
|
partyShow:false,
|
|
|
|
showSucess:false,
|
|
|
|
showSucess:false,
|
|
|
|
partyColumns:[],
|
|
|
|
partyColumns:[],
|
|
|
|
form: {
|
|
|
|
form: {
|
|
|
|
name: '',
|
|
|
|
name: '',
|
|
|
|
mobile: '',
|
|
|
|
mobile: '',
|
|
|
|
address: '',
|
|
|
|
address: '',
|
|
|
|
department_id:''
|
|
|
|
department_id:''
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showTip:false,
|
|
|
|
showTip:false,
|
|
|
|
isEnd:true,
|
|
|
|
isEnd:true,
|
|
|
|
@ -105,8 +105,8 @@ export default {
|
|
|
|
windowHeight:0,
|
|
|
|
windowHeight:0,
|
|
|
|
activeConfig:{},
|
|
|
|
activeConfig:{},
|
|
|
|
startTime:'',
|
|
|
|
startTime:'',
|
|
|
|
endTime:''
|
|
|
|
endTime:''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onShow(){
|
|
|
|
onShow(){
|
|
|
|
let that = this
|
|
|
|
let that = this
|
|
|
|
@ -144,9 +144,9 @@ export default {
|
|
|
|
_this.windowHeight = res.windowHeight
|
|
|
|
_this.windowHeight = res.windowHeight
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
formatDateToMonthDay(dateString) {
|
|
|
|
formatDateToMonthDay(dateString) {
|
|
|
|
// const date = new Date(dateString);
|
|
|
|
// const date = new Date(dateString);
|
|
|
|
@ -194,6 +194,7 @@ export default {
|
|
|
|
api: '/api/mobile/quiz/get-departments',
|
|
|
|
api: '/api/mobile/quiz/get-departments',
|
|
|
|
data: this.form,
|
|
|
|
data: this.form,
|
|
|
|
method: 'GET',
|
|
|
|
method: 'GET',
|
|
|
|
|
|
|
|
customLoading: true,
|
|
|
|
utilSuccess: function(res) {
|
|
|
|
utilSuccess: function(res) {
|
|
|
|
let _arr = []
|
|
|
|
let _arr = []
|
|
|
|
res.map(item=>{
|
|
|
|
res.map(item=>{
|
|
|
|
@ -209,6 +210,9 @@ export default {
|
|
|
|
openPicker(){
|
|
|
|
openPicker(){
|
|
|
|
uni.hideKeyboard()
|
|
|
|
uni.hideKeyboard()
|
|
|
|
this.partyShow = true
|
|
|
|
this.partyShow = true
|
|
|
|
|
|
|
|
if (this.partyColumns.length === 0) {
|
|
|
|
|
|
|
|
this.getParty()
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
confirmParty(e){
|
|
|
|
confirmParty(e){
|
|
|
|
console.log(e)
|
|
|
|
console.log(e)
|
|
|
|
@ -224,8 +228,8 @@ export default {
|
|
|
|
isOnlyChinese(str) {
|
|
|
|
isOnlyChinese(str) {
|
|
|
|
const chineseRegex = /^[\u4e00-\u9fa5]+$/;
|
|
|
|
const chineseRegex = /^[\u4e00-\u9fa5]+$/;
|
|
|
|
return chineseRegex.test(str);
|
|
|
|
return chineseRegex.test(str);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
submit() {
|
|
|
|
submit() {
|
|
|
|
if(this.util.isNull(this.form.name)||this.util.isNull(this.form.mobile)||this.util.isNull(this.form.address)){
|
|
|
|
if(this.util.isNull(this.form.name)||this.util.isNull(this.form.mobile)||this.util.isNull(this.form.address)){
|
|
|
|
this.util.toast("请填写所有信息")
|
|
|
|
this.util.toast("请填写所有信息")
|
|
|
|
return
|
|
|
|
return
|
|
|
|
@ -264,12 +268,12 @@ export default {
|
|
|
|
utilFail: function(res) {
|
|
|
|
utilFail: function(res) {
|
|
|
|
that.util.toast(res)
|
|
|
|
that.util.toast(res)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
<style scoped>
|
|
|
|
page {
|
|
|
|
page {
|
|
|
|
/* background-color: #F6F3EA; */
|
|
|
|
/* background-color: #F6F3EA; */
|
|
|
|
@ -278,7 +282,7 @@ export default {
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
background-color: #fffafa;
|
|
|
|
background-color: #fffafa;
|
|
|
|
/* padding-top: 11vh; */
|
|
|
|
/* padding-top: 11vh; */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.wrap{
|
|
|
|
.wrap{
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
width:100%;
|
|
|
|
width:100%;
|
|
|
|
@ -294,11 +298,11 @@ export default {
|
|
|
|
padding-bottom:120rpx
|
|
|
|
padding-bottom:120rpx
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.logintitle{
|
|
|
|
.logintitle{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/deep/ .logintitle .u-image{
|
|
|
|
/deep/ .logintitle .u-image{
|
|
|
|
margin:0 auto;
|
|
|
|
margin:0 auto;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.logintitletext{
|
|
|
|
.logintitletext{
|
|
|
|
margin-top:40rpx;
|
|
|
|
margin-top:40rpx;
|
|
|
|
@ -308,7 +312,7 @@ export default {
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-size: 28rpx;
|
|
|
|
color:#999999;
|
|
|
|
color:#999999;
|
|
|
|
border-radius:0 60rpx 60rpx 0;
|
|
|
|
border-radius:0 60rpx 60rpx 0;
|
|
|
|
background-color: #fff;
|
|
|
|
background-color: #fff;
|
|
|
|
padding:10rpx 20rpx
|
|
|
|
padding:10rpx 20rpx
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.logintitletext span:first-child{
|
|
|
|
.logintitletext span:first-child{
|
|
|
|
@ -344,7 +348,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/deep/ .loginbtn .u-button--circle{
|
|
|
|
/deep/ .loginbtn .u-button--circle{
|
|
|
|
box-shadow: 1rpx 7rpx 18rpx 0rpx rgba(235,107,85,0.3);
|
|
|
|
box-shadow: 1rpx 7rpx 18rpx 0rpx rgba(235,107,85,0.3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
<style lang="scss">
|
|
|
|
<style lang="scss">
|
|
|
|
.tips{
|
|
|
|
.tips{
|
|
|
|
@ -427,16 +431,16 @@ export default {
|
|
|
|
font-size: 28rpx;
|
|
|
|
font-size: 28rpx;
|
|
|
|
border-radius: 10rpx;
|
|
|
|
border-radius: 10rpx;
|
|
|
|
display: inline-block;
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
& > view:last-child{
|
|
|
|
& > view:last-child{
|
|
|
|
color:#fff;
|
|
|
|
color:#fff;
|
|
|
|
background: linear-gradient(90deg, #E73928, #F07963);
|
|
|
|
background: linear-gradient(90deg, #E73928, #F07963);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.loginsucess{
|
|
|
|
.loginsucess{
|
|
|
|
.tipwrap{
|
|
|
|
.tipwrap{
|
|
|
|
@ -464,4 +468,4 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|