|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<view class="center">
|
|
|
<u-search placeholder="请输入货名" v-model="keyword" @clear="searchClear" style="width: 96%; margin: 0 auto;"
|
|
|
- @custom="getData"></u-search>
|
|
|
+ @search="getData" @custom="getData"></u-search>
|
|
|
<view class="bottom flex">
|
|
|
<view class="bottonCss" @click="release">
|
|
|
<image src="../../static/img/liangmai/fabu-2-check@3x.png" mode="" style="width: 40rpx; height: 40rpx;">
|
|
@@ -112,21 +112,17 @@
|
|
|
})
|
|
|
.then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
- this.releaseInfo = res.data.data.records
|
|
|
- if (this.releaseInfo.length > 0) {
|
|
|
- this.releaseList = this.releaseInfo
|
|
|
- for (let i = 0; i < this.releaseList.length; i++) {
|
|
|
- if (this.releaseList[i].address != null) {
|
|
|
- if(this.releaseList[i].address.indexOf(',')!=-1){
|
|
|
- this.releaseList[i].imgList = this.releaseList[i].address.split(",")
|
|
|
- }else{
|
|
|
- this.releaseList[i].imgList =[this.releaseList[i].address]
|
|
|
- }
|
|
|
-
|
|
|
+ this.releaseList = res.data.data.records
|
|
|
+ for (let i = 0; i < this.releaseList.length; i++) {
|
|
|
+ if (this.releaseList[i].address != null) {
|
|
|
+ if(this.releaseList[i].address.indexOf(',')!=-1){
|
|
|
+ this.releaseList[i].imgList = this.releaseList[i].address.split(",")
|
|
|
+ }else{
|
|
|
+ this.releaseList[i].imgList =[this.releaseList[i].address]
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
},
|