Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
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
wangxuelai
wechatapp.shangjiadao.com
Commits
cb6ad750
Commit
cb6ad750
authored
Oct 23, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
6657af19
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
infovideo.wxml
src/pages/websiteindex/infovideo.wxml
+0
-1
index.js
utilities/index.js
+3
-0
index.js
wechatinfoget/index.js
+2
-1
No files found.
src/pages/websiteindex/infovideo.wxml
View file @
cb6ad750
...
...
@@ -10,7 +10,6 @@
<block wx:for="{{playList}}" wx:for-index="playindex" wx:for-item="playitem" wx:key="{{playindex}}" style="position: relative">
<swiper-item>
<view class="video-box-wrapper" wx-if="{{playitem.type==2}}">
{{videoStatus['video'+currentIndex].isClick}}
<video bindprogress="videoProgress" style="{{videoStatus['video'+currentIndex].isClick || videoStatus['video'+currentIndex].isplay ? 'left: 0;' : ''}}" src="{{filter.transformOssVideofyM3u8(filter.jsonParse(playitem.content))}}" bindplay="bindplay" bindpause="bindpause" loop="{{true}}" bindtap="clickVideo" show-play-btn="{{false}}" show-center-play-btn="{{false}}" controls="{{false}}" data-type="{{playitem.type}}" data-id="video{{playindex}}" id="video{{playindex}}" poster="{{filter.videoPoster(playitem.video)}}" autoplay="{{false}}" wx-if="{{filter.isLoadVideo(playindex, currentIndex, playList.length)}}"></video>
<image class="video-poster" src="{{filter.jpgvideoPoster(filter.jsonParse(playitem.content)[0], 'image/resize,w_400/format,jpg/quality,q_60')}}" mode="widthFix" lazy-load="false" binderror="" bindload="" wx:else/>
<view class="video-play-icon-box" bindtap="clickVideo" data-type="{{playitem.type}}" data-id="video{{playindex}}" id="video{{playindex}}" poster="{{filter.videoPoster(playitem.video)}}" wx:if="{{playitem.type==2 &&!videoStatus['video'+playindex].isplay}}">
...
...
utilities/index.js
View file @
cb6ad750
...
...
@@ -19,6 +19,9 @@ const LocalStorage = {
data
:
encode
(
data
)
})
},
setItemSync
(
name
,
data
)
{
wx
.
setStorageSync
(
name
,
encode
(
data
));
},
getItem
(
name
)
{
return
decode
(
wx
.
getStorageSync
(
name
)
||
null
);
},
...
...
wechatinfoget/index.js
View file @
cb6ad750
...
...
@@ -91,9 +91,10 @@ Page({
version
:
constants
.
storageVersion
,
openid
:
_data
.
user
.
open_id
,
});
LocalStorage
.
setItem
(
'visitor'
,
visitor
);
LocalStorage
.
setItem
Sync
(
'visitor'
,
visitor
);
const
query
=
app
.
globalData
.
query
;
if
(
query
&&
query
.
sid
){
console
.
log
(
1212121
)
studentidentity
({
school_id
:
query
.
sid
}).
then
((
res
)
=>
{
...
...
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