46 lines
1.4 KiB
JavaScript
46 lines
1.4 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const modules_Config = require("../../modules/Config.js");
|
|
const _sfc_main = {
|
|
data() {
|
|
return {
|
|
qrImageUrl: "",
|
|
loading: true
|
|
};
|
|
},
|
|
onLoad() {
|
|
this.loadQrImage();
|
|
},
|
|
methods: {
|
|
goBack() {
|
|
common_vendor.index.navigateBack();
|
|
},
|
|
async loadQrImage() {
|
|
try {
|
|
this.loading = true;
|
|
const config = await modules_Config.Config.getPublicConfig();
|
|
if (config.contact_qr_image) {
|
|
this.qrImageUrl = modules_Config.Config.getImageUrl(config.contact_qr_image);
|
|
}
|
|
} catch (error) {
|
|
console.error("加载二维码失败:", error);
|
|
} finally {
|
|
this.loading = false;
|
|
}
|
|
}
|
|
}
|
|
};
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return common_vendor.e({
|
|
a: common_vendor.o((...args) => $options.goBack && $options.goBack(...args)),
|
|
b: common_vendor.t(_ctx.$t("me.contactUs")),
|
|
c: $data.qrImageUrl
|
|
}, $data.qrImageUrl ? {
|
|
d: $data.qrImageUrl
|
|
} : {
|
|
e: common_vendor.t($data.loading ? "加载中..." : "暂无二维码")
|
|
});
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-bb850c86"], ["__file", "F:/gitCode/uniapp/appointment_system/miniprogram/src/pages/me/contact-us-page.vue"]]);
|
|
wx.createPage(MiniProgramPage);
|