2025-03-21 18:05:54 +08:00
|
|
|
|
// pages/mine/mine.js
|
|
|
|
|
const app = getApp()
|
2025-03-24 18:05:54 +08:00
|
|
|
|
const deviceInfo = wx.getDeviceInfo()
|
|
|
|
|
const screenInfo = wx.getWindowInfo();
|
|
|
|
|
const statusBarHeight = screenInfo.statusBarHeight; // 状态栏高度
|
|
|
|
|
const navBarHeight = deviceInfo.platform == 'IOS' ? 48 : 50; // 导航栏高度(iOS 为 44px,Android 为 48px)
|
|
|
|
|
const windowHeight = screenInfo.windowHeight - navBarHeight - statusBarHeight; //可用内容高度
|
2025-03-21 18:05:54 +08:00
|
|
|
|
Page({
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 页面的初始数据
|
|
|
|
|
*/
|
|
|
|
|
data: {
|
|
|
|
|
statusBarHeight: statusBarHeight,
|
|
|
|
|
navBarHeight: navBarHeight,
|
|
|
|
|
totalHeight: navBarHeight, // 导航栏总高度
|
|
|
|
|
contentHeight: windowHeight,
|
|
|
|
|
menuList: [{
|
|
|
|
|
"icon": "https://img.icons8.com/?size=100&id=OZzk5umGngVd&format=png&color=000000",
|
|
|
|
|
"title": "个人信息"
|
|
|
|
|
}, {
|
|
|
|
|
"icon": "https://img.icons8.com/?size=100&id=OZzk5umGngVd&format=png&color=000000",
|
|
|
|
|
"title": "修改密码"
|
|
|
|
|
}, {
|
|
|
|
|
"icon": "https://img.icons8.com/?size=100&id=OZzk5umGngVd&format=png&color=000000",
|
|
|
|
|
"title": "我的订单"
|
|
|
|
|
}, {
|
|
|
|
|
"icon": "https://img.icons8.com/?size=100&id=OZzk5umGngVd&format=png&color=000000",
|
|
|
|
|
"title": "发票管理"
|
|
|
|
|
}, {
|
|
|
|
|
"icon": "https://img.icons8.com/?size=100&id=OZzk5umGngVd&format=png&color=000000",
|
|
|
|
|
"title": "产权所属人"
|
|
|
|
|
}, {
|
|
|
|
|
"icon": "https://img.icons8.com/?size=100&id=OZzk5umGngVd&format=png&color=000000",
|
|
|
|
|
"title": "产权联系人"
|
|
|
|
|
}]
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 生命周期函数--监听页面加载
|
|
|
|
|
*/
|
|
|
|
|
onLoad(options) {
|
|
|
|
|
|
|
|
|
|
},
|
2025-03-24 18:05:54 +08:00
|
|
|
|
//跳转充值页面
|
|
|
|
|
doPay() {
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: '/pages/copyright/payment/payment',
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-03-21 18:05:54 +08:00
|
|
|
|
})
|