Commit cb6ad750 authored by sujie@126.com's avatar sujie@126.com

dd

parent 6657af19
......@@ -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}}">
......
......@@ -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);
},
......
......@@ -91,9 +91,10 @@ Page({
version: constants.storageVersion,
openid: _data.user.open_id,
});
LocalStorage.setItem('visitor', visitor);
LocalStorage.setItemSync('visitor', visitor);
const query = app.globalData.query;
if(query && query.sid){
console.log(1212121)
studentidentity({
school_id: query.sid
}).then((res) => {
......
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