ui修改
This commit is contained in:
@@ -31,9 +31,9 @@ Page( {
|
||||
if (userId && userInfodata) {
|
||||
const userInfo = JSON.parse(userInfodata);
|
||||
if (userInfo.bdshEnable == 1) {
|
||||
sel = 3; // 在特殊权限菜单中,"门店"选项不存在,"我的"选项索引为3
|
||||
sel = 3; // 在特殊权限菜单中,"健康驿站"选项不存在,"我的"选项索引为3
|
||||
} else {
|
||||
sel = 3; // 在普通菜单中,"门店"选项索引为3
|
||||
sel = 3; // 在普通菜单中,"健康驿站"选项索引为3
|
||||
}
|
||||
}
|
||||
|
||||
@@ -166,22 +166,38 @@ Page( {
|
||||
}
|
||||
}
|
||||
})
|
||||
},onsearch:function() {
|
||||
var keyword=that.data.keyword.replace(/\s+/g, "");
|
||||
if(keyword!=""){
|
||||
},
|
||||
// 获取输入的关键字
|
||||
getkeyword: function(e) {
|
||||
that.setData({
|
||||
keyword: e.detail.value
|
||||
});
|
||||
},
|
||||
// 清空搜索
|
||||
clearSearch: function() {
|
||||
that.setData({
|
||||
keyword: ""
|
||||
});
|
||||
that.clearCache();
|
||||
that.getlist(0);
|
||||
},
|
||||
onsearch: function() {
|
||||
var keyword = that.data.keyword.replace(/\s+/g, "");
|
||||
if (keyword != "") {
|
||||
that.setData({
|
||||
keyword:keyword
|
||||
})
|
||||
that.clearCache();//清本页缓存
|
||||
that.getlist(0);//第一次加载数据
|
||||
}else{
|
||||
keyword: keyword
|
||||
});
|
||||
that.clearCache();
|
||||
that.getlist(0);
|
||||
} else {
|
||||
wx.showToast({
|
||||
title: "关键字不能为空",
|
||||
icon: "none",
|
||||
duration: 3000
|
||||
})
|
||||
duration: 3000
|
||||
});
|
||||
}
|
||||
},swiperchange0:function(e) {
|
||||
},
|
||||
swiperchange0: function(e) {
|
||||
|
||||
},closeserver:function(e) {
|
||||
that.setData({
|
||||
|
||||
Reference in New Issue
Block a user