| | |
| | | <view> |
| | | <view class="main"> |
| | | <y-title /> |
| | | <!-- <view class="title" :class="zBig">{{titleText}}</view> --> |
| | | <view class="column" :class="zBig"> |
| | | <view style="display: flex;" class="input"> |
| | | <input type="text" :placeholder="placeholderText" @input="input" |
| | | placeholder-style="font-size:22rpx" v-model="val"> |
| | | <view class="icons" v-if="val.length" @click="clear"> |
| | | <uni-icons type="close"></uni-icons> |
| | | </view> |
| | | </view> |
| | | <view class="btn"> |
| | | <button class="small-btn" size="mini" type="primary" @click="confrim">{{btnText}}</button> |
| | | </view> |
| | |
| | | }, |
| | | confrim() { |
| | | this.$emit('confrim'); |
| | | }, |
| | | clear() { |
| | | this.val = '' |
| | | this.input() |
| | | } |
| | | } |
| | | } |
| | |
| | | margin: 2%; |
| | | border-radius: 5rpx; |
| | | box-shadow: 0 0 10upx rgba(0, 0, 0, 0.1); |
| | | } |
| | | .input{ |
| | | width: 96%; |
| | | height: 100%; |
| | | margin-left: 2%; |
| | | margin-right: 1%; |
| | | border-radius: 5rpx; |
| | | color: #606266; |
| | | background-color: #FAFAFA; |
| | | font-size: 28rpx; |
| | | text-indent: 8rpx; |
| | | /* letter-spacing: 1rpx; */ |
| | | } |
| | | .icons { |
| | | margin-right: 2% ; |
| | | } |
| | | .title { |
| | | height: 50rpx; |
| | |
| | | } |
| | | input{ |
| | | display: flex; |
| | | width: 70%; |
| | | width: 96%; |
| | | height: 45rpx; |
| | | line-height: 50rpx; |
| | | margin-left: 2%; |
| | |
| | | }, |
| | | clear() { |
| | | this.val = '' |
| | | this.input() |
| | | } |
| | | |
| | | } |
| | |
| | | <template> |
| | | <view> |
| | | <y-warpper> |
| | | <view style="display: flex;align-items: center;width: 100%;"> |
| | | <view class="decorate"></view> |
| | | <view class="title">{{titleText}}</view> |
| | | </view> |
| | | </y-warpper> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | |
| | | }; |
| | | } |
| | | |
| | | } |
| | | </script> |
| | | |
File was renamed from components/y-warpper/y-wrapper.vue |
| | |
| | | |
| | | <script> |
| | | export default { |
| | | name:"y-wrapper", |
| | | name:"y-warpper", |
| | | data() { |
| | | return { |
| | | |
| | |
| | | <template> |
| | | <view> |
| | | <scroll-view scroll-y="true" > |
| | | <view style="width: 96%;background-color: #fff;margin: 1% 2% 0 2%;"> |
| | | <y-title title="销售管理"></y-title> |
| | | <view style="width: 100%;height: 300rpx;">跟踪项目</view> |
| | | </view> |
| | | <view style="width: 96%;background-color: #fff;margin: 1% 2% 0 2%;"> |
| | | <y-title title="项目管理"></y-title> |
| | | <view style="width: 100%;height: 300rpx;">跟踪项目</view> |
| | | </view> |
| | | <view style="width: 96%;background-color: #fff;margin: 1% 2% 0 2%;"> |
| | | <y-title title="项目计划"></y-title> |
| | | <view style="width: 100%;height: 300rpx;">跟踪项目</view> |
| | | </view> |
| | | <y-wrapper /> |
| | | <y-wrapper> |
| | | <view style="width: 100%;height: 100rpx;background-color: blueviolet;"></view> |
| | | </y-wrapper> |
| | | </scroll-view> |
| | | </view> |
| | | </template> |
| | | |