113 lines
1.9 KiB
Vue
113 lines
1.9 KiB
Vue
<template>
|
|
<view class="container safe-area-inset-bottom">
|
|
<MessageNotification />
|
|
<view class="detail">
|
|
<u-field v-model="txt" :focus="true" label-width="0" placeholder="请在此填写备注信息"
|
|
placeholder-style="color:#94A3B8" type="textarea" @input="sumfontnum" :auto-height="false">
|
|
</u-field>
|
|
</view>
|
|
|
|
<view class="footer">
|
|
<text @click="next">确定</text>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
txt: "",
|
|
fontNum: 140,
|
|
}
|
|
},
|
|
onLoad(e) {
|
|
|
|
},
|
|
methods: {
|
|
next() {
|
|
uni.navigateBack({
|
|
delta: 1
|
|
})
|
|
|
|
},
|
|
// 字数
|
|
sumfontnum(e) {
|
|
this.fontNum = 140 - e.length
|
|
},
|
|
},
|
|
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.container {
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
|
|
.title {
|
|
width: 686rpx;
|
|
height: 60rpx;
|
|
font-size: 36rpx;
|
|
font-family: PingFang SC-Medium, PingFang SC;
|
|
font-weight: 500;
|
|
color: #1E293B;
|
|
margin: 32rpx;
|
|
}
|
|
|
|
.detail {
|
|
width: 686rpx;
|
|
height: 300rpx;
|
|
background: #F8FAFC;
|
|
border-radius: 8rpx;
|
|
margin: 32rpx;
|
|
position: relative;
|
|
|
|
.words {
|
|
position: absolute;
|
|
right: 30rpx;
|
|
bottom: 20rpx;
|
|
font-size: 28rpx;
|
|
font-family: PingFang SC-Regular, PingFang SC;
|
|
font-weight: 400;
|
|
color: #A7ABB0;
|
|
|
|
text {
|
|
margin-left: 2rpx;
|
|
color: #F44336;
|
|
}
|
|
}
|
|
}
|
|
|
|
::v-deep .u-field {
|
|
width: 686rpx;
|
|
height: 300rpx;
|
|
}
|
|
|
|
.footer {
|
|
width: 750rpx;
|
|
height: 110rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 2rpx solid #F2F3F5;
|
|
position: fixed;
|
|
left: 0;
|
|
bottom: env;
|
|
|
|
text {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 686rpx;
|
|
height: 86rpx;
|
|
background: #4175EE;
|
|
border-radius: 64rpx;
|
|
font-size: 32rpx;
|
|
font-family: PingFang SC-Medium, PingFang SC;
|
|
font-weight: 500;
|
|
color: #FFFFFF;
|
|
}
|
|
}
|
|
}
|
|
</style>
|