zhangtao 3 долоо хоног өмнө
parent
commit
aa296e4844

+ 3 - 2
.gitignore

@@ -1,15 +1,16 @@
+node_modules
+dist
 # Logs
 logs
 *.log
+
 npm-debug.log*
 yarn-debug.log*
 yarn-error.log*
 pnpm-debug.log*
 lerna-debug.log*
 /config/env/.env.*
-node_modules	
 .DS_Store
-dist
 *.local
 
 # Editor directories and files

+ 7 - 0
.vscode/settings.json

@@ -0,0 +1,7 @@
+{
+    "i18n-ally.localesPaths": [
+        "src/uni_modules/uni-calendar/components/uni-calendar/i18n",
+        "src/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n",
+        "src/uni_modules/uni-popup/components/uni-popup/i18n"
+    ]
+}

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 269 - 267
package-lock.json


+ 1 - 0
package.json

@@ -64,6 +64,7 @@
 		"less": "^4.2.2",
 		"less-loader": "^12.2.0",
 		"pinia": "^2.1.7",
+		"sass": "^1.89.2",
 		"vue": "^3.3.0",
 		"vue-i18n": "^9.1.9",
 		"vue-template-compiler": "^2.7.16"

+ 158 - 158
src/pages/index/attestation/index.vue

@@ -1,175 +1,175 @@
 <template>
-	<view class="content">
-		<view style="height: 190rpx;"></view>
-		<view class="a-title">
-			<view class="title">本人实名认证</view>
-			<view class="text">用于身份实名核验,反洗钱,资料将严格保密</view>
-		</view>
-		<view class="a-idcard-box">
-			<view class="front bg-image">
-				<zzx-icon name="upload" size="30"></zzx-icon>
-				<view class="">上传人像面</view>
-			</view>
-			<view class="flip-side bg-image">
-				<zzx-icon name="upload" size="30"></zzx-icon>
-				<view class="">上传国徽面</view>
-			</view>
-		</view>
-		<view class="a-form">
-			<view class="form-item">
-				<view class="">真实姓名</view>
-				<input type="text" placeholder="请输入本人姓名" />
-			</view>
-			<view class="form-item">
-				<view class="">身份证号</view>
-				<input type="idcard" placeholder="请输入本人身份证号" />
-			</view>
-			<view class="form-item">
-				<view class="">手机号码</view>
-				<input type="number" placeholder="请输入手机号" />
-			</view>
-			<view class="form-tips">老人或无手机号,可填写亲友手机号</view>
-		</view>
-		<view class="u-select-btn">
-			<button hover-class="hover-btn" @click="submit">下一步</button>
-		</view>
-	</view>
+  <view class="content">
+    <view style="height: 190rpx"></view>
+    <view class="a-title">
+      <view class="title">本人实名认证</view>
+      <view class="text">用于身份实名核验,反洗钱,资料将严格保密</view>
+    </view>
+    <view class="a-idcard-box">
+      <view class="front bg-image">
+        <zzx-icon name="upload" size="30"></zzx-icon>
+        <view class="">上传人像面</view>
+      </view>
+      <view class="flip-side bg-image">
+        <zzx-icon name="upload" size="30"></zzx-icon>
+        <view class="">上传国徽面</view>
+      </view>
+    </view>
+    <view class="a-form">
+      <view class="form-item">
+        <view class="">真实姓名</view>
+        <input type="text" placeholder="请输入本人姓名" />
+      </view>
+      <view class="form-item">
+        <view class="">身份证号</view>
+        <input type="idcard" placeholder="请输入本人身份证号" />
+      </view>
+      <view class="form-item">
+        <view class="">手机号码</view>
+        <input type="number" placeholder="请输入手机号" />
+      </view>
+      <view class="form-tips">老人或无手机号,可填写亲友手机号</view>
+    </view>
+    <view class="u-select-btn">
+      <button hover-class="hover-btn" @click="submit">下一步</button>
+    </view>
+  </view>
 </template>
 
 <script lang="ts" setup>
-	import { ref } from 'vue';
-	const submit = () => {
-		uni.navigateTo({
-			url: '/pages/index/identityCertifying/index'
-		})
-		return
-		uni.checkIsSupportSoterAuthentication({
-			success: (res) => {
-				wx.startFacialRecognitionVerify({
-					name: '',
-					idCardNumber: '',
-					success: (res) => {
-						if (res.errMsg == 'startFacialRecognitionVerify:ok') {
-							console.log(res,'人脸识别结果:success');
-						}
-					},
-					fail: (err) => {
-						console.log(err,'人脸识别结果:fail')
-						uni.showToast({
-							title: '人脸识别失败',
-							icon: 'none',
-							duration: 20000,
-						});
-					}
-				})
-			},
-			fail: (err) => {
-				console.log(err)
-			}
-		})
-	}
+import { ref } from "vue";
+const submit = () => {
+  uni.navigateTo({
+    url: "/pages/index/identityCertifying/index",
+  });
+  return;
+  uni.checkIsSupportSoterAuthentication({
+    success: (res) => {
+      wx.startFacialRecognitionVerify({
+        name: "",
+        idCardNumber: "",
+        success: (res) => {
+          if (res.errMsg == "startFacialRecognitionVerify:ok") {
+            console.log(res, "人脸识别结果:success");
+          }
+        },
+        fail: (err) => {
+          console.log(err, "人脸识别结果:fail");
+          uni.showToast({
+            title: "人脸识别失败",
+            icon: "none",
+            duration: 20000,
+          });
+        },
+      });
+    },
+    fail: (err) => {
+      console.log(err);
+    },
+  });
+};
 </script>
 
 <style lang="less" scoped>
-	.content {
-		background: #fff;
-		height: 1300rpx;
+.content {
+  background: #fff;
+  height: 1300rpx;
 
-		.a-title {
-			text-align: center;
+  .a-title {
+    text-align: center;
 
-			.title {
-				font-weight: 800;
-				font-size: 36rpx;
-				color: #222222;
-			}
+    .title {
+      font-weight: 800;
+      font-size: 36rpx;
+      color: #222222;
+    }
 
-			.text {
-				margin-top: 20rpx;
-				font-size: 24rpx;
-				color: #AAAAAA;
-			}
-		}
-		.a-idcard-box{
-			display: flex;
-			align-items: center;
-			justify-content: space-around;
-			font-size: 28rpx;
-			color: #222222;
-			margin-top: 40rpx;
-			.front{
-				width: 332rpx;
-				height: 204rpx;
-				border-radius: 16rpx;
-				background-image: url('@/static/idcard-front.png');
-				display: flex;
-				align-items: center;
-				justify-content: center;
-				flex-direction: column;
-			}
-			.flip-side{
-				width: 332rpx;
-				height: 204rpx;
-				border-radius: 16rpx;
-				background-image: url('@/static/idcard-flipSide.png');
-				display: flex;
-				align-items: center;
-				justify-content: center;
-				flex-direction: column;
-			}
-		}
+    .text {
+      margin-top: 20rpx;
+      font-size: 24rpx;
+      color: #aaaaaa;
+    }
+  }
+  .a-idcard-box {
+    display: flex;
+    align-items: center;
+    justify-content: space-around;
+    font-size: 28rpx;
+    color: #222222;
+    margin-top: 40rpx;
+    .front {
+      width: 332rpx;
+      height: 204rpx;
+      border-radius: 16rpx;
+      background-image: url("@/static/idcard-front.png");
+      display: flex;
+      align-items: center;
+      justify-content: center;
+      flex-direction: column;
+    }
+    .flip-side {
+      width: 332rpx;
+      height: 204rpx;
+      border-radius: 16rpx;
+      background-image: url("@/static/idcard-flipSide.png");
+      display: flex;
+      align-items: center;
+      justify-content: center;
+      flex-direction: column;
+    }
+  }
 
-		.a-form {
-			margin-top: 20rpx;
+  .a-form {
+    margin-top: 20rpx;
 
-			.form-item {
-				height: 110rpx;
-				display: flex;
-				align-items: center;
-				gap: 20rpx;
-				border-bottom: 1rpx solid #F0F0F0;
-				font-weight: bold;
-				font-size: 28rpx;
-				color: #222222;
+    .form-item {
+      height: 110rpx;
+      display: flex;
+      align-items: center;
+      gap: 20rpx;
+      border-bottom: 1rpx solid #f0f0f0;
+      font-weight: bold;
+      font-size: 28rpx;
+      color: #222222;
 
-				&>input {
-					font-weight: normal;
-				}
-			}
-			.form-tips{
-				margin-top: 20rpx;
-				font-size: 24rpx;
-				color: #AAAAAA;
-			}
-		}
+      & > input {
+        font-weight: normal;
+      }
+    }
+    .form-tips {
+      margin-top: 20rpx;
+      font-size: 24rpx;
+      color: #aaaaaa;
+    }
+  }
 
-		.u-select-btn {
-			position: fixed;
-			width: 100%;
-			height: 300rpx;
-			left: 0;
-			bottom: 0;
-			background: #fff;
+  .u-select-btn {
+    position: fixed;
+    width: 100%;
+    height: 300rpx;
+    left: 0;
+    bottom: 0;
+    background: #fff;
 
-			&>button {
-				width: 95%;
-				height: 100rpx;
-				line-height: 100rpx;
-				background: #D3FD76;
-				border-radius: 60rpx;
-				font-weight: bold;
-				font-size: 32rpx;
-				color: #222222;
-			}
+    & > button {
+      width: 95%;
+      height: 100rpx;
+      line-height: 100rpx;
+      background: #d3fd76;
+      border-radius: 60rpx;
+      font-weight: bold;
+      font-size: 32rpx;
+      color: #222222;
+    }
 
-			&>button::after {
-				border: none;
-			}
+    & > button::after {
+      border: none;
+    }
 
-			.hover-btn {
-				background: #ccf371;
-				color: #999999;
-			}
-		}
-	}
-</style>
+    .hover-btn {
+      background: #ccf371;
+      color: #999999;
+    }
+  }
+}
+</style>

+ 24 - 24
vite.config.ts

@@ -1,29 +1,29 @@
 import { defineConfig } from "vite";
 import uni from "@dcloudio/vite-plugin-uni";
-import { createSvgIconsPlugin } from 'vite-plugin-svg-icons';
-import commonjs from 'vite-plugin-commonjs';
-import path from 'path'
+import { createSvgIconsPlugin } from "vite-plugin-svg-icons";
+import commonjs from "vite-plugin-commonjs";
+import path from "path";
 // https://vitejs.dev/config/
 export default defineConfig({
-	plugins: [
-		uni(),
-		createSvgIconsPlugin({
-			iconDirs: [path.resolve(process.cwd(), 'src/static/icons')], // SVG 目录
-			symbolId: 'icon-[name]', // 符号 ID 格式
-		}),
-		commonjs({
-			include: ['./src/g3d.min.js'] // 兼容commonJS
-		})
-	],
+  plugins: [
+    uni(),
+    createSvgIconsPlugin({
+      iconDirs: [path.resolve(process.cwd(), "src/static/icons")], // SVG 目录
+      symbolId: "icon-[name]", // 符号 ID 格式
+    }),
+    commonjs({
+      include: ["./src/g3d.min.js"], // 兼容commonJS
+    }),
+  ],
 
-	// css公共变量
-	css: {
-		preprocessorOptions: {
-			less: {
-				additionalData: `@import "@/styles/variables.less";`
-			}
-		}
-	}
-	// envDir: './config/env',   // 指定环境文件目录
-	// envPrefix: ['VITE_', 'UNI_'] // 白名单前缀
-});
+  // css公共变量
+  css: {
+    preprocessorOptions: {
+      less: {
+        additionalData: `@import "@/styles/variables.less";`,
+      },
+    },
+  },
+  // envDir: './config/env',   // 指定环境文件目录
+  // envPrefix: ['VITE_', 'UNI_'] // 白名单前缀
+});

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно