2025-03-21 09:02:29 +08:00
|
|
|
|
// index.js
|
|
|
|
|
const app = getApp()
|
2025-03-21 18:05:54 +08:00
|
|
|
|
const systemInfo = wx.getWindowInfo();
|
|
|
|
|
const statusBarHeight = systemInfo.statusBarHeight; // 状态栏高度
|
|
|
|
|
const navBarHeight = 44; // 导航栏高度(iOS 为 44px,Android 为 48px)
|
|
|
|
|
const windowHeight = systemInfo.windowHeight - navBarHeight - statusBarHeight; //可用内容高度
|
2025-03-21 09:02:29 +08:00
|
|
|
|
Page({
|
|
|
|
|
data: {
|
2025-03-21 18:05:54 +08:00
|
|
|
|
statusBarHeight: statusBarHeight,
|
|
|
|
|
navBarHeight: navBarHeight,
|
|
|
|
|
totalHeight: navBarHeight, // 导航栏总高度
|
|
|
|
|
contentHeight: windowHeight,
|
|
|
|
|
tabList: ["写材料", "全托管", "安装包", "演示视频", "加急", "提交版权中心", "已经下证"],
|
|
|
|
|
currentTab: "写材料"
|
2025-03-21 09:02:29 +08:00
|
|
|
|
},
|
|
|
|
|
onLoad(e) {
|
2025-03-21 18:05:54 +08:00
|
|
|
|
const info = wx.getWindowInfo()
|
|
|
|
|
const h = info.windowHeight - navBarHeight - statusBarHeight
|
|
|
|
|
console.log(h)
|
2025-03-21 09:02:29 +08:00
|
|
|
|
},
|
2025-03-21 18:05:54 +08:00
|
|
|
|
printInfo() {},
|
|
|
|
|
createCopy() {
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: '/pages/copyright/createBuy/createBuy',
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-03-21 09:02:29 +08:00
|
|
|
|
})
|