Browse Source

对接接口

master
前端-胡立永 2 months ago
parent
commit
b43396cc4f
15 changed files with 68 additions and 17 deletions
  1. +6
    -6
      pages/index/center.vue
  2. +6
    -1
      pages/index/index.vue
  3. +2
    -2
      pages/subPack/autonym/autonym.vue
  4. +54
    -8
      pages/subPack/human/human.vue
  5. BIN
      pages/subPack/static/1.png
  6. BIN
      pages/subPack/static/2.png
  7. BIN
      pages/subPack/static/3.png
  8. BIN
      pages/subPack/static/4.png
  9. BIN
      pages/subPack/static/5.png
  10. BIN
      pages/subPack/static/6.png
  11. BIN
      static/image/center/1.png
  12. BIN
      static/image/center/2.png
  13. BIN
      static/image/center/3.png
  14. BIN
      static/image/center/4.png
  15. BIN
      static/image/success.png

+ 6
- 6
pages/index/center.vue View File

@ -13,7 +13,7 @@
</div>
</div>
<image class="user-bg"
src="https://tennis-oss.xzaiyp.top/2024-10-22/b51d97b2-f2a1-4471-9b6d-7fbc2f3f774a.png" mode="widthFix">
src="/static/image/center/1.png" mode="widthFix">
</image>
</div>
@ -23,14 +23,14 @@
<uv-cell @click="clickMenu(1)" title="打卡记录" isLink arrow-direction="right" center>
<template v-slot:icon>
<image style="width: 30rpx;"
src="https://tennis-oss.xzaiyp.top/2024-10-22/a57869c1-1451-47db-805d-8e29f5c37637.png"
src="/static/image/center/2.png"
mode="widthFix"></image>
</template>
</uv-cell>
<uv-cell @click="clickMenu(2)" icon="setting-fill" isLink arrow-direction="right" title="实名认证" center>
<template v-slot:icon>
<image style="width: 30rpx;"
src="https://tennis-oss.xzaiyp.top/2024-10-22/a57869c1-1451-47db-805d-8e29f5c37637.png"
src="/static/image/center/2.png"
mode="widthFix"></image>
</template>
</uv-cell>
@ -38,14 +38,14 @@
title="退出登录" center>
<template v-slot:icon>
<image style="width: 30rpx;"
src="https://tennis-oss.xzaiyp.top/2024-10-22/a7f27701-49fe-4a1f-8171-19efb1af1102.png"
src="/static/image/center/3.png"
mode="widthFix"></image>
</template>
</uv-cell>
<uv-cell @click="clickMenu" icon="integral-fill" title="版本" value="版本1.0" center>
<template v-slot:icon>
<image style="width: 30rpx;"
src="https://tennis-oss.xzaiyp.top/2024-10-22/6878084d-4c1e-4577-8c8b-dd92aebbe2a2.png"
src="/static/image/center/4.png"
mode="widthFix"></image>
</template>
</uv-cell>
@ -54,7 +54,7 @@
icon="integral-fill" title="项目管理" isLink center>
<template v-slot:icon>
<image style="width: 30rpx;"
src="https://tennis-oss.xzaiyp.top/2024-10-22/6878084d-4c1e-4577-8c8b-dd92aebbe2a2.png"
src="/static/image/center/4.png"
mode="widthFix"></image>
</template>
</uv-cell>


+ 6
- 1
pages/index/index.vue View File

@ -45,6 +45,7 @@
<uv-icon name="arrow-right" color="#000"></uv-icon>
</div>
</div>
<!-- tab栏 -->
<tabbar :select="0"></tabbar>
@ -102,6 +103,11 @@
},
toClock(){
// uni.navigateTo({
// url: "/pages/subPack/human/human"
// })
//
this.$api('clockTime', {
lon : this.longitude,
@ -189,7 +195,6 @@
.home {
background: $bg-color;
min-height: 100vh;
//
.home-top {


+ 2
- 2
pages/subPack/autonym/autonym.vue View File

@ -3,7 +3,7 @@
<view class="autonym">
<!-- 实名认证顶部背景 -->
<view class="autonym-top">
<image class="bg" src="https://tennis-oss.xzaiyp.top/2024-10-22/b0182213-365c-482d-9218-e532df187fdc.png" mode="widthFix"></image>
<image class="bg" src="../static/5.png" mode="widthFix"></image>
</view>
<!-- 实名认证表单 -->
@ -35,7 +35,7 @@
<!-- 说明 -->
<view class="autonym-info">
<image class="autonum-info-icon" src="https://tennis-oss.xzaiyp.top/2024-10-22/fb858755-ada3-49c3-87c7-c28a585dcbc0.png" mode="widthFix"></image>
<image class="autonum-info-icon" src="../static/6.png" mode="widthFix"></image>
<view class="text">实名仅用于您是否为真人用户不会对信息做任何采集与保留请放心使用</view>
</view>


+ 54
- 8
pages/subPack/human/human.vue View File

@ -11,7 +11,7 @@
<!-- 人脸识别图片 -->
<view class="human-face-img">
<image v-if="!isPhoto"
src="https://tennis-oss.xzaiyp.top/2024-10-22/508376c5-64b2-472f-8e25-a2469b632a39.png" mode="widthFix">
src="../static/1.png" mode="widthFix">
</image>
<image v-else-if="!!tempImg"
@ -40,17 +40,17 @@
<!-- 说明 -->
<view class="desc">
<view class="desc-item">
<image src="https://tennis-oss.xzaiyp.top/2024-10-22/a0bf2da9-c25a-4d5c-8c77-7318bd86227d.png"
<image src="../static/2.png"
mode="widthFix"></image>
<view class="text">避免遮挡</view>
</view>
<view class="desc-item">
<image src="https://tennis-oss.xzaiyp.top/2024-10-22/feb72bfb-8271-4e48-8081-d72811543918.png"
<image src="../static/3.png"
mode="widthFix"></image>
<view class="text">光线充足</view>
</view>
<view class="desc-item">
<image src="https://tennis-oss.xzaiyp.top/2024-10-22/5fd8a6a7-a13e-44d6-acf1-a7ada94c699d.png"
<image src="../static/4.png"
mode="widthFix"></image>
<view class="text">正对充足</view>
</view>
@ -86,6 +86,35 @@
</uv-upload>
</view>
<uv-popup ref="successPopup" :round="30"
>
<view class="successPopup">
<image src="/static/image/success.png"
style="width: 320rpx;"
mode="widthFix"></image>
<view class="text">
核验成功
</view>
<view class="btn">
<uv-upload
multiple
:maxCount="1"
capture="camera"
height="180rpx"
@afterRead="afterRead">
<view style="display: flex;justify-content: center;
width: 600rpx;">
拍照打卡
</view>
</uv-upload>
</view>
</view>
</uv-popup>
</view>
</template>
@ -337,11 +366,12 @@
this.$api('clockVerifyFace',
this.form, res => {
if(res.code == 200){
uni.showToast({
title: '核验成功!',
icon: 'icon'
})
// uni.showToast({
// title: '',
// icon: 'icon'
// })
this.isVerifyFace = true
this.$refs.successPopup.open()
}else{
this.tempImg = ''
this.form.pic = ''
@ -356,6 +386,22 @@
.human-face {
min-height: 100vh;
background: white;
.successPopup{
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
width: 520rpx;
color: #20D76D;
gap: 50rpx;
padding: 40rpx;
.text{
font-weight: 900;
font-size: 40rpx;
}
}
//
.human-face-title {


BIN
pages/subPack/static/1.png View File

Before After
Width: 1338  |  Height: 1338  |  Size: 124 KiB

BIN
pages/subPack/static/2.png View File

Before After
Width: 276  |  Height: 276  |  Size: 14 KiB

BIN
pages/subPack/static/3.png View File

Before After
Width: 274  |  Height: 274  |  Size: 14 KiB

BIN
pages/subPack/static/4.png View File

Before After
Width: 273  |  Height: 273  |  Size: 12 KiB

BIN
pages/subPack/static/5.png View File

Before After
Width: 2250  |  Height: 1466  |  Size: 152 KiB

BIN
pages/subPack/static/6.png View File

Before After
Width: 70  |  Height: 70  |  Size: 3.8 KiB

BIN
static/image/center/1.png View File

Before After
Width: 2250  |  Height: 978  |  Size: 41 KiB

BIN
static/image/center/2.png View File

Before After
Width: 112  |  Height: 108  |  Size: 2.9 KiB

BIN
static/image/center/3.png View File

Before After
Width: 111  |  Height: 103  |  Size: 5.7 KiB

BIN
static/image/center/4.png View File

Before After
Width: 116  |  Height: 116  |  Size: 7.9 KiB

BIN
static/image/success.png View File

Before After
Width: 234  |  Height: 234  |  Size: 12 KiB

Loading…
Cancel
Save