diff --git a/components/diy_seckill/diy_seckill.js b/components/diy_seckill/diy_seckill.js index aa2d5ab..01bed56 100644 --- a/components/diy_seckill/diy_seckill.js +++ b/components/diy_seckill/diy_seckill.js @@ -125,7 +125,17 @@ Component({ th.no_gid_set(); } }, + imageLoad(e){ + var width=e.detail.width, //获取图片真实宽度 + height=e.detail.height, + ratio=width/height; //图片的真实宽高比例 + let object=this.data.object + let picture_scale=object.picture_scale + if (condition) { + + } + }, //当是默认的情况 no_gid_set() { var user_id=getApp().globalData.user_id; diff --git a/components/diy_seckill/diy_seckill.wxml b/components/diy_seckill/diy_seckill.wxml index 7e47ebf..fb094aa 100644 --- a/components/diy_seckill/diy_seckill.wxml +++ b/components/diy_seckill/diy_seckill.wxml @@ -1,6 +1,6 @@ + - @@ -10,14 +10,19 @@ + - + - + - + - + + + + + @@ -28,10 +33,10 @@ {{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}} - {{aitem.goods_name}} - - - + {{aitem.goods_name}} + + + {{aitem.price}} ¥{{aitem.market_price}} @@ -50,6 +55,51 @@ + + + + + + + + + + + + + + + + + + + + {{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}} + + + {{aitem.goods_name}} + + 已秒 10件, + 还剩余20 + + + + + {{aitem.price}} + ¥{{aitem.market_price}} + + + + + {{object.button_content}} + + + + + + + diff --git a/components/diy_seckill/diy_seckill.wxss b/components/diy_seckill/diy_seckill.wxss index 620bd34..df00e70 100644 --- a/components/diy_seckill/diy_seckill.wxss +++ b/components/diy_seckill/diy_seckill.wxss @@ -304,6 +304,7 @@ swiper { width: 100%; overflow: hidden; } + .new_item1_image{ width: 100%; /* max-width: 100%; @@ -396,7 +397,7 @@ swiper { left: 0; top: 22rpx; width: 74rpx; - height: 60rpx; + height: 70rpx; } .aspect_ratio1{ @@ -411,3 +412,49 @@ swiper { .aspect_ratio4{ aspect-ratio:3/4; } +.container1 { + position: relative; + width:100%; + padding-top: 100%; + overflow: hidden; +} +.container2 { + position: relative; + width:100%; + padding-top: 56.25%; + overflow: hidden; +} +.container3 { + position: relative; + width:100%; + padding-top: 66.67%; + overflow: hidden; +} +.container4 { + position: relative; + width:100%; + padding-top: 133.33%; + overflow: hidden; + +} + +.images1 { + display: block; + position: absolute; + width: 100%; + height: 100%; + top: 0; + bottom: 0; + left: 0; + right: 0; + object-fit: cover; + +} + +.flex2{ + display: flex; + /* align-items: center; */ + justify-content: space-between; + flex-wrap: wrap; + box-sizing: border-box; +} \ No newline at end of file