Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shop_mobile_uni
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
郑秀明
shop_mobile_uni
Commits
68843985
Commit
68843985
authored
Jun 01, 2020
by
王建威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
295f625f
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
11 deletions
+36
-11
manifest.json
manifest.json
+2
-2
package.json
package.json
+1
-1
setaccount.vue
pages/setaccount/setaccount.vue
+11
-5
changeLoginPass.vue
pages/setinfo/components/changeLoginPass.vue
+1
-1
changePayPass.vue
pages/setinfo/components/changePayPass.vue
+2
-2
changephone.vue
pages/setinfo/components/changephone.vue
+19
-0
No files found.
manifest.json
View file @
68843985
...
...
@@ -2,7 +2,7 @@
"name"
:
"shop_mobile_uni"
,
"appid"
:
"__UNI__F904656"
,
"description"
:
""
,
"versionName"
:
"1.0.1
1
"
,
"versionName"
:
"1.0.1
3
"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
"app-plus"
:
{
...
...
@@ -51,7 +51,7 @@
"mode"
:
"history"
,
"base"
:
"/uni"
},
"publicPath"
:
"https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/
prod/1.0.11
/"
,
"publicPath"
:
"https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/
test/1.0.13
/"
,
"optimization"
:
{
"treeShaking"
:
{
"enable"
:
true
...
...
package.json
View file @
68843985
{
"name"
:
"shop_mobile_uni"
,
"version"
:
"1.0.
7
"
,
"version"
:
"1.0.
13
"
,
"description"
:
"谛宝多多商城"
,
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
,
...
...
pages/setaccount/setaccount.vue
View file @
68843985
...
...
@@ -31,12 +31,14 @@
<
text
class
=
"eosfont right_icon"
>&
#
xe608
;
<
/text
>
<
/view
>
<
/view
>
<
view
class
=
"log_out"
>
退出登录
<
/view
>
<
view
class
=
"log_out"
@
click
=
"logOut()"
>
退出登录
<
/view
>
<
BottomBar
/>
<
/view
>
<
/template
>
<
script
>
import
TopBar
from
'../../components/TopBar/TopBar'
;
import
BottomBar
from
"@/components/BottomBar/BottomBar.vue"
;
import
{
php
}
from
'../../common/host.js'
;
export
default
{
data
()
{
...
...
@@ -65,10 +67,10 @@
}
,
changePass
(
type
)
{
if
(
type
===
'phone'
)
{
this
.
$jump
(
`/pages/setinfo/setinfo?type=${type
}
&phone=${this.data.phone_mob
}
`
);
this
.
$jump
(
`/pages/setinfo/setinfo?type=${type
}
&phone=${this.data.phone_mob
}
`
,
2
);
return
}
this
.
$jump
(
`/pages/setinfo/setinfo?type=${type
}
`
)
this
.
$jump
(
`/pages/setinfo/setinfo?type=${type
}
`
,
2
)
}
,
uploadImage
()
{
uni
.
chooseImage
({
...
...
@@ -107,10 +109,14 @@
}
);
}
}
)
}
,
logOut
()
{
this
.
$jump
(
`${php
}
app=member&act=logout&synlogout=1`
);
}
}
,
components
:
{
TopBar
TopBar
,
BottomBar
}
}
<
/script
>
...
...
@@ -191,7 +197,7 @@
color
:
#
212121
;
font
-
size
:
28
rpx
;
position
:
fixed
;
bottom
:
0
;
bottom
:
98
rpx
;
left
:
0
;
}
<
/style
>
pages/setinfo/components/changeLoginPass.vue
View file @
68843985
...
...
@@ -74,7 +74,7 @@
})
},
returnHome
()
{
this
.
$jump
(
`
${
php
}
app=member&act=logout
&synlogout=1
`
);
this
.
$jump
(
`
${
php
}
app=member&act=logout`
);
}
},
components
:
{
...
...
pages/setinfo/components/changePayPass.vue
View file @
68843985
...
...
@@ -39,9 +39,9 @@
});
return
}
if
(
this
.
new_password
.
length
<
6
)
{
if
(
!
/^
[
0-9a-zA-Z_
]{6}
$/
.
test
(
this
.
new_password
)
)
{
uni
.
showToast
({
title
:
'请设置6位支付密码'
,
title
:
'请设置6位支付密码
,可以是字母、数字或下划线
'
,
icon
:
'none'
,
duration
:
2000
});
...
...
pages/setinfo/components/changephone.vue
View file @
68843985
...
...
@@ -116,6 +116,13 @@
}
}
,
nextStep
()
{
if
(
!
/^
\d
{6
}
$/
.
test
(
this
.
code
))
{
uni
.
showToast
({
title
:
'请输入6位数字验证码'
,
icon
:
'none'
}
)
return
}
uni
.
request
({
url
:
`/uni/api/member/check_code/${this.code
}
`
,
method
:
'GET'
,
...
...
@@ -124,11 +131,23 @@
if
(
res
.
data
.
code
===
0
)
{
this
.
next
=
true
;
this
.
countdown
=
'(60)重新获取'
;
}
else
{
uni
.
showToast
({
title
:
res
.
data
.
message
,
icon
:
'none'
}
);
}
}
}
)
}
,
confirm
()
{
if
(
!
/^
\d
{6
}
$/
.
test
(
this
.
newCode
))
{
uni
.
showToast
({
title
:
'请输入6位数字验证码'
,
icon
:
'none'
}
)
return
}
uni
.
request
({
url
:
`/uni/api/member/change_mobile`
,
method
:
'POST'
,
...
...
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