暂存code
This commit is contained in:
+110
-57
@@ -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"]]);
|
||||
|
||||
+6
-6
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "实名认证",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"navigationBarTextStyle": "black",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "default",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"common-card": "../../components/common_card",
|
||||
"header": "../../components/header",
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"up-picker": "../../uni_modules/uview-plus/components/u-picker/u-picker",
|
||||
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1 +1 @@
|
||||
<view class="authentication_warp data-v-ff62741c"><view class="data_common_warp data-v-ff62741c"><view class="data_msg data-v-ff62741c">请填写商户本人的相关信息</view><view wx:for="{{a}}" wx:for-item="item" wx:key="f" class="{{['data-v-ff62741c', item.e]}}"><view class="add_form_title data-v-ff62741c">{{item.a}}</view><up-input wx:if="{{item.d}}" class="data-v-ff62741c" u-i="{{item.b}}" bind:__l="__l" bindupdateModelValue="{{item.c}}" u-p="{{item.d}}"></up-input></view></view><view class="data_common_warp data-v-ff62741c"><view class="ID_card_title data-v-ff62741c">上传证件照</view><view class="ID_card_msg data-v-ff62741c">(请务必上传本人证件照,生活照、艺术照将会被驳回)</view><view class="ID_card_upload data-v-ff62741c"><view class="upload_item data-v-ff62741c"><up-image wx:if="{{b}}" class="data-v-ff62741c" u-i="ff62741c-1" bind:__l="__l" u-p="{{b}}"></up-image><view class="upload_msg data-v-ff62741c">点击上传身份证人像面</view></view><view class="upload_item data-v-ff62741c"><up-image wx:if="{{c}}" class="data-v-ff62741c" u-i="ff62741c-2" bind:__l="__l" u-p="{{c}}"></up-image><view class="upload_msg data-v-ff62741c">点击上传身份国旗面</view></view></view><view class="ID_card_upload_templ data-v-ff62741c"><view class="templ_title data-v-ff62741c">上传标准</view><view class="templ_img_list data-v-ff62741c"><view wx:for="{{d}}" wx:for-item="item" wx:key="f" class="templ_img_item data-v-ff62741c"><up-image wx:if="{{item.b}}" class="data-v-ff62741c" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image><view class="templ_img_item_msg data-v-ff62741c"><up-image wx:if="{{item.d}}" class="data-v-ff62741c" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></up-image><view class="templ_img_item_msg_title data-v-ff62741c">{{item.e}}</view></view></view></view></view></view><view class="add_but data-v-ff62741c" bindtap="{{e}}"> 提交 </view></view>
|
||||
<view class="authentication_warp data-v-ff62741c"><header wx:if="{{a}}" class="data-v-ff62741c" u-i="ff62741c-0" bind:__l="__l" u-p="{{a}}"></header><view class="data_common_warp data-v-ff62741c"><view class="data_msg data-v-ff62741c">请填写用户本人得相关信息</view><view wx:for="{{b}}" wx:for-item="item" wx:key="e" class="'add_form_item add_form_item_but' data-v-ff62741c"><view class="add_form_title data-v-ff62741c">{{item.a}}</view><up-input wx:if="{{item.d}}" class="data-v-ff62741c" u-i="{{item.b}}" bind:__l="__l" bindupdateModelValue="{{item.c}}" u-p="{{item.d}}"></up-input></view><view class="add_form_item data-v-ff62741c"><view class="add_form_title data-v-ff62741c">证件类型</view><view class="cert_ data-v-ff62741c" bindtap="{{e}}"><view class="cert_title data-v-ff62741c">{{c}}</view><up-image wx:if="{{d}}" class="data-v-ff62741c" u-i="ff62741c-2" bind:__l="__l" u-p="{{d}}"></up-image></view></view></view><common-card class="data-v-ff62741c" bindvalueFunc="{{f}}" u-i="ff62741c-3" bind:__l="__l"/><view class="add_but data-v-ff62741c" bindtap="{{g}}"> 提交 </view><up-picker wx:if="{{k}}" class="data-v-ff62741c" bindconfirm="{{h}}" bindcancel="{{i}}" bindclose="{{j}}" u-i="ff62741c-4" bind:__l="__l" u-p="{{k}}"></up-picker><up-toast class="r data-v-ff62741c" u-r="uToastRef" u-i="ff62741c-5" bind:__l="__l"></up-toast></view>
|
||||
+7
-10
@@ -27,15 +27,12 @@
|
||||
background-color: #F5F5F5;
|
||||
padding: 30rpx;
|
||||
}
|
||||
.authentication_warp .data_common_warp.data-v-ff62741c {
|
||||
background: #FFFFFF;
|
||||
border-radius: 30rpx;
|
||||
padding: 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
.cert_.data-v-ff62741c {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: calc(100% - 170rpx);
|
||||
}
|
||||
.authentication_warp .data_msg.data-v-ff62741c {
|
||||
font-weight: 500;
|
||||
font-size: 26rpx;
|
||||
color: #F34343;
|
||||
margin-bottom: 20rpx;
|
||||
.cert_ .cert_title.data-v-ff62741c {
|
||||
margin-left: 30rpx;
|
||||
color: #9e9e9ec7;
|
||||
}
|
||||
Reference in New Issue
Block a user