Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
N
newLive
Project
Project
Details
Activity
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
孟庆瑞
newLive
Commits
13b2788b
Commit
13b2788b
authored
Dec 21, 2022
by
jiaoyahui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信授权
parent
c6bbb743
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
14 deletions
+21
-14
main.js
src/main.js
+1
-1
live.vue
src/views/live.vue
+7
-4
password.vue
src/views/password.vue
+13
-9
No files found.
src/main.js
View file @
13b2788b
...
@@ -11,12 +11,12 @@ import VideoPlayer from 'vue-video-player'
...
@@ -11,12 +11,12 @@ import VideoPlayer from 'vue-video-player'
import
'vue-video-player/src/custom-theme.css'
import
'vue-video-player/src/custom-theme.css'
import
common
from
'../static/js/common.js'
//公共方法
import
common
from
'../static/js/common.js'
//公共方法
import
'video.js/dist/video-js.css'
import
'video.js/dist/video-js.css'
//引入 hls,视频直播(m3u8)必须引入的
//引入 hls,视频直播(m3u8)必须引入的
import
'videojs-contrib-hls'
import
'videojs-contrib-hls'
//播放rtmp视频
//播放rtmp视频
...
...
src/views/live.vue
View file @
13b2788b
...
@@ -493,7 +493,7 @@ export default {
...
@@ -493,7 +493,7 @@ export default {
pmAppVersion
:
868
,
pmAppVersion
:
868
,
// applicationType: 3,
// applicationType: 3,
goodsType
:
3
,
goodsType
:
3
,
goodsId
:
429
,
//285
goodsId
:
285
,
//285 429
})
})
this
.
server
.
live
.
payinfo
(
temp
).
then
(
res
=>
{
this
.
server
.
live
.
payinfo
(
temp
).
then
(
res
=>
{
this
.
udRealname
=
res
.
data
.
data
.
udRealname
this
.
udRealname
=
res
.
data
.
data
.
udRealname
...
@@ -510,7 +510,7 @@ export default {
...
@@ -510,7 +510,7 @@ export default {
// 订单
// 订单
payorder
(){
payorder
(){
let
temp
=
this
.
qs
.
stringify
({
let
temp
=
this
.
qs
.
stringify
({
goodsId
:
429
,
goodsId
:
285
,
goodsType
:
3
,
goodsType
:
3
,
sxUbId
:
26
,
sxUbId
:
26
,
pmoType
:
0
,
pmoType
:
0
,
...
@@ -567,7 +567,10 @@ export default {
...
@@ -567,7 +567,10 @@ export default {
if
(
res
.
data
.
data
.
businessCode
==
10
){
if
(
res
.
data
.
data
.
businessCode
==
10
){
alert
(
'支付成功'
)
alert
(
'支付成功'
)
// window.location.href="/live"
// window.location.href="/live"
}
if
(
res
.
data
.
data
.
businessCode
==
30
){
alert
(
'您已经购买,请查看'
)
}
}
this
.
aliInfo
=
res
.
data
.
data
.
aliInfo
;
this
.
aliInfo
=
res
.
data
.
data
.
aliInfo
;
// this.wechatInfo=res.data.data.wechatInfo
// this.wechatInfo=res.data.data.wechatInfo
...
@@ -627,7 +630,7 @@ export default {
...
@@ -627,7 +630,7 @@ export default {
//移动端外部浏览器
//移动端外部浏览器
if
(
this
.
wxOrderType
==
3
){
if
(
this
.
wxOrderType
==
3
){
//跳转h5支付链接00 ll
//跳转h5支付链接00 ll
window
.
location
.
href
=
res
.
data
.
data
.
aliInfo
;
window
.
location
.
href
=
res
.
data
.
data
.
aliInfo
;
}
}
...
@@ -675,7 +678,7 @@ export default {
...
@@ -675,7 +678,7 @@ export default {
if
(
this
.
wxOrderType
==
3
){
if
(
this
.
wxOrderType
==
3
){
//跳转h5支付链接00 ll
//跳转h5支付链接00 ll
//
window.location.href=res.data.data.wechatInfo.payUrl
window
.
location
.
href
=
res
.
data
.
data
.
wechatInfo
.
payUrl
}
}
...
...
src/views/password.vue
View file @
13b2788b
...
@@ -161,6 +161,14 @@ export default {
...
@@ -161,6 +161,14 @@ export default {
this
.
go_get
()
this
.
go_get
()
},
},
// // 通过域名返回对应接口路径
// getPath() {
// if (window.location.host.split('.')[0] == 'localhost:8080') {
// return 'web'
// } else {
// return window.location.host.split('.')[0];
// }
// },
getLive
(){
getLive
(){
let
temp
=
this
.
qs
.
stringify
({
let
temp
=
this
.
qs
.
stringify
({
pmAppVersion
:
884
,
pmAppVersion
:
884
,
...
@@ -202,19 +210,15 @@ export default {
...
@@ -202,19 +210,15 @@ export default {
})
})
},
},
go_get
(){
go_get
(){
let
temp
=
this
.
qs
.
stringify
({
let
temp
=
this
.
qs
.
stringify
({
urlTag
:
'nh5'
})
})
this
.
server
.
live
.
buy_code
(
temp
).
then
(
res
=>
{
this
.
server
.
live
.
buy_code
(
temp
).
then
(
res
=>
{
//order成功判断内置浏览器,在微信就授权,内置微信还是浏览器 微信jsapi 浏览器h5
//order成功判断内置浏览器,在微信就授权,内置微信还是浏览器 微信jsapi 浏览器h5
if
(
res
.
code
=
200
){
if
(
res
.
code
=
200
){
//判断是否为在微信内置浏览器支付
// window.location.href=''
if
(
this
.
common
.
isWX
()){
}
else
{
}
}
}
})
})
...
...
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