| | |
| | | <template> |
| | | <scroll-view id="articleBox" :style="{ height: swiperHeight + 'px' }" class="article-content" scroll-y |
| | | style="width: 100%; margin-top: 15rpx;"> |
| | | <view v-for="(i, index) in data" class="advisory-model"> |
| | | <u-cell-group> |
| | | <u-cell-item :arrow='false' icon="man-add" @click="goDetail(index)" :title="i.organization" |
| | | :label="i.time.substring(0,11)" :value="i.type=='0'?'审核中':i.type=='1'?'通过':i.type=='2'?'未通过':'未通过'"> |
| | | <u-icon v-if="i.type == '0'" class="sh" slot="right-icon" size="32" name="clock"></u-icon> |
| | | <u-icon v-if="i.type == '1'" class="tg" slot="right-icon" size="32" name="checkmark-circle"></u-icon> |
| | | <u-icon v-if="i.type == '2'" class="bh" slot="right-icon" size="32" name="close-circle"></u-icon> |
| | | </u-cell-item> |
| | | </u-cell-group> |
| | | <view> |
| | | <view> |
| | | <view class="search-block" style="height: 35px"> |
| | | <view class="search-ico-wapper"> |
| | | <image src="../../../static/images/search/search.png" class="search-ico" mode=""></image> |
| | | </view> |
| | | <input type="text" v-on:input="getKeyword" v-model="keyword" placeholder="搜索" class="search-text" |
| | | maxlength="10" focus /> |
| | | </view> |
| | | </view> |
| | | |
| | | </scroll-view> |
| | | <scroll-view id="articleBox" :style="{ height: swiperHeight + 'px' }" class="article-content" scroll-y |
| | | style="width: 100%; margin-top: 15rpx;"> |
| | | <view v-for="(i, index) in data" class="advisory-model"> |
| | | <u-cell-group> |
| | | <u-cell-item :arrow='false' icon="man-add" @click="goDetail(index)" :title="i.organization" |
| | | :label="i.time.substring(0,11)" |
| | | :value="i.type=='0'?'审核中':i.type=='1'?'通过':i.type=='2'?'未通过':'未通过'"> |
| | | <u-icon v-if="i.type == '0'" class="sh" slot="right-icon" size="32" name="clock"></u-icon> |
| | | <u-icon v-if="i.type == '1'" class="tg" slot="right-icon" size="32" name="checkmark-circle"> |
| | | </u-icon> |
| | | <u-icon v-if="i.type == '2'" class="bh" slot="right-icon" size="32" name="close-circle"> |
| | | </u-icon> |
| | | </u-cell-item> |
| | | </u-cell-group> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | return { |
| | | data: [], |
| | | swiperHeight: 0, |
| | | keyword: '', |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | }, |
| | | methods: { |
| | | goDetail(index) { |
| | | |
| | | |
| | | }, |
| | | onReady() { |
| | | let that = this; |
| | |
| | | var that = this; |
| | | var userid = that.$store.state.UserData.user_id; |
| | | uni.request({ |
| | | url: that.$store.state.piAPI + '/organ/page?uid=' + userid, |
| | | url: that.$store.state.piAPI + 'organ/page?uid=' + userid, |
| | | method: 'GET', |
| | | success: (res) => { |
| | | that.data = res.data.data.records; |
| | | } |
| | | }); |
| | | }, |
| | | //on input 通过 keyword 关键字查询 |
| | | getKeyword() { |
| | | this.getIndutry(); |
| | | }, |
| | | getIndutry() { |
| | | var that = this; |
| | | uni.request({ |
| | | url: that.$store.state.piAPI + 'organ/page', |
| | | method: 'GET', |
| | | data: { |
| | | organization: this.keyword, |
| | | uid:that.$store.state.UserData.user_id |
| | | }, |
| | | success: (res) => { |
| | | that.data = res.data.data.records; |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | /* 搜索框 */ |
| | | .search-ico, |
| | | .search-ico-1 { |
| | | width: 40upx; |
| | | height: 40upx; |
| | | } |
| | | |
| | | .search-block { |
| | | width: 94%; |
| | | margin: 0 auto; |
| | | // background-color: #007AFF; |
| | | display: flex; |
| | | flex-direction: row; |
| | | position: relative; |
| | | top: 0.55rem; |
| | | |
| | | .search-ico-wapper { |
| | | background-color: #F1F1F1; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | padding: 0upx 0upx 0upx 15upx; |
| | | border-bottom-left-radius: 7px; |
| | | border-top-left-radius: 7px; |
| | | } |
| | | |
| | | .search-text { |
| | | font-size: 14px; |
| | | background-color: #F1F1F1; |
| | | height: 70upx; |
| | | width: 100%; |
| | | padding-left: 0.5rem; |
| | | } |
| | | |
| | | .search-ico-wapper1 { |
| | | background-color: #F1F1F1; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | padding: 0upx 15upx 0upx 0upx; |
| | | border-bottom-right-radius: 7px; |
| | | border-top-right-radius: 7px; |
| | | } |
| | | } |
| | | |
| | | .u-cell_title { |
| | | width: 250rpx; |
| | | float: left; |
| | |
| | | color: #55aaff; |
| | | padding-left: 10px; |
| | | } |
| | | |
| | | .bh { |
| | | color: #e60303; |
| | | padding-left: 10px; |
| | | } |
| | | |
| | | .tg { |
| | | color: #00f300; |
| | | padding-left: 10px; |