Commit 93881ae5 authored by 刘用法's avatar 刘用法

样式修改

parent d09d46cc
<!-- ******************* 输入框 ******************* --> <!-- ******************* 输入框 ******************* -->
<template> <template>
<view> <view>
<u-input :type="type" class="input-item" v-model="dataValue" @input="valueChange" :border="true" placeholder="请输入" /> <u-input :type="type" class="input-item" v-model="dataValue" @input="valueChange" :placeholder="placeholder" placeholder-style="placeholderStyle"
custom-style="customStyle"/>
</view> </view>
</template> </template>
...@@ -11,7 +12,12 @@ ...@@ -11,7 +12,12 @@
name: 'XhInput', // 新建 input name: 'XhInput', // 新建 input
components: {}, components: {},
mixins: [stringMixin], mixins: [stringMixin],
props: {}, props: {
placeholder: {
type: String,
default: '请输入'
}
},
data() { data() {
return {} return {}
}, },
...@@ -22,6 +28,16 @@ ...@@ -22,6 +28,16 @@
} else { } else {
return 'text' return 'text'
} }
},
placeholderStyle() {
return 'color:#FFFFFF;font-size:26rpx'
},
customStyle() {
return {
'background-color': '#F4F5F7',
'border-radius': '12rpx',
'color': '#ff0000'
}
} }
}, },
watch: {}, watch: {},
......
<template> <template>
<view> <view class="com-content">
<view class="u-wrap" v-if="!takeStatus"> <view class="u-wrap" v-if="!takeStatus">
<u-navbar :background="{background: '#2272FF'}" back-icon-color="#fff" :title-size="26" title-color="#fff" :border-bottom="false" title="完工信息"></u-navbar> <u-navbar :background="{background: '#2272FF'}" back-icon-color="#fff" :title-size="26" title-color="#fff" :border-bottom="false" title="完工信息"></u-navbar>
<u-tabs-swiper ref="tabs" :current="tabIndex" name="panelName" :list="list" @change="tabsChange" :is-scroll="false" bg-color="#2272FF" inactive-color="#a6c6ff" active-color="#fff" height="120"></u-tabs-swiper> <u-tabs-swiper ref="tabs" :current="tabIndex" name="panelName" :list="list" @change="tabsChange" :is-scroll="false" bg-color="#2272FF" inactive-color="#a6c6ff" active-color="#fff" height="120"></u-tabs-swiper>
...@@ -502,6 +502,10 @@ ...@@ -502,6 +502,10 @@
.class-item { .class-item {
padding: 50rpx; padding: 50rpx;
margin-bottom: 30rpx;
background-color: #fff;
padding: 30rpx;
border-radius: 8rpx;
.title { .title {
font-weight: bold; font-weight: bold;
font-size: 32rpx; font-size: 32rpx;
...@@ -538,6 +542,10 @@ ...@@ -538,6 +542,10 @@
/* #endif */ /* #endif */
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background-color: #FFFFFF;
background-image: linear-gradient(to top, #2272ff 0%, #2272ff 100%);
background-size: 750rpx 600rpx;
background-repeat: no-repeat;
} }
.u-search-box { .u-search-box {
...@@ -548,6 +556,7 @@ ...@@ -548,6 +556,7 @@
flex: 1; flex: 1;
display: flex; display: flex;
overflow: hidden; overflow: hidden;
border-radius: 12rpx 12rpx 0 0;
} }
.u-search-inner { .u-search-inner {
...@@ -611,13 +620,6 @@ ...@@ -611,13 +620,6 @@
padding: 16rpx; padding: 16rpx;
} }
.class-item {
margin-bottom: 30rpx;
background-color: #fff;
padding: 16rpx;
border-radius: 8rpx;
}
.class-item:last-child { .class-item:last-child {
min-height: 100vh; min-height: 100vh;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment