42 lines
1.3 KiB
JavaScript
42 lines
1.3 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const common_assets = require("../../common/assets.js");
|
|
const _sfc_main = {
|
|
__name: "phonebumber",
|
|
setup(__props) {
|
|
const jumpto = () => {
|
|
common_vendor.index.navigateTo({
|
|
url: `/pages/index/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/index/phonebumber.vue:49", "????", res.detail.value);
|
|
if (is11DigitNumber(res.detail.value)) {
|
|
phonenumber.value = res.detail.value;
|
|
canClick.value = true;
|
|
} else {
|
|
canClick.value = false;
|
|
}
|
|
};
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_assets._imports_0,
|
|
b: common_assets._imports_1,
|
|
c: common_assets._imports_2,
|
|
d: common_vendor.o(isRight),
|
|
e: canClick.value,
|
|
f: common_vendor.o(jumpto),
|
|
g: !canClick.value
|
|
};
|
|
};
|
|
}
|
|
};
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-5d75f7c6"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/phonebumber.js.map
|