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
3b8eb337
Commit
3b8eb337
authored
Feb 01, 2024
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联合国际支付宝扫码购bug处理
parent
e2b958b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
+8
-12
common.js
common/common.js
+6
-10
center.vue
pages/indexs/center/center.vue
+2
-2
No files found.
common/common.js
View file @
3b8eb337
...
@@ -112,6 +112,7 @@ export default{
...
@@ -112,6 +112,7 @@ export default{
页面获取companyI方法 let companyId=this.$commonjs.getCompanyId()
页面获取companyI方法 let companyId=this.$commonjs.getCompanyId()
*/
*/
getCompanyId
:
function
(
option
){
getCompanyId
:
function
(
option
){
//待按照下面getKey方法进行优化
let
enterUrl
=
''
let
enterUrl
=
''
//#ifdef MP-WEIXIN
//#ifdef MP-WEIXIN
enterUrl
=
option
.
q
enterUrl
=
option
.
q
...
@@ -131,20 +132,15 @@ export default{
...
@@ -131,20 +132,15 @@ export default{
},
},
//获取除companyId的其他参数
//获取除companyId的其他参数
getKey
:
function
(
option
,
query
){
getKey
:
function
(
option
,
query
){
let
enterUrl
=
''
let
key
=
''
// 优先取值小程序页面参数,其次取值普通二维码
//#ifdef MP-WEIXIN
//#ifdef MP-WEIXIN
enterUrl
=
option
.
q
key
=
option
[
query
]
||
this
.
getUrlKey
(
`
${
query
}
`
,
option
.
q
)
||
''
//#endif
//#endif
//#ifdef MP-ALIPAY
//#ifdef MP-ALIPAY
enterUrl
=
uni
.
getStorageSync
(
'alipayQrCode'
)
key
=
option
[
query
]
||
this
.
getUrlKey
(
`
${
query
}
`
,
uni
.
getStorageSync
(
'alipayQrCode'
))
||
''
//#endif
//#endif
let
key
=
''
if
(
enterUrl
){
//普通二维码扫码进入
key
=
this
.
getUrlKey
(
`
${
query
}
`
,
enterUrl
)
||
''
}
else
{
//小程序页面跳转进入
key
=
option
[
query
]
||
''
}
return
key
return
key
}
}
}
}
...
...
pages/indexs/center/center.vue
View file @
3b8eb337
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</view>
</view>
<view
class=
"middle"
>
<view
class=
"middle"
>
<view
class=
"middle1"
>
<
!--
<
view
class=
"middle1"
>
<view
class=
"middle1-list"
>
<view
class=
"middle1-list"
>
<view>
<view>
0
0
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
积分
积分
</view>
</view>
</view>
</view>
</view>
</view>
-->
<view
class=
"middle2"
>
<view
class=
"middle2"
>
<view
class=
"middle2-top"
@
click=
"goOrderlist()"
>
<view
class=
"middle2-top"
@
click=
"goOrderlist()"
>
...
...
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