Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
X
xzf_uniapp-wechat-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
李智书
xzf_uniapp-wechat-web
Commits
a73c6a26
Commit
a73c6a26
authored
Jun 21, 2022
by
aifen@azjy1.onexmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校园报告优化
parent
08c5753d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
28 deletions
+29
-28
src/pages/SchoolReport/SchoolReport.vue
src/pages/SchoolReport/SchoolReport.vue
+29
-28
No files found.
src/pages/SchoolReport/SchoolReport.vue
View file @
a73c6a26
...
@@ -272,7 +272,7 @@
...
@@ -272,7 +272,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
v-
if
=
"tabIndex==1&&isOpen"
class=
"school-report-context-card-three"
>
<view
v-
show
=
"tabIndex==1&&isOpen"
class=
"school-report-context-card-three"
>
<view
class=
"school-report-context-card-title"
>
<view
class=
"school-report-context-card-title"
>
<view
class=
"school-report-context-card-title-img"
>
<view
class=
"school-report-context-card-title-img"
>
<text>
消费偏好
</text>
<text>
消费偏好
</text>
...
@@ -289,7 +289,7 @@
...
@@ -289,7 +289,7 @@
<view
id=
"consumer-preferences-pie"
>
<view
id=
"consumer-preferences-pie"
>
</view>
</view>
</view>
</view>
<view
v-
if
=
"tabIndex==1&&isOpen"
class=
"school-report-context-card-four"
>
<view
v-
show
=
"tabIndex==1&&isOpen"
class=
"school-report-context-card-four"
>
<view
class=
"school-report-context-card-title"
>
<view
class=
"school-report-context-card-title"
>
<view
class=
"school-report-context-card-title-img"
>
<view
class=
"school-report-context-card-title-img"
>
<text>
生活费额度
</text>
<text>
生活费额度
</text>
...
@@ -341,7 +341,7 @@
...
@@ -341,7 +341,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
v-
if
=
"tabIndex==1&&isOpen"
class=
"school-report-context-card-five"
>
<view
v-
show
=
"tabIndex==1&&isOpen"
class=
"school-report-context-card-five"
>
<view
class=
"school-report-context-card-title"
>
<view
class=
"school-report-context-card-title"
>
<view
class=
"school-report-context-card-title-img"
>
<view
class=
"school-report-context-card-title-img"
>
<text>
消费趋势
</text>
<text>
消费趋势
</text>
...
@@ -417,7 +417,7 @@
...
@@ -417,7 +417,7 @@
</van-calendar>
</van-calendar>
</view>
</view>
</view>
</view>
<view
v-if=
"tabIndex==2"
class=
"attendance-report-context-details"
<view
v-if=
"tabIndex==2
&&isAttendanceOpen
"
class=
"attendance-report-context-details"
:style=
"{height:attendanceReportDatail.length?858:620+'rpx',overflow:attendanceReportDatail.length?'scroll':'none',top:attendanceReportDatail.length?-30:0+'rpx'}"
>
:style=
"{height:attendanceReportDatail.length?858:620+'rpx',overflow:attendanceReportDatail.length?'scroll':'none',top:attendanceReportDatail.length?-30:0+'rpx'}"
>
<view
v-for=
"(detailItem,detailIndex) in attendanceReportDatail"
:key=
"detailIndex"
>
<view
v-for=
"(detailItem,detailIndex) in attendanceReportDatail"
:key=
"detailIndex"
>
<view
v-if=
"detailItem.attendIntervalType&&detailItem.attendIntervalType!=-1"
<view
v-if=
"detailItem.attendIntervalType&&detailItem.attendIntervalType!=-1"
...
@@ -591,7 +591,7 @@
...
@@ -591,7 +591,7 @@
<view
id=
"leave-message-bar"
>
<view
id=
"leave-message-bar"
>
</view>
</view>
</view>
</view>
<view
v-if=
"
isOpen||isPubTalkOpen||isAttendanceOpen
"
class=
"school-report-footer"
>
<view
v-if=
"
flag!=tabIndex
"
class=
"school-report-footer"
>
<view
class=
"school-report-footer-item"
>
<view
class=
"school-report-footer-item"
>
<view
class=
"school-report-footer-item-txt"
>
<view
class=
"school-report-footer-item-txt"
>
<text>
到期后将无法查看完整报告
</text>
<text>
到期后将无法查看完整报告
</text>
...
@@ -609,11 +609,11 @@
...
@@ -609,11 +609,11 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
v-if=
"f
alse
"
class=
"no-open"
<view
v-if=
"f
lag==tabIndex
"
class=
"no-open"
:style=
"{height:[915,845,891][tabIndex-1]+'rpx',top:[1425,1099,
1260
][tabIndex-1]+'rpx'}"
>
:style=
"{height:[915,845,891][tabIndex-1]+'rpx',top:[1425,1099,
pubTalkNoopenHeight
][tabIndex-1]+'rpx'}"
>
<view
class=
"no-open-solution"
@
tap=
"equityPay"
>
<view
class=
"no-open-solution"
@
tap=
"equityPay"
>
<view
class=
"no-open-solution-txt"
>
<view
class=
"no-open-solution-txt"
>
<text>
最低{{memberInfo.leastAmount
||''
}}元/天开通,查看完整{{['消费','出入校','公话'][tabIndex-1]}}报告
</text>
<text>
最低{{memberInfo.leastAmount}}元/天开通,查看完整{{['消费','出入校','公话'][tabIndex-1]}}报告
</text>
</view>
</view>
<view
class=
"no-open-solution-item"
>
<view
class=
"no-open-solution-item"
>
</view>
</view>
...
@@ -929,11 +929,11 @@
...
@@ -929,11 +929,11 @@
isOpen
:
false
,
isOpen
:
false
,
isService
:
false
,
isService
:
false
,
// 出入校
// 出入校
isAttendanceOpen
:
tru
e
,
isAttendanceOpen
:
fals
e
,
isAttendanceService
:
tru
e
,
isAttendanceService
:
fals
e
,
// 公话
// 公话
isPubTalkOpen
:
tru
e
,
isPubTalkOpen
:
fals
e
,
isPubTalkService
:
tru
e
,
isPubTalkService
:
fals
e
,
flag
:
0
,
flag
:
0
,
memberInfo
:
{
memberInfo
:
{
leastAmount
:
''
,
leastAmount
:
''
,
...
@@ -941,7 +941,8 @@
...
@@ -941,7 +941,8 @@
differDay
:
''
differDay
:
''
},
},
containerHeight
:
''
,
containerHeight
:
''
,
pubTalkSummaryHeight
:
525
pubTalkSummaryHeight
:
525
,
pubTalkNoopenHeight
:
1260
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -961,12 +962,12 @@
...
@@ -961,12 +962,12 @@
})
})
}
}
// 有无进出校、公话入口
// 有无进出校、公话入口
//
this.queryMemberServcieItem().then(() => {
this
.
queryMemberServcieItem
().
then
(()
=>
{
//
if (this.queryMemberServcieItemList.length) {
if
(
this
.
queryMemberServcieItemList
.
length
)
{
//
this.isAttendanceService = this.queryMemberServcieItemList.indexOf(3002) == -1 ? false : true;
this
.
isAttendanceService
=
this
.
queryMemberServcieItemList
.
indexOf
(
3002
)
==
-
1
?
false
:
true
;
//
this.isPubTalkService = this.queryMemberServcieItemList.indexOf(2002) == -1 ? false : true;
this
.
isPubTalkService
=
this
.
queryMemberServcieItemList
.
indexOf
(
2002
)
==
-
1
?
false
:
true
;
//
}
}
//
})
})
// 消费报告
// 消费报告
this
.
queryIsDredgeMember
(
1002
).
then
(()
=>
{
this
.
queryIsDredgeMember
(
1002
).
then
(()
=>
{
if
(
this
.
isOpen
)
{
if
(
this
.
isOpen
)
{
...
@@ -1111,7 +1112,7 @@
...
@@ -1111,7 +1112,7 @@
if
(
this
.
attendanceReportDatail
.
length
)
{
if
(
this
.
attendanceReportDatail
.
length
)
{
this
.
containerHeight
=
2762
;
this
.
containerHeight
=
2762
;
}
else
{
}
else
{
this
.
containerHeight
=
190
4
;
this
.
containerHeight
=
252
4
;
}
}
});
});
}
}
...
@@ -2124,6 +2125,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
...
@@ -2124,6 +2125,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
}
else
{
}
else
{
this
.
queryMemberConsumerAmount
(
serviceItemCode
);
this
.
queryMemberConsumerAmount
(
serviceItemCode
);
this
.
containerHeight
=
1605
+
this
.
pubTalkSummaryHeight
;
this
.
containerHeight
=
1605
+
this
.
pubTalkSummaryHeight
;
this
.
pubTalkNoopenHeight
=
735
+
this
.
pubTalkSummaryHeight
;
this
.
flag
=
3
;
this
.
flag
=
3
;
}
}
break
;
break
;
...
@@ -2135,7 +2137,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
...
@@ -2135,7 +2137,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
this
.
flag
=
0
;
this
.
flag
=
0
;
}
else
{
}
else
{
this
.
queryMemberConsumerAmount
(
serviceItemCode
);
this
.
queryMemberConsumerAmount
(
serviceItemCode
);
this
.
containerHeight
=
19
4
4
;
this
.
containerHeight
=
19
7
4
;
this
.
flag
=
2
;
this
.
flag
=
2
;
}
}
break
;
break
;
...
@@ -2213,7 +2215,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
...
@@ -2213,7 +2215,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
})
})
return
return
}
}
this
.
memberInfo
.
leastAmount
=
data
.
obj
.
leastAmount
||
''
;
this
.
memberInfo
.
leastAmount
=
data
.
obj
.
leastAmount
;
}
catch
(
e
)
{
}
catch
(
e
)
{
//TODO handle the exception
//TODO handle the exception
console
.
log
(
e
);
console
.
log
(
e
);
...
@@ -3064,7 +3066,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
...
@@ -3064,7 +3066,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
/
deep
/
.progress-day
{
/
deep
/
.progress-day
{
color
:
#DAA000
;
color
:
#DAA000
;
background
:
url(../../static/images/progress.png)
no-repeat
-
4
rpx
center
/
100%
;
background
:
url(../../static/images/progress.png)
no-repeat
-
2
rpx
center
/
100%
;
border-radius
:
22rpx
;
border-radius
:
22rpx
;
width
:
88rpx
;
width
:
88rpx
;
height
:
88rpx
;
height
:
88rpx
;
...
@@ -3276,15 +3278,14 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
...
@@ -3276,15 +3278,14 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
.attendance-report-details-img-item
{
.attendance-report-details-img-item
{
display
:
flex
;
display
:
flex
;
align-items
:
flex-end
;
justify-content
:
flex-end
;
width
:
1
55rpx
;
width
:
1
00%
;
height
:
95rpx
;
height
:
95rpx
;
margin
:
14rpx
0
0
;
margin
:
14rpx
0
0
;
.attendance-report-details-img-box
{
.attendance-report-details-img-box
{
display
:
flex
;
width
:
155rpx
;
justify-content
:
flex-end
;
height
:
95rpx
;
image
{
image
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
...
...
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