Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
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
new-sing
h5-base
Commits
7157d48e
Commit
7157d48e
authored
Aug 29, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video 全屏不能展示提交
parent
af3feb64
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
buy.vue
src/components/buy/buy.vue
+8
-3
guide.vue
src/components/buy/guide.vue
+3
-2
index.vue
src/components/buy/index.vue
+1
-1
video.vue
src/components/newLesson/video.vue
+1
-0
No files found.
src/components/buy/buy.vue
View file @
7157d48e
...
...
@@ -200,12 +200,13 @@ export default {
if
(
this
.
saleObj
)
{
priceT
=
priceT
-
this
.
saleObj
.
money
;
}
priceT
=
(
priceT
/
100
).
toFixed
(
1
);
priceT
=
(
priceT
/
100
).
toFixed
(
1
);
let
str
=
priceT
.
toString
();
if
(
str
.
length
>
1
)
{
str
=
str
.
split
(
"."
)[
1
];
if
(
str
===
"0"
)
priceT
=
parseInt
(
priceT
);
}
console
.
log
(
priceT
)
return
priceT
;
}
},
...
...
@@ -274,6 +275,8 @@ export default {
);
},
chooseSale
(
data
)
{
console
.
log
(
data
)
console
.
log
(
989898
)
this
.
saleObj
=
data
;
},
showSale
()
{
...
...
@@ -332,6 +335,7 @@ export default {
salesType
:
invite
?
invite
.
split
(
"-"
)[
1
]
:
"null"
,
salesID
:
invite
?
Number
(
invite
.
split
(
"-"
)[
2
])
:
0
});
console
.
log
(
this
.
priceTotal
)
if
(
window
.
location
.
href
.
indexOf
(
"gdt_vid"
)
>
-
1
)
{
json
.
gdt_vid
=
this
.
$route
.
query
.
gdt_vid
;
}
...
...
@@ -471,10 +475,10 @@ export default {
this
.
userCourse
=
JSON
.
parse
(
JSON
.
stringify
(
res
));
localStorage
.
setItem
(
"userCourse"
,
JSON
.
stringify
(
this
.
userCourse
));
if
(
res
.
teacher_alias
&&
res
.
teacher_alias
.
substr
(
0
,
1
)
==
1
)
{
this
.
$router
.
push
({
/*
this.$router.push({
name: "guide",
query: { shopId: this.shopId }
});
});
*/
}
else
{
if
(
orderData
.
has_buy_goods_info
.
goods_type
===
2
)
{
this
.
$router
.
push
({
...
...
@@ -505,6 +509,7 @@ export default {
data
.
goods_desc
=
JSON
.
parse
(
data
.
goods_desc
);
data
.
share_desc
=
JSON
.
parse
(
data
.
share_desc
);
this
.
groupDetail
=
data
;
console
.
log
(
this
.
groupDetail
)
this
.
invite_code
=
this
.
$route
.
query
.
invite_code
;
if
(
this
.
type
&&
this
.
type
===
0
)
{
this
.
price
=
data
.
single_price
/
100
;
...
...
src/components/buy/guide.vue
View file @
7157d48e
...
...
@@ -62,7 +62,7 @@ export default {
})
this
.
onShare
();
});
let
invite
=
this
.
invite_code
;
getUserDetailApi
().
then
(
res
=>
{
this
.
userDesc
=
Object
.
assign
({},
res
);
...
...
@@ -92,10 +92,11 @@ export default {
onShare
:
function
(
type
)
{
this
.
handleInviteCode
();
let
URL
=
`
${
process
.
env
.
BUY_URL
}
shopId=
${
this
.
shopId
}
&invite_code=
${
this
.
this_code
}
`
;
console
.
log
(
this
.
groupDetail
.
share_desc
)
this
.
enableShare
({
product_title
:
this
.
groupDetail
.
share_desc
.
title
,
desc
:
this
.
groupDetail
.
share_desc
.
content
,
shareIcon
:
this
.
groupDetail
.
share_desc
.
img
[
0
].
url
,
shareIcon
:
this
.
groupDetail
.
share_desc
.
img
.
length
!==
0
?
this
.
groupDetail
.
share_desc
.
img
[
0
].
url
:
''
,
shareUrl
:
URL
});
},
...
...
src/components/buy/index.vue
View file @
7157d48e
...
...
@@ -445,7 +445,7 @@ export default {
this
.
enableShare
({
product_title
:
this
.
groupDetail
.
share_desc
.
title
,
desc
:
this
.
groupDetail
.
share_desc
.
content
,
shareIcon
:
this
.
groupDetail
.
share_desc
.
img
[
0
].
url
,
shareIcon
:
this
.
groupDetail
.
share_desc
.
img
.
length
!==
0
?
this
.
groupDetail
.
share_desc
.
img
[
0
].
url
:
''
,
shareUrl
:
URL
});
},
...
...
src/components/newLesson/video.vue
View file @
7157d48e
...
...
@@ -49,6 +49,7 @@
<!-- :src="showObj.video[videoIndex].url" -->
<video
v-show=
"!star"
ref=
"videoDom"
x5-video-player-type=
"h5"
x5-video-player-fullscreen=
"true"
x-webkit-airplay=
"true"
playsinline
:src=
"showObj.video[videoIndex].url"
@
ended=
"videoEnd"
@
error=
"errorLog"
...
...
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