36 lines
1002 B
JavaScript
36 lines
1002 B
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const _sfc_main = {
|
|
data() {
|
|
return {
|
|
systemBarHeight: 0
|
|
};
|
|
},
|
|
onLoad() {
|
|
this.getStatusBarHeight();
|
|
},
|
|
methods: {
|
|
// 获取状态栏高度的方法
|
|
getStatusBarHeight: function() {
|
|
var that = this;
|
|
common_vendor.index.getSystemInfo({
|
|
success: function(res) {
|
|
that.systemBarHeight = res.statusBarHeight;
|
|
}
|
|
});
|
|
},
|
|
toBack() {
|
|
common_vendor.index.navigateBack();
|
|
}
|
|
}
|
|
};
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return {
|
|
a: common_vendor.o(($event) => $options.toBack()),
|
|
b: $data.systemBarHeight + "px",
|
|
c: common_vendor.s("paddingTop: " + $data.systemBarHeight + "px;")
|
|
};
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "F:/gitCode/uniapp/magicsound/pages/create/CreateInfoPage.vue"]]);
|
|
wx.createPage(MiniProgramPage);
|