hldy_app/unpackage/dist/dev/mp-weixin/pages/watch/settings/settings.js

159 lines
5.2 KiB
JavaScript

"use strict";
const common_vendor = require("../../../common/vendor.js");
if (!Math) {
(exit + reset + ZyUpdate + twoseven + oneseven)();
}
const exit = () => "../../../component/public/exit.js";
const reset = () => "../../../component/public/reset.js";
const ZyUpdate = () => "../../../component/zy-upgrade/zy-upgrade.js";
const oneseven = () => "../../login/oneseven.js";
const twoseven = () => "../../login/twoseven.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "settings",
emits: ["jump"],
setup(__props, { emit: __emit }) {
const zyupgrade = common_vendor.ref(null);
const issay = common_vendor.ref(false);
const openany = common_vendor.ref(false);
const opentype = common_vendor.ref(false);
const exitshow = common_vendor.ref(false);
const resetshow = common_vendor.ref(false);
const iconsArray = common_vendor.ref(["雷达扫描", "扫码添加", "手动录入", "修改密码", "切换机构", "检查更新", "用户协议", "隐私政策"]);
common_vendor.ref(true);
common_vendor.ref("");
const animation = common_vendor.ref(false);
const jumpToTarget = (index) => {
var _a;
switch (index) {
case 0:
common_vendor.index.navigateTo({
url: "/pages/watch/settings/leida"
});
break;
case 1:
common_vendor.index.navigateTo({
url: "/pages/watch/settings/saoma"
});
break;
case 2:
common_vendor.index.navigateTo({
url: "/pages/watch/settings/input"
});
break;
case 3:
resetshow.value = true;
break;
case 4:
break;
case 5:
issay.value = true;
(_a = zyupgrade.value) == null ? void 0 : _a.check_update();
break;
case 6:
openany.value = true;
opentype.value = true;
animation.value = false;
setTimeout(() => {
animation.value = true;
}, 50);
break;
case 7:
openany.value = true;
opentype.value = false;
animation.value = false;
setTimeout(() => {
animation.value = true;
}, 50);
break;
}
};
const noNeed = () => {
if (issay.value) {
common_vendor.index.showToast({
title: "已经是最新版了",
icon: "none",
// 无图标,仅文字
duration: 2e3
// 显示时长,单位毫秒
});
}
};
const goback = () => {
common_vendor.index.navigateBack();
};
return (_ctx, _cache) => {
return common_vendor.e({
a: `/static/index/settings/back.png`,
b: common_vendor.o(goback),
c: common_vendor.f(iconsArray.value.slice(0, 3), (item, index, i0) => {
return {
a: `/static/index/settings/${index}.png`,
b: common_vendor.t(item),
c: index,
d: common_vendor.o(($event) => jumpToTarget(index), index)
};
}),
d: `/static/index/settings/00.png`,
e: common_vendor.f(iconsArray.value.slice(3, 5), (item, index, i0) => {
return {
a: `/static/index/settings/${index + 3}.png`,
b: common_vendor.t(item),
c: index,
d: common_vendor.o(($event) => jumpToTarget(index + 3), index)
};
}),
f: `/static/index/settings/00.png`,
g: common_vendor.f(iconsArray.value.slice(5, 8), (item, index, i0) => {
return {
a: `/static/index/settings/${index + 5}.png`,
b: common_vendor.t(item),
c: index,
d: common_vendor.o(($event) => jumpToTarget(index + 5), index)
};
}),
h: `/static/index/settings/00.png`,
i: common_vendor.o(($event) => exitshow.value = true),
j: common_vendor.o(($event) => exitshow.value = false),
k: common_vendor.p({
show: exitshow.value
}),
l: common_vendor.o(($event) => resetshow.value = false),
m: common_vendor.p({
show: resetshow.value
}),
n: common_vendor.sr(zyupgrade, "57949c5e-2", {
"k": "zyupgrade"
}),
o: common_vendor.o(noNeed),
p: common_vendor.p({
noticeflag: true,
theme: "blue",
h5preview: false,
oldversion: "1.0.0",
appstoreflag: true,
autocheckupdate: true
}),
q: openany.value
}, openany.value ? common_vendor.e({
r: common_vendor.o(($event) => openany.value = false),
s: !opentype.value
}, !opentype.value ? {} : {}, {
t: opentype.value
}, opentype.value ? {} : {}, {
v: !opentype.value
}, !opentype.value ? {} : {}, {
w: opentype.value
}, opentype.value ? {} : {}, {
x: common_vendor.s(animation.value ? {
opacity: 1
} : {
opacity: 0
})
}) : {});
};
}
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-57949c5e"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/watch/settings/settings.js.map