| | |
| | | } |
| | | .goods_list{ |
| | | height: calc( 100% - 222rpx); |
| | | width: 590rpx; |
| | | width: 100%; |
| | | box-sizing: border-box; |
| | | padding: 12rpx 40rpx; |
| | | .empty{ |
| | |
| | | } |
| | | .main_content .goods_list { |
| | | height: calc(100% - 222rpx); |
| | | width: 590rpx; |
| | | width: 100%; |
| | | box-sizing: border-box; |
| | | padding: 12rpx 40rpx; |
| | | } |
| | |
| | | |
| | | .goods_list { |
| | | height: calc( 100% - 222rpx); |
| | | width: 590rpx; |
| | | width: 750rpx; |
| | | box-sizing: border-box; |
| | | padding: 12rpx 40rpx; |
| | | display: flex; |
| | | .empty{ |
| | | width: 100%; |
| | | height: 100rpx; |
| | | } |
| | | .item { |
| | | width: 324rpx; |
| | | float: left; |
| | | margin-bottom: 32rpx; |
| | | margin-right: 0; |
| | | &:nth-of-type(2n){ |
| | | margin-right: 22rpx; |
| | | } |
| | |
| | | } |
| | | .main_content .goods_list { |
| | | height: calc(100% - 222rpx); |
| | | width: 590rpx; |
| | | width: 750rpx; |
| | | box-sizing: border-box; |
| | | padding: 12rpx 40rpx; |
| | | display: flex; |
| | | } |
| | | .main_content .goods_list .empty { |
| | | width: 100%; |
| | | height: 100rpx; |
| | | } |
| | | .main_content .goods_list .item { |
| | | width: 324rpx; |
| | | float: left; |
| | | margin-bottom: 32rpx; |
| | | margin-right: 0; |
| | | } |
| | | .main_content .goods_list .item:nth-of-type(2n) { |
| | | margin-right: 22rpx; |
| | |
| | | const tempPath = wx.getStorageSync('tempPath') || '' |
| | | wx.setStorageSync('member', res.data) |
| | | if (tempPath) { |
| | | wx.setStorageSync('tempPath', '') |
| | | wx.redirectTo({ |
| | | url: tempPath, |
| | | }) |
| | |
| | | // this.getDetail(options.id, options.userId || '') |
| | | }, |
| | | handleDesign() { |
| | | const { member } = this.data |
| | | if (!member.phone) { |
| | | return wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | | } |
| | | wx.navigateTo({ |
| | | url: '/pages/design/design', |
| | | }) |
| | |
| | | info |
| | | } = this.data |
| | | const member = wx.getStorageSync('member') |
| | | if (member.authStatus == '0') { |
| | | if (!member.phone) { |
| | | return wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | |
| | | }) |
| | | }, |
| | | handleDesign() { |
| | | const { member } = this.data |
| | | if (!member.phone) { |
| | | return wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | | } |
| | | wx.navigateTo({ |
| | | url: '/pages/design/design', |
| | | }) |
| | |
| | | const { |
| | | info, member |
| | | } = this.data |
| | | if (member.authStatus == '0') { |
| | | if (!member.phone) { |
| | | return wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | |
| | | }) |
| | | }, |
| | | handleDesign() { |
| | | const { member } = this.data |
| | | if (!member.phone) { |
| | | return wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | | } |
| | | wx.navigateTo({ |
| | | url: '/pages/design/design', |
| | | }) |
| | |
| | | info |
| | | } = this.data |
| | | const member = wx.getStorageSync('member') |
| | | if (member.authStatus == '0') { |
| | | if (!member.phone) { |
| | | return wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | |
| | | }) |
| | | }, |
| | | handleDesign() { |
| | | const { member } = this.data |
| | | if (!member.phone) { |
| | | return wx.navigateTo({ |
| | | url: '/pages/auth/auth', |
| | | }) |
| | | } |
| | | wx.navigateTo({ |
| | | url: '/pages/design/design', |
| | | }) |
| | |
| | | onLoad(options) { |
| | | console.log(options) |
| | | this.initDictData() |
| | | this.initData() |
| | | // this.initData() |
| | | }, |
| | | changePath(e) { |
| | | let index = e.currentTarget.dataset.type |
| | |
| | | initData() { |
| | | // 轮播 |
| | | getHomeBanner().then(res => { |
| | | this.setData({ |
| | | bannerList: res.data |
| | | }) |
| | | if(res.data){ |
| | | this.setData({ bannerList: res.data }) |
| | | } |
| | | }) |
| | | // 产品视频 |
| | | getZhongTaiVideoPage({ |
| | | pageSize: 1, |
| | | pageNum: 1 |
| | | }).then(res => { |
| | | if (res.data.records && res.data.records.length > 0) { |
| | | if (res.data && res.data.records && res.data.records.length > 0) { |
| | | this.setData({ |
| | | productVideo: res.data.records |
| | | }) |
| | |
| | | pageSize: 6, |
| | | pageNum: 1 |
| | | }).then(res => { |
| | | if (res.data) { |
| | | if (res.data && res.data.records) { |
| | | this.setData({ |
| | | consultList: res.data.records |
| | | }) |
| | |
| | | </view> |
| | | <image class="ar_right" src="../../static/icon/home_ar@2x.png"></image> |
| | | </view> |
| | | <video poster="{{ productVideo[0].coverImage }}" bindplay="bindVideoPlay" id="myvideo" muted src="{{ productVideo[0].videoUrl }}" show-fullscreen-btn></video> |
| | | <video poster="{{ productVideo[0].coverImage }}" bindplay="bindVideoPlay" id="myvideo" show-mute-btn muted src="{{ productVideo[0].videoUrl }}" show-fullscreen-btn></video> |
| | | <!-- <view bindtap="videoClick" data-id="{{ productVideo[0].id }}" data-videourl="{{ productVideo[0].videoUrl }}" class="video_wrap"> |
| | | <image class="img" src="{{ productVideo[0].coverImage }}" mode="aspectFill"></image> |
| | | <image class="play" src="../../static/icon/ic_play.png"></image> |
| | |
| | | acVid: '', |
| | | viewIdList: [], |
| | | |
| | | activeIndex: -1, |
| | | activeParam: [], |
| | | tagCodes: [], |
| | | videoContext:null, |
| | | category: [], |
| | | tagCodes: '', |
| | | videoUrl: '', |
| | | showVideo: false, |
| | | isShow:false, |
| | |
| | | getList() { |
| | | const { pageSize, pageNum, tagCodes } = this.data |
| | | getZhongTaiVideoPage({ |
| | | pageSize,pageNum, tagCodes: tagCodes ? [tagCodes] : null |
| | | pageSize,pageNum, tagCodes |
| | | }).then(res => { |
| | | this.setData({ |
| | | dataList: [...this.data.dataList, ...res.data.records], |
| | |
| | | this.setData({ dataList }) |
| | | }, |
| | | cateClick(e) { |
| | | const { code } = e.target.dataset |
| | | this.setData({ tagCodes: code }) |
| | | const { code, index } = e.target.dataset |
| | | this.setData({ tagCodes: [code], activeIndex: index }) |
| | | this.setData({ total: 0, dataList: [], pageNum: 1 }) |
| | | this.getList() |
| | | }, |
| | |
| | | <view class="container" > |
| | | <!-- 分类 --> |
| | | <view> |
| | | <scroll-view wx:if="{{ category.length > 0 }}" scroll-x="true" style="width: 710rpx;margin-bottom: 30rpx;" > |
| | | <scroll-view wx:if="{{ category.length > 0 && category.length == 1 }}" scroll-x="true" style="width: 710rpx;margin-bottom: 30rpx;"> |
| | | <view class="scroll_cate"> |
| | | <view bindtap="cateClick" data-code="{{item.labelCode}}" wx:for="{{ category }}" class="item {{ tagCodes == item.labelCode ? 'active': '' }}">{{ item.labelName }}</view> |
| | | <view bindtap="cateClick" data-index="{{index}}" data-code="{{item.labelValueCode}}" wx:for="{{ category[0].valueVos }}" class="item {{ activeIndex == index ? 'active': '' }}">{{ item.labelValueName }}</view> |
| | | </view> |
| | | </scroll-view> |
| | | <!-- <scroll-view scroll-x="true" style="weight: 710rpx;margin-bottom: 28rpx;"> |
| | | <view class="scroll_cate second_list"> |
| | | <view bindtap="seCateClick" data-index="{{index}}" wx:for="{{ secondCategory }}" class="item {{ index == 0 ? 'active': '' }}">{{ index }}{{ item }}</view> |
| | | <block wx:if="{{ category.length > 1 }}"> |
| | | <scroll-view class="query_wrap_scroll" scroll-x> |
| | | <view class="query_wrap"> |
| | | <view data-index="{{index}}" wx:for="{{ secondCateList }}" class="item" bindtap="changeShowParams"> |
| | | <view class="name">{{ item.tempParamName || item.labelName }}</view> |
| | | <van-icon name="{{ index == activeIndex ? 'arrow-up' : 'arrow-down' }}" /> |
| | | </view> |
| | | </scroll-view> --> |
| | | </view> |
| | | </scroll-view> |
| | | <view wx:if="{{ activeParam.length > 0 }}" class="query_form"> |
| | | <view class="list"> |
| | | <view data-index="{{index}}" data-tempindex="{{item.tempParamIndex}}" data-code="{{ item.labelValueCode }}" bindtap="tagClick" wx:for="{{ activeParam }}" class="item {{ secondCateList[activeIndex].tempParamIndex === index ? 'active' : '' }}">{{ item.labelValueName }}</view> |
| | | </view> |
| | | <view class="btns"> |
| | | <view class="btn" bindtap="cancelParam">取消</view> |
| | | <view class="btn sub" bindtap="subParam">确认</view> |
| | | </view> |
| | | </view> |
| | | <view wx:if="{{ activeParam.length > 0 }}" class="shade"></view> |
| | | </block> |
| | | </view> |
| | | <!-- content --> |
| | | <view class="content" > |
| | | <view wx:for="{{ dataList }}" class="item"> |
| | | <!-- <view bindtap="itemClick" data-videourl="{{ item.videoUrl }}" data-id="{{ item.id }}" class="img_wrap"> |
| | | <image class="img" src="{{ item.coverImage }}" mode="aspectFill"></image> |
| | | <image class="play" src="../../static/icon/ic_play.png" mode="widthFix"></image> |
| | | </view> --> |
| | | <video id="{{item.id}}" poster="{{ item.coverImage }}" data-item="{{ item }}" bindplay="itemClick" class="img_wrap" src="{{ item.videoUrl }}" show-center-play-btn show-fullscreen-btn></video> |
| | | |
| | | <view class="title">{{ item.title }}</view> |
| | |
| | | <image class="default_empty" src="../../static/images/default_empty.png"></image> |
| | | </view> |
| | | </view> |
| | | <!-- <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 > --> |
| | | <videoPlay class='videoPlay' /> |
| | | </view> |
| | | <wxs module="math" src="../../utils/math.wxs"></wxs> |
| | |
| | | }, |
| | | { |
| | | "name": "", |
| | | "pathName": "pages/detailDis/product", |
| | | "pathName": "pages/productVideo/index", |
| | | "query": "", |
| | | "launchMode": "default", |
| | | "scene": null |
| | |
| | | } |
| | | .goods_list{ |
| | | height: calc( 100% - 222rpx); |
| | | width: 590rpx; |
| | | width: 750rpx; |
| | | box-sizing: border-box; |
| | | padding: 12rpx 40rpx; |
| | | .empty{ |
| | |
| | | } |
| | | .main_content .goods_list { |
| | | height: calc(100% - 222rpx); |
| | | width: 590rpx; |
| | | width: 750rpx; |
| | | box-sizing: border-box; |
| | | padding: 12rpx 40rpx; |
| | | } |
| | |
| | | |
| | | .goods_list { |
| | | height: calc( 100% - 222rpx); |
| | | width: 590rpx; |
| | | width: 750rpx; |
| | | box-sizing: border-box; |
| | | padding: 12rpx 40rpx; |
| | | .empty{ |
| | |
| | | } |
| | | .main_content .goods_list { |
| | | height: calc(100% - 222rpx); |
| | | width: 590rpx; |
| | | width: 750rpx; |
| | | box-sizing: border-box; |
| | | padding: 12rpx 40rpx; |
| | | } |
| | |
| | | </view> |
| | | <image class="ar_right" src="../../static/icon/home_ar@2x.png"></image> |
| | | </view> |
| | | <video muted bindplay="bindVideoPlay" id="myvideo" src="{{ productVideo[0].videoUrl }}" show-fullscreen-btn></video> |
| | | <video show-mute-btn muted bindplay="bindVideoPlay" id="myvideo" src="{{ productVideo[0].videoUrl }}" show-fullscreen-btn></video> |
| | | <!-- <view bindtap="videoClick" data-videourl="{{ productVideo[0].videoUrl }}" class="video_wrap"> |
| | | <image class="img" src="{{ productVideo[0].coverImage }}" mode="aspectFill"></image> |
| | | <image class="play" src="../../static/icon/ic_play.png" mode="widthFix"></image> |