123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <template>
- <view>
- <view class="search">
- <view class="box">
- <view class="icon">
- <uni-icons type="search" size="16" color="#BBBBBB"></uni-icons>
- </view>
- <view class="text">
- <input type="text" v-model="search_text" value="" placeholder="搜索" confirm-type="search"
- placeholder-style="font-size: 30rpx;color: #BBBBBB;" @input="get_list()" />
- </view>
- </view>
- </view>
- <view class="content">
- <view class="title">
- <view class="text">搜索结果:</view>
- </view>
- <view class="list">
- <view class="item" v-for="(item,index) in list" :key="index">
- <view class="left">
- <view class="text">{{item.name}}</view>
- </view>
- <view class="right">
- <uni-icons type="compose"></uni-icons>
- </view>
- </view>
- <view v-if="list.length == 0" style="font-size: 32rpx;text-align: center;line-height: 400rpx;">暂无搜索结果
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- mine_code: "",
- search_text: "",
-
- list: [
- ],
- };
- },
- onLoad() {
-
- },
- methods: {
- get_list() {
- this.list = [
- {
- name:"工单名称1",
- },
- {
- name:"工单名称2",
- },
- {
- name:"工单名称3"
- }
- ]
- }
- }
- }
- </script>
- <style lang="scss">
- page {
- background-color: #F3F8F7;
- }
- .search {
- margin-bottom: 20rpx;
- background-color: #FFFFFF;
- box-sizing: border-box;
- padding: 25rpx 30rpx;
- .box {
- height: 80rpx;
- background-color: #F4F4F4;
- border-radius: 50rpx;
- display: flex;
- align-items: center;
- box-sizing: border-box;
- padding: 0 25rpx;
- .icon {
- margin-right: 10rpx;
- }
- .text {
- font-size: 30rpx;
- color: #BBBBBB;
- }
- }
- }
- .content {
- background-color: #FFFFFF;
- .title {
- height: 110rpx;
- display: flex;
- align-items: center;
- box-sizing: border-box;
- padding: 0 36rpx;
- border-bottom: 1rpx solid #F3F8F7;
- .text {
- margin-left: 20rpx;
- font-size: 36rpx;
- font-weight: 700;
- }
- }
- .list {
- box-sizing: border-box;
- padding: 0 20rpx;
- .item {
- height: 110rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-left: 58rpx;
- border-bottom: 1rpx solid #F3F8F7;
-
- box-sizing: border-box;
- padding-right: 20rpx;
- .left {
- display: flex;
- .text {
- margin-left: 18rpx;
- font-size: 30rpx;
- }
- }
- .right {
-
- }
- }
- }
- }
- </style>
|