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
73c8a7cf
Commit
73c8a7cf
authored
Oct 31, 2023
by
李智书
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v_c_application_feature_1031' into 'develop'
1.新增支持外部跳转具体页面; See merge request
!7
parents
a7c95f1a
dc246953
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
13 deletions
+35
-13
src/pages/ApplyConsumption/Home/Home.vue
src/pages/ApplyConsumption/Home/Home.vue
+20
-3
src/pages/ApplyConsumption/campusReport/campusReport.vue
src/pages/ApplyConsumption/campusReport/campusReport.vue
+15
-10
No files found.
src/pages/ApplyConsumption/Home/Home.vue
View file @
73c8a7cf
...
@@ -79,7 +79,9 @@
...
@@ -79,7 +79,9 @@
<view
class=
"sketch"
>
{{
item
.
sketch
||
''
}}
</view>
<view
class=
"sketch"
>
{{
item
.
sketch
||
''
}}
</view>
</view>
</view>
<view
class=
"icon"
>
<view
class=
"icon"
>
<image
:src=
"index+1 != 5 ? item.icon : 'https://xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/applyCons/menu3.png'"
mode=
"aspectFit"
></image>
<image
:src=
"index+1 != 5 ? item.icon : 'https://xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/applyCons/menu3.png'"
mode=
"aspectFit"
></image>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -116,6 +118,8 @@
...
@@ -116,6 +118,8 @@
requestGet
,
requestGet
,
requestPost
requestPost
}
from
'
../common/request.js
'
}
from
'
../common/request.js
'
// 判断是否支付宝小程序
const
AliAppMini
=
navigator
.
userAgent
.
indexOf
(
'
AliApp
'
)
>
-
1
export
default
{
export
default
{
name
:
"
CampusConsumption
"
,
name
:
"
CampusConsumption
"
,
data
()
{
data
()
{
...
@@ -176,6 +180,10 @@
...
@@ -176,6 +180,10 @@
},
},
// 消费会员弹框
// 消费会员弹框
contractMenber
:
false
,
contractMenber
:
false
,
// 跳转内部页面path
path
:
''
,
// 支付宝小程序
aliMini
:
AliAppMini
};
};
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
...
@@ -190,6 +198,9 @@
...
@@ -190,6 +198,9 @@
return
;
return
;
}
}
this
.
UserLogin
(
options
[
'
token
'
])
this
.
UserLogin
(
options
[
'
token
'
])
if
(
options
[
'
path
'
])
{
this
.
path
=
options
[
'
path
'
]
||
""
}
},
},
methods
:
{
methods
:
{
// 弹框点击事情
// 弹框点击事情
...
@@ -221,7 +232,13 @@
...
@@ -221,7 +232,13 @@
return
return
}
}
uni
.
setStorageSync
(
'
token
'
,
data
.
data
[
'
token
'
])
uni
.
setStorageSync
(
'
token
'
,
data
.
data
[
'
token
'
])
this
.
HomePageData
()
await
this
.
HomePageData
()
// 20231031
if
(
this
[
'
path
'
])
{
uni
.
redirectTo
({
url
:
this
[
'
path
'
]
})
}
},
},
// 查询消费会员权益项
// 查询消费会员权益项
async
QueryProductContractItem
(
serviceItemCode
=
'
1008
'
)
{
async
QueryProductContractItem
(
serviceItemCode
=
'
1008
'
)
{
...
@@ -315,7 +332,7 @@
...
@@ -315,7 +332,7 @@
}
}
const
query
=
const
query
=
`?name=
${
this
.
HomeDataInfo
[
'
userName
'
]}
&accountId=
${
this
.
HomeDataInfo
[
'
accountId
'
]}
&userId=
${
this
.
userInfo
[
'
userId
'
]}
&schoolId=
${
this
.
userInfo
[
'
schoolId
'
]}
&userType=
${
this
.
userInfo
[
'
userType
'
]}
`
`?name=
${
this
.
HomeDataInfo
[
'
userName
'
]}
&accountId=
${
this
.
HomeDataInfo
[
'
accountId
'
]}
&userId=
${
this
.
userInfo
[
'
userId
'
]}
&schoolId=
${
this
.
userInfo
[
'
schoolId
'
]}
&userType=
${
this
.
userInfo
[
'
userType
'
]}
`
console
.
log
(
item
.
path
+
query
)
console
.
log
(
item
.
path
+
query
)
uni
.
switchTab
({
uni
.
switchTab
({
url
:
item
.
path
+
query
,
url
:
item
.
path
+
query
,
fail
:
()
=>
{
fail
:
()
=>
{
...
...
src/pages/ApplyConsumption/campusReport/campusReport.vue
View file @
73c8a7cf
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
</
template
>
</
template
>
</view>
</view>
<
template
>
<
template
>
<!-- 生活费额度 -->
<!-- 生活费额度 -->
<view
class=
"living"
>
<view
class=
"living"
>
<view
class=
"hed"
>
<view
class=
"hed"
>
...
@@ -227,7 +227,8 @@
...
@@ -227,7 +227,8 @@
class=
"prefer_light"
>
{{
userDealReportListAndSumObj
.
wanSumAmount
||
0
}}
</text>
元
</span>
class=
"prefer_light"
>
{{
userDealReportListAndSumObj
.
wanSumAmount
||
0
}}
</text>
元
</span>
</view>
</view>
<view
class=
"detail_lists"
>
<view
class=
"detail_lists"
>
<view
class=
"listsHead"
v-if=
"userDealReportListAndSumObj.list && userDealReportListAndSumObj.list.length"
>
<view
class=
"listsHead"
v-if=
"userDealReportListAndSumObj.list && userDealReportListAndSumObj.list.length"
>
<span>
日期
</span>
<span>
日期
</span>
<span>
早餐
</span>
<span>
早餐
</span>
<span>
午餐
</span>
<span>
午餐
</span>
...
@@ -257,7 +258,7 @@
...
@@ -257,7 +258,7 @@
</
template
>
</
template
>
<!-- 底部部分 -->
<!-- 底部部分 -->
<view
class=
"footer"
>
<view
class=
"footer"
:style=
"aliMini?'visibility: hidden;':''"
>
<view
class=
"footer_left"
>
<view
class=
"footer_left"
>
<view
class=
"footer_left_top"
>
到期后将无法查看完整报告
</view>
<view
class=
"footer_left_top"
>
到期后将无法查看完整报告
</view>
<view
class=
"footer_left_bottom"
>
有效期至
<span
class=
"special"
>
{{vipExpiredDt}}
</span>
,剩余
<span
<view
class=
"footer_left_bottom"
>
有效期至
<span
class=
"special"
>
{{vipExpiredDt}}
</span>
,剩余
<span
...
@@ -320,6 +321,8 @@
...
@@ -320,6 +321,8 @@
requestPost
requestPost
}
from
'
../common/request.js
'
}
from
'
../common/request.js
'
import
config
from
'
../common/config.js
'
import
config
from
'
../common/config.js
'
// 判断是否支付宝小程序
const
AliAppMini
=
navigator
.
userAgent
.
indexOf
(
'
AliApp
'
)
>
-
1
export
default
{
export
default
{
name
:
'
campusReport
'
,
name
:
'
campusReport
'
,
data
()
{
data
()
{
...
@@ -362,6 +365,8 @@
...
@@ -362,6 +365,8 @@
homeDataInfo
:
{},
homeDataInfo
:
{},
vipExpiredDt
:
""
,
// 有效期
vipExpiredDt
:
""
,
// 有效期
vipDaysRemaining
:
0
,
//有效天数
vipDaysRemaining
:
0
,
//有效天数
// 支付宝小程序
aliMini
:
AliAppMini
}
}
},
},
components
:
{
components
:
{
...
@@ -396,18 +401,18 @@
...
@@ -396,18 +401,18 @@
this
.
today
.
date
=
(
this
.
currentDate
.
month
+
1
)
+
'
月1日
'
this
.
today
.
date
=
(
this
.
currentDate
.
month
+
1
)
+
'
月1日
'
console
.
log
(
this
.
currentDate
,
'
currentDate1111111111111
'
,
this
.
shareDate
,
'
this.homeDataInfo
'
,
this
console
.
log
(
this
.
currentDate
,
'
currentDate1111111111111
'
,
this
.
shareDate
,
'
this.homeDataInfo
'
,
this
.
homeDataInfo
)
.
homeDataInfo
)
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
dataRangeArr
,
'
dataRangeArr
'
)
console
.
log
(
this
.
dataRangeArr
,
'
dataRangeArr
'
)
this
.
homeDataInfo
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'
HomeDataInfo
'
))
this
.
homeDataInfo
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'
HomeDataInfo
'
))
this
.
QueryProductContractItemDetailResp
(
config
[
'
ServiceEnum
'
][
'
Auth2
'
]);
this
.
QueryProductContractItemDetailResp
(
config
[
'
ServiceEnum
'
][
'
Auth2
'
]);
this
.
getCampusConsumerReport
()
this
.
getCampusConsumerReport
()
if
(
this
.
homeDataInfo
.
vipStatus
===
1
)
{
if
(
this
.
homeDataInfo
.
vipStatus
===
1
)
{
this
.
isVip
=
true
;
this
.
isVip
=
true
;
}
}
this
.
getCateringAbnormalTypeGroupList
()
this
.
getCateringAbnormalTypeGroupList
()
console
.
log
(
this
.
isVip
,
'
isVip
'
)
console
.
log
(
this
.
isVip
,
'
isVip
'
)
this
.
columns
=
this
.
dataRangeArr
.
map
(
x
=>
x
.
month
)
this
.
columns
=
this
.
dataRangeArr
.
map
(
x
=>
x
.
month
)
...
@@ -416,7 +421,7 @@
...
@@ -416,7 +421,7 @@
methods
:
{
methods
:
{
// 查询消费会员权益项
// 查询消费会员权益项
async
QueryProductContractItemDetailResp
(
serviceItemCode
=
'
1002
'
)
{
async
QueryProductContractItemDetailResp
(
serviceItemCode
=
'
1002
'
)
{
console
.
log
(
config
[
'
ServiceEnum
'
][
'
Auth2
'
],
'
Auth2
'
,
this
.
homeDataInfo
)
console
.
log
(
config
[
'
ServiceEnum
'
][
'
Auth2
'
],
'
Auth2
'
,
this
.
homeDataInfo
)
const
data
=
await
requestPost
(
'
/cgi-xpay/app/h5/QueryProductContractItemDetail
'
,
{
const
data
=
await
requestPost
(
'
/cgi-xpay/app/h5/QueryProductContractItemDetail
'
,
{
accountId
:
this
.
homeDataInfo
[
'
accountId
'
],
accountId
:
this
.
homeDataInfo
[
'
accountId
'
],
serviceItemCode
serviceItemCode
...
@@ -491,8 +496,8 @@
...
@@ -491,8 +496,8 @@
this
.
getCampusConsumerReport
()
this
.
getCampusConsumerReport
()
// if (this.homeDataInfo.vipStatus === 1) {
// if (this.homeDataInfo.vipStatus === 1) {
// this.initPieCharts()
// this.initPieCharts()
this
.
getCateringAbnormalTypeGroupList
()
this
.
getCateringAbnormalTypeGroupList
()
// }
// }
this
.
pickerShow
=
!
this
.
pickerShow
;
this
.
pickerShow
=
!
this
.
pickerShow
;
this
.
isShow
=
false
;
this
.
isShow
=
false
;
...
@@ -538,7 +543,7 @@
...
@@ -538,7 +543,7 @@
return
return
}
}
this
.
campusConsumerReportInfo
=
data
.
data
;
this
.
campusConsumerReportInfo
=
data
.
data
;
this
.
initPieCharts
()
this
.
initPieCharts
()
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
warn
(
e
)
console
.
warn
(
e
)
//TODO handle the exception
//TODO handle the exception
...
...
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