101 lines
2.2 KiB
Vue
101 lines
2.2 KiB
Vue
<template>
|
||
<view>
|
||
<uni-nav-bar leftText=" " :fixed="true" :border="false" leftIcon="back" @clickLeft="leftClick" color="#000000" backgroundColor="#fff" :statusBar="true" :title="$t('navbar.Vehiclesource')"></uni-nav-bar>
|
||
<view class="cont">
|
||
<image v-if="i18locale=='zh'" src="/static/image/mine/error.png" mode="widthFix">
|
||
<image v-if="i18locale=='en'" src="/static/image/mine/errore.png" mode="widthFix">
|
||
<image v-if="i18locale=='ru'" src="/static/image/mine/errorr.png" mode="widthFix">
|
||
<view class="">
|
||
{{$t('status2')}}
|
||
</view>
|
||
</view>
|
||
<view class="content">
|
||
<view class="">{{$t('carinfo.errormag')}}:</view>
|
||
<view class="contmsg">
|
||
<textarea auto-height v-model="desc" disabled :placeholder="$t('carinfo.errormaginput')"/>
|
||
</view>
|
||
</view>
|
||
<view class="foot">
|
||
<button class="btn" @click="nextFn">{{$t('button.edit')}}</button>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
import { request,showToast } from '@/api/apiT.js'
|
||
export default {
|
||
data() {
|
||
return {
|
||
id:'',
|
||
desc:'',
|
||
i18locale:uni.getStorageSync('i18locale')?uni.getStorageSync('i18locale'):'zh',
|
||
}
|
||
},
|
||
onLoad(options) {
|
||
console.log(options);
|
||
this.id = options.id;
|
||
this.getcontList()
|
||
},
|
||
methods: {
|
||
leftClick(){
|
||
uni.navigateBack({})
|
||
},
|
||
getcontList(){
|
||
request({
|
||
url:'apply/'+this.id,
|
||
method:'get',
|
||
}).then(res => {
|
||
this.desc = res.data.data.desc
|
||
})
|
||
},
|
||
nextFn(){
|
||
uni.removeStorageSync('edtcarinfo')
|
||
uni.navigateTo({
|
||
url: '/pages/mine/mycarSource/info?id='+this.id
|
||
});
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style lang="scss">
|
||
textarea {
|
||
min-height: 400rpx;// 设置默认高度 ,解决设置自适应高度之后高度无效问题
|
||
width: 100%;
|
||
}
|
||
.content{
|
||
margin: 20px 12px;
|
||
background: #FFFFFF;
|
||
border-radius: 10px;
|
||
padding:20px 10px;
|
||
font-weight: 500;
|
||
}
|
||
.contmsg{
|
||
overflow-wrap: break-word;
|
||
margin-top: 5px;
|
||
}
|
||
.cont{
|
||
padding: 30px 0px;
|
||
text-align: center;
|
||
color: #D23B35;
|
||
font-size: 16px;
|
||
font-weight: 500;
|
||
}
|
||
.cont image{
|
||
width: 85px;
|
||
height: 85px;
|
||
}
|
||
.foot{
|
||
margin: 30px auto;
|
||
text-align: center;
|
||
padding: 10px;
|
||
}
|
||
.btn{
|
||
background-color: #3F435B;
|
||
color: white;
|
||
border-radius: 50px;
|
||
width: 100%;
|
||
margin-bottom: 40px;
|
||
}
|
||
</style>
|