Commit 6bc7c93b by luyt

feat:视频介绍页

1 parent a77b6048
......@@ -5,7 +5,9 @@
"pages/tab/output/output",
"pages/tab/mine/mine",
"login/index/index",
"login/accountItems/accountItems"
"login/accountItems/accountItems",
"pages/viewVideo/index",
"pages/viewProd/index"
],
"requiredPrivateInfos": [
"getLocation"
......
......@@ -225,12 +225,27 @@
}
}
.video-cont {
// display:flex;
// flex-wrap: wrap;
// .video-item{
// &:nth-child(even){
// margin-right:0;
// }
// }
.even-class{
margin-right:0;
}
.empty {
width: 512rpx;
height: 512rpx;
}
}
.poster-cont {
// display:flex;
// flex-wrap: wrap;
.even-class{
margin-right:0;
}
.empty {
width: 512rpx;
height: 512rpx;
......
......@@ -33,11 +33,15 @@
</view>
</view>
<view class="video-cont" wx:if="{{videoActive == 0}}">
<video-item even-class=""></video-item>
<video-item even-class="even-class"></video-item>
<video-item></video-item>
<!-- 无 -->
<image wx:if="{{false}}" class="empty" src="{{IMG_URL}}index/no-video.png?v={{img_version}}" />
</view>
<view class="poster-cont" wx:else>
<poster-item even-class=""></poster-item>
<poster-item even-class="even-class"></poster-item>
<poster-item></poster-item>
<!-- 无 -->
<image wx:if="{{false}}" class="empty" src="{{IMG_URL}}index/no-video.png?v={{img_version}}" />
......
import { IMG_URL } from '~/utils/constantData.js'
Component({
externalClasses: ['even-class'],
/**
* 组件的属性列表
*/
......
<!-- pages/tab/index/components/poster-item/index.wxml -->
<view class="poster-item">
<view class="poster-item even-class">
<image class="img" src="{{IMG_URL}}index/poster/poster0-0.png?v={{img_version}}" />
<view class="msg">生成专属海报</view>
</view>
<view class="poster-item">
<!-- <view class="poster-item">
<image class="img" src="{{IMG_URL}}index/poster/poster0-0.png?v={{img_version}}" />
<view class="msg">生成专属海报</view>
</view>
<view class="poster-item">
<image class="img" src="{{IMG_URL}}index/poster/poster0-0.png?v={{img_version}}" />
<view class="msg">生成专属海报</view>
</view>
</view> -->
......@@ -2,6 +2,7 @@
import { IMG_URL } from '~/utils/constantData.js'
Component({
externalClasses: ['even-class'],
/**
* 组件的属性列表
*/
......
<!-- pages/tab/index/components/video-item/index.wxml -->
<view class="video-item">
<view class="video-item even-class">
<image class="play" src="{{IMG_URL}}index/poster/play.png?v={{img_version}}" />
<image class="img" src="{{IMG_URL}}index/poster/poster0-0.png?v={{img_version}}" alt="" />
<view class="name">30秒告诉你数字无忧卡是什么</view>
......@@ -10,7 +10,7 @@
<view class="num">12345</view>
</view>
</view>
<view class="video-item">
<!-- <view class="video-item">
<image class="play" src="{{IMG_URL}}index/poster/play.png?v={{img_version}}" />
<image class="img" src="{{IMG_URL}}index/poster/poster0-0.png?v={{img_version}}" alt="" />
<view class="name">30秒告诉你数字无忧卡是什么</view>
......@@ -31,4 +31,4 @@
<image class="check" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" />
<view class="num">12345</view>
</view>
</view>
\ No newline at end of file
</view> -->
\ No newline at end of file
// pages/viewProd/index.js
import { IMG_URL } from '~/utils/constantData.js'
Page({
/**
* 页面的初始数据
*/
data: {
IMG_URL
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {},
//接受跳转的路由参数(小程序页面跳转)
onRoute(options) {
wx.setNavigationBarTitle({
title: "查看产品",
});
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
/**
* 生命周期函数--监听页面显示
*/
onShow() {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {},
});
{
"usingComponents": {
"video-item":"../tab/index/components/video-item",
"apply-button":"../viewVideo/components/apply-button/index"
}
}
\ No newline at end of file
/* pages/viewVideo/index.wxss */
.view-prod{
.frame{
width: 100%;
height: 422rpx;
}
.title-wrap{
margin-bottom: 32rpx;
margin-left: 32rpx;
margin-right: 32rpx;
display:flex;
align-items:center;
.title{
width: 564rpx;
height: 48rpx;
font-weight: 500;
font-size: 32rpx;
color: #323436;
line-height: 48rpx;
}
.check{
margin-left: 30rpx;
margin-right: 6rpx;
width: 28rpx;
height: 28rpx;
}
.num{
font-size: 24rpx;
color: #5A6066;
}
}
}
\ No newline at end of file
<view class="view-prod" >
<video class="frame" src=""></video>
<view class="title-wrap">
<view class="title" >
单品AR导航-新增产值20w+
</view>
<image class="check" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" />
<view class="num">
3256
</view>
</view>
<view class="prod-detail">
</view>
</view>
<!-- 申请按钮 -->
<apply-button downShow="{{false}}" ></apply-button>
// pages/viewVideo/components/apply-button/index.js
import { IMG_URL } from '~/utils/constantData.js'
Component({
/**
* 组件的属性列表
*/
properties: {
downShow:{
type: Boolean,
value: true
},
forwardShow:{
type: Boolean,
value: true
},
},
/**
* 组件的初始数据
*/
data: {
IMG_URL
},
/**
* 组件的方法列表
*/
methods: {
videoDown(){
this.triggerEvent('videodown')
},
apply(){
wx.$router.go('/packagesList/apply/pages/apply')
},
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
/* pages/viewVideo/components/apply-button/index.wxss */
.apply-button{
display: flex;
justify-content:space-between;
align-items: center;
padding-left: 32rpx;
padding-right: 32rpx;
position: fixed;
left: 0;
bottom:0;
width: 100%;
height: 120rpx;
background: #FFFFFF;
box-shadow: inset 0 2rpx 0 0 #F2F3F7;
box-sizing: border-box;
// filter: blur(0);
.forward-wrap{
display: flex;
}
.down{
margin-right: 32rpx;
}
.forward-btn{
padding: 0;
background-color: #fff;
line-height: 1;
border: 0;
.name{
margin-top: 12rpx !important;
}
}
.forward{
.icon{
width: 40rpx;
height: 40rpx;
}
.name{
margin-top: 8rpx;
font-weight: 500;
font-size: 20rpx;
color: #5A6066;
}
}
.apply{
width: 472rpx;
height: 88rpx;
background: #3666FE;
border-radius: 12rpx;
font-weight: 500;
font-size: 32rpx;
color: #FFFFFF;
text-align: center;
line-height: 88rpx;
}
}
\ No newline at end of file
<!-- pages/viewVideo/components/apply-button/index.wxml -->
<view class="apply-button">
<view class="forward-wrap">
<view class="forward down" wx:if="{{downShow}}" bindtap="videoDown">
<glsx-image class="icon" src="index/new-down.png" />
<view class="name">下载</view>
</view>
<button class="forward forward-btn" wx:if="{{forwardShow}}" plain="true" open-type="share">
<glsx-image class="icon" src="index/new-forward.png" />
<view class="name">转发</view>
</button>
</view>
<view class="apply" bindtap="apply">合作申请</view>
</view>
\ No newline at end of file
// pages/viewVideo/index.js
import { IMG_URL } from '~/utils/constantData.js'
Page({
/**
* 页面的初始数据
*/
data: {
IMG_URL,
videoSrc:''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
//接受跳转的路由参数(小程序页面跳转)
onRoute(options) {
wx.setNavigationBarTitle({
title: '当前页面当前页面当前页面当前页面当前页面'
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file
{
"usingComponents": {
"video-item":"../tab/index/components/video-item",
"apply-button":"./components/apply-button/index"
}
}
\ No newline at end of file
/* pages/viewVideo/index.wxss */
.view-video{
.frame{
width: 100%;
height: 422rpx;
}
.title-wrap{
margin-bottom: 32rpx;
margin-left: 32rpx;
margin-right: 32rpx;
display:flex;
align-items:center;
.title{
width: 564rpx;
height: 48rpx;
font-weight: 500;
font-size: 32rpx;
color: #323436;
line-height: 48rpx;
}
.check{
margin-left: 30rpx;
margin-right: 6rpx;
width: 28rpx;
height: 28rpx;
}
.num{
font-size: 24rpx;
color: #5A6066;
}
}
.gus-like{
margin-left: 32rpx;
margin-bottom: 16rpx;
font-weight: 500;
font-size: 28rpx;
color: #323436;
}
.gus-list{
margin-left: 32rpx;
margin-right: 32rpx;
.gus-scroll{
display: flex;
}
}
}
\ No newline at end of file
<!--pages/viewVideo/index.wxml-->
<view class="view-video" >
<video class="frame" src=""></video>
<view class="title-wrap">
<view class="title" >
单品AR导航-新增产值20w+
</view>
<image class="check" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" />
<view class="num">
3256
</view>
</view>
<view class="gus-like">
猜你喜欢
</view>
<view class="gus-list">
<scroll-view scroll-x="true" style="height: 336rpx;">
<view class="gus-scroll">
<video-item></video-item>
<video-item></video-item>
<video-item></video-item>
</view>
</scroll-view>
</view>
</view>
<!-- 申请按钮 -->
<apply-button ></apply-button>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!