|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<view class="center">
|
|
<view class="center">
|
|
- <u-search placeholder="请输入货名" v-model="keyword" @clear="searchClear" style="width: 96%; margin: 0 auto;"
|
|
|
|
|
|
+ <u-search placeholder="请输入关键字" v-model="keyword" @clear="searchClear" style="width: 96%; margin: 0 auto;"
|
|
@search="getData" @custom="getData"></u-search>
|
|
@search="getData" @custom="getData"></u-search>
|
|
<view class="bottom flex">
|
|
<view class="bottom flex">
|
|
<view class="bottonCss" @click="release">
|
|
<view class="bottonCss" @click="release">
|
|
@@ -37,7 +37,7 @@
|
|
</view>
|
|
</view>
|
|
<view class="imgList flex" v-if="item.address != ''">
|
|
<view class="imgList flex" v-if="item.address != ''">
|
|
<view v-for="(items,count) in item.imgList" style="width: 30%;margin-left: 20rpx;">
|
|
<view v-for="(items,count) in item.imgList" style="width: 30%;margin-left: 20rpx;">
|
|
- <image :src="items" style="height: 220rpx;border-radius: 16rpx;"></image>
|
|
|
|
|
|
+ <image @click="preview(item.imgList,count)" :src="items" style="height: 220rpx;border-radius: 16rpx;"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="flex">
|
|
<view class="flex">
|
|
@@ -56,6 +56,7 @@
|
|
<view style='height:12vh;background:#F5F6FA;line-height:12vh;text-align:center;' v-if='releaseList.length == 0'>
|
|
<view style='height:12vh;background:#F5F6FA;line-height:12vh;text-align:center;' v-if='releaseList.length == 0'>
|
|
当前暂无结果
|
|
当前暂无结果
|
|
</view>
|
|
</view>
|
|
|
|
+ <u-back-top :scroll-top="scrollTop" mode="circle" icon="arrow-upward"></u-back-top>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -78,7 +79,8 @@
|
|
backgroundImage: "none",
|
|
backgroundImage: "none",
|
|
paddingTop: "0",
|
|
paddingTop: "0",
|
|
marginTop: "20rpx"
|
|
marginTop: "20rpx"
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ scrollTop: 0,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -108,16 +110,27 @@
|
|
this.portraits = this.userInfo.avatarUrl
|
|
this.portraits = this.userInfo.avatarUrl
|
|
this.getData()
|
|
this.getData()
|
|
},
|
|
},
|
|
|
|
+ onPageScroll(e) {
|
|
|
|
+ this.scrollTop = e.scrollTop;
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
|
|
+ preview(img,index){
|
|
|
|
+ uni.previewImage({
|
|
|
|
+ urls: img,
|
|
|
|
+ current:index
|
|
|
|
+ });
|
|
|
|
+ },
|
|
getData() {
|
|
getData() {
|
|
this.$api.doRequest('get', '/settledCompanyDynamics/selectSettledCompanyDynamicsPage', {
|
|
this.$api.doRequest('get', '/settledCompanyDynamics/selectSettledCompanyDynamicsPage', {
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize:10,
|
|
pageSize:10,
|
|
- searchKeyWord: this.keyword
|
|
|
|
|
|
+ searchKeyWord: this.keyword,
|
|
|
|
+ searchType:2
|
|
})
|
|
})
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
this.releaseList = res.data.data.records
|
|
this.releaseList = res.data.data.records
|
|
|
|
+ console.log("releaseList",this.releaseList)
|
|
for (let i = 0; i < this.releaseList.length; i++) {
|
|
for (let i = 0; i < this.releaseList.length; i++) {
|
|
if (this.releaseList[i].address != null) {
|
|
if (this.releaseList[i].address != null) {
|
|
if(this.releaseList[i].address.indexOf(',')!=-1){
|
|
if(this.releaseList[i].address.indexOf(',')!=-1){
|
|
@@ -135,7 +148,8 @@
|
|
this.$api.doRequest('get', '/settledCompanyDynamics/selectSettledCompanyDynamicsPage', {
|
|
this.$api.doRequest('get', '/settledCompanyDynamics/selectSettledCompanyDynamicsPage', {
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
- searchKeyWord: this.keyword
|
|
|
|
|
|
+ searchKeyWord: this.keyword,
|
|
|
|
+ searchType:2
|
|
})
|
|
})
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|