苹果审核,bug恢复

This commit is contained in:
徐哼唧L
2024-02-26 09:05:04 +08:00
parent 5ae322d192
commit 08667cd3fc
36 changed files with 2158 additions and 1232 deletions

View File

@@ -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();