Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
csssp-xcx-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
劳广强
csssp-xcx-h5
Commits
683787f2
提交
683787f2
authored
8月 04, 2023
作者:
黎九
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
迭代更新
上级
9b9dcb4f
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
244 行增加
和
3 行删除
+244
-3
launch.json
.hbuilderx/launch.json
+16
-0
pages.json
pages.json
+7
-0
Authentication.scss
pages/Authentication/Authentication.scss
+87
-0
Authentication.vue
pages/Authentication/Authentication.vue
+109
-0
index.vue
pages/mine/index.vue
+18
-1
index.vue
pages/record/index.vue
+7
-2
没有找到文件。
.hbuilderx/launch.json
0 → 100644
浏览文件 @
683787f2
{
"version"
:
"1.0"
,
"configurations"
:
[
{
"playground"
:
"standard"
,
"type"
:
"uni-app:app-ios"
},
{
"app-plus"
:
{
"launchtype"
:
"local"
},
"type"
:
"uniCloud"
}
]
}
pages.json
浏览文件 @
683787f2
...
...
@@ -22,6 +22,13 @@
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/Authentication/Authentication"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/article-detail/index"
,
"style"
:
{
...
...
pages/Authentication/Authentication.scss
0 → 100644
浏览文件 @
683787f2
.wrapper
{
height
:
300rpx
;
padding-top
:
50rpx
;
}
.oneText
{
width
:
90%
;
padding
:
10rpx
;
margin
:
auto
;
margin-bottom
:
30rpx
;
display
:
flex
;
}
.nameInp
{
width
:
100%
;
// border: 1px solid #cccc;
padding
:
22rpx
20rpx
;
background
:
#f5f5f5
;
border
:
2rpx
solid
#d3d3d3
;
font-size
:
24rpx
;
font-weight
:
400
;
color
:
#000000
;
}
.nameSpan
{
width
:
34%
;
text-align
:
center
;
line-height
:
80rpx
;
}
.cardSpan
{
width
:
34%
;
text-align
:
center
;
line-height
:
80rpx
;
}
.cardInp
{
width
:
100%
;
// border: 1px solid #cccc;
padding
:
22rpx
20rpx
;
background
:
#f5f5f5
;
border
:
2rpx
solid
#d3d3d3
;
font-size
:
24rpx
;
font-weight
:
400
;
color
:
#000000
;
}
.twoText
{
width
:
90%
;
margin
:
auto
;
padding
:
10rpx
;
display
:
flex
;
// border: 1px solid #cccc;
margin-bottom
:
30rpx
;
}
.cccc
{
margin-top
:
40rpx
;
width
:
40%
;
margin
:
auto
;
margin-bottom
:
100rpx
;
}
.postFrom
{
margin-top
:
40rpx
;
width
:
93%
;
margin
:
auto
;
// margin-bottom: 30rpx;
}
.cccBut
{
height
:
92rpx
;
background
:
linear-gradient
(
270deg
,
#8171fc
,
#a471fc
);
border-radius
:
46rpx
;
color
:
#fff
!
important
;
font-size
:
32rpx
;
font-weight
:
500
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
.fromBut
{
height
:
92rpx
;
background
:
linear-gradient
(
270deg
,
#8171fc
,
#a471fc
);
border-radius
:
46rpx
;
color
:
#fff
!
important
;
font-size
:
32rpx
;
font-weight
:
500
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
\ No newline at end of file
pages/Authentication/Authentication.vue
0 → 100644
浏览文件 @
683787f2
<
template
>
<view
class=
"wrapper"
>
<view
class=
"oneText"
>
<span
class=
"nameSpan"
>
姓名:
</span><input
type=
"text"
class=
"nameInp"
placeholder=
"请输入姓名"
v-model=
"name"
>
</view>
<view
class=
"twoText"
>
<span
class=
"cardSpan"
>
身份证号:
</span><input
type=
"text"
class=
"cardInp"
placeholder=
"请输入身份证号"
v-model=
"card"
>
</view>
<view
class=
"cccc"
>
<button
class=
"cccBut"
@
click=
"chooseVideo"
>
实名验证
</button>
</view>
<view
class=
"postFrom"
>
<button
class=
"fromBut"
@
click=
"getAuthen"
>
确认提交
</button>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
name
:
""
,
card
:
''
,
videoUrl
:
{},
videoYes
:
false
,
Jbool
:
false
};
},
methods
:
{
chooseVideo
()
{
// console.log(this.name,this.card);
if
(
this
.
name
==
''
)
{
return
uni
.
$u
.
toast
(
'请输入姓名'
);
}
else
if
(
this
.
card
==
''
)
{
return
uni
.
$u
.
toast
(
'请输入身份证号'
);
}
uni
.
chooseVideo
({
sourceType
:
[
'camera'
],
compressed
:
true
,
maxDuration
:
10
,
camera
:
'front'
,
success
:
res
=>
{
// console.log(res.tempFile);
this
.
videoYes
=
true
this
.
videoUrl
=
res
.
tempFile
},
fail
:
e
=>
{
console
.
log
(
e
);
}
})
},
getAuthen
()
{
if
(
this
.
Jbool
)
{
return
uni
.
showToast
({
title
:
"正在上传"
})
}
this
.
Jbool
=
true
// console.log(123);
// uni.$u.route({ url: 'pages/mine/index'});
if
(
this
.
name
==
''
)
{
return
uni
.
$u
.
toast
(
'请输入姓名'
);
}
else
if
(
this
.
card
==
''
)
{
return
uni
.
$u
.
toast
(
'请输入身份证号'
);
}
else
if
(
!
this
.
videoYes
)
{
return
uni
.
$u
.
toast
(
'请完成实名验证'
);
}
uni
.
uploadFile
({
url
:
"/api/user/real_person_auth"
,
file
:
this
.
videoUrl
,
name
:
"video"
,
formData
:
{
"name"
:
this
.
name
,
"id_card"
:
this
.
card
//其他表单字段,可根据需求添加
},
success
:
function
(
res
)
{
this
.
Jbool
=
false
uni
.
hideLoading
()
uni
.
showToast
({
title
:
"上传成功"
})
// console.log(res);
setTimeout
(
function
()
{
uni
.
navigateBack
()
},
2000
)
},
fail
:
function
(
err
)
{
this
.
Jbool
=
false
uni
.
hideLoading
()
uni
.
showToast
({
title
:
"上传失败"
})
}
})
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
@import
'Authentication.scss'
;
// @import 'index.scss';
</
style
>
\ No newline at end of file
pages/mine/index.vue
浏览文件 @
683787f2
...
...
@@ -39,6 +39,13 @@
</view>
<image
mode=
"aspectFill"
class=
"arrow_right"
src=
"/static/icon/arrow_right1@2x.png"
/>
</view>
<view
class=
"my_items"
@
click=
"getAuthentication"
>
<view
class=
"my_item_left"
>
<image
mode=
"aspectFill"
class=
"task_icon"
src=
"/static/icon/ic_wd_gy@2x.png"
/>
<view
class=
"item_name"
>
{{
!
Look
?
'实名验证'
:
'已完成认证'
}}
</view>
</view>
<image
mode=
"aspectFill"
class=
"arrow_right"
src=
"/static/icon/arrow_right1@2x.png"
/>
</view>
<!-- 注销登录 -->
<!--
<view
class=
"my_items"
@
click=
"tailor"
>
-->
<!--
<view
class=
"my_item_left"
>
-->
...
...
@@ -72,6 +79,7 @@ export default {
token
:
null
,
canIUseGetUserProfile
:
false
,
userDetail
:
{},
Look
:
true
};
},
...
...
@@ -85,7 +93,9 @@ export default {
methods
:
{
async
fetchUserInfo
()
{
const
{
detail
}
=
await
uni
.
$u
.
http
.
get
(
'/api/user_center/detail'
);
console
.
log
(
detail
);
this
.
userDetail
=
detail
;
this
.
Look
=
detail
.
is_real_auth
},
myPhoto
()
{
...
...
@@ -94,7 +104,15 @@ export default {
about
()
{
uni
.
$u
.
route
({
url
:
'pages/mine-about/index'
});
},
getAuthentication
(){
if
(
!
this
.
Look
){
uni
.
$u
.
route
({
url
:
'pages/Authentication/Authentication'
});
}
// console.log(123);
uni
.
$u
.
toast
(
'已经完成实名认证'
);
},
async
tailor
()
{
try
{
...
...
@@ -103,7 +121,6 @@ export default {
}
finally
{
}
},
myIntegral
()
{
uni
.
$u
.
route
({
url
:
'pages/mine-integral/index'
});
},
...
...
pages/record/index.vue
浏览文件 @
683787f2
...
...
@@ -32,6 +32,7 @@
</u-modal>
-->
</view>
</view>
</
template
>
...
...
@@ -75,7 +76,8 @@ export default {
computed
:
{
modalHeight
()
{
return
Math
.
ceil
(
window
.
innerHeight
*
2
*
0.6
);
// console.log(innerHeight);
// return Math.ceil(window.innerHeight * 2 * 0.6);
},
},
...
...
@@ -155,7 +157,10 @@ export default {
}
,
});
},
getIsFirstRecord
()
{
let
isFirstRecord
=
uni
.
getStorageSync
(
'isFirstRecord'
);
if
(
!
isFirstRecord
){
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论