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
00d9b67e
Commit
00d9b67e
authored
Oct 09, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 日常收据可以修改地址
parent
a2d0ee27
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
96 additions
and
29 deletions
+96
-29
billing-daily.vue
components/billing-daily/billing-daily.vue
+96
-29
No files found.
components/billing-daily/billing-daily.vue
View file @
00d9b67e
<
template
>
<
template
>
<u-popup
v-model=
"show"
border-radius=
"24"
safe-area-inset-bottom
mode=
"bottom"
:duration=
"100"
>
<u-popup
v-model=
"show"
border-radius=
"24"
safe-area-inset-bottom
mode=
"bottom"
:duration=
"100"
>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"billing"
>
<view
class=
"head"
>
<view
class=
"billing-head"
>
<!--
<view
class=
"content-head-location"
@
click=
"$u.throttle(getAddress, 500)"
>
<view
class=
"billing-head-location"
@
click=
"$u.throttle(getAddress, 500)"
>
<u-icon
name=
"map"
class=
"content-head-location-icon"
></u-icon>
<u-icon
name=
"map"
class=
"billing-head-location-icon"
></u-icon>
<view
class=
"content-head-location-address ellipsis content-head-location-noaddress"
>
{{
form
.
address
||
'选择地址'
}}
</view>
<view
class=
"billing-head-location-address ellipsis billing-head-location-noaddress"
>
{{
form
.
address
||
'选择地址'
}}
</view>
</view>
-->
<view
class=
"head-address-value-view"
>
<view
class=
"head-location-view"
hover-class=
"u-hover-class"
@
click=
"$u.throttle(getAddress, 500)"
>
<view
class=
"head-location-icon-view"
><image
:src=
"dingweidizhiImage"
></image></view>
</view>
<view
class=
"head-address-view"
v-if=
"form.address"
>
<u-input
type=
"text"
adjust-position
:height=
"76"
:clearable=
"false"
:custom-style=
"customStyle"
:placeholder-style=
"placeholderStyle"
v-model=
"form.address"
placeholder=
"选择地址"
/>
</view>
</view>
<view
class=
"billing-head-close"
@
click=
"close"
><u-icon
name=
"close"
></u-icon>
</view>
<view
class=
"head-label-view"
hover-class=
"u-hover-class"
@
click=
"$u.throttle(getAddress, 500)"
v-else
>
选择地址
</view>
</view>
</view>
<view
class=
"head-close"
@
click=
"close"
><u-icon
name=
"close"
></u-icon></view>
</view>
<view
class=
"billing"
>
<view
class=
"billing-type"
>
<view
class=
"billing-type"
>
<checkbox-groups
:checked=
"form.type"
:custom-style=
"customStyle"
:options=
"billingTypeOptions"
@
handleClick=
"billingTypeChange"
></checkbox-groups>
<checkbox-groups
:checked=
"form.type"
:custom-style=
"customStyle"
:options=
"billingTypeOptions"
@
handleClick=
"billingTypeChange"
></checkbox-groups>
<view
class=
"billing-type-date"
@
click=
"openCalendarPopup"
>
<view
class=
"billing-type-date"
@
click=
"openCalendarPopup"
>
...
@@ -144,7 +162,10 @@ export default {
...
@@ -144,7 +162,10 @@ export default {
};
};
},
},
computed
:
{
computed
:
{
...
mapGetters
([
'billType'
,
'platform'
])
...
mapGetters
([
'billType'
,
'platform'
]),
dingweidizhiImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'dingweidizhi@3x.png'
;
},
},
},
mounted
()
{
mounted
()
{
this
.
init
();
this
.
init
();
...
@@ -430,43 +451,89 @@ export default {
...
@@ -430,43 +451,89 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.billing
{
.content
{
color
:
#333333
;
.head
{
padding
:
0
24upx
;
padding-bottom
:
32upx
;
background-color
:
#ffffff
;
&
-head
{
height
:
108upx
;
height
:
108upx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
8rpx
8rpx
16rpx
16rpx
;
&
-location
{
// &-location {
// display: flex;
// align-items: center;
// font-size: 24upx;
// &-icon {
// margin-right: 8upx;
// font-size: 28upx;
// }
// &-address {
// width: 500upx;
// }
// &-noaddress {
// color: #8d8d8d;
// }
// }
&
-address-value-view
{
flex
:
1
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
font-size
:
24upx
;
height
:
100%
;
&
-icon
{
margin-right
:
32rpx
;
margin-right
:
8u
px
;
font-size
:
24r
px
;
font-size
:
28upx
;
flex
:
1
;
}
}
&
-address
{
&
-address-view
{
width
:
500upx
;
flex
:
1
;
height
:
100%
;
display
:
flex
;
align-items
:
center
;
/
deep
/
.u-input__textarea
{
padding
:
2rpx
0
!
important
;
min-height
:
40rpx
!
important
;
}
}
&
-noaddress
{
// color: #cccccc;
color
:
#8d8d8d
;
// &.adress {
// color: #333333;
// }
}
}
&
-location-view
{
height
:
100%
;
flex-shrink
:
0
;
width
:
48rpx
;
display
:
flex
;
align-items
:
center
;
}
&
-location-icon-view
{
width
:
24rpx
;
height
:
28rpx
;
flex-shrink
:
0
;
margin-left
:
8rpx
;
}
&
-label-view
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
align-items
:
center
;
}
}
&
-close
{
&
-close
{
margin-left
:
100upx
;
flex-shrink
:
0
;
width
:
108u
px
;
width
:
64r
px
;
height
:
108u
px
;
height
:
64r
px
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
flex-end
;
justify-content
:
center
;
font-size
:
32upx
;
font-size
:
32upx
;
}
}
}
}
}
.billing
{
color
:
#333333
;
padding
:
0
24upx
;
padding-bottom
:
32upx
;
background-color
:
#ffffff
;
&
-type
{
&
-type
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
...
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