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
a20dabf9
Commit
a20dabf9
authored
Mar 01, 2024
by
刘文虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化日常记账权限弹窗
parent
05bb48c5
Pipeline
#7996
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
54 deletions
+68
-54
index.vue
components/auth-popup/index.vue
+1
-1
billing-daily.vue
components/billing-daily/billing-daily.vue
+67
-53
No files found.
components/auth-popup/index.vue
View file @
a20dabf9
<
template
>
<view
v-if=
"showPopup"
class=
"uni-popup"
:style=
"
{top:isNativeHead?'':StatusBar}">
<view
v-if=
"showPopup"
class=
"uni-popup"
:style=
"
{top:isNativeHead?'
0
':StatusBar}">
<view
:class=
"[type, ani, animation ? 'ani' : '']"
class=
"uni-custom uni-popup__wrapper"
@
click=
"close(true)"
>
<view
class=
"uni-popup__wrapper-box"
>
<view
class=
"title"
>
{{
authList
[
permissionID
].
title
}}
</view>
...
...
components/billing-daily/billing-daily.vue
View file @
a20dabf9
<
template
>
<u-popup
v-model=
"show"
border-radius=
"24"
safe-area-inset-bottom
mode=
"bottom"
:duration=
"100"
>
<view
class=
"content"
>
<view
class=
"head"
>
<!--
<view
class=
"content-head-location"
@
click=
"$u.throttle(getAddress, 500)"
>
<view
class=
"outside"
>
<view
class=
"content"
>
<view
class=
"head"
>
<!--
<view
class=
"content-head-location"
@
click=
"$u.throttle(getAddress, 500)"
>
<u-icon
name=
"map"
class=
"content-head-location-icon"
></u-icon>
<view
class=
"content-head-location-address ellipsis content-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
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||platform==='4'"
>
<u-input
type=
"text"
adjust-position
:height=
"76"
style=
"width: 100%"
:clearable=
"false"
v-model=
"form.address"
:placeholder=
"platform==='4'?'输入地址':'选择地址'"
/>
</view>
<view
class=
"head-label-view"
hover-class=
"u-hover-class"
@
click=
"$u.throttle(getAddress, 500)"
v-else
>
{{
platform
===
'4'
?
'输入地址'
:
'选择地址'
}}
</view>
</view>
<view
class=
"head-address-view"
v-if=
"form.address||platform==='4'"
>
<u-input
type=
"text"
adjust-position
:height=
"76"
style=
"width: 100%"
:clearable=
"false"
v-model=
"form.address"
:placeholder=
"platform==='4'?'输入地址':'选择地址'"
/>
</view>
<view
class=
"head-label-view"
hover-class=
"u-hover-class"
@
click=
"$u.throttle(getAddress, 500)"
v-else
>
{{
platform
===
'4'
?
'输入地址'
:
'选择地址'
}}
</view>
<view
class=
"head-close"
@
click=
"close"
><u-icon
name=
"close"
></u-icon></view>
</view>
<view
class=
"head-close"
@
click=
"close"
><u-icon
name=
"close"
></u-icon></view>
</view>
<view
class=
"billing"
>
<view
class=
"billing-type"
>
<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-text"
>
{{
resetHappenTime
(
form
.
happenTime
)
}}
</view>
<u-icon
name=
"arrow-down-fill"
class=
"billing-type-date-icon"
></u-icon>
<view
class=
"billing"
>
<view
class=
"billing-type"
>
<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-text"
>
{{
resetHappenTime
(
form
.
happenTime
)
}}
</view>
<u-icon
name=
"arrow-down-fill"
class=
"billing-type-date-icon"
></u-icon>
</view>
</view>
</view>
<view
class=
"billing-money ellipsis"
>
<text>
¥
</text>
<text>
{{
form
.
amount
||
'0.00'
}}
</text>
</view>
<view
class=
"billing-category"
>
<billing-category
:list=
"billingCategoryList"
:checked=
"form.classificationId"
@
handleClick=
"billingCategoryChange"
></billing-category>
</view>
<view
class=
"billing-remark"
>
<!--
<view
class=
"billing-remark-upload"
@
click=
"beforeChooseImage"
>
-->
<!--
<image
:src=
"takePhotoSuccessIcon"
mode=
""
v-if=
"form.attach"
></image>
<image
:src=
"takePhotoIcon"
mode=
""
v-else
></image>
-->
<SingleImages
:max-count=
"1"
:uploading
.
sync=
"uploading"
:width=
"72"
:height=
"72"
:list=
"fileList"
@
on-list-change=
"handlePicturesChange"
>
<view
class=
"billing-remark-upload"
slot=
"addBtn"
>
<image
:src=
"takePhotoSuccessIcon"
mode=
""
v-if=
"form.attach"
></image>
<image
:src=
"takePhotoIcon"
mode=
""
v-else
></image>
<view
class=
"billing-money ellipsis"
>
<text>
¥
</text>
<text>
{{
form
.
amount
||
'0.00'
}}
</text>
</view>
<view
class=
"billing-category"
>
<billing-category
:list=
"billingCategoryList"
:checked=
"form.classificationId"
@
handleClick=
"billingCategoryChange"
></billing-category>
</view>
<view
class=
"billing-remark"
>
<SingleImages
:isNativeHead=
"false"
:max-count=
"1"
:uploading
.
sync=
"uploading"
:width=
"72"
:height=
"72"
:list=
"fileList"
@
on-list-change=
"handlePicturesChange"
>
<view
class=
"billing-remark-upload"
slot=
"addBtn"
>
<image
:src=
"takePhotoSuccessIcon"
mode=
""
v-if=
"form.attach"
></image>
<image
:src=
"takePhotoIcon"
mode=
""
v-else
></image>
</view>
</SingleImages>
<view
class=
"billing-remark-input"
>
<u-input
type=
"text"
v-model=
"form.remark"
placeholder-style=
"color: #02A074;"
placeholder=
"点击填写备注"
:clearable=
"false"
class=
"form-input"
maxlength=
"200"
@
blur=
"leaveInput"
@
focus=
"getHeight"
cursor-spacing=
'50'
:adjust-position=
"true"
/>
</view>
</SingleImages>
<!--
</view>
-->
<view
class=
"billing-remark-input"
>
<u-input
type=
"text"
v-model=
"form.remark"
placeholder-style=
"color: #02A074;"
placeholder=
"点击填写备注"
:clearable=
"false"
class=
"form-input"
maxlength=
"200"
@
blur=
"leaveInput"
@
focus=
"getHeight"
cursor-spacing=
'50'
:adjust-position=
"true"
/>
</view>
</view>
<!-- 计算器 -->
<!--
<view
class=
"billing-calculator"
:style=
"
{ 'padding-bottom': Height + 'px' }"> -->
<view
class=
"billing-calculator"
>
<ab-calculator
ref=
"ab-calculator"
@
change=
"calculatorChange"
@
sure=
"calculatorSure"
></ab-calculator>
</view>
<!-- 日历 -->
<calendar-popup
:date=
"form.happenTime"
ref=
"calendar-popup"
@
confirm=
"calendarChange"
></calendar-popup>
</view>
<!-- 计算器 -->
<!--
<view
class=
"billing-calculator"
:style=
"
{ 'padding-bottom': Height + 'px' }"> -->
<view
class=
"billing-calculator"
>
<ab-calculator
ref=
"ab-calculator"
@
change=
"calculatorChange"
@
sure=
"calculatorSure"
></ab-calculator>
</view>
<!-- 日历 -->
<calendar-popup
:date=
"form.happenTime"
ref=
"calendar-popup"
@
confirm=
"calendarChange"
></calendar-popup>
</view>
</u-popup>
</
template
>
...
...
@@ -440,7 +440,21 @@
</
script
>
<
style
lang=
"scss"
scoped
>
.outside
{
background
:
rgba
(
0
,
0
,
0
,
0
.6
);
height
:
100vh
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
flex-end
;
}
.content
{
background
:
#ffffff
;
border-radius
:
24rpx
24rpx
0
0
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
flex-end
;
.head
{
height
:
108upx
;
display
:
flex
;
...
...
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