苹果审核,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

@@ -11,11 +11,11 @@
<view v-if="curFirstTabIndex==0">
<view class="oneCateBot flexbox">
<text :class="[curOneCateIndex == index ? 'cur' : '']" @click="setOneCateIndex(item,index)"
v-for="(item, index) in oneCateList" :key="item.prescriptCategoryId">{{item.title}}</text>
v-for="(item, index) in oneCateList" :key="item.prescriptCategoryId" v-show="!iosHide&&index!=0">{{item.title}}</text>
</view>
<view class="search_box" v-if="oneCateList.length > 0">
<u-search @click="checkDisable" placeholder="请输入方剂名" @focus="focus" @clear="clear" v-model="searchValue"
@input="input" @blur="blur" @search="search" @custom="search"></u-search>
<u-search @click="checkDisable" placeholder="请输入方剂名" @focus="focus" @clear="clear"
v-model="searchValue" @input="input" @blur="blur" @search="search" @custom="search"></u-search>
</view>
<view class="searchList" v-show="showSearchList">
<view class="itemBox" v-if="searchList.length > 0">
@@ -27,7 +27,7 @@
<u-divider text="未找到相关方剂哦~"></u-divider>
</view>
</view>
<view v-show="!showSearchList">
<view v-show="!showSearchList&&!iosHide&&curOneCateIndex!=0">
<view class="grid twoCateList" v-if="twoCateList.length > 0">
<u-grid :col="3" border class="u-grid-list">
<u-grid-item v-for="(item, index) in twoCateList" :key="item.prescriptCategoryId"
@@ -39,7 +39,8 @@
<view class="titleList" v-if="curOneCateIndex != 2">
<u-grid :col="1" v-if="titleList.length > 0">
<u-grid-item v-for="(item, index) in titleList" :key="item.prescriptId"
@click="gotoDetail(item)" style="align-items: flex-start;border-bottom: 2px solid #fff;">
@click="gotoDetail(item)"
style="align-items: flex-start;border-bottom: 2px solid #fff;">
<view :class="['titleItem']">{{item.title}}</view>
</u-grid-item>
</u-grid>
@@ -93,10 +94,10 @@
},
data() {
return {
firstTabList:[{
firstTabList: [{
firstTabId: 1,
title: '方剂检索'
},{
}, {
firstTabId: 2,
title: '药物检索'
}],
@@ -218,18 +219,18 @@
setFirstTabIndex(item, index) {
let id = item.firstTabId
this.curFirstTabIndex = index
if (index == 1) {
// this.setOneCateIndex(id)
console.log(this.$refs)
console.log(this.$refs.mSearch)
this.$nextTick(() => {
this.$refs.mSearch.getCNYao()
this.$refs.mSearch.goToSearch()
})
}else{
} else {
this.setOneCateIndex(this.oneCateList[0], 0)
}
},
setOneCateIndex(item, index) {
// if(this.userMes.tgdzPower == 0){
@@ -263,10 +264,10 @@
} else if (index == 3) {
this.twoCateList = []
this.getTitles(id)
} else{
} else {
this.getTowCateList(id)
}
},
getTowCateList(id) {
$http.request({
@@ -452,6 +453,14 @@
plus.key.hideSoftKeybord();
// #endif
},
onReachBottom() {
this.$nextTick(() => {
this.$refs.mSearch.goToBottom()
})
},
}
</script>
@@ -473,6 +482,7 @@
.contentBox {
.oneCateList {
justify-content: space-between;
text {
text-align: center;
display: inline-block;
@@ -481,17 +491,17 @@
font-size: 32rpx;
font-weight: bold;
}
.cur {
border-bottom: 5rpx solid #55aa7f;
color: #55aa7f;
}
}
.oneCateBot{
.oneCateBot {
margin-top: 15rpx;
justify-content: space-between;
text {
text-align: center;
display: inline-block;
@@ -500,14 +510,15 @@
font-size: 30rpx;
border-radius: 10rpx;
}
.cur {
background-color: #55aa7f3d;
color: #55aa7f;
font-weight: bold;
}
}
.firstTab{
.firstTab {
text {
text-align: center;
display: inline-block;
@@ -604,8 +615,8 @@
.uni-modal .uni-modal__bd {
text-align: left;
}
.limiTy{
.limiTy {
font-size: 28rpx;
line-height: 46rpx;
}