From b5f084460e9e639358fbf91056a86be8d0a5c4b2 Mon Sep 17 00:00:00 2001
From: yaolonglong <yaolonglong15@163.com>
Date: 星期四, 09 十月 2025 20:18:57 +0800
Subject: [PATCH] 获取验证码功能
---
policy/components/tabs.vue | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/policy/components/tabs.vue b/policy/components/tabs.vue
index 84ebf76..3f39d7b 100644
--- a/policy/components/tabs.vue
+++ b/policy/components/tabs.vue
@@ -29,6 +29,9 @@
success: val => {
if(val.errMsg === 'scanCode:ok'){
console.log(val.result)
+ uni.navigateTo({
+ url: `/policy/scodePage/scodePage?code=${val.result}`
+ })
}
}
})
@@ -66,14 +69,22 @@
.code{
width: 108rpx;
height: 108rpx;
- position: absolute;
- top: -20rpx;
- left: 0;
+ // position: absolute;
+ // top: -20rpx;
+ // left: 0;
}
.relative{
position: relative;
- width: 108rpx;
- height: 108rpx;
+ width: 136rpx;
+ height: 136rpx;
+ background-color: white;
+ border-radius: 50%;
+ padding: 12rpx;
+ top: -40rpx;
+ display: flex;
+ box-sizing: border-box;
+ justify-content: center;
+ align-items: center;
}
}
</style>
\ No newline at end of file
--
Gitblit v1.9.1