52 lines
949 B
Vue
52 lines
949 B
Vue
|
|
<template>
|
||
|
|
<view>
|
||
|
|
<!-- 添加外宿申请按钮 -->
|
||
|
|
<view class="add" @click="addOutsideAccommodation">+</view>
|
||
|
|
</view>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
export default {
|
||
|
|
data () {
|
||
|
|
return {
|
||
|
|
|
||
|
|
}
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
|
// 跳转添加页面
|
||
|
|
addOutsideAccommodation() {
|
||
|
|
// if (this.roleGroup === "学生") {
|
||
|
|
// if (this.dormInfo.length > 0) {
|
||
|
|
// uni.showToast({
|
||
|
|
// title: '请勿重复提交',
|
||
|
|
// icon: 'none'
|
||
|
|
// });
|
||
|
|
// return
|
||
|
|
// }
|
||
|
|
// }
|
||
|
|
uni.navigateTo({
|
||
|
|
url: `/pages/dormitory/outsideAccommodation/applicationForm`
|
||
|
|
})
|
||
|
|
},
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style scoped>
|
||
|
|
.add {
|
||
|
|
position: fixed;
|
||
|
|
bottom: 50rpx;
|
||
|
|
right: 50rpx;
|
||
|
|
width: 90rpx;
|
||
|
|
height: 90rpx;
|
||
|
|
border-radius: 50%;
|
||
|
|
background-color: #1890FF;
|
||
|
|
color: white;
|
||
|
|
display: flex;
|
||
|
|
justify-content: center;
|
||
|
|
align-items: center;
|
||
|
|
font-size: 60rpx;
|
||
|
|
box-shadow: 0 4rpx 12rpx rgba(24, 144, 255, 0.3);
|
||
|
|
z-index: 99;
|
||
|
|
}
|
||
|
|
</style>
|