| | |
| | | </view>
|
| | | <view class="search">
|
| | | <u-search placeholder="请输入场所名称" v-model="iptContext" :clearabled="true" :showAction="true"
|
| | | :animation="true" @change="keyWordChange" @search="searchConfirm" @clear="clearConfirm"></u-search>
|
| | | :animation="true" @change="keyWordChange" @search="searchConfirm"
|
| | | @clear="clearConfirm"></u-search>
|
| | | </view>
|
| | | </view>
|
| | | </u-sticky>
|
| | |
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | | <u-toast ref="uToast"></u-toast>
|
| | | <u-loadmore :status="status" loadmoreText="开始加载" loadingText="数据加载中" nomoreText="没有更多了" line />
|
| | | </view>
|
| | | </template>
|
| | |
| | | size: 10
|
| | | },
|
| | | tabsType: 1,
|
| | | status: 'nomore', |
| | | status: 'nomore',
|
| | | currentRole: {}
|
| | | }
|
| | | },
|
| | | onShow() { |
| | | this.recordsData = [] |
| | | onShow() {
|
| | | this.recordsData = []
|
| | | this.currentRole = uni.getStorageSync('activeRole')
|
| | | this.getrRecordList()
|
| | | },
|
| | |
| | | },
|
| | | methods: {
|
| | | async getrRecordList(placeName = this.iptContext, isPerfect = this.tabsType) {
|
| | | this.status = 'loadmore' |
| | | const { roleName } = this.currentRole |
| | | this.$refs.uToast.show({
|
| | | type: 'loading',
|
| | | message: '正在加载',
|
| | | duration: 9999999
|
| | | })
|
| | | this.status = 'loadmore'
|
| | | const {
|
| | | roleName
|
| | | } = this.currentRole
|
| | | console.log(this.currentRole);
|
| | | const {
|
| | | code,
|
| | |
| | | }
|
| | | } = await getLocationRecord({
|
| | | placeName,
|
| | | isPerfect, |
| | | isPerfect,
|
| | | roleName,
|
| | | ...this.pagingParams
|
| | | })
|
| | |
| | | return
|
| | | }
|
| | | this.recordsData = [...this.recordsData, ...records]
|
| | | this.$nextTick(() => {
|
| | | this.$refs.uToast.isShow = false
|
| | | })
|
| | | this.status = 'nomore'
|
| | | },
|
| | | tabClick({
|
| | |
| | | this.iptContext = ''
|
| | | this.searchConfirm()
|
| | | },
|
| | | pushPage({ id }) {
|
| | | pushPage({
|
| | | id
|
| | | }) {
|
| | | if (!id) {
|
| | | uni.showToast({
|
| | | title: "关键参数为空",
|
| | |
| | |
|
| | | }
|
| | |
|
| | | .info-box { |
| | | padding: 20rpx 30rpx; |
| | | .info-box {
|
| | | padding: 20rpx 30rpx;
|
| | |
|
| | | // background-color: #f6f6f6;
|
| | | .records-card {
|
| | | background: #fff;
|
| | | padding: 30rpx;
|
| | | border-radius: 10rpx; |
| | | border-radius: 10rpx;
|
| | | margin-bottom: 20rpx;
|
| | |
|
| | | .title {
|