Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
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
panyongping
uni-pdtravel
Commits
5c5c61ca
Commit
5c5c61ca
authored
Jun 02, 2023
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付页面参数修改
parent
3ad0f954
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
441 additions
and
430 deletions
+441
-430
App.vue
App.vue
+71
-70
login.vue
pages/login/login.vue
+17
-15
orderPayment.vue
pages/payment/orderPayment/orderPayment.vue
+13
-11
ourPayment.vue
pages/payment/ourPayment/ourPayment.vue
+339
-333
paySuccess.vue
pages/payment/paySuccess/paySuccess.vue
+1
-1
No files found.
App.vue
View file @
5c5c61ca
<
script
>
// 1、uni-app的页面生命周期仅在page页面有效,而单独封装的组件中【页面周期无效】,
//但是Vue的生命周期依然有效 【Vue的生命周期在任何地方都是有效的,即你仍然可以在uni-app项目中使用Vue生命周期,但是不建议这么做】
// 2、推荐使用uni-app里面的onLoad 代替 vue 里面的 created
// 3、推荐使用uni-app里面的onReady 代替 vue 里面的 mounted
//4.setStorageSync与setStorage的区别:如果后续的操作需要使用更新storage后保存的data,则使用setStorageSync使用异步性能更好,使用同步数据更安全
export
default
{
// 1、uni-app的页面生命周期仅在page页面有效,而单独封装的组件中【页面周期无效】,
//但是Vue的生命周期依然有效 【Vue的生命周期在任何地方都是有效的,即你仍然可以在uni-app项目中使用Vue生命周期,但是不建议这么做】
// 2、推荐使用uni-app里面的onLoad 代替 vue 里面的 created
// 3、推荐使用uni-app里面的onReady 代替 vue 里面的 mounted
//4.setStorageSync与setStorage的区别:如果后续的操作需要使用更新storage后保存的data,则使用setStorageSync使用异步性能更好,使用同步数据更安全
export
default
{
onLaunch
:
function
(
options
)
{
//初始化完成时触发(全局只触发一次
let
today
=
this
.
$commonjs
.
today
()
let
oldDate
=
uni
.
getStorageSync
(
'oldDate'
)
...
...
@@ -33,6 +33,7 @@
//#endif
//#ifdef MP-ALIPAY
uni
.
setStorageSync
(
'appid'
,
'2021001194629244'
)
if
(
options
.
query
&&
options
.
query
.
qrCode
)
{
uni
.
setStorageSync
(
'alipayQrCode'
,
options
.
query
.
qrCode
)
}
else
{
...
...
@@ -71,7 +72,7 @@
onHide
:
function
()
{
}
}
}
</
script
>
<
style
lang=
"scss"
>
...
...
pages/login/login.vue
View file @
5c5c61ca
...
...
@@ -40,9 +40,11 @@ export default {
let
data
=
{
code
:
res
.
code
,
source
,
//微信小程序3,支付宝小程序4
companyId
:
uni
.
getStorageSync
(
'enterOptions'
).
query
.
companyId
||
''
,
appid
:
uni
.
getStorageSync
(
'appid'
)
||
''
}
if
(
uni
.
getStorageSync
(
'enterOptions'
).
query
){
data
.
companyId
=
uni
.
getStorageSync
(
'enterOptions'
).
query
.
companyId
||
''
}
_this
.
$request
(
'wechat/wx/getUserInfoByCode'
,
data
).
then
(
res
=>
{
if
(
res
.
code
==
'00'
)
{
let
openid
=
res
.
data
.
openid
...
...
pages/payment/orderPayment/orderPayment.vue
View file @
5c5c61ca
...
...
@@ -140,9 +140,11 @@ export default {
let
data
=
{
code
:
res
.
code
,
source
,
//微信小程序3,支付宝小程序4
companyId
:
uni
.
getStorageSync
(
'enterOptions'
).
query
.
companyId
||
''
,
appid
:
uni
.
getStorageSync
(
'appid'
)
||
''
}
if
(
uni
.
getStorageSync
(
'enterOptions'
).
query
){
data
.
companyId
=
uni
.
getStorageSync
(
'enterOptions'
).
query
.
companyId
||
''
}
_this
.
$request
(
'wechat/wx/getUserInfoByCode'
,
data
)
.
then
(
res
=>
{
if
(
res
.
code
==
'00'
)
{
...
...
pages/payment/ourPayment/ourPayment.vue
View file @
5c5c61ca
This diff is collapsed.
Click to expand it.
pages/payment/paySuccess/paySuccess.vue
View file @
5c5c61ca
...
...
@@ -37,7 +37,7 @@
}
this
.
ticketStatus
()
intFun
()
},
12
00
)
},
20
00
)
}
intFun
()
},
...
...
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