acdr-ui/dist/dev/mp-weixin/pages/permission/bind-phone.js

59 lines
2.1 KiB
JavaScript

"use strict";
const common_vendor = require("../../common/vendor.js");
const utils_commUtils = require("../../utils/commUtils.js");
if (!Array) {
const _easycom_wd_icon2 = common_vendor.resolveComponent("wd-icon");
const _component_layout_default_uni = common_vendor.resolveComponent("layout-default-uni");
(_easycom_wd_icon2 + _component_layout_default_uni)();
}
const _easycom_wd_icon = () => "../../node-modules/wot-design-uni/components/wd-icon/wd-icon.js";
if (!Math) {
_easycom_wd_icon();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "bind-phone",
setup(__props) {
const phoneNumber = common_vendor.ref("");
const captcha = common_vendor.ref("");
const getVerificationCode = () => {
if (!phoneNumber.value) {
common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
return;
}
common_vendor.index.showToast({ title: "验证码已发送", icon: "success" });
};
const binding = () => {
if (!captcha.value) {
common_vendor.index.showToast({ title: "请输入验证码", icon: "none" });
return;
}
if (!phoneNumber.value) {
common_vendor.index.showToast({ title: "请输入手机号", icon: "none" });
return;
}
};
return (_ctx, _cache) => {
return {
a: common_vendor.p({
name: "search",
size: "24"
}),
b: phoneNumber.value,
c: common_vendor.o(($event) => phoneNumber.value = $event.detail.value),
d: common_vendor.p({
name: "search",
size: "24"
}),
e: captcha.value,
f: common_vendor.o(($event) => captcha.value = $event.detail.value),
g: common_vendor.o(getVerificationCode),
h: common_vendor.o(binding),
i: common_vendor.o(($event) => common_vendor.unref(utils_commUtils.toPath)("/"))
};
};
}
});
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-371e9f3d"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=bind-phone.js.map