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
de553b2a
Commit
de553b2a
authored
Jul 17, 2023
by
lizhishu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.新增消费应用;
parent
6494395c
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
2260 additions
and
2 deletions
+2260
-2
src/manifest.json
src/manifest.json
+10
-2
src/pages.json
src/pages.json
+45
-0
src/pages/ApplyConsumption/CommonProblem/CommonProblem.vue
src/pages/ApplyConsumption/CommonProblem/CommonProblem.vue
+239
-0
src/pages/ApplyConsumption/ConsumptIoninfo/ConsumptIoninfo.vue
...ages/ApplyConsumption/ConsumptIoninfo/ConsumptIoninfo.vue
+464
-0
src/pages/ApplyConsumption/ConsumptionQuota/ConsumptionQuota.vue
...es/ApplyConsumption/ConsumptionQuota/ConsumptionQuota.vue
+873
-0
src/pages/ApplyConsumption/Home/Home.vue
src/pages/ApplyConsumption/Home/Home.vue
+467
-0
src/pages/ApplyConsumption/OrderClearSuspicions/OrderClearSuspicions.vue
...Consumption/OrderClearSuspicions/OrderClearSuspicions.vue
+69
-0
src/pages/ApplyConsumption/apply.md
src/pages/ApplyConsumption/apply.md
+1
-0
src/pages/ApplyConsumption/common/config.js
src/pages/ApplyConsumption/common/config.js
+30
-0
src/pages/ApplyConsumption/common/request.js
src/pages/ApplyConsumption/common/request.js
+62
-0
No files found.
src/manifest.json
View file @
de553b2a
...
...
@@ -89,9 +89,17 @@
"disableHostCheck"
:
true
,
"proxy"
:
{
"/"
:
{
"target"
:
"https://
dev-az-cloud-api
.xiaopay.net"
,
"target"
:
"https://
fpdev
.xiaopay.net"
,
"changeOrigin"
:
true
,
"secure"
:
false
},
"/cgi-xpay"
:
{
"target"
:
"https://fpdev.xiaopay.net"
,
"changeOrigin"
:
true
,
"secure"
:
false
,
"pathRewrite"
:
{
"/cgi-xpay"
:
"/"
}
}
}
},
...
...
@@ -115,4 +123,4 @@
"enable"
:
true
}
}
}
}
\ No newline at end of file
src/pages.json
View file @
de553b2a
...
...
@@ -488,6 +488,51 @@
}
}
,{
"path"
:
"pages/ApplyConsumption/Home/Home"
,
"style"
:
{
"navigationBarTitleText"
:
"校园消费"
,
"enablePullDownRefresh"
:
false
}
}
,{
"path"
:
"pages/ApplyConsumption/CommonProblem/CommonProblem"
,
"style"
:
{
"navigationBarTitleText"
:
"常见问题"
,
"enablePullDownRefresh"
:
false
}
}
,{
"path"
:
"pages/ApplyConsumption/ConsumptIoninfo/ConsumptIoninfo"
,
"style"
:
{
"navigationBarTitleText"
:
"消费记录"
,
"enablePullDownRefresh"
:
false
}
}
,{
"path"
:
"pages/ApplyConsumption/ConsumptionQuota/ConsumptionQuota"
,
"style"
:
{
"navigationBarTitleText"
:
"消费限额"
,
"enablePullDownRefresh"
:
false
}
}
,{
"path"
:
"pages/ApplyConsumption/OrderClearSuspicions/OrderClearSuspicions"
,
"style"
:
{
"navigationBarTitleText"
:
"待还款订单"
,
"enablePullDownRefresh"
:
false
}
}
],
"globalStyle"
:
{
"navigationBarTextStyle"
:
"black"
,
...
...
src/pages/ApplyConsumption/CommonProblem/CommonProblem.vue
0 → 100644
View file @
de553b2a
<
template
>
<view
class=
"CommonProblem container"
>
<view
class=
"questionbox"
>
<view
class=
"questionList"
v-for=
"(item,index) in questionList"
:key=
"index"
@
tap=
"jumpClick(item.jumurl,item.jumtype)"
>
<view
class=
"line1"
>
<view
class=
"lable"
>
<text>
{{
item
.
alable
}}
</text>
</view>
<view
class=
"content"
>
{{
(
index
+
1
)
+
'
.
'
+
item
.
question
}}
</view>
</view>
<view
class=
"line2"
>
<view
class=
"lable"
>
<text>
{{
item
.
qlable
}}
</text>
</view>
<view
class=
"content"
>
<text>
{{
item
.
answer
}}
</text>
</view>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
name
:
"
CommonProblem
"
,
data
()
{
return
{
ImgUrl2
:
this
.
$ImgUrl
+
'
xzfalipay/
'
,
"
questionList
"
:
[{
"
jumurl
"
:
""
,
"
jumtype
"
:
"
1
"
,
"
qlable
"
:
"
问
"
,
"
alable
"
:
"
答
"
,
"
question
"
:
"
学生在校外刷脸,会扣家长的钱么?
"
,
"
answer
"
:
"
一脸通行服务仅限校园内使用。在不同的学校使用刷脸服务需要用户分别去开通。
"
},
{
"
jumurl
"
:
""
,
"
jumtype
"
:
"
1
"
,
"
qlable
"
:
"
问
"
,
"
alable
"
:
"
答
"
,
"
question
"
:
"
学生刷脸的照片或信息会泄露么?
"
,
"
answer
"
:
"
一脸通行集成了支付宝刷脸算法和支付能力,具有金融级准确性和安全性。人脸数据由支付宝管理,用户可以随时关闭刷脸服务。
"
},
{
"
jumurl
"
:
""
,
"
jumtype
"
:
"
1
"
,
"
qlable
"
:
"
问
"
,
"
alable
"
:
"
答
"
,
"
question
"
:
"
孩子可以正常刷脸取餐,为什么会产生欠费?
"
,
"
answer
"
:
"
校园刷脸采用“先取餐后扣费”的模式,账户余额不足就会产生欠费订单。请及时偿还,否则无法继续刷脸吃饭。
"
},
{
"
jumurl
"
:
""
,
"
jumtype
"
:
"
1
"
,
"
qlable
"
:
"
问
"
,
"
alable
"
:
"
答
"
,
"
question
"
:
"
为什么有订单刷脸时间和扣款时间不一致?
"
,
"
answer
"
:
"
为保障孩子及时就餐,只要账户未欠款,孩子刷脸成功后就可以先取餐,由于学校网络原因,扣款时间可能晚于刷脸时间。
"
},
{
"
jumurl
"
:
""
,
"
jumtype
"
:
"
1
"
,
"
qlable
"
:
"
问
"
,
"
alable
"
:
"
答
"
,
"
question
"
:
"
开通刷脸时,提示“相同名称的孩子已存在”怎么办?
"
,
"
answer
"
:
"
平台安全合规限制,一个支付宝账号,不能绑定重名的孩子。出现该情况的原因是,您的支付宝账号使用其他证件号绑定了同名孩子,需要在刷脸服务管理中,关闭之前的开通记录,才能使用新的证件号进行开通刷脸服务。
"
},
{
"
jumurl
"
:
""
,
"
jumtype
"
:
"
1
"
,
"
qlable
"
:
"
问
"
,
"
alable
"
:
"
答
"
,
"
question
"
:
"
跳转到一脸通行小程序采脸时,为什么会提示:ISV操作学校水平受限?
"
,
"
answer
"
:
"
您在开通时刷脸服务时,选择输入的学校未配置支付宝一脸通行服务,请检查选择的学校信息是否正确,或者联系学校工作人员修改学校配置信息。
"
},
{
"
jumurl
"
:
""
,
"
jumtype
"
:
"
1
"
,
"
qlable
"
:
"
问
"
,
"
alable
"
:
"
答
"
,
"
question
"
:
"
一脸通行刷脸支付支持信用卡和花呗支付吗?
"
,
"
answer
"
:
"
因支付宝平台安全合规限制,不支持信用卡与花呗。
"
}
]
};
},
onLoad
:
function
()
{
this
.
GetQuestionList
()
},
methods
:
{
// 获取问题列表
async
GetQuestionList
()
{
try
{
uni
.
showLoading
({
title
:
"
请稍后
"
,
// #ifndef MP-ALIPAY
mask
:
true
,
// #endif
})
const
[
err
,
data
]
=
await
uni
.
request
({
url
:
this
.
ImgUrl2
+
'
question.json
'
,
})
console
.
warn
(
data
)
if
(
Array
.
isArray
(
data
.
questionList
))
{
this
.
questionList
=
data
.
questionList
}
uni
.
hideLoading
()
}
catch
(
error
)
{
console
.
warn
(
error
)
uni
.
showToast
({
icon
:
"
error
"
,
title
:
error
.
message
})
}
},
// 扩展跳转
jumpClick
(
jumurl
,
jumtype
)
{
if
(
!
jumurl
)
{
return
}
switch
(
jumtype
)
{
case
'
1
'
:
uni
.
navigateTo
({
url
:
jumurl
,
fail
:
()
=>
{
uni
.
switchTab
({
url
:
jumurl
})
}
})
break
;
case
'
2
'
:
uni
.
navigateTo
({
url
:
'
/pages_subpack/pages/ClsWeekReport/main?ExternalLink=
'
+
encodeURIComponent
(
jumurl
)
});
break
;
case
'
3
'
:
uni
.
navigateToMiniProgram
({
appId
:
jumurl
});
break
;
default
:
break
;
}
},
}
}
</
script
>
<
style
lang=
"scss"
>
page
{
width
:
100%
;
background
:
#F3F3F3
;
}
.CommonProblem
{
padding-top
:
24rpx
;
padding-bottom
:
100rpx
;
.questionbox
{
width
:
702rpx
;
background
:
#FFFFFF
;
border-radius
:
16rpx
;
margin
:
0
auto
;
.questionList
{
padding-left
:
32rpx
;
padding-top
:
39rpx
;
border-bottom
:
2rpx
solid
#E4E4E4
;
padding-bottom
:
40rpx
;
.lable
{
width
:
44rpx
;
height
:
44rpx
;
font-size
:
28rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#FFFFFF
;
line-height
:
44rpx
;
text-align
:
center
;
}
.line1
{
display
:
flex
;
// justify-content: space-between;
.lable
{
background
:
#04B871
;
}
.content
{
// height: 40rpx;
width
:
572rpx
;
font-size
:
28rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
40rpx
;
margin-right
:
32rpx
;
margin-left
:
22rpx
;
}
}
.line2
{
display
:
flex
;
margin-top
:
17rpx
;
// justify-content: space-between;
.lable
{
background
:
#F9BA0C
;
}
.content
{
width
:
572rpx
;
font-size
:
28rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#999999
;
line-height
:
40rpx
;
margin-right
:
32rpx
;
margin-left
:
22rpx
;
}
}
}
}
}
</
style
>
\ No newline at end of file
src/pages/ApplyConsumption/ConsumptIoninfo/ConsumptIoninfo.vue
0 → 100644
View file @
de553b2a
This diff is collapsed.
Click to expand it.
src/pages/ApplyConsumption/ConsumptionQuota/ConsumptionQuota.vue
0 → 100644
View file @
de553b2a
This diff is collapsed.
Click to expand it.
src/pages/ApplyConsumption/Home/Home.vue
0 → 100644
View file @
de553b2a
This diff is collapsed.
Click to expand it.
src/pages/ApplyConsumption/OrderClearSuspicions/OrderClearSuspicions.vue
0 → 100644
View file @
de553b2a
<
template
>
<view
class=
"OrderClearSuspicions"
>
<view
class=
"problem"
>
<span>
为什么有待支付订单?
</span>
</view>
<view
class=
"problemdesc"
>
校园刷脸消费采用“先取餐后扣费”模式。孩子刷脸后验证是本人后先取餐,平台再进行扣费,账户余额不足就会产生欠费订单。请及时支付,否则后续无法继续刷脸吃饭。
</view>
<view
class=
"step_guide"
>
<image
:src=
"this.$ImgUrl + 'applyCons/step_guide.png'"
mode=
"aspectFit"
></image>
</view>
</view>
</
template
>
<
script
>
export
default
{
name
:
"
OrderClearSuspicions
"
,
data
()
{
return
{
ImgUrl
:
this
.
$ImgUrl
,
};
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
page
{
width
:
100%
;
background
:
#E4F3EE
;
}
.OrderClearSuspicions
{
.step_guide
{
width
:
686rpx
;
height
:
1484rpx
;
margin
:
0
auto
;
margin-top
:
40rpx
;
image
{
position
:
relative
;
height
:
100%
;
width
:
100%
;
}
}
.problemdesc
{
width
:
677rpx
;
height
:
111rpx
;
font-size
:
26rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
rgba
(
0
,
0
,
0
,
0
.5
);
line-height
:
37rpx
;
margin
:
0
auto
;
margin-top
:
16rpx
;
}
.problem
{
text-align
:
center
;
height
:
54rpx
;
font-size
:
36rpx
;
font-family
:
SourceHanSansSC-Bold
,
SourceHanSansSC
;
font-weight
:
bold
;
color
:
rgba
(
0
,
0
,
0
,
0
.85
);
line-height
:
54rpx
;
padding-top
:
49rpx
;
}
}
</
style
>
\ No newline at end of file
src/pages/ApplyConsumption/apply.md
0 → 100644
View file @
de553b2a
H5消费应用模块
\ No newline at end of file
src/pages/ApplyConsumption/common/config.js
0 → 100644
View file @
de553b2a
/**
* @name
*全局配置文件
*
*/
let
baseURL
=
"
https://
"
+
window
.
location
.
host
;
let
env
=
'
dev
'
if
(
window
.
location
.
protocol
!=
"
https:
"
)
{
env
=
"
dev
"
;
baseURL
=
'
https://fpdev.xiaopay.net
'
}
if
(
window
.
location
.
host
==
'
fpdev.xiaopay.net
'
)
{
env
=
"
dev
"
;
baseURL
=
'
https://fpdev.xiaopay.net
'
}
if
(
window
.
location
.
host
==
'
uat.xiaopay.net
'
)
{
env
=
"
test
"
;
baseURL
=
'
https://uat.xiaopay.net
'
}
if
(
window
.
location
.
host
==
'
pay.xiaopay.net
'
)
{
env
=
"
product
"
;
baseURL
=
'
https://pay.xiaopay.net
'
}
const
json
=
{
env
,
baseURL
}
export
default
json
;
\ No newline at end of file
src/pages/ApplyConsumption/common/request.js
0 → 100644
View file @
de553b2a
/**
*
* 请求封装
*
*/
import
config
from
'
./config.js
'
const
HEADER
=
{
'
content-type
'
:
'
application/json
'
};
//头部
const
baseURL
=
''
const
request
=
options
=>
{
let
headerObj
=
HEADER
;
const
token
=
uni
.
getStorageSync
(
'
token
'
);
if
(
token
)
{
headerObj
=
{
'
Authorization
'
:
token
,
...
HEADER
}
}
if
(
options
.
data
.
header
)
{
headerObj
=
Object
.
assign
(
headerObj
,
options
.
data
.
header
||
{})
}
return
new
Promise
((
resolve
,
reject
)
=>
{
uni
.
request
({
url
:
baseURL
+
options
.
url
,
method
:
options
.
method
||
'
GET
'
,
header
:
headerObj
,
data
:
options
.
data
||
{},
dataType
:
'
json
'
,
success
:
res
=>
{
if
(
res
.
statusCode
!=
200
)
{
reject
(
res
);
return
}
resolve
(
res
.
data
||
false
);
},
fail
:
err
=>
{
reject
(
err
);
}
});
});
};
export
const
requestGet
=
(
url
,
data
)
=>
{
return
request
({
method
:
'
GET
'
,
url
,
data
})
}
export
const
requestPost
=
(
url
,
data
)
=>
{
return
request
({
method
:
'
POST
'
,
url
,
data
})
}
\ No newline at end of file
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