Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 181a9e04
authored
Sep 09, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
设备编码
1 parent
0b70c78e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
44 deletions
pages/common/customerDetail.vue
pages/common/login.vue
pages/common/customerDetail.vue
View file @
181a9e0
...
@@ -245,12 +245,12 @@ export default {
...
@@ -245,12 +245,12 @@ export default {
// }
// }
// })
// })
// return
// return
url
=
`/pages/common/webview?fileUrl=
${
fileUrl
}
&title=
${
item
.
title
}
`
url
=
`/pages/common/webview?fileUrl=
${
fileUrl
}
&title=
${
item
.
title
}
&id=
${
item
.
id
}
&visitsId=
${
this
.
visitsId
}
`
}
}
if
(
item
.
type
==
1
||
item
.
type
==
0
)
url
=
`/pages/boutique/preview?tabName=
${
item
.
title
}
&sourceType=
${
item
.
type
==
1
?
2
:
1
}
&detailUrl=
${
fileUrl
}
&id=
${
item
.
id
}
&visitsId=
${
this
.
visitsId
}
`
if
(
item
.
type
==
1
||
item
.
type
==
0
)
url
=
`/pages/boutique/preview?tabName=
${
item
.
title
}
&sourceType=
${
item
.
type
==
1
?
2
:
1
}
&detailUrl=
${
fileUrl
}
&id=
${
item
.
id
}
&visitsId=
${
this
.
visitsId
}
`
}
}
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`
${
url
}
&id=
${
item
.
id
}
&visitsId=
${
this
.
visitsId
}
`
url
:
`
${
url
}
`
})
})
},
},
pageonReachBottom
()
{
pageonReachBottom
()
{
...
...
pages/common/login.vue
View file @
181a9e0
...
@@ -5,64 +5,42 @@
...
@@ -5,64 +5,42 @@
<view
class=
"title"
>
登录
</view>
<view
class=
"title"
>
登录
</view>
<view
class=
"sub-title"
>
手机号码登录
</view>
<view
class=
"sub-title"
>
手机号码登录
</view>
<view
class=
"input"
>
<view
class=
"input"
>
<input
<input
type=
"tel"
:value=
"mobile"
placeholder=
"请输入手机号"
maxlength=
"11"
@
blur=
"input($event, 'mobile')"
:key=
"dateKey.mobile"
/>
type=
"tel"
:value=
"mobile"
placeholder=
"请输入手机号"
maxlength=
"11"
@
blur=
"input($event, 'mobile')"
:key=
"dateKey.mobile"
/>
<template
v-if=
"mobile"
>
<template
v-if=
"mobile"
>
<view
class=
"icon"
@
click=
"mobile = ''"
>
<view
class=
"icon"
@
click=
"mobile = ''"
>
<icon
type=
"clear"
size=
"16"
color=
"#000"
>
</icon>
<icon
type=
"clear"
size=
"16"
color=
"#000"
></icon>
</view>
</view>
</
template
>
</
template
>
</view>
</view>
<view
class=
"input"
>
<view
class=
"input"
>
<input
<input
type=
"number"
:value=
"code"
placeholder=
"请输入验证码"
maxlength=
"4"
@
blur=
"input($event, 'code')"
:key=
"dateKey.code"
/>
type=
"number"
:value=
"code"
placeholder=
"请输入验证码"
maxlength=
"4"
@
blur=
"input($event, 'code')"
:key=
"dateKey.code"
/>
<
template
v-if=
"code"
>
<
template
v-if=
"code"
>
<view
class=
"icon"
@
click=
"code = ''"
>
<view
class=
"icon"
@
click=
"code = ''"
>
<icon
type=
"clear"
size=
"16"
color=
"#000"
>
</icon>
<icon
type=
"clear"
size=
"16"
color=
"#000"
></icon>
</view>
</view>
</
template
>
</
template
>
<view
<view
:class=
"['code-btn', `${count ? 'code-disabled' : ''}`]"
@
click=
"getSmsCode"
>
{{ count ? `重新发送(${count}s)` : '获取验证码' }}
</view>
:class=
"['code-btn', `${count ? 'code-disabled' : ''}`]"
@
click=
"getSmsCode"
>
{{ count ? `重新发送(${count}s)` : "获取验证码" }}
</view
>
</view>
</view>
<button
class=
"btn"
@
click=
"login"
>
登录
</button>
<button
class=
"btn"
@
click=
"login"
>
登录
</button>
<view
class=
"form-footer"
>
<view
class=
"form-footer"
>
<view
class=
"autoLogin"
@
click=
"readingStatus = !readingStatus"
>
<view
class=
"autoLogin"
@
click=
"readingStatus = !readingStatus"
>
<uni-icons
<uni-icons
:type=
"`${readingStatus ? 'checkbox-filled' : 'circle'}`"
:size=
"18"
:color=
"`${readingStatus ? '#2C66F7' : '#858A94'}`"
></uni-icons>
:type=
"`${readingStatus ? 'checkbox-filled' : 'circle'}`"
我已阅读并同意
:size=
"18"
<text
@
click
.
stop=
"jumpUrl()"
>
《用户隐私协议》
</text>
:color=
"`${readingStatus ? '#2C66F7' : '#858A94'}`"
></uni-icons>
我已阅读并同意
<text
@
click
.
stop=
"jumpUrl()"
>
《用户隐私协议》
</text>
</view>
</view>
<view
class=
"autoLogin"
@
click=
"noSignIn = !noSignIn"
>
<view
class=
"autoLogin"
@
click=
"noSignIn = !noSignIn"
>
<uni-icons
<uni-icons
:type=
"`${noSignIn ? 'checkbox-filled' : 'circle'}`"
:size=
"18"
:color=
"`${noSignIn ? '#2C66F7' : '#858A94'}`"
></uni-icons>
:type=
"`${noSignIn ? 'checkbox-filled' : 'circle'}`"
:size=
"18"
:color=
"`${noSignIn ? '#2C66F7' : '#858A94'}`"
></uni-icons>
30天内免登录
30天内免登录
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"app-code flex"
>
APP编码:{{ deviceId }}
<view
class=
"sprite-icon icon-clone"
@
click=
"copyText"
></view>
</view>
<update-box
/>
<update-box
/>
</view>
</view>
</template>
</template>
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
;
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
;
export
default
{
export
default
{
...
@@ -83,8 +61,23 @@ export default {
...
@@ -83,8 +61,23 @@ export default {
if
(
options
.
mobile
)
this
.
mobile
=
options
.
mobile
if
(
options
.
mobile
)
this
.
mobile
=
options
.
mobile
const
noSignInUuid
=
uni
.
$storage
.
get
(
'noSignInUuid'
)
const
noSignInUuid
=
uni
.
$storage
.
get
(
'noSignInUuid'
)
if
(
noSignInUuid
)
this
.
autoLogin
(
noSignInUuid
)
if
(
noSignInUuid
)
this
.
autoLogin
(
noSignInUuid
)
},
const
{
methods
:
{
deviceId
}
=
uni
.
getDeviceInfo
()
this
.
deviceId
=
deviceId
},
methods
:
{
copyText
()
{
uni
.
setClipboardData
({
data
:
this
.
deviceId
,
success
:
function
()
{
uni
.
showToast
({
title
:
'复制成功'
,
icon
:
'success'
});
}
});
},
async
autoLogin
(
noSignInUuid
)
{
async
autoLogin
(
noSignInUuid
)
{
uni
.
showLoading
({
uni
.
showLoading
({
mask
:
true
mask
:
true
...
@@ -165,7 +158,6 @@ export default {
...
@@ -165,7 +158,6 @@ export default {
});
});
}
}
},
200
),
},
200
),
// 获取登录账号下园区店列表
// 获取登录账号下园区店列表
getAccountLoginList
(
loginUserInfoList
)
{
getAccountLoginList
(
loginUserInfoList
)
{
let
stepIndex
=
loginUserInfoList
?.
length
==
1
?
1
:
0
let
stepIndex
=
loginUserInfoList
?.
length
==
1
?
1
:
0
...
@@ -205,7 +197,6 @@ export default {
...
@@ -205,7 +197,6 @@ export default {
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.bg
{
.bg
{
position
:
fixed
;
position
:
fixed
;
...
@@ -213,7 +204,7 @@ export default {
...
@@ -213,7 +204,7 @@ export default {
height
:
100%
;
height
:
100%
;
left
:
0
;
left
:
0
;
top
:
0
;
top
:
0
;
background-image
:
url(
"../../assets/images/login/bg.webp"
)
;
background-image
:
url(
'../../assets/images/login/bg.webp'
)
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
}
}
.login
{
.login
{
...
@@ -281,7 +272,7 @@ export default {
...
@@ -281,7 +272,7 @@ export default {
color
:
#ffffff
;
color
:
#ffffff
;
}
}
.btn
[
disabled
]
:not
([
type
]),
.btn
[
disabled
]
:not
([
type
]),
.btn
[
disabled
][
type
=
"default"
]
{
.btn
[
disabled
][
type
=
'default'
]
{
background
:
#c9c9c9
!important
;
background
:
#c9c9c9
!important
;
}
}
.form-footer
{
.form-footer
{
...
@@ -305,4 +296,18 @@ export default {
...
@@ -305,4 +296,18 @@ export default {
}
}
}
}
}
}
.app-code
{
position
:
fixed
;
bottom
:
20
rpx
;
left
:
50%
;
transform
:
translate
(
-50%
);
font-size
:
24
rpx
;
color
:
#999999
;
line-height
:
40
rpx
;
.icon-clone
{
width
:
24
rpx
;
height
:
24
rpx
;
margin-left
:
20
rpx
;
}
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment