Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
basic-uniapp-v3
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-uniapp-v3
Commits
accf23df
提交
accf23df
authored
1月 10, 2026
作者:
吴佳伟
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 打开APP时,服务协议和隐私政策弹窗风格与APP内弹窗风格保持一致;
上级
8e39ceea
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
165 行增加
和
51 行删除
+165
-51
login.vue
src/pages/login/login.vue
+165
-51
没有找到文件。
src/pages/login/login.vue
浏览文件 @
accf23df
...
...
@@ -196,13 +196,14 @@
model
.
show
=
false
})
function
onReadConfirm
(
val
)
{
if
(
val
.
index
===
0
)
{
model
.
form
.
data
.
read
=
false
}
else
{
function
handleConfirm
()
{
model
.
form
.
data
.
read
=
true
login
()
readConfirmShow
.
value
=
false
}
function
handleCancel
()
{
model
.
form
.
data
.
read
=
false
readConfirmShow
.
value
=
false
}
</
script
>
...
...
@@ -240,8 +241,7 @@
backgroundColor=
"transparent"
borderColor=
"transparent"
maxlength=
"11"
>
</fui-input>
/>
</view>
<view
class=
"user_phone mt50"
>
<image
class=
"user_phone_img"
src=
"/static/images/register/sms.png"
/>
...
...
@@ -283,7 +283,6 @@
:loading=
"model.loading"
/>
</view>
</view>
</fui-form>
...
...
@@ -303,14 +302,14 @@
@
change=
"(e) => (model.form.data.read = e.checked)"
style=
"margin-right: 10rpx; width: 32rpx; height: 32rpx; margin-top: 2rpx"
/>
<text
style=
"color: #999;;font-size:28rpx;
"
>
已阅读并同意
</text>
<text
style=
"color: #999; font-size: 28rpx
"
>
已阅读并同意
</text>
</fui-label>
<fui-text
@
tap=
"Link.to(Link.services, '服务协议')"
size=
"28rpx"
text=
"《服务协议》"
color=
"#4da25b"
/><text
style=
"color: #999;;font-size:28rpx;
"
>
与
</text>
/><text
style=
"color: #999; font-size: 28rpx
"
>
与
</text>
<fui-text
@
tap=
"Link.to(Link.privacy, '隐私政策')"
size=
"28rpx"
...
...
@@ -324,26 +323,41 @@
<fui-safe-area
/>
</view>
</fui-checkbox-group>
<fui-modal
:show=
"readConfirmShow"
title=
"服务协议及隐私保护"
:buttons=
"[
{ text: '不同意', plain: true },
{ text: '同意', plain: false, color: '#fff' },
]"
@click="onReadConfirm"
>
<view
class=
"confirm-dialog-overlay"
v-show=
"readConfirmShow"
>
<view
class=
"confirm-dialog-container"
>
<!-- 标题 -->
<view
class=
"dialog-title"
>
服务协议及隐私保护
</view>
<!-- 内容 -->
<view
class=
"dialog-content"
>
<text
class=
"fui-descr"
>
<text>
为了更好地保障您的合法权益,请您阅读并同意以下协议
</text>
<fui-text
@
tap=
"Link.to(Link.services, '服务协议')"
size=
"28rpx"
text=
"《服务协议》"
color=
"#1890FF
"
color=
"#4da25b
"
/>
和
<fui-text
@
tap=
"Link.to(Link.privacy, '隐私政策')"
size=
"28rpx"
text=
"《隐私政策》"
color=
"#1890FF"
/>
<fui-text
@
tap=
"Link.to(Link.privacy, '隐私政策')"
size=
"28rpx"
text=
"《隐私政策》"
color=
"#4da25b"
/>
</text>
</fui-modal>
</view>
<!-- 按钮组 -->
<view
class=
"dialog-buttons"
>
<view
class=
"cancel-btn"
@
click=
"handleCancel"
>
<text
class=
"cancel-text"
>
不同意
</text>
</view>
<view
class=
"confirm-btn"
@
click=
"handleConfirm"
>
<text
class=
"confirm-text"
>
同意
</text>
</view>
</view>
</view>
</view>
</view>
</
template
>
...
...
@@ -366,36 +380,36 @@
block-size
:
100%
100%
;
background-color
:
#fafefc
;
.login_top_bg
{
width
:
750
rpx
;
height
:
1324
rpx
;
position
:
absolute
;
left
:
0
rpx
;
top
:
0
rpx
;
.login_top_bg
{
width
:
750
rpx
;
height
:
1324
rpx
;
position
:
absolute
;
left
:
0
rpx
;
top
:
0
rpx
;
}
.login_top_warp
{
width
:
750
rpx
;
height
:
482
rpx
;
.login_top_warp
{
width
:
750
rpx
;
height
:
482
rpx
;
position
:
relative
;
.login_hello
{
.login_hello
{
position
:
absolute
;
left
:
50
rpx
;
top
:
226
rpx
;
color
:
rgb
(
51
51
51
/
100%
);
.text_hello
{
.text_hello
{
font-size
:
32
rpx
;
font-weight
:
400
;
letter-spacing
:
0
rpx
;
line-height
:
40
rpx
;
}
.login_server_name
{
margin-top
:
32
rpx
;
.login_server_name
{
margin-top
:
32
rpx
;
.text_server_name
{
.text_server_name
{
font-size
:
40
rpx
;
font-weight
:
500
;
letter-spacing
:
0
rpx
;
...
...
@@ -405,31 +419,31 @@
}
}
.login_content
{
display
:
flex
;
.login_content
{
display
:
flex
;
justify-content
:
center
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
position
:
relative
;
.login-input-area
{
.login-input-area
{
width
:
650
rpx
;
//
border
:
1
rpx
red
solid
;
.user_phone
{
display
:
flex
;
.user_phone
{
display
:
flex
;
align-items
:
center
;
.user_phone_img
{
.user_phone_img
{
width
:
40
rpx
;
height
:
40
rpx
;
}
}
.user_text_view
{
margin-left
:
12
rpx
;
.user_text_view
{
margin-left
:
12
rpx
;
height
:
40
rpx
;
line-height
:
40
rpx
;
.view_text
{
.view_text
{
font-size
:
30
rpx
;
font-weight
:
500
;
letter-spacing
:
0
rpx
;
...
...
@@ -437,19 +451,19 @@
}
}
.input-bottom-border
{
.input-bottom-border
{
border-bottom
:
2
rpx
#eee
solid
;
}
.mt50
{
margin-top
:
50
rpx
;
.mt50
{
margin-top
:
50
rpx
;
}
}
}
.submit_btn_view
{
margin-top
:
120
rpx
;
width
:
650
rpx
;
.submit_btn_view
{
margin-top
:
120
rpx
;
width
:
650
rpx
;
}
.fui-descr
{
...
...
@@ -505,4 +519,104 @@
color
:
cadetblue
;
}
}
.confirm-dialog-overlay
{
position
:
fixed
;
inset
:
0
;
background-color
:
rgb
(
0
0
0
/
50%
);
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
z-index
:
99999
;
}
.confirm-dialog-container
{
position
:
relative
;
width
:
600
rpx
;
background
:
linear-gradient
(
180deg
,
#e8f5e9
0%
,
#fff
30%
);
border-radius
:
32
rpx
;
padding
:
60
rpx
48
rpx
48
rpx
;
box-shadow
:
0
8
rpx
32
rpx
rgb
(
0
0
0
/
10%
);
}
.close-btn
{
position
:
absolute
;
top
:
24
rpx
;
right
:
24
rpx
;
width
:
48
rpx
;
height
:
48
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
cursor
:
pointer
;
}
.close-icon
{
font-size
:
36
rpx
;
color
:
#999
;
font-weight
:
300
;
}
.dialog-title
{
font-size
:
36
rpx
;
font-weight
:
600
;
color
:
#333
;
text-align
:
center
;
margin-bottom
:
32
rpx
;
}
.dialog-content
{
font-size
:
28
rpx
;
color
:
#666
;
text-align
:
center
;
line-height
:
40
rpx
;
margin-bottom
:
48
rpx
;
}
.dialog-buttons
{
display
:
flex
;
gap
:
24
rpx
;
}
.cancel-btn
,
.confirm-btn
{
flex
:
1
;
height
:
80
rpx
;
border-radius
:
40
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
cursor
:
pointer
;
}
.cancel-btn
{
background-color
:
#fff
;
border
:
2
rpx
solid
#5db66f
;
}
.cancel-text
{
font-size
:
28
rpx
;
color
:
#5db66f
;
font-weight
:
500
;
}
.confirm-btn
{
background
:
linear-gradient
(
135deg
,
#5db66f
0%
,
#4caf50
100%
);
box-shadow
:
0
4
rpx
12
rpx
rgb
(
93
182
111
/
30%
);
}
.confirm-text
{
font-size
:
28
rpx
;
color
:
#fff
;
font-weight
:
500
;
}
.cancel-btn
:active
{
opacity
:
0.8
;
}
.confirm-btn
:active
{
opacity
:
0.9
;
transform
:
scale
(
0.98
);
}
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论