|
放到其他页面没事,就这个页面闪退,但是这个页面没写啥啊,也看不出来哪里冲突了,我贴下代码:
<template>
<view class="joinclass">
<safe-area class="safe-area">
<view class="header">
<text class="title">加入班级</text>
<view class="backBox" @click="back()">
<img class="back" src="../../../images/common/backuser.png" alt="">
</view>
</view>
</safe-area>
<view class="classnum">
<view class="publicbox">
<text class="publitext">班级号</text>
<input class="ipnt" type="text" name="input" v-model="classnum" placeholder="输入数字" />
</view>
</view>
<view class="btnbox">
<text class="btn">加入班级</text>
</view>
</view>
</template>
<script>
export default {
name: 'joinclass',
apiready() {
},
data() {
return {
classnum: '',//班级号
}
},
methods: {
back() {
api.closeWin()
}
}
}
</script>
<style scoped>
.joinclass {
width: 100%;
height: 100%;
background-color: #fafafa;
}
.safe-area {
width: 100%;
background-image: linear-gradient(to right, #ffb940, #fb834e);
}
.header {
width: 100%;
height: 50px;
background-image: linear-gradient(to right, #ffb940, #fb834e);
}
.title {
font-size: 18px;
font-weight: bold;
text-align: center;
line-height: 50px;
color: #fff9f5;
}
.backBox {
width: 50px;
height: 50px;
position: absolute;
top: 0;
left: 0;
}
.back {
width: 11.5px;
height: 20px;
position: absolute;
top: 50%;
left: 50%;
margin: -10px 0 0 -5.75px;
}
.classnum {
width: 90%;
margin: 30px auto;
}
.publicbox {
width: 100%;
height: 60px;
border-bottom: 1px solid #b1a9a8;
}
.publitext {
font-size: 14px;
font-weight: bold;
line-height: 20px;
color: #210600;
}
.ipnt {
width: 98%;
height: 30px;
margin-top: 10px;
font-size: 14px;
border: none;
color: #000;
background-color: #fafafa;
}
input::placeholder {
font-size: 12px;
border: none;
color: #b1a9a8;
}
.btnbox {
width: 80%;
height: 44px;
margin: 0 auto;
position: absolute;
bottom: 20px;
left: 10%;
}
.btn {
width: 100%;
height: 44px;
background-image: linear-gradient(to right, #ffb940, #fb834e);
box-shadow: 0px 3px 1px rgba(141, 24, 0, 0.24);
border-radius: 18px;
text-align: center;
line-height: 44px;
font-size: 18px;
color: #fff;
}
</style>
|
|