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
cb0fbbd4
Commit
cb0fbbd4
authored
Jul 26, 2022
by
刘文虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页打开日常记账
parent
77119105
Pipeline
#2937
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
567 additions
and
594 deletions
+567
-594
index.vue
pages/index/index.vue
+567
-594
No files found.
pages/index/index.vue
View file @
cb0fbbd4
<
template
>
<
template
>
<view
class=
"index-view"
>
<view
class=
"index-view"
>
<!--
<u-navbar
<!--
<u-navbar
:is-back=
"false"
:is-back=
"false"
:border-bottom=
"false"
:border-bottom=
"false"
:background=
"background"
:background=
"background"
></u-navbar>
-->
></u-navbar>
-->
<view
class=
"content-view"
:style=
"'padding-top: ' + paddingTop + 'px'"
>
<view
class=
"content-view"
:style=
"'padding-top: ' + paddingTop + 'px'"
>
<view
class=
"head-view"
>
<view
class=
"head-view"
>
<view
class=
"left-view"
>
<view
class=
"left-view"
>
<view
class=
"logo-image"
></view>
<view
class=
"logo-image"
></view>
<view
class=
"title-view"
>
扳手记账
</view>
<view
class=
"title-view"
>
扳手记账
</view>
</view>
</view>
<view
class=
"right-view"
>
<view
class=
"right-view"
>
<view
class=
"location-view"
>
<view
class=
"location-view"
>
<view
class=
"location-icon-view"
>
<view
class=
"location-icon-view"
><image
:src=
"dingweidizhiImage"
></image></view>
<image
:src=
"dingweidizhiImage"
></image>
<view>
{{
weather
.
city
}}
</view>
</view>
</view>
<view>
{{
weather
.
city
}}
</view>
<view
class=
"weather-view"
>
</view>
<!--
<view
class=
"weather-icon-view"
>
<view
class=
"weather-view"
>
<!--
<view
class=
"weather-icon-view"
>
<image
:src=
"weather.icon"
></image>
<image
:src=
"weather.icon"
></image>
</view>
-->
</view>
-->
<view
class=
"weather-text"
>
{{
weather
.
weather
}}
</view>
<view
class=
"weather-text"
>
{{
weather
.
weather
}}
</view>
<view>
{{
weather
.
temp
}}
℃
</view>
<view>
{{
weather
.
temp
}}
℃
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"info-view"
>
<view
class=
"info-view"
>
<image
class=
"info-back-image"
:src=
"infoBackImage"
></image>
<image
class=
"info-back-image"
:src=
"infoBackImage"
></image>
<view
class=
"info-content"
>
<view
class=
"info-content"
>
<view
class=
"info-head-view"
>
<view
class=
"info-head-view"
>
<view
class=
"left-view"
>
本月结余(元)
</view>
<view
class=
"left-view"
>
本月结余(元)
</view>
<view
<view
class=
"right-view"
hover-class=
"u-hover-class"
@
click=
"$u.throttle(handleSelectDate, 500)"
>
class=
"right-view"
<view
class=
"date-view"
>
{{
date
}}
</view>
hover-class=
"u-hover-class"
<u-icon
name=
"arrow-down-fill"
color=
"#ffffff"
size=
"22"
></u-icon>
@
click=
"$u.throttle(handleSelectDate, 500)"
</view>
>
</view>
<view
class=
"date-view"
>
{{
date
}}
</view>
<view
class=
"info-money-view"
>
{{
formatCount
(
money
.
money
)
}}
</view>
<u-icon
name=
"arrow-down-fill"
color=
"#ffffff"
size=
"22"
></u-icon>
<view
class=
"info-bottom-view"
>
</view>
<view
class=
"left-view"
>
</view>
<view>
本月收入(元)
</view>
<view
class=
"info-money-view"
>
{{
formatCount
(
money
.
money
)
}}
</view>
<view
class=
"money-view"
>
{{
formatCount
(
money
.
income
)
}}
</view>
<view
class=
"info-bottom-view"
>
</view>
<view
class=
"left-view"
<view
class=
"right-view"
>
><view>
本月收入(元)
</view
<view>
本月支付(元)
</view>
><view
class=
"money-view"
>
{{
<view
class=
"money-view"
>
{{
formatCount
(
money
.
expense
)
}}
</view>
formatCount
(
money
.
income
)
</view>
}}
</view></view
</view>
>
</view>
<view
class=
"right-view"
</view>
><view>
本月支付(元)
</view
<view
class=
"tool-view"
>
><view
class=
"money-view"
>
{{
<view
class=
"item-view"
v-for=
"(item, index) in toolArray"
:key=
"index"
hover-class=
"u-hover-class"
@
click=
"handleClickTool(item)"
>
formatCount
(
money
.
expense
)
<view
class=
"left-view"
>
}}
</view></view
<view
class=
"name-view"
>
{{
item
.
name
}}
</view>
>
<view
class=
"tip-view"
>
</view>
<view
class=
"tip-text"
>
立即记账
</view>
</view>
<u-icon
name=
"arrow-right"
color=
"#02A074"
size=
"22"
></u-icon>
</view>
</view>
<view
class=
"tool-view"
>
</view>
<view
<view
class=
"right-view"
><image
:src=
"item.image"
></image></view>
class=
"item-view"
</view>
v-for=
"(item, index) in toolArray"
</view>
:key=
"index"
<view
class=
"operate-view"
>
hover-class=
"u-hover-class"
<view
class=
"item-view"
v-for=
"(item, index) in operateArray"
:key=
"index"
hover-class=
"u-hover-class"
@
click=
"handleClickOperate(item.path)"
>
@
click=
"handleClickTool(item.path)"
<view
class=
"image-view"
><image
:src=
"item.image"
></image></view>
>
<view
class=
"name-view"
>
{{
item
.
name
}}
</view>
<view
class=
"left-view"
>
</view>
<view
class=
"name-view"
>
{{
item
.
name
}}
</view>
</view>
<view
class=
"tip-view"
>
<view
class=
"detail-view"
>
<view
class=
"tip-text"
>
立即记账
</view>
<view
class=
"detail-head-view"
>
<u-icon
name=
"arrow-right"
color=
"#02A074"
size=
"22"
></u-icon>
<view
class=
"title-view"
>
收支明细
</view>
</view>
<view
class=
"tip-view"
>
展示近3天数据
</view>
</view>
</view>
<view
class=
"right-view"
>
<BillList
:list=
"list"
@
select=
"handleSelectCell"
/>
<image
:src=
"item.image"
></image>
<!--
<view
class=
"list-view"
v-if=
"list.length > 0"
>
</view>
</view>
</view>
<view
class=
"operate-view"
>
<view
class=
"item-view"
v-for=
"(item, index) in operateArray"
:key=
"index"
hover-class=
"u-hover-class"
@
click=
"handleClickOperate(item.path)"
>
<view
class=
"image-view"
>
<image
:src=
"item.image"
></image>
</view>
<view
class=
"name-view"
>
{{
item
.
name
}}
</view>
</view>
</view>
<view
class=
"detail-view"
>
<view
class=
"detail-head-view"
>
<view
class=
"title-view"
>
收支明细
</view>
<view
class=
"tip-view"
>
展示近3天数据
</view>
</view>
<BillList
:list=
"list"
@
select=
"handleSelectCell"
/>
<!--
<view
class=
"list-view"
v-if=
"list.length > 0"
>
<view
<view
class=
"list-day-view"
class=
"list-day-view"
v-for=
"(items, index) in list"
v-for=
"(items, index) in list"
...
@@ -128,519 +102,518 @@
...
@@ -128,519 +102,518 @@
</view>
</view>
</view>
</view>
<NoData
v-else
imageWidth=
"374"
text=
"当前暂无收支明细"
/>
-->
<NoData
v-else
imageWidth=
"374"
text=
"当前暂无收支明细"
/>
-->
</view>
</view>
</view>
</view>
<u-picker
<u-picker
:default-time=
"date"
:default-time=
"date"
mode=
"time"
mode=
"time"
v-model=
"showDatePicker"
v-model=
"showDatePicker"
:params=
"params"
:params=
"params"
@
confirm=
"handleComfirmDate"
@
confirm=
"handleComfirmDate"
bottomTip=
"※ 体验会员,仅非会员用户领取,每个ID限领1次"
bottomTip=
"※ 体验会员,仅非会员用户领取,每个ID限领1次"
></u-picker>
></u-picker>
<PopNormal
:visible
.
sync=
"visible"
:isShare=
"true"
/>
<PopNormal
:visible
.
sync=
"visible"
:isShare=
"true"
/>
<u-toast
ref=
"uToast"
/>
<u-toast
ref=
"uToast"
/>
<mid-popup
ref=
"midPopup"
></mid-popup>
<mid-popup
ref=
"midPopup"
></mid-popup>
<u-tabbar
<u-tabbar
:list=
"tabbar"
:mid-button=
"true"
:mid-button-size=
"80"
:before-switch=
"beforeSwitch"
></u-tabbar>
:list=
"tabbar"
</view>
:mid-button=
"true"
:mid-button-size=
"80"
:before-switch=
"beforeSwitch"
></u-tabbar>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
let
systemInfo
=
uni
.
getSystemInfoSync
()
let
systemInfo
=
uni
.
getSystemInfoSync
()
;
import
MidPopup
from
'@/components/mid-popup/mid-popup.vue'
import
MidPopup
from
'@/components/mid-popup/mid-popup.vue'
;
// import CellBill from '@/components/cell-bill-list/index.vue'
// import CellBill from '@/components/cell-bill-list/index.vue'
// import NoData from '@/components/no-data'
// import NoData from '@/components/no-data'
import
BillList
from
'@/components/bill-list'
import
BillList
from
'@/components/bill-list'
;
import
PopNormal
from
'@/components/pop-normal'
import
PopNormal
from
'@/components/pop-normal'
;
import
{
tabbar
}
from
'@/utils/settings.js'
import
{
tabbar
}
from
'@/utils/settings.js'
;
import
{
getWeather
,
bookRecord
,
monthRecord
}
from
'@/api/maintain/index.js'
import
{
getWeather
,
bookRecord
,
monthRecord
}
from
'@/api/maintain/index.js'
;
import
{
checkVip
}
from
'@/utils/common.js'
import
{
checkVip
}
from
'@/utils/common.js'
;
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
'vuex'
;
export
default
{
export
default
{
components
:
{
components
:
{
MidPopup
,
MidPopup
,
BillList
,
BillList
,
PopNormal
,
PopNormal
// CellBill,
// CellBill,
// NoData
// NoData
},
},
data
()
{
data
()
{
return
{
return
{
tabbar
,
tabbar
,
showDatePicker
:
false
,
showDatePicker
:
false
,
visible
:
false
,
visible
:
false
,
weather
:
{
city
:
'-'
,
temp
:
'-'
},
weather
:
{
city
:
'-'
,
temp
:
'-'
},
date
:
this
.
$u
.
timeFormat
(
new
Date
().
getTime
(),
'yyyy-mm'
),
date
:
this
.
$u
.
timeFormat
(
new
Date
().
getTime
(),
'yyyy-mm'
),
money
:
{
money
:
{
income
:
'-'
,
income
:
'-'
,
expense
:
'-'
,
expense
:
'-'
},
},
list
:
[],
list
:
[]
}
};
},
},
computed
:
{
computed
:
{
...
mapGetters
([
'userInfo'
]),
...
mapGetters
([
'userInfo'
]),
baseUrl
()
{
baseUrl
()
{
return
process
.
uniEnv
.
qn_base_url
return
process
.
uniEnv
.
qn_base_url
;
},
},
infoBackImage
()
{
infoBackImage
()
{
return
this
.
baseUrl
+
'beijing@3x.png'
return
this
.
baseUrl
+
'beijing@3x.png'
;
},
},
background
()
{
background
()
{
return
{
return
{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
}
};
},
},
shareImage
()
{
shareImage
()
{
return
this
.
baseUrl
+
'share_index.png'
return
this
.
baseUrl
+
'share_index.png'
;
},
},
dingweidizhiImage
()
{
dingweidizhiImage
()
{
return
this
.
baseUrl
+
'dingweidizhi@3x.png'
return
this
.
baseUrl
+
'dingweidizhi@3x.png'
;
},
},
toolArray
()
{
toolArray
()
{
return
[
return
[
{
{
image
:
this
.
baseUrl
+
'weixiujizhangtubiao@3x.png'
,
image
:
this
.
baseUrl
+
'weixiujizhangtubiao@3x.png'
,
path
:
'pages/maintain-bill/index'
,
path
:
'pages/maintain-bill/index'
,
name
:
'维修记账'
,
name
:
'维修记账'
},
},
{
{
image
:
this
.
baseUrl
+
'richangjizhangtubiao@3x.png'
,
image
:
this
.
baseUrl
+
'richangjizhangtubiao@3x.png'
,
path
:
''
,
path
:
''
,
name
:
'日常记账'
,
name
:
'日常记账'
},
}
]
];
},
},
operateArray
()
{
operateArray
()
{
return
[
return
[
{
{
image
:
this
.
baseUrl
+
'shoukuanma@3x.png'
,
image
:
this
.
baseUrl
+
'shoukuanma@3x.png'
,
path
:
'pages/card/payee-code'
,
path
:
'pages/card/payee-code'
,
name
:
'收款码'
,
name
:
'收款码'
},
},
{
{
image
:
this
.
baseUrl
+
'famingpian@3x.png'
,
image
:
this
.
baseUrl
+
'famingpian@3x.png'
,
path
:
'pages/card/index'
,
path
:
'pages/card/index'
,
name
:
'发名片'
,
name
:
'发名片'
},
},
{
{
image
:
this
.
baseUrl
+
'chabaojia@3x.png'
,
image
:
this
.
baseUrl
+
'chabaojia@3x.png'
,
path
:
'/pages/bill/quoted-price/quoted-price'
,
path
:
'/pages/bill/quoted-price/quoted-price'
,
name
:
'查报价'
,
name
:
'查报价'
},
},
{
{
image
:
this
.
baseUrl
+
'chaqianzhang@3x.png'
,
image
:
this
.
baseUrl
+
'chaqianzhang@3x.png'
,
path
:
'/pages/bill/debit-note/debit-note'
,
path
:
'/pages/bill/debit-note/debit-note'
,
name
:
'查欠账'
,
name
:
'查欠账'
},
}
]
];
},
},
paddingTop
()
{
paddingTop
()
{
var
top
=
systemInfo
.
safeAreaInsets
.
top
var
top
=
systemInfo
.
safeAreaInsets
.
top
;
// #ifdef APP-PLUS || H5
// #ifdef APP-PLUS || H5
return
44
+
top
return
44
+
top
;
// #endif
// #endif
// #ifdef MP
// #ifdef MP
return
(
systemInfo
.
platform
==
'ios'
?
44
:
48
)
+
top
return
(
systemInfo
.
platform
==
'ios'
?
44
:
48
)
+
top
;
// #endif
// #endif
},
},
params
()
{
params
()
{
return
{
return
{
year
:
true
,
year
:
true
,
month
:
true
,
month
:
true
,
day
:
false
,
day
:
false
,
hour
:
false
,
hour
:
false
,
minute
:
false
,
minute
:
false
,
second
:
false
,
second
:
false
}
};
},
},
dateString
()
{
dateString
()
{
var
string
=
this
.
date
.
replace
(
/-/g
,
'/'
)
var
string
=
this
.
date
.
replace
(
/-/g
,
'/'
);
return
this
.
$u
.
timeFormat
(
new
Date
(
string
).
getTime
(),
'yyyy年mm月'
)
return
this
.
$u
.
timeFormat
(
new
Date
(
string
).
getTime
(),
'yyyy年mm月'
);
},
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
.
q
)
{
if
(
options
.
q
)
{
const
q
=
decodeURIComponent
(
options
.
q
)
// 获取到二维码原始链接内容
const
q
=
decodeURIComponent
(
options
.
q
);
// 获取到二维码原始链接内容
console
.
log
(
q
)
console
.
log
(
q
);
}
}
},
},
onShow
()
{
onShow
()
{
console
.
log
(
'----------------'
)
console
.
log
(
'----------------'
);
this
.
getWeather
()
this
.
getWeather
();
this
.
monthRecord
()
this
.
monthRecord
();
this
.
bookRecord
()
this
.
bookRecord
();
},
},
onReady
()
{},
onReady
()
{},
methods
:
{
methods
:
{
getWeather
()
{
getWeather
()
{
uni
.
getLocation
({
uni
.
getLocation
({
type
:
'wgs84'
,
type
:
'wgs84'
,
success
:
(
res
)
=>
{
success
:
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
);
getWeather
({
getWeather
({
latitude
:
res
.
latitude
,
latitude
:
res
.
latitude
,
longitude
:
res
.
longitude
,
longitude
:
res
.
longitude
}).
then
((
res
)
=>
{
}).
then
(
res
=>
{
console
.
log
(
'--------getWeather--------'
,
res
)
console
.
log
(
'--------getWeather--------'
,
res
);
if
(
res
.
data
)
{
if
(
res
.
data
)
{
this
.
weather
=
res
.
data
this
.
weather
=
res
.
data
;
}
}
})
});
},
}
})
});
},
},
beforeSwitch
(
index
)
{
beforeSwitch
(
index
)
{
if
(
index
===
2
)
{
if
(
index
===
2
)
{
this
.
$refs
[
'midPopup'
].
open
()
this
.
$refs
[
'midPopup'
].
open
();
return
false
return
false
;
}
}
return
true
return
true
;
},
},
handleSelectDate
()
{
handleSelectDate
()
{
this
.
showDatePicker
=
true
this
.
showDatePicker
=
true
;
},
},
handleComfirmDate
(
date
)
{
handleComfirmDate
(
date
)
{
console
.
log
(
date
)
console
.
log
(
date
);
this
.
date
=
`
${
date
.
year
}
-
${
date
.
month
}
`
this
.
date
=
`
${
date
.
year
}
-
${
date
.
month
}
`
;
this
.
monthRecord
()
this
.
monthRecord
();
},
},
monthRecord
()
{
monthRecord
()
{
monthRecord
({
month
:
this
.
date
+
'-01'
})
monthRecord
({
month
:
this
.
date
+
'-01'
})
.
then
((
res
)
=>
{
.
then
(
res
=>
{
var
obj
=
res
.
data
var
obj
=
res
.
data
;
if
(
obj
)
{
if
(
obj
)
{
this
.
money
=
{
this
.
money
=
{
money
:
Number
(
obj
.
income
||
0
)
-
Number
(
obj
.
expense
||
0
),
money
:
Number
(
obj
.
income
||
0
)
-
Number
(
obj
.
expense
||
0
),
income
:
Number
(
obj
.
income
||
0
),
income
:
Number
(
obj
.
income
||
0
),
expense
:
Number
(
obj
.
expense
||
0
),
expense
:
Number
(
obj
.
expense
||
0
)
}
};
}
}
})
})
.
catch
((
res
)
=>
{})
.
catch
(
res
=>
{});
},
},
bookRecord
()
{
bookRecord
()
{
bookRecord
({}).
then
((
res
)
=>
{
bookRecord
({}).
then
(
res
=>
{
if
(
res
.
data
)
{
if
(
res
.
data
)
{
this
.
list
=
res
.
data
this
.
list
=
res
.
data
;
}
}
})
});
},
},
handleClickTool
(
path
)
{
handleClickTool
(
item
)
{
if
(
!
this
.
checkVip
())
return
if
(
!
this
.
checkVip
())
return
;
uni
.
navigateTo
({
if
(
item
.
name
===
'日常记账'
)
{
url
:
path
,
this
.
$refs
[
'midPopup'
].
open
();
})
}
else
{
},
uni
.
navigateTo
({
handleClickOperate
(
path
)
{
url
:
item
.
path
if
(
!
this
.
checkVip
())
return
});
uni
.
navigateTo
({
}
url
:
path
,
},
})
handleClickOperate
(
path
)
{
},
if
(
!
this
.
checkVip
())
return
;
handleSelectCell
(
id
)
{
uni
.
navigateTo
({
console
.
log
(
'-----------'
,
id
)
url
:
path
uni
.
navigateTo
({
});
url
:
`/pages/bill/bill-detail/bill-detail?id=
${
id
}
`
,
},
})
handleSelectCell
(
id
)
{
},
console
.
log
(
'-----------'
,
id
);
checkVip
()
{
uni
.
navigateTo
({
// 测试数据
url
:
`/pages/bill/bill-detail/bill-detail?id=
${
id
}
`
return
true
});
},
checkVip
()
{
// 测试数据
return
true
;
if
(
checkVip
())
{
if
(
checkVip
())
{
return
true
return
true
;
}
else
{
}
else
{
this
.
visible
=
true
this
.
visible
=
true
;
return
false
return
false
;
}
}
},
},
formatCount
(
count
)
{
formatCount
(
count
)
{
return
(
Math
.
trunc
((
count
||
0
)
*
100
)
/
100
).
toFixed
(
2
)
return
(
Math
.
trunc
((
count
||
0
)
*
100
)
/
100
).
toFixed
(
2
);
},
},
toLogin
()
{
toLogin
()
{
this
.
$refs
.
uToast
.
show
({
this
.
$refs
.
uToast
.
show
({
duration
:
1500
,
duration
:
1500
,
title
:
'请先登录'
,
title
:
'请先登录'
,
type
:
'error'
,
type
:
'error'
,
callback
:
()
=>
{
callback
:
()
=>
{
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/login/index'
,
url
:
'pages/login/index'
})
});
},
}
})
});
},
},
// 朋友圈
// 朋友圈
onShareTimeline
(
res
)
{
onShareTimeline
(
res
)
{
return
{
return
{
title
:
'扳手记账'
,
title
:
'扳手记账'
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
imageUrl
:
this
.
shareImage
,
imageUrl
:
this
.
shareImage
}
};
},
},
// 好友
// 好友
onShareAppMessage
(
res
)
{
onShareAppMessage
(
res
)
{
return
{
return
{
title
:
'扳手记账'
,
title
:
'扳手记账'
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
imageUrl
:
this
.
shareImage
,
imageUrl
:
this
.
shareImage
}
};
},
}
},
}
}
}
;
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.index-view
{
.index-view
{
height
:
100vh
;
height
:
100vh
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
.content-view
{
.content-view
{
height
:
100%
;
height
:
100%
;
overflow-x
:
scroll
;
overflow-x
:
scroll
;
padding
:
0rpx
24rpx
80rpx
24rpx
;
padding
:
0rpx
24rpx
80rpx
24rpx
;
margin-bottom
:
-60rpx
;
margin-bottom
:
-60rpx
;
.head-view
{
.head-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin-bottom
:
32rpx
;
margin-bottom
:
32rpx
;
.left-view
{
.left-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.logo-image
{
.logo-image
{
width
:
64rpx
;
width
:
64rpx
;
height
:
64rpx
;
height
:
64rpx
;
border-radius
:
50%
;
border-radius
:
50%
;
background-color
:
#02a074
;
background-color
:
#02a074
;
margin-right
:
16rpx
;
margin-right
:
16rpx
;
}
}
.title-view
{
.title-view
{
font-size
:
44rpx
;
font-size
:
44rpx
;
color
:
#333333
;
color
:
#333333
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
}
}
.right-view
{
.right-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
flex-end
;
justify-content
:
flex-end
;
.location-view
{
.location-view
{
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#333333
;
color
:
#333333
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.location-icon-view
{
.location-icon-view
{
margin-right
:
8rpx
;
margin-right
:
8rpx
;
width
:
24rpx
;
width
:
24rpx
;
height
:
28rpx
;
height
:
28rpx
;
}
}
}
}
.weather-view
{
.weather-view
{
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#333333
;
color
:
#333333
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin-left
:
24rpx
;
margin-left
:
24rpx
;
.weather-icon-view
{
.weather-icon-view
{
margin-right
:
8rpx
;
margin-right
:
8rpx
;
width
:
28rpx
;
width
:
28rpx
;
height
:
28rpx
;
height
:
28rpx
;
}
}
.weather-text
{
.weather-text
{
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#333333
;
color
:
#333333
;
margin-right
:
8rpx
;
margin-right
:
8rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
}
}
}
}
}
}
.info-view
{
.info-view
{
box-shadow
:
0
8rpx
24rpx
rgba
(
24
,
204
,
100
,
0
.35
);
box-shadow
:
0
8rpx
24rpx
rgba
(
24
,
204
,
100
,
0
.35
);
position
:
relative
;
position
:
relative
;
.info-back-image
{
.info-back-image
{
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
right
:
0
;
right
:
0
;
left
:
0
;
left
:
0
;
}
}
.info-content
{
.info-content
{
color
:
#ffffff
;
color
:
#ffffff
;
position
:
relative
;
position
:
relative
;
padding
:
20rpx
24rpx
24rpx
24rpx
;
padding
:
20rpx
24rpx
24rpx
24rpx
;
.info-head-view
{
.info-head-view
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
font-weight
:
bold
;
font-weight
:
bold
;
.left-view
{
.left-view
{
font-size
:
28rpx
;
font-size
:
28rpx
;
}
}
.right-view
{
.right-view
{
border-radius
:
8rpx
;
border-radius
:
8rpx
;
background-color
:
rgba
(
24
,
204
,
100
,
0
.3
);
background-color
:
rgba
(
24
,
204
,
100
,
0
.3
);
height
:
56rpx
;
height
:
56rpx
;
padding
:
0rpx
16rpx
;
padding
:
0rpx
16rpx
;
display
:
flex
;
display
:
flex
;
justify-content
:
flex-end
;
justify-content
:
flex-end
;
align-items
:
center
;
align-items
:
center
;
.date-view
{
.date-view
{
font-size
:
24rpx
;
font-size
:
24rpx
;
margin-right
:
8rpx
;
margin-right
:
8rpx
;
}
}
}
}
}
}
.info-money-view
{
.info-money-view
{
font-size
:
64rpx
;
font-size
:
64rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
margin-top
:
28rpx
;
margin-top
:
28rpx
;
margin-bottom
:
32rpx
;
margin-bottom
:
32rpx
;
}
}
.info-bottom-view
{
.info-bottom-view
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
.left-view
{
.left-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
font-size
:
24rpx
;
font-size
:
24rpx
;
}
}
.money-view
{
.money-view
{
font-weight
:
bold
;
font-weight
:
bold
;
font-size
:
28rpx
;
font-size
:
28rpx
;
margin-left
:
16rpx
;
margin-left
:
16rpx
;
}
}
.right-view
{
.right-view
{
display
:
flex
;
display
:
flex
;
justify-content
:
flex-end
;
justify-content
:
flex-end
;
align-items
:
center
;
align-items
:
center
;
font-size
:
24rpx
;
font-size
:
24rpx
;
}
}
}
}
}
}
}
}
.tool-view
{
.tool-view
{
border-radius
:
16rpx
;
border-radius
:
16rpx
;
background-color
:
#ffffff
;
background-color
:
#ffffff
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
padding
:
0rpx
24rpx
0
48rpx
;
padding
:
0rpx
24rpx
0
48rpx
;
margin-top
:
40rpx
;
margin-top
:
40rpx
;
height
:
136rpx
;
height
:
136rpx
;
.item-view
{
.item-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.left-view
{
.left-view
{
margin-right
:
20rpx
;
margin-right
:
20rpx
;
.name-view
{
.name-view
{
font-weight
:
bold
;
font-weight
:
bold
;
font-size
:
32rpx
;
font-size
:
32rpx
;
color
:
#333333
;
color
:
#333333
;
margin-bottom
:
8rpx
;
margin-bottom
:
8rpx
;
}
}
.tip-view
{
.tip-view
{
color
:
#02a074
;
color
:
#02a074
;
font-size
:
24rpx
;
font-size
:
24rpx
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
flex-end
;
justify-content
:
flex-end
;
.tip-text
{
.tip-text
{
margin-right
:
12rpx
;
margin-right
:
12rpx
;
}
}
}
}
}
}
.right-view
{
.right-view
{
width
:
128rpx
;
width
:
128rpx
;
height
:
128rpx
;
height
:
128rpx
;
}
}
}
}
}
}
.operate-view
{
.operate-view
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
margin
:
72rpx
56rpx
64rpx
56rpx
;
margin
:
72rpx
56rpx
64rpx
56rpx
;
.item-view
{
.item-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
flex-direction
:
column
;
flex-direction
:
column
;
.image-view
{
.image-view
{
width
:
56rpx
;
width
:
56rpx
;
height
:
56rpx
;
height
:
56rpx
;
margin-bottom
:
28rpx
;
margin-bottom
:
28rpx
;
}
}
.name-view
{
.name-view
{
color
:
#333333
;
color
:
#333333
;
font-size
:
28rpx
;
font-size
:
28rpx
;
}
}
}
}
}
}
.detail-view
{
.detail-view
{
.detail-head-view
{
.detail-head-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.title-view
{
.title-view
{
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#333333
;
color
:
#333333
;
font-size
:
32rpx
;
font-size
:
32rpx
;
margin-right
:
16rpx
;
margin-right
:
16rpx
;
}
}
.tip-view
{
.tip-view
{
color
:
#8d8d8d
;
color
:
#8d8d8d
;
font-size
:
24rpx
;
font-size
:
24rpx
;
margin-top
:
6rpx
;
margin-top
:
6rpx
;
}
}
}
}
// .list-view {
// .list-view {
// .list-day-view {
// .list-day-view {
// background-color: #ffffff;
// background-color: #ffffff;
// border-radius: 16rpx;
// border-radius: 16rpx;
// margin-top: 24rpx;
// margin-top: 24rpx;
// .cell-head {
// .cell-head {
// display: flex;
// display: flex;
// justify-content: space-between;
// justify-content: space-between;
// align-items: center;
// align-items: center;
// padding: 24rpx 24rpx 8rpx 24rpx;
// padding: 24rpx 24rpx 8rpx 24rpx;
// .left-view {
// .left-view {
// display: flex;
// display: flex;
// align-items: center;
// align-items: center;
// .week-view {
// .week-view {
// font-size: 28rpx;
// font-size: 28rpx;
// font-weight: bold;
// font-weight: bold;
// color: #333333;
// color: #333333;
// }
// }
// .day-view {
// .day-view {
// color: #8d8d8d;
// color: #8d8d8d;
// font-size: 24rpx;
// font-size: 24rpx;
// }
// }
// }
// }
// .right-view {
// .right-view {
// display: flex;
// display: flex;
// align-items: center;
// align-items: center;
// color: #8d8d8d;
// color: #8d8d8d;
// font-size: 24rpx;
// font-size: 24rpx;
// .count-view {
// .count-view {
// font-weight: bold;
// font-weight: bold;
// color: #333333;
// color: #333333;
// }
// }
// }
// }
// }
// }
// }
// }
// }
// }
}
}
}
}
// .red-text {
// .red-text {
// color: #fc524d;
// color: #fc524d;
// }
// }
}
}
</
style
>
</
style
>
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