diff --git a/App.vue b/App.vue index 4f25d69..181935e 100644 --- a/App.vue +++ b/App.vue @@ -3,7 +3,7 @@ import tabBar from "./util/tabbar"; export default { onLaunch: function() { - // uni.setStorageSync("token",'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6MCwiT3BlbklkIjoib01qYXY2eFFjQUttUW1ZUTFXV20zOXlCQUZ4byIsIk5pY2tOYW1lIjoiIiwiVGVsTnVtIjoiMTgyMDUwNTI2MjciLCJBdmF0YXIiOiIiLCJJRE51bSI6IiIsImV4cCI6MTY5NTQzNjEwMSwiaXNzIjoibWFsbCJ9.qYzFMtoOOBuawYDTl7iuwlTTz7Fakhr8657PjxWhQ8I') + uni.setStorageSync("token",'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJRCI6MCwiT3BlbklkIjoib01qYXY2NjlHMEtKcFlKNE1qWGhyNEh5cHhBUSIsIk5pY2tOYW1lIjoi5YiY5bCP5benIiwiVGVsTnVtIjoiMTUyNjI0ODE0OTgiLCJBdmF0YXIiOiJodHRwczovL2NkbnMuZm9udHJlZS5jbi9pbnZlbnRvcnkvZmlsZXMvaW1nL2MzNWQ1ODVhLTVjNTMtMTFlZS04OGRmLTAyNDJhYzEzMDAyNS5qcGciLCJJRE51bSI6IjMyMDMyNDE5OTAwNTA5NjY0WCIsImV4cCI6MTY5NTgxMTk4NCwiaXNzIjoibWFsbCJ9.QDDAiN5xFtL7BelKfgbnej_nO52T_UxQ7GFicHnQA2U') uni.hideTabBar(); uni.setStorageSync("tabBar", tabBar); }, diff --git a/components/uiq-tabbar/uiq-tabbar.vue b/components/uiq-tabbar/uiq-tabbar.vue index c2d0993..e41e154 100644 --- a/components/uiq-tabbar/uiq-tabbar.vue +++ b/components/uiq-tabbar/uiq-tabbar.vue @@ -1,11 +1,11 @@ @@ -165,7 +164,11 @@ export default { async getDistanceFromTopToPageBottom(classValue) { const {windowHeight, windowWidth} = await uni.getSystemInfo(); const [{top}] = await new Promise(resolve => uni.createSelectorQuery().select(classValue).boundingClientRect().exec(resolve)); - this.elementBottom = ((windowHeight - top) / windowWidth) * 750 - 175; + if(uni.getSystemInfoSync().platform === 'ios'){ + this.elementBottom = ((windowHeight - top) / windowWidth) * 750 - 175; + }else { + this.elementBottom = ((windowHeight - top) / windowWidth) * 750 - 110; + } }, openDelete(item) { this.messageText = `确认删除吗`