Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
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
刘文虎
account-book
Commits
10849734
Commit
10849734
authored
Jul 27, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 首页登录
parent
2e64e045
Pipeline
#2965
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
47 deletions
+72
-47
index.vue
pages/index/index.vue
+18
-16
create.vue
pages/maintain-bill/create.vue
+54
-31
No files found.
pages/index/index.vue
View file @
10849734
...
@@ -374,7 +374,6 @@ export default {
...
@@ -374,7 +374,6 @@ export default {
})
})
},
},
handleSelectCell
(
id
)
{
handleSelectCell
(
id
)
{
console
.
log
(
'-----------'
,
id
)
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/bill/bill-detail/bill-detail?id=
${
id
}
`
,
url
:
`/pages/bill/bill-detail/bill-detail?id=
${
id
}
`
,
})
})
...
@@ -392,20 +391,24 @@ export default {
...
@@ -392,20 +391,24 @@ export default {
}
}
},
},
checkVip
()
{
checkVip
()
{
if
(
checkVip
())
{
if
(
checkToken
())
{
return
true
if
(
checkVip
())
{
}
else
{
return
true
if
(
this
.
userInfo
.
vip
.
code
==
'NO'
)
{
this
.
visible
=
true
}
else
{
}
else
{
this
.
$refs
.
uToast
.
show
({
if
(
this
.
userInfo
.
vip
.
code
==
'NO'
)
{
duration
:
1500
,
this
.
visible
=
true
title
:
'请先开通会员'
,
}
else
{
type
:
'warning'
,
this
.
$refs
.
uToast
.
show
({
callback
:
()
=>
{},
duration
:
1500
,
})
title
:
'请先开通会员'
,
type
:
'warning'
,
callback
:
()
=>
{},
})
}
return
false
}
}
return
false
}
else
{
this
.
toLogin
()
}
}
},
},
formatCount
(
count
)
{
formatCount
(
count
)
{
...
@@ -415,16 +418,15 @@ export default {
...
@@ -415,16 +418,15 @@ export default {
this
.
$refs
.
uToast
.
show
({
this
.
$refs
.
uToast
.
show
({
duration
:
1500
,
duration
:
1500
,
title
:
'请先登录'
,
title
:
'请先登录'
,
type
:
'
error
'
,
type
:
'
warning
'
,
callback
:
()
=>
{
callback
:
()
=>
{
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/login/
index
'
,
url
:
'pages/login/
login
'
,
})
})
},
},
})
})
},
},
handleClickShare
()
{
handleClickShare
()
{
console
.
log
(
'-----handleClickShare----'
)
if
(
this
.
userInfo
.
vip
.
code
==
'NO'
)
{
if
(
this
.
userInfo
.
vip
.
code
==
'NO'
)
{
experienceVip
()
experienceVip
()
.
then
((
res
)
=>
{})
.
then
((
res
)
=>
{})
...
...
pages/maintain-bill/create.vue
View file @
10849734
...
@@ -40,17 +40,20 @@
...
@@ -40,17 +40,20 @@
</u-form-item>
</u-form-item>
<u-form-item
label=
"实收金额"
>
<u-form-item
label=
"实收金额"
>
<view
class=
"display-view"
>
<view
class=
"display-view"
>
<u-input
<u-input
type=
"digit"
type=
"digit"
:clearable=
"false"
:clearable=
"false"
:custom-style=
"customStyle"
:custom-style=
"customStyle"
:placeholder-style=
"placeholderStyle"
:placeholder-style=
"placeholderStyle"
v-model=
"form.actualAmount"
v-model=
"form.actualAmount"
placeholder=
"请填写实收金额"
placeholder=
"请填写实收金额"
/>
/>
<view
class=
"same-view"
hover-class=
"u-hover-class"
<view
@
click=
"$u.throttle(handleClickSame, 500)"
class=
"same-view"
>
同上
</view>
hover-class=
"u-hover-class"
@
click=
"$u.throttle(handleClickSame, 500)"
>
同上
</view
>
</view>
</view>
</u-form-item>
</u-form-item>
<u-form-item
label=
"欠款金额"
:border-bottom=
"false"
>
<u-form-item
label=
"欠款金额"
:border-bottom=
"false"
>
...
@@ -157,7 +160,9 @@
...
@@ -157,7 +160,9 @@
<view
class=
"confirm-view"
>
确定
</view>
<view
class=
"confirm-view"
>
确定
</view>
</u-button>
</u-button>
</view>
</view>
<view
class=
"loading-view"
v-if=
"loading"
><u-loading
mode=
"flower"
></u-loading></view>
<view
class=
"loading-view"
v-if=
"loading"
><u-loading
mode=
"flower"
></u-loading
></view>
<u-picker
<u-picker
mode=
"time"
mode=
"time"
v-model=
"showTimePicker"
v-model=
"showTimePicker"
...
@@ -191,7 +196,10 @@ export default {
...
@@ -191,7 +196,10 @@ export default {
customerPhone
:
''
,
customerPhone
:
''
,
receivableAmount
:
''
,
receivableAmount
:
''
,
actualAmount
:
'0'
,
actualAmount
:
'0'
,
repairTime
:
this
.
$u
.
timeFormat
(
new
Date
().
getTime
(),
'yyyy-mm-dd hh:MM:ss'
),
repairTime
:
this
.
$u
.
timeFormat
(
new
Date
().
getTime
(),
'yyyy-mm-dd hh:MM:ss'
),
address
:
''
,
address
:
''
,
latitude
:
''
,
latitude
:
''
,
longitude
:
''
,
longitude
:
''
,
...
@@ -315,16 +323,28 @@ export default {
...
@@ -315,16 +323,28 @@ export default {
this
.
billId
=
options
.
billId
this
.
billId
=
options
.
billId
}
}
if
(
this
.
billId
)
{
if
(
this
.
billId
)
{
this
.
repairDetail
()
this
.
repairDetail
()
}
else
{
this
.
getLocation
()
}
}
},
},
onReady
()
{
onReady
()
{
this
.
$refs
.
uForm
.
setRules
(
this
.
rules
)
this
.
$refs
.
uForm
.
setRules
(
this
.
rules
)
},
},
onUnload
()
{},
onUnload
()
{},
onShow
()
{
onShow
()
{},
},
methods
:
{
methods
:
{
getLocation
()
{
uni
.
getLocation
({
type
:
'gcj02'
,
success
:
(
res
)
=>
{
let
{
name
,
address
,
latitude
,
longitude
}
=
res
this
.
form
.
address
=
address
+
name
this
.
form
.
latitude
=
latitude
this
.
form
.
longitude
=
longitude
},
})
},
repairDetail
()
{
repairDetail
()
{
this
.
loading
=
true
this
.
loading
=
true
repairDetail
({
repairDetail
({
...
@@ -372,9 +392,10 @@ export default {
...
@@ -372,9 +392,10 @@ export default {
},
},
chooseLocation
()
{
chooseLocation
()
{
uni
.
chooseLocation
({
uni
.
chooseLocation
({
latitude
:
this
.
form
.
latitude
,
longitude
:
this
.
form
.
longitude
,
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
let
{
name
,
address
,
latitude
,
longitude
}
=
res
let
{
name
,
address
,
latitude
,
longitude
}
=
res
console
.
log
(
res
)
this
.
form
.
address
=
address
+
name
this
.
form
.
address
=
address
+
name
this
.
form
.
latitude
=
latitude
this
.
form
.
latitude
=
latitude
this
.
form
.
longitude
=
longitude
this
.
form
.
longitude
=
longitude
...
@@ -404,20 +425,22 @@ export default {
...
@@ -404,20 +425,22 @@ export default {
},
},
editeRepair
()
{
editeRepair
()
{
this
.
buttonLoading
=
true
this
.
buttonLoading
=
true
editeRepair
(
this
.
form
).
then
((
res
)
=>
{
editeRepair
(
this
.
form
)
if
(
res
.
code
==
0
)
{
.
then
((
res
)
=>
{
if
(
this
.
billId
)
{
if
(
res
.
code
==
0
)
{
uni
.
$emit
(
'maintain-bill-detail'
)
if
(
this
.
billId
)
{
}
else
{
uni
.
$emit
(
'maintain-bill-detail'
)
uni
.
$emit
(
'maintain-bill-list'
)
}
else
{
uni
.
$emit
(
'maintain-bill-list'
)
}
this
.
billId
=
res
.
data
this
.
toParticulars
()
this
.
buttonLoading
=
false
}
}
this
.
billId
=
res
.
data
})
this
.
toParticulars
()
.
catch
((
res
)
=>
{
this
.
buttonLoading
=
false
this
.
buttonLoading
=
false
}
})
}).
catch
((
res
)
=>
{
this
.
buttonLoading
=
false
})
},
},
toParticulars
()
{
toParticulars
()
{
this
.
$u
.
route
({
this
.
$u
.
route
({
...
@@ -504,14 +527,14 @@ export default {
...
@@ -504,14 +527,14 @@ export default {
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
.same-view
{
.same-view
{
border-left
:
2rpx
solid
#
D8D8D
8
;
border-left
:
2rpx
solid
#
d8d8d
8
;
height
:
28rpx
;
height
:
28rpx
;
line-height
:
28rpx
;
line-height
:
28rpx
;
flex-shrink
:
0
;
flex-shrink
:
0
;
width
:
68rpx
;
width
:
68rpx
;
margin-left
:
16rpx
;
margin-left
:
16rpx
;
text-align
:
right
;
text-align
:
right
;
color
:
#02
A
074
;
color
:
#02
a
074
;
font-size
:
24rpx
;
font-size
:
24rpx
;
}
}
}
}
...
...
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