暂存code

This commit is contained in:
hejiangming
2025-05-07 09:54:33 +08:00
parent 78270eeda0
commit 007b002b81
403 changed files with 14507 additions and 6320 deletions
@@ -1,6 +1,16 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_auth = require("../../api/auth.js");
const utils_enumUtils = require("../../utils/enumUtils.js");
const CommonCard = () => "../../components/common_card.js";
const Header = () => "../../components/header.js";
const _sfc_main = {
computed: {
CERT_OPTION() {
return utils_enumUtils.CERT_OPTION;
}
},
components: { CommonCard, Header },
data() {
return {
inputCss: {
@@ -10,28 +20,30 @@ const _sfc_main = {
},
form: {
name: null,
mobile: null,
number: null
// 银行名称
certType: null,
// 证状证件类型:1-居民身份证,2-护照
certName: null,
certNo: null,
// 证件号码
certFimg: null,
// 证件正面照片
certBimg: null
// 证件背面照片
},
formList: [
{
id: 1,
title: "真实姓名",
formName: "name",
placeholder: "请输入您的真实姓名"
},
{
id: 2,
title: "手机号",
formName: "mobile",
placeholder: "请输入手机号"
placeholder: "请输入您的真实姓名",
type: "text"
},
{
id: 3,
title: "证件号码",
formName: "number",
placeholder: "请输入证件号码"
formName: "certNo",
placeholder: "请输入证件号码",
type: "text"
}
],
uploadTemplList: [
@@ -59,11 +71,13 @@ const _sfc_main = {
isOk: false,
url: "/static/common/ID_error_3.png"
}
]
],
certShow: false,
certOption: []
};
},
methods: {
addAuthentication() {
async addAuthentication() {
const params = {
...this.form
};
@@ -74,87 +88,126 @@ const _sfc_main = {
});
return;
}
if (!params.mobile) {
if (!params.certType) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入手机号"
message: "请选择证件类型"
});
return;
}
if (!params.number) {
if (!params.certNo) {
this.$refs.uToastRef.show({
type: "error",
message: "请输入证件号码"
});
return;
}
common_vendor.index.__f__("log", "at pages/mine_authentication/mine_authentication.vue:134", "params", params);
common_vendor.index.navigateTo({
url: "/pages/mine_authentication_ok/mine_authentication_ok"
});
if (params.certFimg.length === 0) {
this.$refs.uToastRef.show({
type: "error",
message: "请上传证件正面照片"
});
return;
}
if (params.certBimg.length === 0) {
this.$refs.uToastRef.show({
type: "error",
message: "请上传证件背面照片"
});
return;
}
common_vendor.index.__f__("log", "at pages/mine_authentication/mine_authentication.vue:159", "params", params);
const resp = await api_auth.realNameAuthentication(params);
if (resp && resp.bizcode === 100) {
common_vendor.index.navigateTo({
url: "/pages/mine_authentication_ok/mine_authentication_ok"
});
}
},
// 提交地址
certConfirm(e) {
const {
columnIndex,
value,
values,
index
} = e;
const data = value[0];
this.form.certType = data.key;
this.form.certName = data.value;
this.certShowCheck(false);
},
// 选择银行的弹框
async certShowCheck(status) {
this.certShow = status;
},
getValue(type, value) {
if (type === "Z") {
this.form.certFimg = value;
} else if (type === "F") {
this.form.certBimg = value;
}
}
}
};
if (!Array) {
const _component_Header = common_vendor.resolveComponent("Header");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
(_easycom_up_input2 + _easycom_up_image2)();
const _component_CommonCard = common_vendor.resolveComponent("CommonCard");
const _easycom_up_picker2 = common_vendor.resolveComponent("up-picker");
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
(_component_Header + _easycom_up_input2 + _easycom_up_image2 + _component_CommonCard + _easycom_up_picker2 + _easycom_up_toast2)();
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
const _easycom_up_picker = () => "../../uni_modules/uview-plus/components/u-picker/u-picker.js";
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
if (!Math) {
(_easycom_up_input + _easycom_up_image)();
(_easycom_up_input + _easycom_up_image + _easycom_up_picker + _easycom_up_toast)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.f($data.formList, (item, k0, i0) => {
a: common_vendor.p({
leftTitle: _ctx.$t("authentication.title"),
["left-path-type"]: "switchTab",
["left-path"]: "/pages/mine/mine"
}),
b: common_vendor.f($data.formList, (item, k0, i0) => {
return {
a: common_vendor.t(item.title),
b: "ff62741c-0-" + i0,
b: "ff62741c-1-" + i0,
c: common_vendor.o(($event) => $data.form[item.formName] = $event, item.id),
d: common_vendor.p({
placeholder: item.placeholder,
border: "surround",
customStyle: $data.inputCss,
type: item.type,
modelValue: $data.form[item.formName]
}),
e: common_vendor.n(item.id < $data.formList.length ? "add_form_item add_form_item_but" : "add_form_item"),
f: item.id
e: item.id
};
}),
b: common_vendor.p({
src: "/static/common/ID_rx.png",
width: "100%",
height: "90",
c: common_vendor.t($data.form.certName || "请选择"),
d: common_vendor.p({
src: "/static/common/right.png",
width: "16",
height: "16",
bgColor: "#f1f6ff00"
}),
c: common_vendor.p({
src: "/static/common/ID_gq.png",
width: "100%",
height: "90",
bgColor: "#f1f6ff00"
e: common_vendor.o(($event) => $options.certShowCheck(true)),
f: common_vendor.o($options.getValue),
g: common_vendor.o((...args) => $options.addAuthentication && $options.addAuthentication(...args)),
h: common_vendor.o($options.certConfirm),
i: common_vendor.o(($event) => $data.certShow = false),
j: common_vendor.o(($event) => $data.certShow = false),
k: common_vendor.p({
show: $data.certShow,
columns: [$options.CERT_OPTION],
keyName: "value",
itemHeight: "34"
}),
d: common_vendor.f($data.uploadTemplList, (item, k0, i0) => {
return {
a: "ff62741c-3-" + i0,
b: common_vendor.p({
src: item.url,
width: "100%",
height: "50",
bgColor: "#f1f6ff00"
}),
c: "ff62741c-4-" + i0,
d: common_vendor.p({
src: item.isOk ? "/static/common/ID_ok_1.png" : "/static/common/ID_error.png",
width: "10",
height: "10",
bgColor: "#f1f6ff00"
}),
e: common_vendor.t(item.title),
f: item.id
};
}),
e: common_vendor.o((...args) => $options.addAuthentication && $options.addAuthentication(...args))
l: common_vendor.sr("uToastRef", "ff62741c-5")
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ff62741c"]]);