greenPro/unpackage/dist/dev/mp-weixin/pages/component/web-view/web-view.js

31 lines
863 B
JavaScript
Raw Normal View History

2024-06-02 14:51:29 +00:00
"use strict";
const common_vendor = require("../../../common/vendor.js");
const _sfc_main = {
data() {
return {
url: "https://uniapp.dcloud.io/static/web-view.html"
};
},
onLoad(options) {
if (options && options.url) {
this.url = options.url;
}
},
methods: {
getMessage(event) {
common_vendor.index.showModal({
content: JSON.stringify(event.detail),
showCancel: false
});
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: $data.url,
b: common_vendor.o((...args) => $options.getMessage && $options.getMessage(...args))
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "E:/xianyu/app/greenPro/pages/component/web-view/web-view.vue"]]);
wx.createPage(MiniProgramPage);