Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia
| | |
| | | const { |
| | | videourl |
| | | } = e.currentTarget.dataset |
| | | wx.previewMedia({ |
| | | sources: [{ |
| | | url: videourl, |
| | | type: 'video' |
| | | }] |
| | | }) |
| | | let videoPlay = this.selectComponent('.videoPlay'); |
| | | if(videoPlay){ |
| | | videoPlay.startPlayVideo(videourl,this ); |
| | | } |
| | | // wx.previewMedia({ |
| | | // sources: [{ |
| | | // url: videourl, |
| | | // type: 'video' |
| | | // }] |
| | | // }) |
| | | }, |
| | | goserHeight: function (e) { |
| | | const serviceHeight = e.detail.height |
| | |
| | | }) |
| | | }, |
| | | consultClick(e) { |
| | | const id = e.currentTarget.dataset.id |
| | | const item = e.currentTarget.dataset.id |
| | | actionDo({ |
| | | actionType: 'view', |
| | | id: id |
| | | id: item.id |
| | | }) |
| | | if(item.contentType == 'link'){ |
| | | wx.navigateTo({ |
| | | url: '/pages/consult/detail?id=' + id |
| | | url: '/pages/webView/index', |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 |
| | | res.eventChannel.emit('acceptDataFromOpenerPage', { link: item.content, title: item.title }) |
| | | } |
| | | }) |
| | | }else{ |
| | | wx.navigateTo({ |
| | | url: '/pages/consult/detail?id='+item.id, |
| | | }) |
| | | } |
| | | // wx.navigateTo({ |
| | | // url: '/pages/consult/detail?id=' + id |
| | | // }) |
| | | }, |
| | | bannerClick(e) { |
| | | const { |
| | |
| | | "usingComponents": { |
| | | "van-nav-bar": "@vant/weapp/nav-bar/index", |
| | | "authCard": "/components/authCard/authCard", |
| | | "videoPlay": "/components/videoPlay/index", |
| | | "van-popup": "@vant/weapp/popup/index" |
| | | }, |
| | | "navigationStyle": "custom", |
| | |
| | | </view> |
| | | <swiper class="consult_swiper consult_wrap" circular indicator-dots="{{ bannerSwiperOption.indicatorDots }}" autoplay="{{ bannerSwiperOption.autoplay }}" interval="{{ bannerSwiperOption.interval }}" style="height:{{consultImgHeight + 100 }}rpx" duration="{{ bannerSwiperOption.duration }}"> |
| | | <block wx:for="{{ consultList }}" wx:key="index"> |
| | | <swiper-item data-id="{{ item.id }}" bindtap="consultClick"> |
| | | <swiper-item data-id="{{ item }}" bindtap="consultClick"> |
| | | <image bindload="consultbindload" mode="aspectFill" src="{{ item.coverImage }}"></image> |
| | | <view class="scroll_text">{{ item.title }}</view> |
| | | </swiper-item> |
| | |
| | | </view> |
| | | <!-- active --> |
| | | <image class="active_baoming" data-type="2" bindtap="changePath" src="../../static/icon/ic_float_baoming@2x.png" mode="widthFix"></image> |
| | | |
| | | <videoPlay class="videoPlay"/> |
| | | </view> |
| | |
| | | }) |
| | | }, |
| | | itemClick(e) { |
| | | |
| | | const { videourl } = e.currentTarget.dataset |
| | | this.startPlayVideo(videourl) |
| | | let videoPlay = this.selectComponent('.videoPlay'); |
| | | if(videoPlay){ |
| | | videoPlay.startPlayVideo(videourl,this ); |
| | | } |
| | | // this.startPlayVideo(videourl) |
| | | |
| | | // wx.previewMedia({ |
| | | // sources: [{ url: videourl, type: 'video' }] |
| | |
| | | { |
| | | "usingComponents": { |
| | | "van-overlay": "@vant/weapp/overlay/index" , |
| | | "van-popup": "@vant/weapp/popup/index" |
| | | "van-popup": "@vant/weapp/popup/index", |
| | | "videoPlay": "../../components/videoPlay/index" |
| | | }, |
| | | "navigationBarTitleText": "产品视频" |
| | | } |
| | |
| | | <image class="default_empty" src="../../static/images/default_empty.png"></image> |
| | | </view> |
| | | </view> |
| | | <view wx:if="{{ isShow }}" bind:tap="onClose" class="video_content"> |
| | | <!-- <view wx:if="{{ isShow }}" bind:tap="onClose" class="video_content"> |
| | | <view class="video"> |
| | | <video id="myVideo" src="{{curVideoSrc}}" autoplay show-fullscreen-btn show-play-btn ></video> |
| | | </view> |
| | | </view > |
| | | |
| | | </view > --> |
| | | <videoPlay class='videoPlay' /> |
| | | </view> |
| | |
| | | const { |
| | | videourl |
| | | } = e.currentTarget.dataset |
| | | wx.previewMedia({ |
| | | sources: [{ |
| | | url: videourl, |
| | | type: 'video' |
| | | }] |
| | | }) |
| | | let videoPlay = this.selectComponent('.videoPlay'); |
| | | if(videoPlay){ |
| | | videoPlay.startPlayVideo(videourl,this ); |
| | | } |
| | | // wx.previewMedia({ |
| | | // sources: [{ |
| | | // url: videourl, |
| | | // type: 'video' |
| | | // }] |
| | | // }) |
| | | }, |
| | | seriveClick(e) { |
| | | const { |
| | |
| | | { |
| | | "usingComponents": { |
| | | "videoPlay": "/components/videoPlay/index", |
| | | "buoyClient": "../../components/buoyClient/index" |
| | | }, |
| | | "navigationStyle": "custom" |
| | |
| | | <view class="logo_wrap"> |
| | | <image src="../../static/home_logo@2x.png" class="logo" mode="widthFix"></image> |
| | | </view> |
| | | <videoPlay class="videoPlay"/> |
| | | </view> |
| | |
| | | }, |
| | | itemClick(e) { |
| | | const { videourl } = e.currentTarget.dataset |
| | | wx.previewMedia({ |
| | | sources: [{ url: videourl, type: 'video' }] |
| | | }) |
| | | let videoPlay = this.selectComponent('.videoPlay'); |
| | | if(videoPlay){ |
| | | videoPlay.startPlayVideo(videourl,this ); |
| | | } |
| | | // wx.previewMedia({ |
| | | // sources: [{ url: videourl, type: 'video' }] |
| | | // }) |
| | | }, |
| | | cateClick(e) { |
| | | const { code } = e.target.dataset |
| | |
| | | { |
| | | "navigationBarTitleText": "产品视频", |
| | | "usingComponents": { |
| | | "videoPlay": "/components/videoPlay/index", |
| | | "buoyClient": "../../components/buoyClient/index" |
| | | } |
| | | } |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <videoPlay class='videoPlay' /> |
| | | </view> |