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
1a330f5f
Commit
1a330f5f
authored
Oct 31, 2022
by
李智书
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into uat
parents
9cd7b8d2
df904460
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
2186 additions
and
1841 deletions
+2186
-1841
package-lock.json
package-lock.json
+1646
-1637
src/pages.json
src/pages.json
+1
-1
src/pages/BankModule/Recharge/Recharge.vue
src/pages/BankModule/Recharge/Recharge.vue
+257
-59
src/pages/BankModule/Reflect/Reflect.vue
src/pages/BankModule/Reflect/Reflect.vue
+129
-38
src/pages/SchoolReport/SchoolReport.vue
src/pages/SchoolReport/SchoolReport.vue
+110
-95
src/pages/StudentPayment/PayOrderDetails/PayOrderDetails.vue
src/pages/StudentPayment/PayOrderDetails/PayOrderDetails.vue
+36
-2
src/pages/StudentPayment/PayProgress/PayProgress.vue
src/pages/StudentPayment/PayProgress/PayProgress.vue
+2
-3
src/pages/StudentPayment/PayProject/PayProject.vue
src/pages/StudentPayment/PayProject/PayProject.vue
+4
-5
src/pages/assignDeposit/assignDeposit.vue
src/pages/assignDeposit/assignDeposit.vue
+1
-1
No files found.
package-lock.json
View file @
1a330f5f
This diff is collapsed.
Click to expand it.
src/pages.json
View file @
1a330f5f
...
...
@@ -312,7 +312,7 @@
"path"
:
"pages/UserAgreement/UserAgreement"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"
消费用户
协议"
,
"navigationBarTitleText"
:
"
用户服务
协议"
,
"enablePullDownRefresh"
:
false
}
...
...
src/pages/BankModule/Recharge/Recharge.vue
View file @
1a330f5f
This diff is collapsed.
Click to expand it.
src/pages/BankModule/Reflect/Reflect.vue
View file @
1a330f5f
...
...
@@ -4,8 +4,8 @@
<view
class=
"left_"
>
提现金额
</view>
<view
class=
"right_"
>
每日可提现一次
</view>
</view>
<!-- 20211230渤海银行 -->
<view
class=
"BankBohai"
v-if=
"bankInfo_.accountType==4"
>
<!-- 20211230渤海银行
浦发银行
-->
<view
class=
"BankBohai"
v-if=
"bankInfo_.accountType==4
|| bankInfo_.accountType==5
"
>
<view
class=
"BankBHL"
>
提现至
</view>
<view
class=
"BankBHR"
>
<view
class=
""
>
{{
bankInfo_
.
bindCardName
}}
...
...
@@ -141,7 +141,9 @@
msCount
:
60
,
//定时器
CodeMsg
:
"
获取验证码
"
,
RechargeSmsorderNoInfo
:
{},
//第三方合作交易标识
WithdrawInfo
:
null
WithdrawInfo
:
null
,
bindcardList
:
[],
bindCardNo
:
""
,
}
},
onLoad
:
function
(
options
)
{
...
...
@@ -189,6 +191,9 @@
case
4
:
withdrawSmsUrl
=
withdrawSmsUrl
+
'
/bank-wechat/bohai/comprehensive/otpSms
'
;
break
;
case
5
:
withdrawSmsUrl
=
withdrawSmsUrl
+
'
/bank-wechat/spdb/passcodes
'
;
break
;
default
:
Dialog
({
title
:
'
系统提示
'
,
...
...
@@ -197,11 +202,7 @@
throw
(
"
银行账号类型错误!
"
)
break
;
}
$
.
ajax
({
url
:
withdrawSmsUrl
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
let
params
=
{
amount
:
(
this
.
inputOtherM
*
1
).
toFixed
(
2
),
//充值金额,单位元
schoolId
:
bankInfo
.
schoolId
,
//学校id
userId
:
userID
,
//用户id
...
...
@@ -210,7 +211,29 @@
// 21211230渤海银行
mobilePhone
:
this
.
openCardPhon
,
msg
:
"
提现
"
},
}
let
params1
=
{
mobileNum
:
this
.
openCardPhon
,
schoolId
:
bankInfo
.
schoolId
,
//学校id
userId
:
userID
,
//用户id
sessionid
:
sessionID
,
wechattype
:
1
}
$
.
ajax
({
url
:
withdrawSmsUrl
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
// data: {
// amount: (this.inputOtherM * 1).toFixed(2), //充值金额,单位元
// schoolId: bankInfo.schoolId, //学校id
// userId: userID, //用户id
// sessionid: sessionID,
// wechattype: 1,
// // 21211230渤海银行
// mobilePhone: this.openCardPhon,
// msg: "提现"
// },
data
:
bankInfo
.
accountType
==
5
?
params1
:
params
,
headers
:
{
'
sessionid
'
:
sessionID
,
},
...
...
@@ -308,12 +331,16 @@
return
}
this
.
openCardPhonSms
=
''
;
if
(
bankInfo
.
accountType
!=
5
)
{
this
.
$refs
.
popup
.
open
(
'
top
'
)
}
else
{
this
.
ExchangeWithdraw
();
}
},
// 提现
async
ExchangeWithdraw
()
{
let
this_
=
this
;
if
(
bankInfo
.
accountType
!=
4
)
{
if
(
bankInfo
.
accountType
!=
4
&&
bankInfo
.
accountType
!=
5
)
{
if
(
!
this
.
RechargeSmsorderNoInfo
.
orderNo
)
{
Dialog
({
title
:
'
系统提示
'
,
...
...
@@ -322,7 +349,7 @@
return
}
}
if
(
!
this
.
openCardPhonSms
)
{
if
(
!
this
.
openCardPhonSms
&&
bankInfo
.
accountType
!=
5
)
{
Dialog
({
title
:
'
系统提示
'
,
message
:
'
请收入验证码!
'
...
...
@@ -332,6 +359,9 @@
let
loading
=
weui
.
loading
(
'
请稍后
'
);
// 20211230
let
withdrawUrl
=
gHost
;
if
(
bankInfo
.
accountType
==
5
){
await
this
.
queryBindCardListBefore
();
}
switch
(
bankInfo
.
accountType
)
{
case
3
:
withdrawUrl
=
withdrawUrl
+
'
/bank-wechat/bocom/exchange/withdraw
'
;
...
...
@@ -339,6 +369,9 @@
case
4
:
withdrawUrl
=
withdrawUrl
+
'
/bank-wechat/bohai/exchange/withdraw
'
;
break
;
case
5
:
withdrawUrl
=
withdrawUrl
+
'
/bank-wechat/spdb/withdrawals
'
;
break
;
default
:
Dialog
({
title
:
'
系统提示
'
,
...
...
@@ -347,11 +380,7 @@
throw
(
"
银行账号类型错误!
"
)
break
;
}
$
.
ajax
({
url
:
withdrawUrl
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
let
params
=
{
amount
:
(
this
.
inputOtherM
*
1
).
toFixed
(
2
),
//充值金额,单位元
orderNo
:
this_
.
RechargeSmsorderNoInfo
.
orderNo
,
msgCodeSeq
:
this_
.
RechargeSmsorderNoInfo
.
msgCodeSeq
,
...
...
@@ -363,7 +392,30 @@
// 21211230渤海银行
transAmount
:
(
this
.
inputOtherM
*
1
).
toFixed
(
2
),
verifyNo
:
this_
.
openCardPhonSms
,
},
};
let
bindingCardId
=
""
;
if
(
this
.
bindcardList
.
length
){
let
arr
=
this
.
bindcardList
.
filter
(
x
=>
x
.
bindCardNo
==
this_
.
bindCardNo
);
if
(
arr
.
length
){
bindingCardId
=
arr
[
0
].
bindCardId
;
}
}
if
(
bankInfo
.
accountType
==
5
)
{
params
=
{
amount
:
(
this
.
inputOtherM
*
1
).
toFixed
(
2
),
//充值金额,单位元
schoolId
:
bankInfo
.
schoolId
,
bindingCardId
:
bindingCardId
,
userId
:
userID
,
sessionid
:
sessionID
,
wechattype
:
1
,
};
}
$
.
ajax
({
url
:
withdrawUrl
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
params
,
headers
:
{
'
sessionid
'
:
sessionID
,
},
...
...
@@ -376,10 +428,10 @@
content
:
'
银行处理需要1-5分钟时间,充值结果以余额查询为准。
'
,
showCancel
:
false
,
success
:
function
()
{
if
(
bankInfo
.
accountType
!=
4
)
{
if
(
bankInfo
.
accountType
!=
4
&&
bankInfo
.
accountType
!=
5
)
{
this_
.
ExchangeWithdrawQuery
();
}
if
(
bankInfo
.
accountType
==
4
)
{
if
(
bankInfo
.
accountType
==
4
&&
bankInfo
.
accountType
!=
5
)
{
window
.
location
.
reload
()
}
}
...
...
@@ -465,7 +517,7 @@
ReturnToTop
()
{
// 若最后一位为小数点则去掉
let
str
=
this
.
inputOtherM
+
""
;
if
(
str
.
lastIndexOf
(
'
.
'
)
==
str
.
length
-
1
)
{
if
(
str
.
lastIndexOf
(
'
.
'
)
==
str
.
length
-
1
)
{
this
.
inputOtherM
=
str
.
substring
(
0
,
str
.
length
-
1
)
}
this
.
$nextTick
(
function
()
{
...
...
@@ -576,6 +628,9 @@
case
4
:
queryBankInfoUrl
=
queryBankInfoUrl
+
'
/bank-wechat/bohai/exchange/balanceQuery
'
;
break
;
case
5
:
queryBankInfoUrl
=
queryBankInfoUrl
+
'
/bank-wechat/spdb/balancesQuery
'
;
break
;
default
:
Dialog
({
title
:
'
系统提示
'
,
...
...
@@ -584,18 +639,24 @@
throw
(
"
银行账号类型错误!
"
)
break
;
}
let
params
=
{
mediumId
:
bankInfo
.
accountNo
||
""
,
schoolId
:
bankInfo
.
schoolId
||
""
,
userId
:
bankInfo
.
userId
||
""
,
sessionid
:
sessionID
,
wechattype
:
1
,
};
if
(
bankInfo
.
accountType
==
5
)
{
Object
.
assign
(
params
,
{
accountId
:
bankInfo
.
thirdId
})
}
$
.
ajax
({
url
:
queryBankInfoUrl
,
type
:
"
POST
"
,
timeout
:
8000
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
mediumId
:
bankInfo
.
accountNo
||
''
,
schoolId
:
bankInfo
.
schoolId
||
''
,
userId
:
bankInfo
.
userId
||
''
,
sessionid
:
sessionID
,
wechattype
:
1
,
},
data
:
params
,
success
:
function
(
res3
)
{
loading
.
hide
();
if
(
res3
.
code
==
"
10000
"
)
{
...
...
@@ -658,8 +719,10 @@
success
:
function
(
res2
)
{
if
(
res2
.
code
==
"
10000
"
)
{
bankInfo
=
res2
.
results
;
console
.
log
(
bankInfo
,
'
bankInfobankInfobankInfobankInfo
'
)
bankInfo
.
sessionid
=
sessionID
;
this_
.
bankInfo_
=
bankInfo
this_
.
bindCardNo
=
res2
.
results
.
bindCardNo
;
// 20211129
this_
.
openCardPhon
=
bankInfo
.
mobileNo
this_
.
queryBankInfo
();
...
...
@@ -672,6 +735,34 @@
},
});
},
async
queryBindCardListBefore
()
{
let
this_
=
this
;
let
loading
=
weui
.
loading
(
"
请稍后
"
);
await
$
.
ajax
({
url
:
gHost
+
"
/bank-wechat/user/bank/bindingList
"
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
cardNo
:
bankInfo
.
accountNo
,
schoolId
:
bankInfo
.
schoolId
,
userId
:
userID
,
sessionid
:
sessionID
,
wechattype
:
1
,
},
success
:
function
(
res4
)
{
loading
.
hide
();
if
(
res4
.
code
==
"
10000
"
)
{
this_
.
bindcardList
=
res4
.
results
;
console
.
log
(
this_
.
bindcardList
,
'
bindcardListbindcardListbindcardList
'
)
}
else
{
weui
.
topTips
(
res4
.
message
);
}
},
error
:
function
(
err
)
{
loading
.
hide
();
},
});
},
//查询用户信息
QueryUserInfo
()
{
let
this_
=
this
;
...
...
src/pages/SchoolReport/SchoolReport.vue
View file @
1a330f5f
This diff is collapsed.
Click to expand it.
src/pages/StudentPayment/PayOrderDetails/PayOrderDetails.vue
View file @
1a330f5f
...
...
@@ -107,6 +107,7 @@
</view>
</view>
</view>
<view
class=
"masking"
v-if=
"mask"
></view>
</view>
</
template
>
...
...
@@ -151,7 +152,8 @@
remarks
:
""
,
remarksType
:
[
"
备注
"
,
"
邮箱
"
,
"
手机号码
"
,
"
身份证
"
],
// 费用id
chargeItemIds
:
[]
chargeItemIds
:
[],
mask
:
false
}
},
onLoad
:
function
(
options
)
{
...
...
@@ -335,6 +337,24 @@
})
}
},
// 倒计时5秒
culDown
()
{
const
self
=
this
;
let
second
=
5
;
const
timer
=
setInterval
(()
=>
{
second
--
;
if
(
second
)
{
self
.
mask
=
true
;
uni
.
showLoading
({
title
:
'
加载中
'
});
}
else
{
clearInterval
(
timer
);
uni
.
hideLoading
();
self
.
mask
=
false
;
}
},
1000
);
},
// 点击缴费下单接口
async
clickPay
()
{
try
{
...
...
@@ -358,6 +378,7 @@
return
}
}
this
.
culDown
();
let
data
=
await
this
.
$http
.
post
({
url
:
orderApi
+
'
/order-charge/app/charge/project/createOrder
'
},
{
...
...
@@ -375,6 +396,7 @@
schoolId
:
this
.
allData
.
schoolId
,
userId
:
this
.
allData
.
userId
})
if
(
data
.
code
!=
200
)
{
uni
.
showToast
({
icon
:
"
none
"
,
...
...
@@ -389,6 +411,8 @@
}
catch
(
e
)
{
//TODO handle the exception
console
.
log
(
e
);
this
.
mask
=
false
;
uni
.
hideLoading
()
uni
.
showToast
({
icon
:
"
none
"
,
mask
:
true
,
...
...
@@ -418,6 +442,8 @@
});
}
catch
(
e
)
{
//TODO handle the exception
this
.
mask
=
false
;
uni
.
hideLoading
();
console
.
log
(
e
);
uni
.
showToast
({
icon
:
"
none
"
,
...
...
@@ -465,7 +491,15 @@
page
{
background
:
#F3F5F6
;
}
.masking
{
position
:
fixed
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0
.4
);
z-index
:
10
;
}
.PaymentRsults
{
width
:
580rpx
;
height
:
480rpx
;
...
...
src/pages/StudentPayment/PayProgress/PayProgress.vue
View file @
1a330f5f
...
...
@@ -64,7 +64,7 @@
</view>
<!-- 没有数据 -->
<view
class=
"noData"
v-else
>
<image
style=
"width:
301rpx;height: 258rpx;"
:src=
"ImgUrl+'StudentPayment/NoRecord
.png'"
<image
style=
"width:
474rpx;height: 235rpx;"
:src=
"ImgUrl+'xzf/noData-06
.png'"
mode=
'widthFix'
></image>
<view>
暂无数据
</view>
</view>
...
...
@@ -99,9 +99,8 @@
</view>
<!-- 没有数据 -->
<view
class=
"noData"
v-else
>
<image
style=
"width:
290rpx;height: 242rpx;"
:src=
"ImgUrl+'StudentPayment/development
.png'"
<image
style=
"width:
474rpx;height: 235rpx;"
:src=
"ImgUrl+'xzf/noData-06
.png'"
mode=
'widthFix'
></image>
<view>
程序员正在玩命加载
</view>
<view
class=
"bottomtxt"
>
暂无数据
</view>
</view>
</view>
...
...
src/pages/StudentPayment/PayProject/PayProject.vue
View file @
1a330f5f
...
...
@@ -30,9 +30,9 @@
</view>
<!-- 没有数据 -->
<view
class=
"noData"
v-else
>
<image
style=
"width:
301rpx;height: 258rpx;"
:src=
"ImgUrl+'StudentPayment/NoRecord
.png'"
<image
style=
"width:
474rpx;height: 235rpx;"
:src=
"ImgUrl+'xzf/noData-06
.png'"
mode=
'widthFix'
></image>
<view>
暂无
收费项目
</view>
<view>
暂无
数据
</view>
</view>
</view>
</van-tab>
...
...
@@ -73,10 +73,9 @@
</view>
<!-- 没有数据 -->
<view
class=
"noData"
v-else
>
<image
style=
"width:
290rpx;height: 242rpx;"
:src=
"ImgUrl+'StudentPayment/development
.png'"
<image
style=
"width:
474rpx;height: 235rpx;"
:src=
"ImgUrl+'xzf/noData-06
.png'"
mode=
'widthFix'
></image>
<view>
正在玩命加载
</view>
<view
class=
"bottomtxt"
>
暂无历交费项目
</view>
<view
class=
"bottomtxt"
>
暂无数据
</view>
</view>
</view>
</van-tab>
...
...
src/pages/assignDeposit/assignDeposit.vue
View file @
1a330f5f
...
...
@@ -1066,7 +1066,7 @@
let
this_
=
this
;
let
loading
=
weui
.
loading
(
"
请稍后
"
);
$
.
ajax
({
url
:
gHost
+
"
/bank-wechat/user/bank/get
"
,
url
:
gHost
+
"
/bank-wechat/user/bank/get
/v2
"
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
...
...
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