小程序页面代码片段:动态URL展示
这是一个小程序页面的代码片段,其中包括了页面的数据和生命周期函数,以及一个渲染函数。代码中还使用common_vendor模块中的_export_sfc函数来导出组件的语句。最后调用了wx.createPage函数来创建页面。完整的代码应该还有一些其他的组件、模块引入、样式定义等内容。
'use strict';
const common_vendor = require('../../common/vendor.js');
const _sfc_main = {
data() {
return {
url: ''
};
},
onLoad(item) {
this.url = decodeURIComponent(item.url);
console.log(this.url);
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: $data.url
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "C:/wp/AI/2023-2-27/xiaosi-2023-2-27-4-自建/wxchat-3.9/pages/index/out.vue"]]);
wx.createPage(MiniProgramPage);
原文地址: https://www.cveoy.top/t/topic/lRRd 著作权归作者所有。请勿转载和采集!