暂存code
This commit is contained in:
+35
-23
@@ -28,9 +28,8 @@ const _sfc_main = {
|
||||
// 是否显示
|
||||
isPolicy: false,
|
||||
// 是否同意
|
||||
countdown: false,
|
||||
countdown: false
|
||||
// 清空倒计时
|
||||
butLoading: false
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -50,11 +49,10 @@ const _sfc_main = {
|
||||
});
|
||||
return;
|
||||
}
|
||||
this.butLoading = true;
|
||||
let response = {};
|
||||
if (this.loginWay === "password") {
|
||||
params.mobile = form.name;
|
||||
params.password = form.password;
|
||||
params.password = common_vendor.CryptoJS.MD5(form.password).toString();
|
||||
response = await api_auth.loginbypw(params);
|
||||
} else {
|
||||
params.mobile = form.name;
|
||||
@@ -74,7 +72,6 @@ const _sfc_main = {
|
||||
utils_auth.setStorageFun(utils_auth.USER_DATA, userInfo);
|
||||
let currentTimeStamp = (/* @__PURE__ */ new Date()).getTime();
|
||||
utils_auth.setStorageFun(utils_auth.USER_LOGIN_TIME, currentTimeStamp);
|
||||
this.butLoading = false;
|
||||
this.$refs.uToastRef.show({
|
||||
type: "success",
|
||||
message: response.msg
|
||||
@@ -105,7 +102,7 @@ const _sfc_main = {
|
||||
type: utils_enumUtils.SMS_TYPE.LOGIN
|
||||
};
|
||||
const response = await api_common.getUserList(params);
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:208", "responseresponseresponse", response);
|
||||
common_vendor.index.__f__("log", "at pages/login/login.vue:207", "responseresponseresponse", response);
|
||||
if (response && response.bizcode === 100) {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "success",
|
||||
@@ -119,6 +116,24 @@ const _sfc_main = {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/register/register"
|
||||
});
|
||||
},
|
||||
// 用户协议
|
||||
jumpUserAgreement() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine_user_agreement/mine_user_agreement?backPath=login"
|
||||
});
|
||||
},
|
||||
// 隐私协议
|
||||
jumpPrivacyAgreement() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine_privacy_agreement/mine_privacy_agreement?backPath=login"
|
||||
});
|
||||
},
|
||||
// 售后保障协议
|
||||
jumpProductAgreement() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine_product_agreement/mine_product_agreement?backPath=login"
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -126,19 +141,17 @@ if (!Array) {
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_count_down2 = common_vendor.resolveComponent("up-count-down");
|
||||
const _easycom_up_loading_icon2 = common_vendor.resolveComponent("up-loading-icon");
|
||||
const _easycom_up_checkbox2 = common_vendor.resolveComponent("up-checkbox");
|
||||
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
|
||||
(_easycom_up_image2 + _easycom_up_input2 + _easycom_up_count_down2 + _easycom_up_loading_icon2 + _easycom_up_checkbox2 + _easycom_up_toast2)();
|
||||
(_easycom_up_image2 + _easycom_up_input2 + _easycom_up_count_down2 + _easycom_up_checkbox2 + _easycom_up_toast2)();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_count_down = () => "../../uni_modules/uview-plus/components/u-count-down/u-count-down.js";
|
||||
const _easycom_up_loading_icon = () => "../../uni_modules/uview-plus/components/u-loading-icon/u-loading-icon.js";
|
||||
const _easycom_up_checkbox = () => "../../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js";
|
||||
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_image + _easycom_up_input + _easycom_up_count_down + _easycom_up_loading_icon + _easycom_up_checkbox + _easycom_up_toast)();
|
||||
(_easycom_up_image + _easycom_up_input + _easycom_up_count_down + _easycom_up_checkbox + _easycom_up_toast)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
@@ -215,22 +228,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
modelValue: $data.form.code
|
||||
})
|
||||
}), {
|
||||
v: common_vendor.p({
|
||||
color: "#FFFFFF",
|
||||
show: $data.butLoading
|
||||
}),
|
||||
w: common_vendor.o((...args) => $options.loginFun && $options.loginFun(...args)),
|
||||
x: $data.loginWay === "password"
|
||||
v: common_vendor.o((...args) => $options.loginFun && $options.loginFun(...args)),
|
||||
w: $data.loginWay === "password"
|
||||
}, $data.loginWay === "password" ? {
|
||||
y: common_vendor.o(($event) => $data.loginWay = "code")
|
||||
x: common_vendor.o(($event) => $data.loginWay = "code")
|
||||
} : {}, {
|
||||
z: $data.loginWay === "code"
|
||||
y: $data.loginWay === "code"
|
||||
}, $data.loginWay === "code" ? {
|
||||
A: common_vendor.o(($event) => $data.loginWay = "password")
|
||||
z: common_vendor.o(($event) => $data.loginWay = "password")
|
||||
} : {}, {
|
||||
B: common_vendor.o((...args) => $options.jumpRegister && $options.jumpRegister(...args)),
|
||||
C: common_vendor.o(($event) => $data.isPolicy = $event),
|
||||
D: common_vendor.p({
|
||||
A: common_vendor.o((...args) => $options.jumpRegister && $options.jumpRegister(...args)),
|
||||
B: common_vendor.o((...args) => $options.jumpUserAgreement && $options.jumpUserAgreement(...args)),
|
||||
C: common_vendor.o((...args) => $options.jumpPrivacyAgreement && $options.jumpPrivacyAgreement(...args)),
|
||||
D: common_vendor.o((...args) => $options.jumpProductAgreement && $options.jumpProductAgreement(...args)),
|
||||
E: common_vendor.o(($event) => $data.isPolicy = $event),
|
||||
F: common_vendor.p({
|
||||
name: "isCheck",
|
||||
usedAlone: true,
|
||||
shape: "circle",
|
||||
@@ -239,7 +251,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
iconSize: "18",
|
||||
checked: $data.isPolicy
|
||||
}),
|
||||
E: common_vendor.sr("uToastRef", "e4e4508d-10")
|
||||
G: common_vendor.sr("uToastRef", "e4e4508d-9")
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e4e4508d"]]);
|
||||
|
||||
Reference in New Issue
Block a user