|
@@ -6,11 +6,16 @@ const _sfc_main = {
|
|
photoSrc: "",
|
|
photoSrc: "",
|
|
// 拍摄的照片路径
|
|
// 拍摄的照片路径
|
|
isCameraReady: false,
|
|
isCameraReady: false,
|
|
- cameraContext: null
|
|
|
|
|
|
+ cameraContext: null,
|
|
|
|
+ isPageLoaded: false
|
|
|
|
+ // 添加页面加载状态标记
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onReady() {
|
|
onReady() {
|
|
this.cameraContext = common_vendor.index.createCameraContext();
|
|
this.cameraContext = common_vendor.index.createCameraContext();
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.isPageLoaded = true;
|
|
|
|
+ }, 100);
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 处理相机错误
|
|
// 处理相机错误
|
|
@@ -123,6 +128,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
} : {
|
|
} : {
|
|
f: common_vendor.o((...args) => $options.retakePhoto && $options.retakePhoto(...args)),
|
|
f: common_vendor.o((...args) => $options.retakePhoto && $options.retakePhoto(...args)),
|
|
g: common_vendor.o((...args) => $options.startInterview && $options.startInterview(...args))
|
|
g: common_vendor.o((...args) => $options.startInterview && $options.startInterview(...args))
|
|
|
|
+ }, {
|
|
|
|
+ h: $data.isPageLoaded ? 1 : ""
|
|
});
|
|
});
|
|
}
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|