You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.4 KiB
JavaScript
58 lines
1.4 KiB
JavaScript
|
6 months ago
|
"use strict";
|
||
|
|
const common_vendor = require("../common/vendor.js");
|
||
|
|
const _sfc_main = {
|
||
|
|
data() {
|
||
|
|
return {
|
||
|
|
cdnBaseImg: this.G.store().cdnBaseImg
|
||
|
|
};
|
||
|
|
},
|
||
|
|
props: {
|
||
|
|
text: {
|
||
|
|
type: String,
|
||
|
|
default: () => {
|
||
|
|
return "暂无数据";
|
||
|
|
}
|
||
|
|
},
|
||
|
|
subText: {
|
||
|
|
type: String,
|
||
|
|
default: () => {
|
||
|
|
return "";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
|
goLogin() {
|
||
|
|
let that = this;
|
||
|
|
if (that.text == "请登录") {
|
||
|
|
common_vendor.index.reLaunch({
|
||
|
|
url: "/root/person/loginIndex?path=" + that.G.getPath().path + "&level=" + that.G.getPath().level
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
if (!Array) {
|
||
|
|
const _easycom_u_empty2 = common_vendor.resolveComponent("u-empty");
|
||
|
|
_easycom_u_empty2();
|
||
|
|
}
|
||
|
|
const _easycom_u_empty = () => "../uni_modules/vk-uview-ui/components/u-empty/u-empty.js";
|
||
|
|
if (!Math) {
|
||
|
|
_easycom_u_empty();
|
||
|
|
}
|
||
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||
|
|
return common_vendor.e({
|
||
|
|
a: common_vendor.p({
|
||
|
|
text: $props.text,
|
||
|
|
src: $data.cdnBaseImg + "noData.svg"
|
||
|
|
}),
|
||
|
|
b: $props.subText
|
||
|
|
}, $props.subText ? {
|
||
|
|
c: common_vendor.t($props.subText)
|
||
|
|
} : {}, {
|
||
|
|
d: common_vendor.o((...args) => $options.goLogin && $options.goLogin(...args))
|
||
|
|
});
|
||
|
|
}
|
||
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||
|
|
wx.createComponent(Component);
|
||
|
|
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/empty.js.map
|