Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intel_promotion_uniapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘怀志
intel_promotion_uniapp
Commits
942cea17
Commit
942cea17
authored
Aug 03, 2024
by
刘帅阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
d1d43d2c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
25 deletions
+56
-25
config.js
common/config.js
+2
-2
login.vue
login/login/login.vue
+10
-10
passwordLogin.vue
login/login/passwordLogin.vue
+44
-13
No files found.
common/config.js
View file @
942cea17
...
@@ -4,6 +4,6 @@ export default {
...
@@ -4,6 +4,6 @@ export default {
// baseApi:'/prod-api'//web生产
// baseApi:'/prod-api'//web生产
// baseApi: 'https://qf.91isoft.com/cshop'//本地测试
// baseApi: 'https://qf.91isoft.com/cshop'//本地测试
// baseApi: 'https://project.91isoft.com/zntg/api'//本地测试
// baseApi: 'https://project.91isoft.com/zntg/api'//本地测试
baseApi
:
'http://127.0.0.1:8099'
//本地测试
//
baseApi: 'http://127.0.0.1:8099'//本地测试
//
baseApi: 'https://www.hzyzntg.com/api'//本地测试
baseApi
:
'https://www.hzyzntg.com/api'
//本地测试
}
}
login/login/login.vue
View file @
942cea17
...
@@ -4,14 +4,19 @@
...
@@ -4,14 +4,19 @@
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"title"
>
欢迎登录鸿泽云智能推广系统
</view>
<view
class=
"title"
>
欢迎登录鸿泽云智能推广系统
</view>
<u-form-item>
<u-form-item>
<u-input
type=
"number"
v-model=
"tel"
placeholder=
"请输入手机号
"
/>
<u-input
v-model=
"tel"
placeholder=
"请输入手机号"
type=
"number
"
/>
</u-form-item>
</u-form-item>
<!--
<view
class=
"tips"
>
未注册的手机号验证后自动创建鸿泽云智能推广系统账号
</view>
-->
<!--
<view
class=
"tips"
>
未注册的手机号验证后自动创建鸿泽云智能推广系统账号
</view>
-->
<button
@
tap=
"submit"
:style=
"[inputStyle]"
class=
"getSmsCode
"
>
获取短信验证码
</button>
<button
:style=
"[inputStyle]"
class=
"getSmsCode"
@
tap=
"submit
"
>
获取短信验证码
</button>
<view
class=
"alternative"
>
<view
class=
"alternative"
>
<view
class=
"password"
@
click=
"passwordLogin"
>
密码登录
</view>
<view
class=
"password"
@
click=
"passwordLogin"
>
密码登录
</view>
<view
class=
"issue"
>
遇到问题
</view>
<view
class=
"hint"
>
登录代表同意
<text
class=
"link"
@
click=
"goPage('/login/login/userProtocol')"
>
鸿泽云智能推广系统用户协议
</text>
、
<text
class=
"link"
@
click=
"goPage('/login/login/privateProtocol')"
>
隐私政策,
</text>
并授权使用您的鸿泽云智能推广系统账号信息(如昵称、头像、收获地址)以便您统一管理
</view>
</view>
</view>
</view>
</view>
<view
class=
"bottom"
>
<view
class=
"bottom"
>
...
@@ -19,7 +24,7 @@
...
@@ -19,7 +24,7 @@
<button
class=
"wechat item"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
<button
class=
"wechat item"
open-type=
"getPhoneNumber"
@
getphonenumber=
"getPhoneNumber"
>
<view
class=
"icon"
>
<view
class=
"icon"
>
<u-icon
size=
"70"
name=
"weixin-fill"
color=
"rgb(83,194,64)
"
></u-icon>
<u-icon
color=
"rgb(83,194,64)"
name=
"weixin-fill"
size=
"70
"
></u-icon>
</view>
</view>
微信
微信
</button>
</button>
...
@@ -31,12 +36,7 @@
...
@@ -31,12 +36,7 @@
</view>
-->
</view>
-->
</view>
</view>
<view
class=
"hint"
>
登录代表同意
<text
class=
"link"
@
click=
"goPage('/login/login/userProtocol')"
>
鸿泽云智能推广系统用户协议
</text>
、
<text
class=
"link"
@
click=
"goPage('/login/login/privateProtocol')"
>
隐私政策,
</text>
并授权使用您的鸿泽云智能推广系统账号信息(如昵称、头像、收获地址)以便您统一管理
</view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
...
login/login/passwordLogin.vue
View file @
942cea17
...
@@ -3,30 +3,42 @@
...
@@ -3,30 +3,42 @@
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"title"
>
密码登录
</view>
<view
class=
"title"
>
密码登录
</view>
<u-form-item>
<u-form-item>
<u-input
type=
"text"
v-model=
"tel"
placeholder=
"请输入身份证号/账号
"
/>
<u-input
v-model=
"tel"
placeholder=
"请输入身份证号/账号"
type=
"text
"
/>
</u-form-item>
</u-form-item>
<u-form-item>
<u-form-item>
<u-input
type=
"password"
v-model=
"password"
placeholder=
"请输入密码
"
/>
<u-input
v-model=
"password"
placeholder=
"请输入密码"
type=
"password
"
/>
</u-form-item>
</u-form-item>
<u-form-item>
<u-form-item>
<view
style=
"display: flex;height: 90rpx;"
>
<view
style=
"display: flex;height: 90rpx;"
>
<u-input
type=
"text"
v-model=
"code"
placeholder=
"请输入验证码
"
/>
<u-input
v-model=
"code"
placeholder=
"请输入验证码"
type=
"text
"
/>
<image
:src=
"codeUrl"
@
click=
"getCode"
style=
"width: 50%;height: 100%;
"
></image>
<image
:src=
"codeUrl"
style=
"width: 50%;height: 100%;"
@
click=
"getCode
"
></image>
</view>
</view>
</u-form-item>
</u-form-item>
<button
@
tap=
"submit"
:style=
"[inputStyle]"
class=
"getSmsCode"
>
登录
</button>
<button
:style=
"[inputStyle]"
class=
"getSmsCode"
@
tap=
"submit"
>
登录
</button>
<view
class=
"alternative"
>
<view
class=
"alternative"
>
<!--
<view
class=
"password"
@
click=
"goPage('/login/login/passwordLogin')"
>
手机号登录
</view>
-->
<!--
<view
class=
"password"
@
click=
"goPage('/login/login/passwordLogin')"
>
手机号登录
</view>
-->
<view
class=
"issue"
>
遇到问题
</view>
<!--
<view
class=
"issue"
>
遇到问题
</view>
-->
<view
class=
"hint"
>
<checkbox-group
@
change=
"checkboxChange"
>
<label>
<checkbox
:checked=
"state"
value=
"check"
/>
</label>
登录代表同意
<text
class=
"link"
@
click=
"goPage('/login/login/userProtocol')"
>
鸿泽云智能推广系统用户协议
</text>
、
<text
class=
"link"
@
click=
"goPage('/login/login/privateProtocol')"
>
隐私政策,
</text>
并授权使用您的鸿泽云智能推广系统账号信息(如昵称、头像、收获地址)以便您统一管理
</checkbox-group>
</view>
</view>
</view>
</view>
</view>
<view
class=
"bottom"
>
<view
class=
"bottom"
>
<view
class=
"hint"
>
<!--
<view
class=
"hint"
>
--
>
登录代表同意
<!-- 登录代表同意-->
<text
class=
"link"
@
click=
"goPage('/login/login/userProtocol')"
>
鸿泽云智能推广系统用户协议
</text>
、
<!--
<text
class=
"link"
@
click=
"goPage('/login/login/userProtocol')"
>
鸿泽云智能推广系统用户协议
</text>
、-->
<text
class=
"link"
@
click=
"goPage('/login/login/privateProtocol')"
>
隐私政策,
</text
>
<!--
<text
class=
"link"
@
click=
"goPage('/login/login/privateProtocol')"
>
隐私政策,
</text>
--
>
并授权使用您的鸿泽云智能推广系统账号信息(如昵称、头像、收获地址)以便您统一管理
<!-- 并授权使用您的鸿泽云智能推广系统账号信息(如昵称、头像、收获地址)以便您统一管理-->
</view
>
<!--
</view>
--
>
</view>
</view>
</view>
</view>
...
@@ -39,6 +51,7 @@
...
@@ -39,6 +51,7 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
state
:
false
,
tel
:
''
,
tel
:
''
,
password
:
''
,
password
:
''
,
codeUrl
:
''
,
codeUrl
:
''
,
...
@@ -49,7 +62,7 @@
...
@@ -49,7 +62,7 @@
computed
:
{
computed
:
{
inputStyle
()
{
inputStyle
()
{
let
style
=
{};
let
style
=
{};
if
(
this
.
tel
)
{
if
(
this
.
state
)
{
style
.
color
=
"#fff"
;
style
.
color
=
"#fff"
;
style
.
backgroundColor
=
this
.
$u
.
color
[
'warning'
];
style
.
backgroundColor
=
this
.
$u
.
color
[
'warning'
];
}
}
...
@@ -61,7 +74,15 @@
...
@@ -61,7 +74,15 @@
this
.
getCode
()
this
.
getCode
()
},
},
methods
:
{
methods
:
{
checkboxChange
(
e
)
{
this
.
state
=
!
this
.
state
;
console
.
log
(
this
.
state
);
},
submit
()
{
submit
()
{
if
(
!
(
this
.
state
)){
this
.
$u
.
toast
(
'请同意并勾选用户协议'
)
return
}
if
(
!
(
this
.
code
))
{
if
(
!
(
this
.
code
))
{
this
.
$u
.
toast
(
'请输入验证码'
)
this
.
$u
.
toast
(
'请输入验证码'
)
return
return
...
@@ -199,6 +220,16 @@
...
@@ -199,6 +220,16 @@
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin-top
:
30rpx
;
margin-top
:
30rpx
;
.hint
{
margin-top
:
0rpx
;
//padding: 40rpx 40rpx;
font-size
:
25rpx
;
color
:
$u-tips-color
;
.link
{
color
:
$u-type-warning
;
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment