53 lines
1.7 KiB
JavaScript
53 lines
1.7 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const common_assets = require("../../common/assets.js");
|
|
if (!Math) {
|
|
huakuai();
|
|
}
|
|
const huakuai = () => "../../compontent/public/huakuai.js";
|
|
const _sfc_main = {
|
|
__name: "phonebumber",
|
|
setup(__props) {
|
|
const huakuaiOpen = common_vendor.ref(false);
|
|
const jumpto = () => {
|
|
common_vendor.index.navigateTo({
|
|
url: `/pages/login/code?phonenumber=${phonenumber.value}`
|
|
});
|
|
};
|
|
function is11DigitNumber(value) {
|
|
return /^\d{11}$/.test(value.toString());
|
|
}
|
|
const phonenumber = common_vendor.ref("");
|
|
const canClick = common_vendor.ref(false);
|
|
const isRight = (res) => {
|
|
common_vendor.index.__f__("log", "at pages/login/phonebumber.vue:60", "????", res.detail.value);
|
|
if (is11DigitNumber(res.detail.value)) {
|
|
phonenumber.value = res.detail.value;
|
|
canClick.value = true;
|
|
} else {
|
|
canClick.value = false;
|
|
}
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return common_vendor.e({
|
|
a: common_assets._imports_0,
|
|
b: common_assets._imports_1,
|
|
c: common_assets._imports_2,
|
|
d: common_vendor.o(isRight),
|
|
e: common_vendor.o(($event) => huakuaiOpen.value = true),
|
|
f: canClick.value,
|
|
g: common_vendor.o(jumpto),
|
|
h: !canClick.value,
|
|
i: huakuaiOpen.value
|
|
}, huakuaiOpen.value ? {
|
|
j: common_vendor.o(() => {
|
|
}),
|
|
k: common_vendor.o(($event) => huakuaiOpen.value = false)
|
|
} : {});
|
|
};
|
|
}
|
|
};
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-94511ff7"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/phonebumber.js.map
|