Commit 13b2788b authored by jiaoyahui's avatar jiaoyahui

微信授权

parent c6bbb743
......@@ -11,12 +11,12 @@ import VideoPlayer from 'vue-video-player'
import 'vue-video-player/src/custom-theme.css'
import common from '../static/js/common.js' //公共方法
import 'video.js/dist/video-js.css'
//引入 hls,视频直播(m3u8)必须引入的
import 'videojs-contrib-hls'
//播放rtmp视频
......
......@@ -493,7 +493,7 @@ export default {
pmAppVersion: 868,
// applicationType: 3,
goodsType:3,
goodsId:429,//285
goodsId:285,//285 429
})
this.server.live.payinfo(temp).then(res=>{
this.udRealname=res.data.data.udRealname
......@@ -510,7 +510,7 @@ export default {
// 订单
payorder(){
let temp=this.qs.stringify({
goodsId:429,
goodsId:285,
goodsType:3,
sxUbId:26,
pmoType:0,
......@@ -567,7 +567,10 @@ export default {
if(res.data.data.businessCode == 10){
alert('支付成功')
// window.location.href="/live"
}if(res.data.data.businessCode == 30){
alert('您已经购买,请查看')
}
this.aliInfo=res.data.data.aliInfo;
// this.wechatInfo=res.data.data.wechatInfo
......@@ -627,7 +630,7 @@ export default {
//移动端外部浏览器
if(this.wxOrderType == 3){
//跳转h5支付链接00 ll
window.location.href=res.data.data.aliInfo;
}
......@@ -675,7 +678,7 @@ export default {
if(this.wxOrderType == 3){
//跳转h5支付链接00 ll
// window.location.href=res.data.data.wechatInfo.payUrl
window.location.href=res.data.data.wechatInfo.payUrl
}
......
......@@ -161,6 +161,14 @@ export default {
this.go_get()
},
// // 通过域名返回对应接口路径
// getPath() {
// if (window.location.host.split('.')[0] == 'localhost:8080') {
// return 'web'
// } else {
// return window.location.host.split('.')[0];
// }
// },
getLive(){
let temp=this.qs.stringify({
pmAppVersion:884,
......@@ -202,19 +210,15 @@ export default {
})
},
go_get(){
let temp=this.qs.stringify({
let temp=this.qs.stringify({
urlTag:'nh5'
})
this.server.live.buy_code(temp).then(res=>{
//order成功判断内置浏览器,在微信就授权,内置微信还是浏览器 微信jsapi 浏览器h5
if(res.code=200){
//判断是否为在微信内置浏览器支付
if(this.common.isWX()){
}else{
}
// window.location.href=''
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment