Files
2025-04-30 14:04:34 +08:00

271 lines
5.7 KiB
Vue

<template>
<view class="page" :style="themeColor">
<view class="flex benben-position-layout flex flex-wrap align-center addRemarks_flex_0"
:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
<view class='flex flex-wrap align-center justify-between flex-sub addRemarks_fd0_0'>
<view class='flex flex-wrap align-center addRemarks_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
data-url="1">
<text class='fu-iconfont2 addRemarks_fd0_0_c0_c0'>&#xE794;</text>
</view>
<view class='flex flex-wrap align-center'>
<text class='addRemarks_fd0_0_c1_c0'>添加备注</text>
</view>
<view class='flex flex-wrap align-center justify-end addRemarks_fd0_0_c2'>
<!-- #ifndef MP-WEIXIN -->
<text class='addRemarks_fd0_0_c2_c0' @tap.stop="sureTap">完成</text>
<!-- #endif -->
</view>
</view>
</view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
<!---flex布局flex布局开始-->
<view class="flex flex-wrap align-center justify-center benben-flex-layout">
<view class='flex flex-wrap addRemarks_fd1_0'>
<textarea class='flex addRemarks_input_fd1_0' placeholder="请输入" maxlength="50" :show-num='true'
placeholder-style="color:#999;font-size:28rpx" v-model="informent" />
<template>
<view class='flex justify-end flex addRemarks_numberfd1_0_c0'>
<text class='addRemarks_numberfd1_0_c0_c0'>{{informent.length}}</text>
<text>/</text>
<text class='addRemarks_numberfd1_0_c0_c2'>50</text>
</view>
</template>
</view>
</view>
<!---flex布局flex布局结束-->
<!---flex布局flex布局开始-->
<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout addRemarks_flex_2">
<view class='flex flex-wrap align-center addRemarks_fd2_0'>
<text class='addRemarks_fd2_0_c0'>快捷标签</text>
</view>
<view class='flex flex-wrap align-center addRemarks_fd2_1'>
<template v-for='(item,key0) in lagle_List'>
<view class='flex flex-wrap align-center justify-center addRemarks_fd2_1_c0' :key='key0' @tap="labelTap(item.title)">
<text class='addRemarks_fd2_1_c0_c0'>{{item.title}}</text>
</view>
</template>
</view>
</view>
<!-- #ifdef MP-WEIXIN -->
<button class='immediatePayment_fd4_0' @tap.stop="sureTap">完成</button>
<!-- #endif -->
<!---flex布局flex布局结束-->
</view>
</template>
<script>
export default {
components: {},
data() {
return {
"lagle_List": [],
informent: "",
"label_id": ""
};
},
computed: {
themeColor() {
return this.$store.getters.themeColor
},
},
watch: {},
onLoad(options) {
let {remark} = options
this.informent = remark || ''
},
onUnload() {
},
onReady() {
},
onShow() {
this.get64a533a675a0a()
},
onHide() {
},
onResize() {
},
onPullDownRefresh() {
},
onReachBottom(e) {
},
onPageScroll(e) {
},
methods: {
get64a533a675a0a(){
this.$api.post(global.apiUrls.get64a533a675a0a).then(res=>{
if(res.data.code==1){
this.lagle_List = res.data.data
}
})
},
labelTap(name){
if(this.informent == 50){
return
}
this.informent+=name
if( this.informent.length>50 ){
this.informent=this.informent.substring(0,50);
return
}
},
sureTap(){
uni.$emit('REMARKS',this.informent)
setTimeout(function(){
uni.navigateBack()
},300)
}
}
};
</script>
<style lang="scss" scoped>
.page {
width: 100vw;
overflow-x: hidden;
min-height: calc(100vh - var(--window-bottom));
background: rgba(255, 255, 255, 1);
background-size: 100% auto !important;
}
.immediatePayment_fd4_0 {
background: rgba(255, 147, 0, 1);
border-radius: 44rpx 44rpx 44rpx 44rpx;
font-size: 32rpx;
color: #fff;
width: 686rpx;
height: 80rpx;
line-height: 80rpx;
font-weight: 400;
margin: 64rpx auto;
}
.addRemarks_flex_0 {
background: #fff;
width: 750rpx;
height: 88rpx;
overflow: hidden;
z-index: 10;
top: 0rpx;
background-size: 100% auto !important;
}
.addRemarks_fd0_0_c2_c0 {
line-height: 35rpx;
font-size: 32rpx;
font-weight: 400;
color: #000000;
}
.addRemarks_fd0_0_c2 {
width: 150rpx;
}
.addRemarks_fd0_0_c1_c0 {
font-size: 36rpx;
font-weight: 500;
color: #333;
line-height: 88rpx;
}
.addRemarks_fd0_0_c0_c0 {
font-size: 36rpx;
font-weight: 500;
color: #333;
line-height: 36rpx;
}
.addRemarks_fd0_0_c0 {
width: 150rpx;
}
.addRemarks_fd0_0 {
margin: 0rpx 32rpx 0rpx 32rpx;
}
.addRemarks_numberfd1_0_c0_c2 {
color: rgba(153, 153, 153, 1);
}
.addRemarks_numberfd1_0_c0_c0 {
color: rgba(153, 153, 153, 1);
}
.addRemarks_numberfd1_0_c0 {
font-size: 28rpx;
color: #999999;
line-height: 28rpx;
font-weight: 500;
width: 100%;
}
.addRemarks_input_fd1_0 {
width: 100%;
height: 140rpx;
font-size: 28rpx;
font-weight: 400;
color: #333;
white-space: pre-wrap;
}
.addRemarks_fd1_0 {
background: rgba(246, 247, 249, 1);
width: 685rpx;
border-radius: 16rpx 16rpx 16rpx 16rpx;
padding: 24rpx 24rpx 24rpx 24rpx;
height: 248rpx;
}
.addRemarks_flex_2 {
padding: 32rpx 0rpx 0rpx 0rpx;
}
.addRemarks_fd2_1_c0_c0 {
color: #333333;
font-size: 28rpx;
font-weight: 500;
line-height: 64rpx;
}
.addRemarks_fd2_1_c0 {
border: 1px solid rgba(238, 238, 238, 1);
background: rgba(255, 255, 255, 1);
width: 150rpx;
height: 72rpx;
border-radius: 8rpx 8rpx 8rpx 8rpx;
background-size: 100% auto !important;
margin: 14rpx 14rpx 14rpx 14rpx;
}
.addRemarks_fd2_1 {
padding: 0rpx 8rpx 0rpx 8rpx;
}
.addRemarks_fd2_0_c0 {
color: #999999;
font-size: 32rpx;
font-weight: 500;
line-height: 32rpx;
}
.addRemarks_fd2_0 {
padding: 0rpx 0rpx 8rpx 32rpx;
}
</style>