0531品牌动态

master
liuyongli 3 years ago
parent 480427105e
commit 7dfd1fd522

@ -34,7 +34,7 @@
<view class="brand_voa_type" wx:if="{{item.type === 3}}">文章</view> <view class="brand_voa_type" wx:if="{{item.type === 3}}">文章</view>
<!-- <view class="brand_voa"></view> --> <!-- <view class="brand_voa"></view> -->
<!-- <image class="brand_voa" src="./shortimage/img_xingtue@2x.png"></image> --> <!-- <image class="brand_voa" src="./shortimage/img_xingtue@2x.png"></image> -->
<image class="brand_voa" src="{{cdn+(item.cover)}}"></image> <image class="brand_voa" src="{{cdn+(item.cover)}}"></image>
<view class="brand_voa_num"> <view class="brand_voa_num">
<image wx:if="{{item.type === 1}}" style="width: 16rpx;height: 18rpx;margin-right: 5rpx;" src="/images/img_bofang@2x.png"></image> <image wx:if="{{item.type === 1}}" style="width: 16rpx;height: 18rpx;margin-right: 5rpx;" src="/images/img_bofang@2x.png"></image>
<!-- {{item.type === 1 ? item.num+'次播放' : item.num+'次阅读'}} --> <!-- {{item.type === 1 ? item.num+'次播放' : item.num+'次阅读'}} -->

@ -104,12 +104,13 @@
.brand_card{ .brand_card{
height: 246rpx; height: 246rpx;
/* width: 320rpx; */
} }
.brand_voa { .brand_voa {
/* background-color: royalblue; */ /* background-color: royalblue; */
height: 202rpx; height: 202rpx;
width: 304rpx; width: 304rpx;
border-radius: 8rpx; border-radius: 8rpx;
} }

@ -217,7 +217,8 @@ to(e) {
if (res.confirm) { if (res.confirm) {
console.log('用户点击确定') console.log('用户点击确定')
wx.getImageInfo({ wx.getImageInfo({
src: '/pages/index/shortimage/img_xingtue@2x.png', // src: '/pages/index/shortimage/img_xingtue@2x.png',
src:'',
success: function (res) { success: function (res) {
console.log(res); console.log(res);
var path = res.path; var path = res.path;

@ -5,7 +5,7 @@
</video> </video>
</view> </view>
<view class="video" wx:if="{{infoObject.type===2}}"> <view class="video" wx:if="{{infoObject.type===2}}">
<image src="{{cdn+(infoObject.cover)}}" style="width: 100%;height: 100%;"> <image mode="widthFix" src="{{cdn+(infoObject.cover)}}" style="width: 100%;">
<l-icon name="left" color="black" size="48" class="back" bindtap="back" /> <l-icon name="left" color="black" size="48" class="back" bindtap="back" />
</image> </image>
</view> </view>

@ -8,7 +8,8 @@
.video { .video {
width: 100%; width: 100%;
height: 440rpx; /* height: 440rpx; */
height: 100%;
} }

Loading…
Cancel
Save