Commit 22302091 by 李嘉林

修改

parent dc4bfeaf
...@@ -41,6 +41,7 @@ Component({ ...@@ -41,6 +41,7 @@ Component({
let columnWidthArr = ['100%', '50%', '33.3%', '25%', '20%', '16.6%'] let columnWidthArr = ['100%', '50%', '33.3%', '25%', '20%', '16.6%']
this.data.datas.componentData.imgList.forEach(item => { this.data.datas.componentData.imgList.forEach(item => {
console.log(item,'---------------44')
item.imageUrl = item.imageUrl ? app.DFSImg(item.imageUrl,400,400) : '' item.imageUrl = item.imageUrl ? app.DFSImg(item.imageUrl,400,400) : ''
}) })
this.setData({ this.setData({
...@@ -176,6 +177,7 @@ Component({ ...@@ -176,6 +177,7 @@ Component({
let item = e.currentTarget.dataset.item let item = e.currentTarget.dataset.item
console.log(item) console.log(item)
app.trackCpn(e, this.data.datas.componentName, item) app.trackCpn(e, this.data.datas.componentName, item)
console.log(item,'---------------------180')
app.$themeToLink(item.link) app.$themeToLink(item.link)
} }
} }
......
<!--static/nativeComponents/CubeNav/index.wxml--> <!--static/nativeComponents/CubeNav/index.wxml-->
<view class="cube-nav" style="background-color:{{datas.componentData.backgroundColor || ''}};padding-top:{{datas.componentData.verticalMargin * 2}}rpx;padding-bottom:{{datas.componentData.verticalMargin * 2}}rpx;padding-left:{{datas.componentData.levelMargin * 2}}rpx;padding-right:{{datas.componentData.levelMargin * 2}}rpx"> <view class="cube-nav" style="background-color:{{datas.componentData.backgroundColor || ''}};padding-top:{{datas.componentData.verticalMargin * 2}}rpx;padding-bottom:{{datas.componentData.verticalMargin * 2}}rpx;padding-left:{{datas.componentData.levelMargin * 2}}rpx;padding-right:{{datas.componentData.levelMargin * 2}}rpx">
<view class="cube1 clearfix" wx:if="{{datas.componentData.layoutType == 0}}" style="margin-left:{{-datas.componentData.singleVerticalMargin*2}}rpx;border-radius:{{datas.componentData.moduleRadius * 2}}rpx"> <view class="cube1 clearfix" wx:if="{{datas.componentData.layoutType == 0}}" style="margin-left:{{-datas.componentData.singleVerticalMargin*2}}rpx;border-radius:{{datas.componentData.moduleRadius * 2}}rpx">
<view class="cube-bg" wx:for="{{imgList}}" data-item="{{item}}" style="padding-left:{{datas.componentData.singleVerticalMargin*2}}rpx;width:{{getColumnWidth}};"> <view class="cube-bg" wx:for="{{imgList}}" data-item="{{item}}" bindtap="onclickHandle" style="padding-left:{{datas.componentData.singleVerticalMargin*2}}rpx;width:{{getColumnWidth}};">
<view class="cube-item" style="padding-top:{{datas.componentData.singleLevelMargin * 2}}rpx;padding-bottom:{{datas.componentData.singleLevelMargin * 2}}rpx;position:relative;background:{{datas.componentData.singleBackground}};border-radius:{{datas.componentData.singleRadius*2}}rpx;margin-top:{{datas.componentData.lineHeight*2}}rpx" bindtap="onclickHandle"> <view class="cube-item" style="padding-top:{{datas.componentData.singleLevelMargin * 2}}rpx;padding-bottom:{{datas.componentData.singleLevelMargin * 2}}rpx;position:relative;background:{{datas.componentData.singleBackground}};border-radius:{{datas.componentData.singleRadius*2}}rpx;margin-top:{{datas.componentData.lineHeight*2}}rpx">
<view style="padding-left:{{getImgSize}}%;padding-right:{{getImgSize}}%"> <view style="padding-left:{{getImgSize}}%;padding-right:{{getImgSize}}%">
<view class="item-img {{item.imageUrl == '' ? 'item-bg' : ''}}"> <view class="item-img {{item.imageUrl == '' ? 'item-bg' : ''}}">
<image wx:if="{{item.imageUrl}}" src="{{item.imageUrl}}"></image> <image wx:if="{{item.imageUrl}}" src="{{item.imageUrl}}"></image>
......
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