苹果审核,bug恢复
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<view class="contentBox">
|
||||
<view class="search_box">
|
||||
<u-search :clearabled="true" bgColor="#fff" borderColor="#54a966" focus v-model="keyword"
|
||||
@custom='souYao' @clear="souYao"></u-search>
|
||||
@custom='souYao' @clear="souYao" @search="souYao"></u-search>
|
||||
</view>
|
||||
<view class="titleList">
|
||||
<u-grid :col="1" v-if="titleList.length > 0">
|
||||
@@ -17,7 +17,6 @@
|
||||
</u-grid>
|
||||
<u-divider v-else text="暂无药物数据哦~"></u-divider>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view>
|
||||
<view v-if="status==0" style="text-align: center;padding: 20rpx 0;">
|
||||
@@ -51,9 +50,11 @@
|
||||
totalPage: 1,
|
||||
}
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
this.titleList = []
|
||||
this.souYao()
|
||||
},
|
||||
|
||||
onHide() {
|
||||
this.page = 1
|
||||
},
|
||||
@@ -65,6 +66,7 @@
|
||||
this.goToSearch()
|
||||
uni.stopPullDownRefresh();
|
||||
},
|
||||
|
||||
onReachBottom() {
|
||||
// this.loadingNow = true
|
||||
console.log('到底了')
|
||||
@@ -75,9 +77,11 @@
|
||||
this.status = 1
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
...mapState(['userInfo']),
|
||||
},
|
||||
|
||||
methods: {
|
||||
// 搜索
|
||||
goToSearch() {
|
||||
@@ -86,7 +90,7 @@
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
data: {
|
||||
// loadAnimate: 'none', // 请求加载动画
|
||||
"limit": 20,
|
||||
"limit": 50,
|
||||
"current": this.page,
|
||||
"name": this.keyword,
|
||||
"type": "", // 植物、矿物、动物
|
||||
@@ -104,15 +108,12 @@
|
||||
for (var i = 0; i < res.result.records.length; i++) {
|
||||
this.titleList.push(res.result.records[i])
|
||||
}
|
||||
|
||||
this.totalPage = res.result.pages
|
||||
if (this.page == this.totalPage) {
|
||||
this.status = 1
|
||||
} else {
|
||||
this.status = 3
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
this.titleList = []
|
||||
}
|
||||
@@ -135,8 +136,8 @@
|
||||
url: "./CNMedicineSearchDetail?id=" + item.id
|
||||
})
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
onBackPress() {
|
||||
// #ifdef APP-PLUS
|
||||
plus.key.hideSoftKeybord();
|
||||
|
||||
Reference in New Issue
Block a user