10.18前的开发
This commit is contained in:
@@ -12,8 +12,10 @@ if (!Array) {
|
||||
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
|
||||
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
|
||||
if (!Math) {
|
||||
(mySwiper + _easycom_uni_icons + _easycom_uni_popup)();
|
||||
(mySwiper + _easycom_uni_icons + uniDatetimePicker + uniEasyinput + _easycom_uni_popup)();
|
||||
}
|
||||
const uniDatetimePicker = () => "../../uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.js";
|
||||
const uniEasyinput = () => "../../uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.js";
|
||||
const mySwiper = () => "../../components/mySwiper.js";
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
@@ -21,12 +23,17 @@ const _sfc_main = {
|
||||
const store = store_index.useStore();
|
||||
common_vendor.onLoad((e) => {
|
||||
var _a;
|
||||
if (!((_a = store.userInfo) == null ? void 0 : _a.has_operation))
|
||||
;
|
||||
if (!((_a = store.userInfo) == null ? void 0 : _a.has_operation)) {
|
||||
operation_flag.value = true;
|
||||
setTimeout(() => {
|
||||
console.log(inputDialog.value);
|
||||
inputDialog.value.open();
|
||||
}, 0);
|
||||
}
|
||||
});
|
||||
const inputDialog = common_vendor.ref();
|
||||
common_vendor.ref();
|
||||
common_vendor.ref(false);
|
||||
const operation_flag = common_vendor.ref(false);
|
||||
const lbt_list = common_vendor.ref([
|
||||
{
|
||||
banner_name: "首页轮播2",
|
||||
@@ -51,6 +58,21 @@ const _sfc_main = {
|
||||
weigh: 6
|
||||
}
|
||||
]);
|
||||
function toClose() {
|
||||
inputDialog.value.close();
|
||||
}
|
||||
function radioChange(e) {
|
||||
console.log(e);
|
||||
}
|
||||
const single = common_vendor.ref("");
|
||||
function maskClick(e) {
|
||||
console.log("maskClick事件:", e);
|
||||
}
|
||||
const hValue = common_vendor.ref("");
|
||||
common_vendor.ref("");
|
||||
function onClickH(e) {
|
||||
console.log(hValue.value);
|
||||
}
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
@@ -74,10 +96,27 @@ const _sfc_main = {
|
||||
color: "#8fdc8a",
|
||||
size: "20"
|
||||
}),
|
||||
e: common_vendor.sr(inputDialog, "1cf27b2a-4", {
|
||||
e: common_vendor.o(radioChange),
|
||||
f: common_vendor.o(maskClick),
|
||||
g: common_vendor.o(($event) => single.value = $event),
|
||||
h: common_vendor.p({
|
||||
type: "date",
|
||||
["clear-icon"]: false,
|
||||
modelValue: single.value
|
||||
}),
|
||||
i: common_vendor.o(onClickH),
|
||||
j: common_vendor.o(($event) => hValue.value = $event),
|
||||
k: common_vendor.p({
|
||||
suffixIcon: "search",
|
||||
focus: true,
|
||||
placeholder: "请输入内容",
|
||||
modelValue: hValue.value
|
||||
}),
|
||||
l: common_vendor.o(toClose),
|
||||
m: common_vendor.sr(inputDialog, "1cf27b2a-4", {
|
||||
"k": "inputDialog"
|
||||
}),
|
||||
f: common_vendor.p({
|
||||
n: common_vendor.p({
|
||||
["is-mask-click"]: false
|
||||
})
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user