feat: 个人小程序,不允许手机敏感信息
This commit is contained in:
4
dist/common.wxss
vendored
4
dist/common.wxss
vendored
@@ -50,10 +50,6 @@ taro-button-core{position:relative;display:block;margin-left:auto;margin-right:a
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/dialog/index.css ***!
|
||||
\***********************************************************************************************************************************************************************************************************************/
|
||||
.van-dialog{top:45%!important;overflow:hidden;width:640rpx;width:var(--dialog-width,640rpx);font-size:32rpx;font-size:var(--dialog-font-size, 32rpx);border-radius:32rpx;border-radius:var(--dialog-border-radius,32rpx);background-color:#fff;background-color:var(--dialog-background-color,#fff)}@media (max-width:642px){.van-dialog{width:90%;width:var(--dialog-small-screen-width,90%)}}.van-dialog taro-button-core+taro-button-core{margin-top:0}.van-dialog__header{text-align:center;padding-top:48rpx;padding-top:var(--dialog-header-padding-top,48rpx);font-weight:500;font-weight:var(--dialog-header-font-weight,500);line-height:48rpx;line-height:var(--dialog-header-line-height, 48rpx)}.van-dialog__header--isolated{padding:48rpx 0;padding:var(--dialog-header-isolated-padding,48rpx 0)}.van-dialog__message{overflow-y:auto;text-align:center;-webkit-overflow-scrolling:touch;font-size:28rpx;font-size:var(--dialog-message-font-size, 28rpx);line-height:40rpx;line-height:var(--dialog-message-line-height, 40rpx);max-height:60vh;max-height:var(--dialog-message-max-height,60vh);padding:48rpx;padding:var(--dialog-message-padding,48rpx)}.van-dialog__message-text{word-wrap:break-word}.van-dialog__message--hasTitle{padding-top:16rpx;padding-top:var(--dialog-has-title-message-padding-top,16rpx);color:#646566;color:var(--dialog-has-title-message-text-color,#646566)}.van-dialog__message--round-button{padding-bottom:32rpx;color:#323233}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__footer{display:-webkit-flex;display:flex}.van-dialog__footer--round-button{position:relative!important;padding:16rpx 48rpx 32rpx!important}.van-dialog__button{-webkit-flex:1;flex:1}.van-dialog__confirm{border:0!important;color:#576b95}.van-dialog__cancel{border:0!important;color:#646566}.van-dialog-bounce-enter{-webkit-transform:translate3d(-50%,-50%,0) scale(.7);transform:translate3d(-50%,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{-webkit-transform:translate3d(-50%,-50%,0) scale(.9);transform:translate3d(-50%,-50%,0) scale(.9);opacity:0}
|
||||
/*!**************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/form-item/index.css ***!
|
||||
\**************************************************************************************************************************************************************************************************************************/
|
||||
.vant-form-formItem{line-height:50rpx;height:auto;display:-webkit-flex;display:flex;overflow:hidden;margin:0 24rpx;padding:24rpx 0;background-color:#fff}.vant-form-formItem-wrapper{background-color:#fff;box-sizing:border-box}.vant-form-formItem-horizontal{-webkit-flex-direction:row;flex-direction:row;-webkit-align-items:flex-start;align-items:flex-start}.vant-form-formItem-vertical{-webkit-flex-direction:column;flex-direction:column}.vant-form-formItem-vertical .vant-form-formItem-controll-item{margin-top:20rpx}.vant-form-formItem-vertical .vant-form-label{width:auto}.vant-form-formItem-controll{margin-left:40rpx;font-size:32rpx;-webkit-flex:1;flex:1}.vant-form-formItem-controll-item{display:-webkit-flex;display:flex;-webkit-flex-direction:row;flex-direction:row;-webkit-justify-content:space-between;justify-content:space-between;-webkit-align-items:center;align-items:center}.vant-form-label{width:146rpx;font-size:32rpx;-webkit-flex:none;flex:none;box-sizing:border-box;color:#646566;text-align:left;word-wrap:break-word;display:-webkit-flex;display:flex;-webkit-flex-direction:row;flex-direction:row;-webkit-align-items:flex-start;align-items:flex-start}.vant-form-required-box{min-width:14rpx}.vant-form-message{font-size:24rpx;color:red;height:0;-webkit-transition:all .4s;transition:all .4s;visibility:hidden}.vant-form-message-show{height:30rpx;margin-top:8rpx;visibility:visible}
|
||||
/*!**********************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[0].use[2]!./node_modules/@antmjs/vantui/es/field/index.css ***!
|
||||
\**********************************************************************************************************************************************************************************************************************/
|
||||
|
||||
2
dist/pages/home/index.js
vendored
2
dist/pages/home/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/vendors.js
vendored
2
dist/vendors.js
vendored
File diff suppressed because one or more lines are too long
64
dist/vendors.js.LICENSE.txt
vendored
64
dist/vendors.js.LICENSE.txt
vendored
@@ -10,8 +10,6 @@
|
||||
|
||||
/*! ../common/validator */
|
||||
|
||||
/*! ../form/core/formContext */
|
||||
|
||||
/*! ../goods-action-button/index */
|
||||
|
||||
/*! ../goods-action/index */
|
||||
@@ -68,30 +66,18 @@
|
||||
|
||||
/*! ./cjs/react-is.development.js */
|
||||
|
||||
/*! ./core/formContext */
|
||||
|
||||
/*! ./core/useForm */
|
||||
|
||||
/*! ./defineProperty.js */
|
||||
|
||||
/*! ./dialog */
|
||||
|
||||
/*! ./events */
|
||||
|
||||
/*! ./formstore */
|
||||
|
||||
/*! ./iterableToArray.js */
|
||||
|
||||
/*! ./iterableToArrayLimit.js */
|
||||
|
||||
/*! ./label */
|
||||
|
||||
/*! ./memoize */
|
||||
|
||||
/*! ./message */
|
||||
|
||||
/*! ./node_modules/@babel/runtime/helpers/esm/typeof.js */
|
||||
|
||||
/*! ./node_modules/@babel/runtime/helpers/typeof.js */
|
||||
|
||||
/*! ./nonIterableRest.js */
|
||||
@@ -118,12 +104,6 @@
|
||||
|
||||
/*! ./wxs */
|
||||
|
||||
/*! @babel/runtime/helpers/asyncToGenerator */
|
||||
|
||||
/*! @babel/runtime/helpers/classCallCheck */
|
||||
|
||||
/*! @babel/runtime/helpers/createClass */
|
||||
|
||||
/*! @babel/runtime/helpers/defineProperty */
|
||||
|
||||
/*! @babel/runtime/helpers/interopRequireDefault */
|
||||
@@ -134,16 +114,12 @@
|
||||
|
||||
/*! @babel/runtime/helpers/typeof */
|
||||
|
||||
/*! @babel/runtime/regenerator */
|
||||
|
||||
/*! @tarojs/components */
|
||||
|
||||
/*! @tarojs/runtime */
|
||||
|
||||
/*! @tarojs/taro */
|
||||
|
||||
/*! dequal */
|
||||
|
||||
/*! performance-now */
|
||||
|
||||
/*! raf */
|
||||
@@ -152,16 +128,12 @@
|
||||
|
||||
/*! react */
|
||||
|
||||
/*! react-dom */
|
||||
|
||||
/*! react-is */
|
||||
|
||||
/*! react/jsx-runtime */
|
||||
|
||||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||||
|
||||
/*! use-deep-compare-effect */
|
||||
|
||||
/*!***********************************!*\
|
||||
!*** ./node_modules/raf/index.js ***!
|
||||
\***********************************/
|
||||
@@ -170,10 +142,6 @@
|
||||
!*** ./node_modules/react-is/index.js ***!
|
||||
\****************************************/
|
||||
|
||||
/*!********************************************!*\
|
||||
!*** ./node_modules/dequal/dist/index.mjs ***!
|
||||
\********************************************/
|
||||
|
||||
/*!***************************************************!*\
|
||||
!*** ./node_modules/@antmjs/vantui/es/tag/wxs.js ***!
|
||||
\***************************************************/
|
||||
@@ -226,10 +194,6 @@
|
||||
!*** ./node_modules/@antmjs/vantui/es/cell/index.js ***!
|
||||
\******************************************************/
|
||||
|
||||
/*!******************************************************!*\
|
||||
!*** ./node_modules/@antmjs/vantui/es/form/index.js ***!
|
||||
\******************************************************/
|
||||
|
||||
/*!******************************************************!*\
|
||||
!*** ./node_modules/@antmjs/vantui/es/icon/index.js ***!
|
||||
\******************************************************/
|
||||
@@ -342,14 +306,6 @@
|
||||
!*** ./node_modules/@antmjs/vantui/es/common/jumpLink.js ***!
|
||||
\***********************************************************/
|
||||
|
||||
/*!***********************************************************!*\
|
||||
!*** ./node_modules/@antmjs/vantui/es/form-item/index.js ***!
|
||||
\***********************************************************/
|
||||
|
||||
/*!***********************************************************!*\
|
||||
!*** ./node_modules/@antmjs/vantui/es/form-item/label.js ***!
|
||||
\***********************************************************/
|
||||
|
||||
/*!***********************************************************!*\
|
||||
!*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***!
|
||||
\***********************************************************/
|
||||
@@ -366,14 +322,6 @@
|
||||
!*** ./node_modules/@antmjs/vantui/es/transition/index.js ***!
|
||||
\************************************************************/
|
||||
|
||||
/*!*************************************************************!*\
|
||||
!*** ./node_modules/@antmjs/vantui/es/form-item/message.js ***!
|
||||
\*************************************************************/
|
||||
|
||||
/*!*************************************************************!*\
|
||||
!*** ./node_modules/@antmjs/vantui/es/form/core/useForm.js ***!
|
||||
\*************************************************************/
|
||||
|
||||
/*!*************************************************************!*\
|
||||
!*** ./node_modules/@antmjs/vantui/es/mixins/transition.js ***!
|
||||
\*************************************************************/
|
||||
@@ -390,18 +338,10 @@
|
||||
!*** ./node_modules/@antmjs/vantui/es/goods-action/index.js ***!
|
||||
\**************************************************************/
|
||||
|
||||
/*!***************************************************************!*\
|
||||
!*** ./node_modules/@antmjs/vantui/es/form/core/formstore.js ***!
|
||||
\***************************************************************/
|
||||
|
||||
/*!****************************************************************!*\
|
||||
!*** ./node_modules/@babel/runtime/helpers/esm/createClass.js ***!
|
||||
\****************************************************************/
|
||||
|
||||
/*!*****************************************************************!*\
|
||||
!*** ./node_modules/@antmjs/vantui/es/form/core/formContext.js ***!
|
||||
\*****************************************************************/
|
||||
|
||||
/*!******************************************************************!*\
|
||||
!*** ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***!
|
||||
\******************************************************************/
|
||||
@@ -482,10 +422,6 @@
|
||||
!*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
|
||||
\*********************************************************************************/
|
||||
|
||||
/*!**********************************************************************************!*\
|
||||
!*** ./node_modules/use-deep-compare-effect/dist/use-deep-compare-effect.esm.js ***!
|
||||
\**********************************************************************************/
|
||||
|
||||
/** @license React v16.13.1
|
||||
* react-is.development.js
|
||||
*
|
||||
|
||||
@@ -1,107 +1,107 @@
|
||||
import { Button, Checkbox, Form, FormItem, Icon, Image } from "@antmjs/vantui";
|
||||
import { Input, View, Text } from "@tarojs/components";
|
||||
import react, { useEffect } from "react";
|
||||
import "./index.scss";
|
||||
// import { Button, Checkbox, Form, FormItem, Icon, Image } from "@antmjs/vantui";
|
||||
// import { Input, View, Text } from "@tarojs/components";
|
||||
// import react, { useEffect } from "react";
|
||||
// import "./index.scss";
|
||||
|
||||
const Certified = () => {
|
||||
const formIt = Form.useForm();
|
||||
const [state, setState] = react.useState({});
|
||||
const [value, setValue] = react.useState(true);
|
||||
// const Certified = () => {
|
||||
// const formIt = Form.useForm();
|
||||
// const [state, setState] = react.useState({});
|
||||
// const [value, setValue] = react.useState(true);
|
||||
|
||||
useEffect(()=>{
|
||||
// 设置标题
|
||||
definePageConfig({
|
||||
navigationBarTitleText: "认证",
|
||||
});
|
||||
},[])
|
||||
return (
|
||||
<View className="Certified">
|
||||
<Form
|
||||
initialValues={{
|
||||
userName: "",
|
||||
singleSelect: "1",
|
||||
rate: 2,
|
||||
slider: "50",
|
||||
}}
|
||||
form={formIt}
|
||||
onFinish={(errs, res) => console.info(errs, res)}
|
||||
>
|
||||
{/* 说明 */}
|
||||
<View className="info">
|
||||
<View>
|
||||
<Icon name="checked" size="50px" className="icon"></Icon>
|
||||
</View>
|
||||
<View className="infoText">
|
||||
官方鼓励真是,真诚的交友方式,进行实名认证后,才会享受参与实名用户组队参与活动的权益
|
||||
</View>
|
||||
</View>
|
||||
// useEffect(()=>{
|
||||
// // 设置标题
|
||||
// definePageConfig({
|
||||
// navigationBarTitleText: "认证",
|
||||
// });
|
||||
// },[])
|
||||
// return (
|
||||
// <View className="Certified">
|
||||
// <Form
|
||||
// initialValues={{
|
||||
// userName: "",
|
||||
// singleSelect: "1",
|
||||
// rate: 2,
|
||||
// slider: "50",
|
||||
// }}
|
||||
// form={formIt}
|
||||
// onFinish={(errs, res) => console.info(errs, res)}
|
||||
// >
|
||||
// {/* 说明 */}
|
||||
// <View className="info">
|
||||
// <View>
|
||||
// <Icon name="checked" size="50px" className="icon"></Icon>
|
||||
// </View>
|
||||
// <View className="infoText">
|
||||
// 官方鼓励真是,真诚的交友方式,进行实名认证后,才会享受参与实名用户组队参与活动的权益
|
||||
// </View>
|
||||
// </View>
|
||||
|
||||
<FormItem
|
||||
label="姓名"
|
||||
name="userName"
|
||||
required
|
||||
rules={{
|
||||
// @ts-ignore
|
||||
rule: /[\u4e00-\u9fa5]/,
|
||||
message: "用户名仅支持中文",
|
||||
}}
|
||||
trigger="onInput"
|
||||
validateTrigger="onBlur"
|
||||
// taro的input的onInput事件返回对应表单的最终值为e.detail.value
|
||||
valueFormat={(e) => e.detail.value}
|
||||
// renderRight={<Icon name="user-o" />}
|
||||
>
|
||||
<Input placeholder="请输入用户名(中文)" />
|
||||
</FormItem>
|
||||
// <FormItem
|
||||
// label="姓名"
|
||||
// name="userName"
|
||||
// required
|
||||
// rules={{
|
||||
// // @ts-ignore
|
||||
// rule: /[\u4e00-\u9fa5]/,
|
||||
// message: "用户名仅支持中文",
|
||||
// }}
|
||||
// trigger="onInput"
|
||||
// validateTrigger="onBlur"
|
||||
// // taro的input的onInput事件返回对应表单的最终值为e.detail.value
|
||||
// valueFormat={(e) => e.detail.value}
|
||||
// // renderRight={<Icon name="user-o" />}
|
||||
// >
|
||||
// <Input placeholder="请输入用户名(中文)" />
|
||||
// </FormItem>
|
||||
|
||||
<FormItem
|
||||
label="证件号"
|
||||
name="cardId"
|
||||
required
|
||||
valueFormat={(e) => e.detail.value}
|
||||
rules={[]}
|
||||
trigger="onInput"
|
||||
>
|
||||
<Input placeholder={``} />
|
||||
</FormItem>
|
||||
// <FormItem
|
||||
// label="证件号"
|
||||
// name="cardId"
|
||||
// required
|
||||
// valueFormat={(e) => e.detail.value}
|
||||
// rules={[]}
|
||||
// trigger="onInput"
|
||||
// >
|
||||
// <Input placeholder={``} />
|
||||
// </FormItem>
|
||||
|
||||
<View className={`myImage`}>
|
||||
<Image
|
||||
round
|
||||
width="100px"
|
||||
height="100px"
|
||||
src="cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images/images-2.jpg"
|
||||
/>
|
||||
<View className="text">
|
||||
你的头像,姓名,身份证号,将用于公安那系统校验,校验成功后即可认证成功.身份证信息仅供本次认证使用,本程序将严格保密
|
||||
</View>
|
||||
</View>
|
||||
// <View className={`myImage`}>
|
||||
// <Image
|
||||
// round
|
||||
// width="100px"
|
||||
// height="100px"
|
||||
// src="cloud://cloud1-5g5xrgza12a0dd6d.636c-cloud1-5g5xrgza12a0dd6d-1253665791/images/images-2.jpg"
|
||||
// />
|
||||
// <View className="text">
|
||||
// 你的头像,姓名,身份证号,将用于公安那系统校验,校验成功后即可认证成功.身份证信息仅供本次认证使用,本程序将严格保密
|
||||
// </View>
|
||||
// </View>
|
||||
|
||||
<View className="submitBtn">
|
||||
<Button style={{width:'200px'}} type="primary" round>确认授权</Button>
|
||||
</View>
|
||||
// <View className="submitBtn">
|
||||
// <Button style={{width:'200px'}} type="primary" round>确认授权</Button>
|
||||
// </View>
|
||||
|
||||
{/* <FormItem
|
||||
label={false}
|
||||
name="cardId"
|
||||
required
|
||||
valueFormat={(e) => e.detail.value}
|
||||
rules={[]}
|
||||
trigger="onInput"
|
||||
>
|
||||
<Checkbox value={value} onChange={(e:any) => setValue(e.detail)}>
|
||||
{`已阅读并同意<<腾讯云E证通服务使用协议>>和<<eID数字身份小程序服务协议>>`}
|
||||
</Checkbox>
|
||||
</FormItem> */}
|
||||
// {/* <FormItem
|
||||
// label={false}
|
||||
// name="cardId"
|
||||
// required
|
||||
// valueFormat={(e) => e.detail.value}
|
||||
// rules={[]}
|
||||
// trigger="onInput"
|
||||
// >
|
||||
// <Checkbox value={value} onChange={(e:any) => setValue(e.detail)}>
|
||||
// {`已阅读并同意<<腾讯云E证通服务使用协议>>和<<eID数字身份小程序服务协议>>`}
|
||||
// </Checkbox>
|
||||
// </FormItem> */}
|
||||
|
||||
<View className="checkItem">
|
||||
<Checkbox value={value} onChange={(e: any) => setValue(e.detail)}>
|
||||
{`已阅读并同意<腾讯云E证通服务使用协议>和<eID数字身份小程序服务协议>`}
|
||||
</Checkbox>
|
||||
</View>
|
||||
</Form>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
// <View className="checkItem">
|
||||
// <Checkbox value={value} onChange={(e: any) => setValue(e.detail)}>
|
||||
// {`已阅读并同意<腾讯云E证通服务使用协议>和<eID数字身份小程序服务协议>`}
|
||||
// </Checkbox>
|
||||
// </View>
|
||||
// </Form>
|
||||
// </View>
|
||||
// );
|
||||
// };
|
||||
|
||||
export default Certified;
|
||||
// export default Certified;
|
||||
|
||||
@@ -302,19 +302,23 @@ const Home = () => {
|
||||
}}
|
||||
/>
|
||||
|
||||
{/* <GridItem
|
||||
<GridItem
|
||||
icon="manager"
|
||||
className="iconStyle"
|
||||
text="组队"
|
||||
onClick={() => {
|
||||
// 跳转到目的页面,打开新页面
|
||||
Taro.navigateTo({
|
||||
url: "/pages/formSubmit/index",
|
||||
Toast.fail({
|
||||
message: "参加1次活动后,可发起组队",
|
||||
selector: "#vanToast-demo2",
|
||||
});
|
||||
// 跳转到目的页面,打开新页面
|
||||
// Taro.navigateTo({
|
||||
// url: "/pages/formSubmit/index",
|
||||
// });
|
||||
}}
|
||||
/> */}
|
||||
/>
|
||||
|
||||
<GridItem
|
||||
{/* <GridItem
|
||||
icon="manager"
|
||||
className="iconStyle"
|
||||
text="认证"
|
||||
@@ -324,7 +328,8 @@ const Home = () => {
|
||||
url: "/pages/home/components/Certified/index",
|
||||
});
|
||||
}}
|
||||
/>
|
||||
/> */}
|
||||
|
||||
</Grid>
|
||||
|
||||
{/* 分割线 */}
|
||||
|
||||
Reference in New Issue
Block a user