|
@@ -1,11 +1,11 @@
|
|
<template>
|
|
<template>
|
|
- <view>
|
|
|
|
|
|
+ <view class="all">
|
|
<u-navbar title="意见反馈"></u-navbar>
|
|
<u-navbar title="意见反馈"></u-navbar>
|
|
<view class="message">
|
|
<view class="message">
|
|
<view class="message-form">
|
|
<view class="message-form">
|
|
<u-form :model="subForm" ref="uForm" label-width ="100">
|
|
<u-form :model="subForm" ref="uForm" label-width ="100">
|
|
<u-form-item label-width="0">
|
|
<u-form-item label-width="0">
|
|
- <u-input v-model="subForm.content" type="textarea" placeholder="请描述您的意见" height="200"/>
|
|
|
|
|
|
+ <u-input :customStyle="placeholderStyle" :placeholderStyle="placeholderStyle" v-model="subForm.content" type="textarea" placeholder="请描述您的意见" height="200"/>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
<u-form-item label-width="0">
|
|
<u-form-item label-width="0">
|
|
<view class="upload">
|
|
<view class="upload">
|
|
@@ -16,7 +16,7 @@
|
|
</view>
|
|
</view>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
<u-form-item >
|
|
<u-form-item >
|
|
- <u-input v-model="subForm.telephone" placeholder="请留下联系方式,方便我们与您取得联系(必填)" />
|
|
|
|
|
|
+ <u-input :customStyle="placeholderStyle" :placeholderStyle="placeholderStyle" v-model="subForm.telephone" placeholder="请留下联系方式,方便我们与您取得联系(必填)" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-form>
|
|
</u-form>
|
|
</view>
|
|
</view>
|
|
@@ -32,6 +32,10 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ elderMode:false,
|
|
|
|
+ placeholderStyle:{
|
|
|
|
+ 'font-size':'28rpx'
|
|
|
|
+ },
|
|
isReady:false,
|
|
isReady:false,
|
|
imgBase64: '',
|
|
imgBase64: '',
|
|
listPic: [],
|
|
listPic: [],
|
|
@@ -67,8 +71,33 @@
|
|
console.log(res)
|
|
console.log(res)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ onReady(){
|
|
|
|
+ this.elderMode = this.carhelp.get('getElderModeClass') == '长辈模式';
|
|
|
|
+ if(this.elderMode)
|
|
|
|
+ this.theme('elder')
|
|
|
|
+ else
|
|
|
|
+ this.theme('standard')
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
|
|
+ theme(type) {
|
|
|
|
+
|
|
|
|
+ if(type == 'elder')
|
|
|
|
+ {
|
|
|
|
+ document.getElementsByTagName('body')[0].setAttribute('data-theme',type);
|
|
|
|
+ let data = {
|
|
|
|
+ "font-size":'32rpx',
|
|
|
|
+ };
|
|
|
|
+ this.placeholderStyle = data;
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ document.getElementsByTagName('body')[0].setAttribute('data-theme',type);
|
|
|
|
+ let data = {
|
|
|
|
+ "font-size":'28rpx'
|
|
|
|
+ };
|
|
|
|
+ this.placeholderStyle = data;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
//微信选择图片
|
|
//微信选择图片
|
|
chooseImage() {
|
|
chooseImage() {
|
|
WxJsApi.chooseImage().then(res => {
|
|
WxJsApi.chooseImage().then(res => {
|
|
@@ -170,6 +199,13 @@
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
+ @import "@/_theme.scss";
|
|
|
|
+ .all{
|
|
|
|
+ @include themeify{
|
|
|
|
+ font-size: themed('font-size2');
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
.upload{
|
|
.upload{
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
@@ -185,5 +221,8 @@
|
|
background-color:#00B962!important;
|
|
background-color:#00B962!important;
|
|
border-color: #00B962!important;
|
|
border-color: #00B962!important;
|
|
color:#fff!important;
|
|
color:#fff!important;
|
|
|
|
+ @include themeify{
|
|
|
|
+ font-size: themed('font-size3');
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|