Commit f8eeeff09b5cffd441dfe78ae31685205c8ffb14
1 parent
95d640b5
拼单
Showing
8 changed files
with
1444 additions
and
0 deletions
components/diy_public/diy_public.js
0 → 100644
| 1 | +// var e = function(e) { | |
| 2 | +// return e && e.__esModule ? e : { | |
| 3 | +// default: e | |
| 4 | +// }; | |
| 5 | +// }(require("../../utils/LoadMore3.js")), | |
| 6 | +// n = new e.default(), | |
| 7 | +var t = getApp(), | |
| 8 | + a = t.request, | |
| 9 | + o = t.globalData.setting, | |
| 10 | + os = o, | |
| 11 | + i = require("../../utils/util.js"), | |
| 12 | + ut = i, | |
| 13 | + s = require("../../utils/common.js"); | |
| 14 | +var regeneratorRuntime = require('../../utils/runtime.js'); | |
| 15 | +Component({ | |
| 16 | + properties: { | |
| 17 | + // 这里定义了innerText属性,属性值可以在组件使用时指定 | |
| 18 | + object: { | |
| 19 | + type: Object, | |
| 20 | + value: null, | |
| 21 | + }, | |
| 22 | + goods_array: { | |
| 23 | + type: Array, | |
| 24 | + value: [] | |
| 25 | + }, | |
| 26 | + newTime: { | |
| 27 | + type: Number, | |
| 28 | + value: 0 | |
| 29 | + }, | |
| 30 | + prom_type:{ | |
| 31 | + type:Number, | |
| 32 | + value:0 | |
| 33 | + } | |
| 34 | + }, | |
| 35 | + data: { | |
| 36 | + // 这里是一些组件内部数据 | |
| 37 | + yc: false, | |
| 38 | + someData: null, | |
| 39 | + ylp_img: "https://mshopimg.yolipai.net/", | |
| 40 | + imghost: os.imghost, | |
| 41 | + timer: null, | |
| 42 | + user_id:0, | |
| 43 | + img_width:100, | |
| 44 | + img_height:100, | |
| 45 | + swiperHeight:0, | |
| 46 | + prom_text:"已秒", | |
| 47 | + kttypeArr:['','商家','会员','阶梯'], | |
| 48 | + imgobj:{ | |
| 49 | + '1':"/miniapp/images/component/seckill.png", | |
| 50 | + '6':"/miniapp/images/component/pingd/pingd.png" | |
| 51 | + }, | |
| 52 | + nav1:'/packageA/pages/goodsInfo/goodsInfo?', | |
| 53 | + nav2:'/pages/goods/goodsInfo/goodsInfo?', | |
| 54 | + }, | |
| 55 | + | |
| 56 | + pageLifetimes: { | |
| 57 | + //要处理一下,游客登录后的界面的变化,主要还该是改变会员 | |
| 58 | + show: function () { | |
| 59 | + | |
| 60 | + | |
| 61 | + //会员身份变化 | |
| 62 | + var th = this; | |
| 63 | + var g_id = this.data.object; | |
| 64 | + | |
| 65 | + //只有再会员登陆之后,才重新调用接口 | |
| 66 | + // console.log('秒杀组件------------'); | |
| 67 | + // if(this.data.user_id!=getApp().globalData.user_id){ | |
| 68 | + // this.data.user_id=getApp().globalData.user_id | |
| 69 | + // this.init(g_id); | |
| 70 | + // } | |
| 71 | + setTimeout(function () { | |
| 72 | + if (th.data.goods_array && th.data.goods_array.length > 0) { | |
| 73 | + th.data.timer = setInterval(function () { | |
| 74 | + th.countDown2(th); | |
| 75 | + }, 1000); | |
| 76 | + } | |
| 77 | + },600) | |
| 78 | + }, | |
| 79 | + | |
| 80 | + hide:function () { | |
| 81 | + // 页面被被销毁的时候,清除定时器 | |
| 82 | + clearInterval(this.data.timer); | |
| 83 | + } | |
| 84 | + }, | |
| 85 | + | |
| 86 | + ready: function () { | |
| 87 | + if (this.data.prom_type==6) { | |
| 88 | + this.setData({ | |
| 89 | + prom_text:'已团', | |
| 90 | + nav1:'/packageA/pages/serviceCard_pd/goodsInfo/goodsInfo?', | |
| 91 | + nav2:'/pages/goods/goodsInfo/goodsInfo?' | |
| 92 | + }) | |
| 93 | + } | |
| 94 | + var g_id = this.data.object; | |
| 95 | + | |
| 96 | + this.init(g_id); | |
| 97 | + this.data.user_id=getApp().globalData.user_id; | |
| 98 | + }, | |
| 99 | + detached() { | |
| 100 | + // 页面被被销毁的时候,清除定时器 | |
| 101 | + clearInterval(this.data.timer); | |
| 102 | + }, | |
| 103 | + methods: { | |
| 104 | + // 这里是一个自定义方法 | |
| 105 | + customMethod: function () { }, | |
| 106 | + init: function (g_id) { | |
| 107 | + var th = this; | |
| 108 | + this.loadImg(g_id) | |
| 109 | + getApp().getConfig2(function (e) { | |
| 110 | + var swithc_list = e.switch_list; | |
| 111 | + var sw_arr = JSON.parse(swithc_list); | |
| 112 | + | |
| 113 | + if(sw_arr.is_retail_price){ | |
| 114 | + th.setData({is_retail_price:1}); | |
| 115 | + } | |
| 116 | + }) | |
| 117 | + | |
| 118 | + | |
| 119 | + var app = getApp(), goodsidlist = "", idlist = ""; | |
| 120 | + if (g_id.data_type == 2) { | |
| 121 | + if (g_id.data && g_id.data.length > 0) { | |
| 122 | + //--先把商品ID串起来-- | |
| 123 | + g_id.data.forEach(function (val, ind) { | |
| 124 | + var item = {}; | |
| 125 | + goodsidlist += val.goodsid + ","; | |
| 126 | + idlist += val.flashid + ","; | |
| 127 | + }) | |
| 128 | + goodsidlist = ut.sub_last(goodsidlist); | |
| 129 | + idlist = ut.sub_last(idlist); | |
| 130 | + | |
| 131 | + var user_id=getApp().globalData.user_id; | |
| 132 | + if(!user_id){ user_id=0;} | |
| 133 | + | |
| 134 | + //--调用接口,读取秒杀-- | |
| 135 | + // var gUrl = "/api/ms/flash_sale/getGoodsList?store_id=" + os.stoid + "&goodsidlist=" + goodsidlist+"&user_id="+user_id+"&type=1"; | |
| 136 | + let gUrl = "/api/ms/flash_sale/getGoodsList?store_id=" + os.stoid + "&idlist=" + idlist + "&user_id="+user_id+"&type=1"; | |
| 137 | + | |
| 138 | + if (th.data.prom_type==6) { //天天拼单 | |
| 139 | + gUrl="/api/weshop/teamlist/getGoodsList?store_id=" | |
| 140 | + +os.stoid+"&goodsidlist="+goodsidlist; | |
| 141 | + } | |
| 142 | + | |
| 143 | + | |
| 144 | + app.request.promiseGet(gUrl, {}).then(res => { | |
| 145 | + | |
| 146 | + //如果秒杀的数组为空的时候 | |
| 147 | + var goodslist = res.data.data; | |
| 148 | + //就算是添加的活动已经过期,就要用最新的进行中活动 | |
| 149 | + if (goodslist && goodslist.length > 0) { | |
| 150 | + th.set_goods_list(g_id.data, goodslist); | |
| 151 | + } | |
| 152 | + }); | |
| 153 | + } | |
| 154 | + } else { | |
| 155 | + th.no_gid_set(); | |
| 156 | + } | |
| 157 | + }, | |
| 158 | + | |
| 159 | + //当是默认的情况 | |
| 160 | + no_gid_set() { | |
| 161 | + var user_id=getApp().globalData.user_id; | |
| 162 | + if(!user_id){ user_id=0;} | |
| 163 | + | |
| 164 | + let req={ store_id: os.stoid, is_end: 0, is_show: 1, timetype: 2,user_id:user_id}; | |
| 165 | + let gUrl="/api/ms/flash_sale/spikepage?page=1&pageSize=9" | |
| 166 | + | |
| 167 | + if (this.data.prom_type==6) { //天天拼单 | |
| 168 | + gUrl="/api/weshop/teamlist/pageteam/2?page=1&pageSize=9" | |
| 169 | + req={ | |
| 170 | + store_id:os.stoid, | |
| 171 | + is_end: 0, | |
| 172 | + is_show: 1, | |
| 173 | + user_id:user_id, | |
| 174 | + } | |
| 175 | + } | |
| 176 | + | |
| 177 | + getApp().request.promiseGet(gUrl, | |
| 178 | + { isShowLoading: 1, data:req } | |
| 179 | + ).then(res => { | |
| 180 | + | |
| 181 | + if (res.data.code == 0 && res.data.data.pageData && res.data.data.pageData.length > 0) { | |
| 182 | + var goodsidlist = res.data.data.pageData; | |
| 183 | + this.set_goods_list(null, goodsidlist); | |
| 184 | + } | |
| 185 | + }); | |
| 186 | + }, | |
| 187 | + | |
| 188 | + //就算是添加的活动已经过期,就要用最新的活动 | |
| 189 | + set_goods_list(g_id, goodslist) { | |
| 190 | + let prom_type=this.data.prom_type | |
| 191 | + goodslist.forEach(function (vy, indy) { | |
| 192 | + if(!vy.id) vy.id=vy.prom_id; | |
| 193 | + }) | |
| 194 | + | |
| 195 | + // 判断火热,预热 | |
| 196 | + var newTime = ut.gettimestamp(), all_array = [], th = this; | |
| 197 | + th.setData({ newTime: newTime }); | |
| 198 | + if (g_id) { | |
| 199 | + /*--商品队列按照添加的顺序排列--*/ | |
| 200 | + g_id.forEach(function (val, ind) { | |
| 201 | + goodslist.forEach(function (vy, indy) { | |
| 202 | + if (val.goodsid == vy.goods_id) { | |
| 203 | + all_array.push(vy); | |
| 204 | + } | |
| 205 | + }) | |
| 206 | + }) | |
| 207 | + } else { | |
| 208 | + all_array = goodslist; | |
| 209 | + } | |
| 210 | + | |
| 211 | + if (all_array.length == 0) { | |
| 212 | + all_array = goodslist; | |
| 213 | + } | |
| 214 | + | |
| 215 | + for(let i in all_array){ | |
| 216 | + let item=all_array[i]; | |
| 217 | + if(item.user_price) item.price=item.user_price; | |
| 218 | + if(item.start_time > newTime) { | |
| 219 | + item.status = 0; | |
| 220 | + } else if(item.end_time > newTime) { | |
| 221 | + item.status = 1; | |
| 222 | + }; | |
| 223 | + | |
| 224 | + } | |
| 225 | + | |
| 226 | + | |
| 227 | + var promisies = []; | |
| 228 | + for (const key in all_array) { | |
| 229 | + if (Object.hasOwnProperty.call(all_array, key)) { | |
| 230 | + const val = all_array[key]; | |
| 231 | + | |
| 232 | + promisies[key] = getApp().request.promiseGet("/api/weshop/activitylist/getActLen/" + | |
| 233 | + os.stoid + "/"+prom_type+"/" + val.id, | |
| 234 | + {} | |
| 235 | + ).then(res => { | |
| 236 | + if (res.data.code == 0) { | |
| 237 | + if (res.data.data <= 0) all_array[key].status = 2; | |
| 238 | + }; | |
| 239 | + }); | |
| 240 | + } | |
| 241 | + } | |
| 242 | + | |
| 243 | + | |
| 244 | + Promise.all(promisies).then(() => { | |
| 245 | + // 判断活动是否结束 | |
| 246 | + let empty=[] | |
| 247 | + for(let i in all_array){ | |
| 248 | + let item=all_array[i]; | |
| 249 | + if(newTime > item.end_time) { | |
| 250 | + all_array[i].status = 3; | |
| 251 | + }; | |
| 252 | + // let price=all_array[i].price.toFixed(2) | |
| 253 | + let price=all_array[i].price + '' | |
| 254 | + if (price && price.indexOf('.') > -1) { | |
| 255 | + let priceArr = price.split(".") | |
| 256 | + all_array[i].price_n = priceArr[0] | |
| 257 | + all_array[i].price_xs = priceArr[1] | |
| 258 | + }else{ | |
| 259 | + all_array[i].price_n = price | |
| 260 | + } | |
| 261 | + | |
| 262 | + all_array[i].residue=all_array[i].goods_num*1 - all_array[i].buy_num*1 | |
| 263 | + if (all_array[i].residue && all_array[i].residue > 0 && all_array[i].status !=2) { | |
| 264 | + empty.push(all_array[i]) | |
| 265 | + } | |
| 266 | + } | |
| 267 | + | |
| 268 | + //控制已售罄是否显示 | |
| 269 | + if (!th.data.object.hide_sold_out_items) { | |
| 270 | + all_array=empty | |
| 271 | + } | |
| 272 | + | |
| 273 | + | |
| 274 | + var arr = new Array(); | |
| 275 | + if (th.data.object.style==7) { | |
| 276 | + //--三个三个一组--- | |
| 277 | + for (var i = 0; i < all_array.length; i += 2) { | |
| 278 | + arr.push(all_array.slice(i, i + 2)); | |
| 279 | + } | |
| 280 | + }else{ | |
| 281 | + //--三个三个一组--- | |
| 282 | + for (var i = 0; i < all_array.length; i += 3) { | |
| 283 | + arr.push(all_array.slice(i, i + 3)); | |
| 284 | + } | |
| 285 | + } | |
| 286 | + | |
| 287 | + | |
| 288 | + /*--熏染到前台--*/ | |
| 289 | + th.setData({ goods_array: arr }); | |
| 290 | + if (th.data.object.style==6) { | |
| 291 | + th.setSwiper_h() | |
| 292 | + } | |
| 293 | + | |
| 294 | + }); | |
| 295 | + | |
| 296 | + | |
| 297 | + th.data.timer = setInterval(function () { | |
| 298 | + th.countDown2(th); | |
| 299 | + }, 1000); | |
| 300 | + }, | |
| 301 | + setSwiper_h(){ | |
| 302 | + var th=this | |
| 303 | + wx.createSelectorQuery().in(this).select('.swiper_h').boundingClientRect(rect => { | |
| 304 | + if (rect && rect.height) { | |
| 305 | + var sumHeigth=(rect.height+13)+'px' | |
| 306 | + th.setData({ | |
| 307 | + swiperHeight: sumHeigth | |
| 308 | + }) | |
| 309 | + } | |
| 310 | + }).exec(); | |
| 311 | + // const query = this.createSelectorQuery() | |
| 312 | + // query.select('.swiper_h').boundingClientRect() | |
| 313 | + // query.exec( (res)=> { | |
| 314 | + // console.log(res) | |
| 315 | + // console.log(res[0].height) | |
| 316 | + // console.log(res[0].height * data.t.length) | |
| 317 | + // let sumHeigth = res[0].height * data.t.length; | |
| 318 | + // console.error('组件高度'); | |
| 319 | + // console.log(sumHeigth); | |
| 320 | + // th.setData({ | |
| 321 | + // swiperHeight: sumHeigth | |
| 322 | + // }) | |
| 323 | + // }) | |
| 324 | + }, | |
| 325 | + | |
| 326 | + | |
| 327 | + //---小于10的格式化函数---- | |
| 328 | + timeFormat: function (param) { | |
| 329 | + return param < 10 ? '0' + param : param; | |
| 330 | + }, | |
| 331 | + //----秒杀倒计时函数----- | |
| 332 | + countDown2: function (ob) { | |
| 333 | + if (ob == undefined) return false; | |
| 334 | + var ee = ob; | |
| 335 | + // 获取当前时间,同时得到活动结束时间数组 | |
| 336 | + var newTime = ut.gettimestamp(); | |
| 337 | + this.setData({ newTime: newTime }); | |
| 338 | + | |
| 339 | + var List = ee.data.goods_array; | |
| 340 | + if (List.length == 0) return false; | |
| 341 | + for (var j = 0; j < List.length; j++) { | |
| 342 | + // 对结束时间进行处理渲染到页面 | |
| 343 | + var endTimeList = List[j]; | |
| 344 | + for (var i = 0; i < endTimeList.length; i++) { | |
| 345 | + var o = endTimeList[i]; | |
| 346 | + var endTime = o.end_time; | |
| 347 | + if (newTime < o.start_time) endTime = o.start_time; | |
| 348 | + let obj = null; | |
| 349 | + // 如果活动未结束,对时间进行处理 | |
| 350 | + if (endTime - newTime > 0) { | |
| 351 | + let time = (endTime - newTime); | |
| 352 | + // 获取天、时、分、秒 | |
| 353 | + let day = parseInt(time / (60 * 60 * 24)); | |
| 354 | + let hou = parseInt(time % (60 * 60 * 24) / 3600); | |
| 355 | + let min = parseInt(time % (60 * 60 * 24) % 3600 / 60); | |
| 356 | + let sec = parseInt(time % (60 * 60 * 24) % 3600 % 60); | |
| 357 | + obj = { | |
| 358 | + day: this.timeFormat(day), | |
| 359 | + hou: this.timeFormat(hou), | |
| 360 | + min: this.timeFormat(min), | |
| 361 | + sec: this.timeFormat(sec) | |
| 362 | + } | |
| 363 | + } else { | |
| 364 | + //活动已结束,全部设置为'00' | |
| 365 | + obj = { | |
| 366 | + day: '00', | |
| 367 | + hou: '00', | |
| 368 | + min: '00', | |
| 369 | + sec: '00' | |
| 370 | + } | |
| 371 | + } | |
| 372 | + var txt = "goods_array[" + j + "][" + i + "].djs"; | |
| 373 | + ee.setData({ | |
| 374 | + [txt]: obj | |
| 375 | + }); | |
| 376 | + } | |
| 377 | + } | |
| 378 | + }, | |
| 379 | + //图片失败,默认图片 | |
| 380 | + bind_bnerr3: function (e) { | |
| 381 | + var _errImg = e.target.dataset.errorimg; | |
| 382 | + var _errObj = {}; | |
| 383 | + _errObj[_errImg] = "/public/images/default_goods_image_240.gif"; | |
| 384 | + this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ; | |
| 385 | + }, | |
| 386 | + | |
| 387 | + go_to: function () { | |
| 388 | + let url= "/pages/activity/seckill_list/seckill_list" | |
| 389 | + if (this.data.prom_type==6) { //天天拼单 | |
| 390 | + url="/pages/activity/pind_list/pind_list" | |
| 391 | + } | |
| 392 | + wx.navigateTo({ | |
| 393 | + url | |
| 394 | + }); | |
| 395 | + }, | |
| 396 | + //加入购物车 | |
| 397 | + shoppingCart(){ | |
| 398 | + console.log('加入购物车'); | |
| 399 | + }, | |
| 400 | + loadImg(g_id){ | |
| 401 | + if (g_id.style==1) { | |
| 402 | + let w='' | |
| 403 | + switch (g_id.picture_scale) { | |
| 404 | + case 1: | |
| 405 | + w=`width:calc(100%-${g_id.page_margins*2}px);height:calc(100%-${g_id.page_margins*2}px)` | |
| 406 | + break; | |
| 407 | + | |
| 408 | + default: | |
| 409 | + break; | |
| 410 | + } | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + } | |
| 415 | + } | |
| 416 | + | |
| 417 | + }, | |
| 418 | + | |
| 419 | + | |
| 420 | +}) | |
| 0 | 421 | \ No newline at end of file | ... | ... |
components/diy_public/diy_public.json
0 → 100644
components/diy_public/diy_public.wxml
0 → 100644
| 1 | +<!--components/diy_public/diy_public.wxml--> | |
| 2 | +<block wx:if="{{goods_array.length>0}}"> | |
| 3 | + <!--新版组件--> | |
| 4 | + <block wx:if="{{object.column_action_name}}"> | |
| 5 | + <view class='top' bindtap="go_to" wx:if="{{object.column_title}}" style="{{'background-image:url('+object.column_diy_title+')'+';background-size:100% 70rpx;padding:0rpx;border-bottom:0rpx;' + 'margin-bottom:'+object.product_spacing+'px;'}}"> | |
| 6 | + <view class="flex" wx:if="{{!object.column_diy_title}}"> | |
| 7 | + <view class='t_left'></view> | |
| 8 | + <view class='t_ms n_t_ms' style="font-size: 30rpx;">{{object.column_name}}</view> | |
| 9 | + </view> | |
| 10 | + <view class='right_k' wx:if="{{!object.column_diy_title}}"> | |
| 11 | + 更多<image src="{{imghost}}/miniapp/images/icon-arrowdown.png" lazy-load="true"></image> | |
| 12 | + </view> | |
| 13 | + </view> | |
| 14 | + <!-- 大图模式 --> | |
| 15 | + <block wx:if="{{object.style==1}}"> | |
| 16 | + <view style="{{'padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'}}" class="{{'new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')}}"> | |
| 17 | + <block wx:for="{{goods_array}}"> | |
| 18 | + <view wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind" class="{{'new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') + (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'') }}" style="{{'margin-bottom:'+object.product_spacing+'px;'}}"> | |
| 19 | + <navigator url="{{aitem.goods_type == 1 ? ( nav1 + 'goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type='+prom_type+'&prom_id=' + aitem.id ) : ( nav2 + 'goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type='+prom_type+'&prom_id=' + aitem.id)}}" class="s1_gk_a1"> | |
| 20 | + <view class="topBox"> | |
| 21 | + <view class="imgBox"> | |
| 22 | + <!-- <image mode="{{object.picture_fill==1 ? 'aspectFill' : 'scaleToFill'}}" class="{{'new_item1_image '+ 'aspect_ratio'+object.picture_scale}}" style="{{'width:'+img_width+';height:'+img_height}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> --> | |
| 23 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 24 | + <!-- <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1'}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> --> | |
| 25 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1'}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> | |
| 26 | + </view> | |
| 27 | + | |
| 28 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 29 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png?v=1'}}"></image> | |
| 30 | + </view> | |
| 31 | + <block wx:if="{{object.count_down}}"> | |
| 32 | + <view wx:if="{{aitem.residue==0 || aitem.status==2}}" class="{{object.count_down_float ? 'item_float' : ''}}" style="height: 70rpx;line-height: 70rpx;color: #fff;background-color:rgb(166,166,166);text-align: center;"> | |
| 33 | + 已售罄 | |
| 34 | + </view> | |
| 35 | + <view wx:else style="{{'height: 70rpx;padding: 10rpx 30rpx;box-sizing:border-box;background:'+ (aitem.status ==0 ? object.scountdown_background_color : (aitem.status ==0 ? object.scountdown_background_color : object.countdown_background_color))}}" class="{{'new_item1_time '+ (object.count_down_float ? 'item_float' : '')}}"> | |
| 36 | + <image src="{{imghost+imgobj[prom_type]}}"></image> | |
| 37 | + <view style="text-align: center;line-height: 30rpx;"> | |
| 38 | + <view wx:if="{{aitem.status == 1}}">距结束时间</view> | |
| 39 | + <view wx:if="{{aitem.status == 0}}">距开始时间</view> | |
| 40 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 41 | + <!-- <view>30天21:59:40</view> --> | |
| 42 | + </view> | |
| 43 | + </view> | |
| 44 | + </block> | |
| 45 | + </view> | |
| 46 | + <view class="ellipsis-2n new_item1_goods_name" style="{{(object.text_style==2 ? 'font-weight: bold;':'') + (object.text_align==2 ? 'text-align:center;' :'' )}}" wx:if="{{object.trade_name}}">{{aitem.goods_name}}</view> | |
| 47 | + <view class="buy_box pricefs28" style="{{(object.text_align==2 ? ' justify-content: center;' :'' )}}" wx:if="{{prom_type==6 && (object.group_size || object.group_type)}}"> | |
| 48 | + <view class="mgr10" wx:if="{{object.group_size}}">{{aitem.ct_num}}人团</view> | |
| 49 | + <view wx:if="{{object.group_type}}">{{kttypeArr[aitem.kttype]}}团</view> | |
| 50 | + </view> | |
| 51 | + <view class="new_item1_price" style="{{'padding:10rpx 10rpx;'+(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 52 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 53 | + <view class="clor7b"> | |
| 54 | + <text wx:if="{{object.seconds_num}}">{{prom_text}}<text class="clor">{{aitem.buy_num}}</text>件</text> | |
| 55 | + <text wx:if="{{object.remaining_inventory}}">还剩余<text class="clor">{{aitem.status==2 ? '0' : aitem.residue}}</text>件</text> | |
| 56 | + </view> | |
| 57 | + <view class="flex" style="{{'font-size: 24rpx; ' +(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 58 | + <view class="clor" wx:if="{{object.commodity_price}}"> | |
| 59 | + ¥<text class="pricefs42">{{aitem.price_n}}</text><text wx:if="{{aitem.price_xs}}">.{{aitem.price_xs}}</text> | |
| 60 | + <text style="margin-left: 5rpx;" wx:if="{{object.wholesale_price}}" class="clor7b">¥{{aitem.shop_price || aitem.market_price}}</text> | |
| 61 | + </view> | |
| 62 | + </view> | |
| 63 | + </view> | |
| 64 | + <view> | |
| 65 | + <image wx:if="{{object.purchase_button<=4}}" src="{{imghost+'/miniapp/images/component/0'+object.purchase_button+'.png?v=1'}}" class="imgbox1"></image> | |
| 66 | + <view wx:if="{{ 5<=object.purchase_button && object.purchase_button<=8 }}" class="{{'new_item1_but ' + (object.purchase_button==5 ? 'new_item1_but1':'' )+ (object.purchase_button==7 ? 'new_item1_but2':'' )+ (object.purchase_button==8 ? 'new_item1_but3':'' ) }}">{{object.button_content}}</view> | |
| 67 | + </view> | |
| 68 | + </view> | |
| 69 | + </navigator> | |
| 70 | + </view> | |
| 71 | + </block> | |
| 72 | + </view> | |
| 73 | + </block> | |
| 74 | + <!-- 一行两个 --> | |
| 75 | + <block wx:if="{{object.style==2}}"> | |
| 76 | + <view style="{{'padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'}}" class="{{'flex2 new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') }}"> | |
| 77 | + <block wx:for="{{goods_array}}"> | |
| 78 | + <view wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind" class="{{'boxpad new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')+ (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'')}}" style="{{'margin-bottom:'+object.product_spacing+'px; '+('width:calc(100%/2 - ' + object.product_spacing/2+'px)')}}"> | |
| 79 | + <navigator url="{{aitem.goods_type == 1 ? ( nav1 + 'goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type='+prom_type+'&prom_id=' + aitem.id ) : ( nav2 + 'goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type='+prom_type+'&prom_id=' + aitem.id)}}" class="s1_gk_a1"> | |
| 80 | + <view class="topBox"> | |
| 81 | + <view class="imgBox"> | |
| 82 | + <!-- <image mode="{{object.picture_fill==1 ? 'aspectFill' : 'scaleToFill'}}" class="{{'new_item1_image '+ 'aspect_ratio'+object.picture_scale}}" style="{{'width:'+img_width+';height:'+img_height}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> --> | |
| 83 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 84 | + <!-- <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1'}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> --> | |
| 85 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1 '}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> | |
| 86 | + </view> | |
| 87 | + | |
| 88 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 89 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png?v=1'}}"></image> | |
| 90 | + </view> | |
| 91 | + <block wx:if="{{object.count_down}}"> | |
| 92 | + <view wx:if="{{aitem.residue==0}}" class="{{'new_item1_time '+(object.count_down_float ? 'item_float' : '')}}" style="justify-content: center;color: #fff;background-color:rgb(166,166,166);"> | |
| 93 | + <view>已售罄</view> | |
| 94 | + </view> | |
| 95 | + <view wx:else class="{{'new_item1_time '+(object.count_down_float ? 'item_float' : '')}}" style="{{'justify-content: center;background:'+(aitem.status ==0 ? object.scountdown_background_color : object.countdown_background_color)}}"> | |
| 96 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 97 | + </view> | |
| 98 | + </block> | |
| 99 | + </view> | |
| 100 | + <view class="ellipsis-2 new_item1_goods_name" style="{{'height:88rpx;font-size:24rpx; ' + (object.text_style==2 ? 'font-weight: bold;':'') + (object.text_align==2 ? 'text-align:center;' :'' )}}" wx:if="{{object.trade_name}}">{{aitem.goods_name}}</view> | |
| 101 | + <view class="buy_box fs24" style="{{'margin-bottom:10rpx;' +(object.text_align==2 ? ' justify-content: center;' :'' )}}" wx:if="{{prom_type==6 && (object.group_size || object.group_type)}}"> | |
| 102 | + <view class="mgr10 lineh24" wx:if="{{object.group_size}}">{{aitem.ct_num}}人团</view> | |
| 103 | + <view class="lineh24" wx:if="{{object.group_type}}">{{kttypeArr[aitem.kttype]}}团</view> | |
| 104 | + </view> | |
| 105 | + <view wx:if="{{object.seconds_num || object.remaining_inventory}}" class="new_item1_price pdlf10 clor7b" style="{{'font-size:20rpx;' + 'display:block;'+(object.text_align==2 ?'text-align:center;':'')+(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 106 | + <text wx:if="{{object.seconds_num}}">{{prom_text}}<text class="clor">{{aitem.buy_num}}</text>件</text> | |
| 107 | + <text wx:if="{{object.remaining_inventory}}">还剩余<text class="clor">{{aitem.residue}}</text>件</text> | |
| 108 | + </view> | |
| 109 | + <view class="new_item1_price pdlf10" style="{{(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 110 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 111 | + <view style="{{(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 112 | + <view class="clor" style="margin-right: 5rpx;" wx:if="{{object.commodity_price}}">¥<text class="pricefs42">{{aitem.price_n}}</text><text wx:if="{{aitem.price_xs}}">.{{aitem.price_xs}}</text></view> | |
| 113 | + <view wx:if="{{object.wholesale_price}}" class="clor7b">¥{{aitem.shop_price || aitem.market_price}}</view> | |
| 114 | + </view> | |
| 115 | + </view> | |
| 116 | + <view> | |
| 117 | + <image wx:if="{{object.purchase_button<=4}}" src="{{imghost+'/miniapp/images/component/0'+object.purchase_button+'.png?v=1'}}" style="width: 60rpx;height: 60rpx;"></image> | |
| 118 | + <view wx:if="{{ 5<=object.purchase_button && object.purchase_button<=8 }}" class="{{'new_item1_but ' + (object.purchase_button==5 ? 'new_item1_but1':'' )+ (object.purchase_button==7 ? 'new_item1_but2':'' )+ (object.purchase_button==8 ? 'new_item1_but3':'' ) }}">{{object.button_content}}</view> | |
| 119 | + </view> | |
| 120 | + </view> | |
| 121 | + </navigator> | |
| 122 | + </view> | |
| 123 | + </block> | |
| 124 | + </view> | |
| 125 | + </block> | |
| 126 | + <!-- 一行三个 --> | |
| 127 | + <block wx:if="{{object.style==3}}"> | |
| 128 | + <view style="{{'padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'}}" class="{{'flex2 new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')}}"> | |
| 129 | + <block wx:for="{{goods_array}}"> | |
| 130 | + <view wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind" class="{{'boxpad new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') + (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'') }}" style="{{'margin-bottom:'+object.product_spacing+'px; '+('width:calc(100%/3 - ' + (object.product_spacing*2)/3+'px)')}}"> | |
| 131 | + <navigator url="{{aitem.goods_type == 1 ? ( nav1 + 'goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type='+prom_type+'&prom_id=' + aitem.id ) : ( nav2 + 'goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type='+prom_type+'&prom_id=' + aitem.id)}}" class="s1_gk_a1"> | |
| 132 | + <view class="topBox"> | |
| 133 | + <view class="imgBox"> | |
| 134 | + <!-- <image mode="{{object.picture_fill==1 ? 'aspectFill' : 'scaleToFill'}}" class="{{'new_item1_image '+ 'aspect_ratio'+object.picture_scale}}" style="{{'width:'+img_width+';height:'+img_height}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> --> | |
| 135 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 136 | + <!-- <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1'}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> --> | |
| 137 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1 '}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> | |
| 138 | + </view> | |
| 139 | + | |
| 140 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 141 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png?v=1'}}"></image> | |
| 142 | + </view> | |
| 143 | + <block wx:if="{{object.count_down}}"> | |
| 144 | + <view wx:if="{{aitem.residue==0}}" class="{{'new_item1_time '+(object.count_down_float ? 'item_float' : '')}}" style="justify-content: center;color: #fff;background-color:rgb(166,166,166);"> | |
| 145 | + <view>已售罄</view> | |
| 146 | + </view> | |
| 147 | + <view wx:else class="{{'new_item1_time '+(object.count_down_float ? 'item_float' : '')}}" style="{{'justify-content: center;background:'+(aitem.status ==0 ? object.scountdown_background_color : object.countdown_background_color)}}"> | |
| 148 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 149 | + </view> | |
| 150 | + </block> | |
| 151 | + </view> | |
| 152 | + <view class="ellipsis-2 new_item1_goods_name " style="{{'height:88rpx;font-size:24rpx;' + (object.text_style==2 ? 'font-weight: bold;':'') + (object.text_align==2 ? 'text-align:center;' :'' )}}" wx:if="{{object.trade_name}}">{{aitem.goods_name}}</view> | |
| 153 | + <view wx:if="{{object.seconds_num || object.remaining_inventory}}" class="new_item1_price clor7b" style="{{'display:block;font-size:20rpx; '+(object.text_align==2 ?'text-align:center;':'')+(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 154 | + <text wx:if="{{object.seconds_num}}">{{prom_text}}<text class="clor">{{aitem.buy_num}}</text>件</text> | |
| 155 | + <text wx:if="{{object.remaining_inventory}}">剩<text class="clor">{{aitem.residue}}</text>件</text> | |
| 156 | + </view> | |
| 157 | + <view class="new_item1_price clor7b" style="{{(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 158 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 159 | + <view style="{{'font-size: 20rpx; ' +(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 160 | + <view class="clor" style="margin-right: 5rpx;" wx:if="{{object.commodity_price}}">¥<text class="pricefs38">{{aitem.price_n}}</text><text wx:if="{{aitem.price_xs}}">.{{aitem.price_xs}}</text></view> | |
| 161 | + <view wx:if="{{object.wholesale_price}}">¥{{aitem.shop_price || aitem.market_price}}</view> | |
| 162 | + </view> | |
| 163 | + </view> | |
| 164 | + <view> | |
| 165 | + <image wx:if="{{object.purchase_button<=4}}" src="{{imghost+'/miniapp/images/component/0'+object.purchase_button+'.png?v=1'}}" style="width: 50rpx;height: 50rpx;"></image> | |
| 166 | + <!-- <view style="width: 90rpx;height: 50rpx;line-height: 50rpx;" wx:if="{{ 5<=object.purchase_button && object.purchase_button<=8 }}" class="{{'new_item1_but ' + (object.purchase_button==5 ? 'new_item1_but1':'' )+ (object.purchase_button==7 ? 'new_item1_but2':'' )+ (object.purchase_button==8 ? 'new_item1_but3':'' ) }}">{{object.button_content}}</view> --> | |
| 167 | + </view> | |
| 168 | + </view> | |
| 169 | + </navigator> | |
| 170 | + </view> | |
| 171 | + </block> | |
| 172 | + </view> | |
| 173 | + </block> | |
| 174 | + <!-- 详细列表 --> | |
| 175 | + <block wx:if="{{object.style==4}}"> | |
| 176 | + <view style="{{'padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'}}" class="{{'flex2 new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') }}"> | |
| 177 | + <block wx:for="{{goods_array}}"> | |
| 178 | + <view wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind" class="{{'boxpad new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') + (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'') }}" style="{{'margin-bottom:'+object.product_spacing+'px;'}}"> | |
| 179 | + <navigator style="display: flex;" url="{{aitem.goods_type == 1 ? ( nav1 + 'goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type='+prom_type+'&prom_id=' + aitem.id ) : ( nav2 + 'goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type='+prom_type+'&prom_id=' + aitem.id)}}" class="s1_gk_a1"> | |
| 180 | + <view style="width: 33%;" class="topBox"> | |
| 181 | + <view class="imgBox"> | |
| 182 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 183 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1'}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> | |
| 184 | + </view> | |
| 185 | + | |
| 186 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 187 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png?v=1'}}"></image> | |
| 188 | + </view> | |
| 189 | + <block wx:if="{{object.count_down}}"> | |
| 190 | + <view wx:if="{{aitem.residue==0}}" class="{{'new_item1_time '+(object.count_down_float ? 'item_float' : '')}}" style="justify-content: center;color: #fff;background-color:rgb(166,166,166);"> | |
| 191 | + <view>已售罄</view> | |
| 192 | + </view> | |
| 193 | + <view wx:else class="{{'new_item1_time '+(object.count_down_float ? 'item_float' : '')}}" style="{{'justify-content: center;background:'+(aitem.status ==0 ? object.scountdown_background_color : object.countdown_background_color)}}"> | |
| 194 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 195 | + </view> | |
| 196 | + </block> | |
| 197 | + </view> | |
| 198 | + <view style="{{'width: 67%;display: flex;flex-wrap: wrap;padding-left: 10rpx;' + (object.text_align==2 ? 'justify-content:center;' :'' )}}"> | |
| 199 | + <view class="ellipsis-2 new_item1_goods_name" style="{{'font-size:28rpx;height:100rpx;'+(object.text_style==2 ? 'font-weight: bold;':'') + (object.text_align==2 ? 'text-align:center;' :'' )}}" wx:if="{{object.trade_name}}">{{aitem.goods_name}}</view> | |
| 200 | + <!-- <view class="buy_box fs24" style="{{'margin-bottom:10rpx;' +(object.text_align==2 ? ' justify-content: center;' :'' )}}" wx:if="{{prom_type==6 && (object.group_size || object.group_type)}}"> | |
| 201 | + <view class="mgr10" wx:if="{{object.group_size}}">{{aitem.ct_num}}人团</view> | |
| 202 | + <view wx:if="{{object.group_type}}">{{kttypeArr[aitem.kttype]}}团</view> | |
| 203 | + </view> --> | |
| 204 | + <view wx:if="{{object.seconds_num || object.remaining_inventory}}" class="new_item1_price clor7b" style="{{'font-size:24rpx;'+(object.text_align==2 ?'text-align:center;':'')+(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 205 | + <text wx:if="{{object.seconds_num}}">{{prom_text}}<text class="clor">{{aitem.buy_num}}</text>件</text> | |
| 206 | + <text wx:if="{{object.remaining_inventory}}">剩<text class="clor">{{aitem.residue}}</text>件</text> | |
| 207 | + </view> | |
| 208 | + <view class="new_item1_price clor7b" style="{{'width:100%;' + (object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 209 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 210 | + <view style="{{'font-size: 24rpx; ' +(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 211 | + <view class="clor" style="margin-right: 5rpx;" wx:if="{{object.commodity_price}}">¥<text class="pricefs42">{{aitem.price_n}}</text><text wx:if="{{aitem.price_xs}}">.{{aitem.price_xs}}</text><text style="color: #7b7b7b;margin-left: 5rpx;" wx:if="{{object.wholesale_price}}">¥{{aitem.shop_price || aitem.market_price}}</text></view> | |
| 212 | + | |
| 213 | + </view> | |
| 214 | + </view> | |
| 215 | + <view> | |
| 216 | + <image wx:if="{{object.purchase_button<=4}}" src="{{imghost+'/miniapp/images/component/0'+object.purchase_button+'.png?v=1'}}" style="width:60rpx;height: 60rpx;"></image> | |
| 217 | + <view style="width: 130rpx;height: 60rpx;line-height: 60rpx;" wx:if="{{ 5<=object.purchase_button && object.purchase_button<=8 }}" class="{{'new_item1_but ' + (object.purchase_button==5 ? 'new_item1_but1':'' )+ (object.purchase_button==7 ? 'new_item1_but2':'' )+ (object.purchase_button==8 ? 'new_item1_but3':'' ) }}">{{object.button_content}}</view> | |
| 218 | + </view> | |
| 219 | + </view> | |
| 220 | + </view> | |
| 221 | + </navigator> | |
| 222 | + </view> | |
| 223 | + </block> | |
| 224 | + </view> | |
| 225 | + </block> | |
| 226 | + <!-- 一大一小 --> | |
| 227 | + <block wx:if="{{object.style==5}}"> | |
| 228 | + <view style="{{'padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'}}" class="{{'flex2 new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')}}"> | |
| 229 | + <block wx:for="{{goods_array}}"> | |
| 230 | + <block wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind"> | |
| 231 | + <view wx:if="{{aind==0}}" class="{{'new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')}}" style="{{'margin-bottom:'+object.product_spacing+'px;'}}"> | |
| 232 | + <navigator url="{{aitem.goods_type == 1 ? ( nav1 + 'goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type=' + prom_type + '&prom_id=' + aitem.id ) : ( nav2 + 'goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type='+ prom_type +'&prom_id=' + aitem.id)}}" class="s1_gk_a1"> | |
| 233 | + <view class="topBox"> | |
| 234 | + <view class="imgBox"> | |
| 235 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 236 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1'}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> | |
| 237 | + </view> | |
| 238 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 239 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png?v=1'}}"></image> | |
| 240 | + </view> | |
| 241 | + <block wx:if="{{object.count_down}}"> | |
| 242 | + <view wx:if="{{aitem.residue==0 || aitem.status==2}}" class="{{(object.count_down_float ? 'item_float' : '')}}" style="height: 70rpx;line-height: 70rpx;color: #fff;background-color:rgb(166,166,166);text-align: center;"> | |
| 243 | + 已售罄 | |
| 244 | + </view> | |
| 245 | + <view wx:else class="{{'new_item1_time ' + (object.count_down_float ? 'item_float' : '')}}" style="{{'box-sizing: border-box;height: 70rpx;padding: 10rpx 30rpx;background:'+ (aitem.status ==0 ? object.scountdown_background_color : object.countdown_background_color)}}"> | |
| 246 | + <image src="{{imghost+imgobj[prom_type]}}"></image> | |
| 247 | + <view style="text-align: center;line-height: 30rpx;"> | |
| 248 | + <view wx:if="{{aitem.status == 1}}">距结束时间</view> | |
| 249 | + <view wx:if="{{aitem.status == 0}}">距开始时间</view> | |
| 250 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 251 | + <!-- <view>30天21:59:40</view> --> | |
| 252 | + </view> | |
| 253 | + </view> | |
| 254 | + </block> | |
| 255 | + </view> | |
| 256 | + <view class="ellipsis-2n new_item1_goods_name" style="{{(object.text_style==2 ? 'font-weight: bold;':'') + (object.text_align==2 ? 'text-align:center;' :'' )}}" wx:if="{{object.trade_name}}">{{aitem.goods_name}}</view> | |
| 257 | + <view class="buy_box pricefs28" style="{{(object.text_align==2 ? ' justify-content: center;' :'' )}}" wx:if="{{prom_type==6 && (object.group_size || object.group_type)}}"> | |
| 258 | + <view class="mgr10" wx:if="{{object.group_size}}">{{aitem.ct_num}}人团</view> | |
| 259 | + <view wx:if="{{object.group_type}}">{{kttypeArr[aitem.kttype]}}团</view> | |
| 260 | + </view> | |
| 261 | + <view class="new_item1_price" style="{{'padding:10rpx 10rpx;'+(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 262 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 263 | + <view class="clor7b"> | |
| 264 | + <text wx:if="{{object.seconds_num}}">{{prom_text}}<text class="clor">{{aitem.buy_num}}</text>件</text> | |
| 265 | + <text wx:if="{{object.remaining_inventory}}">还剩余<text class="clor">{{aitem.status==2 ? '0' : aitem.residue}}</text>件</text> | |
| 266 | + </view> | |
| 267 | + <view class="flex" style="{{'font-size: 24rpx; ' +(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 268 | + <view class="clor" wx:if="{{object.commodity_price}}"> | |
| 269 | + ¥<text class="pricefs42">{{aitem.price_n}}</text><text wx:if="{{aitem.price_xs}}">.{{aitem.price_xs}}</text> | |
| 270 | + <text style="margin-left: 5rpx;" wx:if="{{object.wholesale_price}}" class="clor7b">¥{{aitem.shop_price || aitem.market_price}}</text> | |
| 271 | + </view> | |
| 272 | + </view> | |
| 273 | + </view> | |
| 274 | + <view> | |
| 275 | + <image wx:if="{{object.purchase_button<=4}}" src="{{imghost+'/miniapp/images/component/0'+object.purchase_button+'.png?v=1'}}" class="imgbox1"></image> | |
| 276 | + <view wx:if="{{ 5<=object.purchase_button && object.purchase_button<=8 }}" class="{{'new_item1_but ' + (object.purchase_button==5 ? 'new_item1_but1':'' )+ (object.purchase_button==7 ? 'new_item1_but2':'' )+ (object.purchase_button==8 ? 'new_item1_but3':'' ) }}">{{object.button_content}}</view> | |
| 277 | + </view> | |
| 278 | + </view> | |
| 279 | + </navigator> | |
| 280 | + </view> | |
| 281 | + <view wx:if="{{aind==1}}" class="{{'boxpad new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') + (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'')}}" style="{{'margin-bottom:'+object.product_spacing+'px; '+('width:calc(100%/2 - ' + object.product_spacing/2+'px)')}}"> | |
| 282 | + <navigator url="{{aitem.goods_type == 1 ? ( nav1 + 'goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type=' + prom_type + '&prom_id=' + aitem.id ) : ( nav2 + 'goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type='+ prom_type +'&prom_id=' + aitem.id)}}" class="s1_gk_a1"> | |
| 283 | + <view class="topBox"> | |
| 284 | + <view class="imgBox"> | |
| 285 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 286 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1 '}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> | |
| 287 | + </view> | |
| 288 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 289 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png?v=1'}}"></image> | |
| 290 | + </view> | |
| 291 | + <block wx:if="{{object.count_down}}"> | |
| 292 | + <view wx:if="{{aitem.residue==0}}" class="{{'new_item1_time '+(object.count_down_float ? 'item_float' : '')}}" style="justify-content: center;color: #fff;background-color:rgb(166,166,166);"> | |
| 293 | + <view>已售罄</view> | |
| 294 | + </view> | |
| 295 | + <view wx:else class="{{'new_item1_time '+(object.count_down_float ? 'item_float' : '')}}" style="{{'justify-content: center;background:'+(aitem.status ==0 ? object.scountdown_background_color : object.countdown_background_color)}}"> | |
| 296 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 297 | + </view> | |
| 298 | + </block> | |
| 299 | + </view> | |
| 300 | + <view class="ellipsis-2 new_item1_goods_name" style="{{'height:88rpx;font-size:24rpx; ' + (object.text_style==2 ? 'font-weight: bold;':'') + (object.text_align==2 ? 'text-align:center;' :'' )}}" wx:if="{{object.trade_name}}">{{aitem.goods_name}}</view> | |
| 301 | + <view class="buy_box fs24" style="{{'margin-bottom:10rpx;' +(object.text_align==2 ? ' justify-content: center;' :'' )}}" wx:if="{{prom_type==6 && (object.group_size || object.group_type)}}"> | |
| 302 | + <view class="mgr10 lineh24" wx:if="{{object.group_size}}">{{aitem.ct_num}}人团</view> | |
| 303 | + <view class="lineh24" wx:if="{{object.group_type}}">{{kttypeArr[aitem.kttype]}}团</view> | |
| 304 | + </view> | |
| 305 | + <view wx:if="{{object.seconds_num || object.remaining_inventory}}" class="new_item1_price pdlf10 clor7b" style="{{'font-size:20rpx;' + 'display:block;'+(object.text_align==2 ?'text-align:center;':'')+(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 306 | + <text wx:if="{{object.seconds_num}}">{{prom_text}}<text class="clor">{{aitem.buy_num}}</text>件</text> | |
| 307 | + <text wx:if="{{object.remaining_inventory}}">还剩余<text class="clor">{{aitem.residue}}</text>件</text> | |
| 308 | + </view> | |
| 309 | + <view class="new_item1_price pdlf10" style="{{(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 310 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 311 | + <view style="{{(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 312 | + <view class="clor" style="margin-right: 5rpx;" wx:if="{{object.commodity_price}}">¥<text class="pricefs42">{{aitem.price_n}}</text><text wx:if="{{aitem.price_xs}}">.{{aitem.price_xs}}</text></view> | |
| 313 | + <view wx:if="{{object.wholesale_price}}" class="clor7b">¥{{aitem.shop_price || aitem.market_price}}</view> | |
| 314 | + </view> | |
| 315 | + </view> | |
| 316 | + <view> | |
| 317 | + <image wx:if="{{object.purchase_button<=4}}" src="{{imghost+'/miniapp/images/component/0'+object.purchase_button+'.png?v=1'}}" style="width: 60rpx;height: 60rpx;"></image> | |
| 318 | + <view wx:if="{{ 5<=object.purchase_button && object.purchase_button<=8 }}" class="{{'new_item1_but ' + (object.purchase_button==5 ? 'new_item1_but1':'' )+ (object.purchase_button==7 ? 'new_item1_but2':'' )+ (object.purchase_button==8 ? 'new_item1_but3':'' ) }}">{{object.button_content}}</view> | |
| 319 | + </view> | |
| 320 | + </view> | |
| 321 | + </navigator> | |
| 322 | + </view> | |
| 323 | + <view wx:if="{{aind==2}}" class="{{'boxpad new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') + (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'') }}" style="{{'margin-bottom:'+object.product_spacing+'px; '+('width:calc(100%/2 - ' + object.product_spacing/2+'px)')}}"> | |
| 324 | + <navigator url="{{aitem.goods_type == 1 ? ( nav1 + 'goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type=' + prom_type + '&prom_id=' + aitem.id ) : ( nav2 + 'goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type='+ prom_type +'&prom_id=' + aitem.id)}}" class="s1_gk_a1"> | |
| 325 | + <view class="topBox"> | |
| 326 | + <view class="imgBox"> | |
| 327 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 328 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1 '}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> | |
| 329 | + </view> | |
| 330 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 331 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png?v=1'}}"></image> | |
| 332 | + </view> | |
| 333 | + <block wx:if="{{object.count_down}}"> | |
| 334 | + <view wx:if="{{aitem.residue==0}}" class="{{'new_item1_time '+(object.count_down_float ? 'item_float' : '')}}" style="justify-content: center;color: #fff;background-color:rgb(166,166,166);"> | |
| 335 | + <view>已售罄</view> | |
| 336 | + </view> | |
| 337 | + <view wx:else class="{{'new_item1_time '+(object.count_down_float ? 'item_float' : '')}}" style="{{'justify-content: center;background:'+(aitem.status ==0 ? object.scountdown_background_color : object.countdown_background_color)}}"> | |
| 338 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 339 | + </view> | |
| 340 | + </block> | |
| 341 | + </view> | |
| 342 | + <view class="ellipsis-2 new_item1_goods_name" style="{{'height:88rpx;font-size:24rpx; ' + (object.text_style==2 ? 'font-weight: bold;':'') + (object.text_align==2 ? 'text-align:center;' :'' )}}" wx:if="{{object.trade_name}}">{{aitem.goods_name}}</view> | |
| 343 | + <view class="buy_box fs24" style="{{'margin-bottom:10rpx;' +(object.text_align==2 ? ' justify-content: center;' :'' )}}" wx:if="{{prom_type==6 && (object.group_size || object.group_type)}}"> | |
| 344 | + <view class="mgr10 lineh24" wx:if="{{object.group_size}}">{{aitem.ct_num}}人团</view> | |
| 345 | + <view class="lineh24" wx:if="{{object.group_type}}">{{kttypeArr[aitem.kttype]}}团</view> | |
| 346 | + </view> | |
| 347 | + <view wx:if="{{object.seconds_num || object.remaining_inventory}}" class="new_item1_price pdlf10 clor7b" style="{{'font-size:20rpx;' + 'display:block;'+(object.text_align==2 ?'text-align:center;':'')+(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 348 | + <text wx:if="{{object.seconds_num}}">{{prom_text}}<text class="clor">{{aitem.buy_num}}</text>件</text> | |
| 349 | + <text wx:if="{{object.remaining_inventory}}">还剩余<text class="clor">{{aitem.residue}}</text>件</text> | |
| 350 | + </view> | |
| 351 | + <view class="new_item1_price pdlf10" style="{{(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 352 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 353 | + <view style="{{(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 354 | + <view class="clor" style="margin-right: 5rpx;" wx:if="{{object.commodity_price}}">¥<text class="pricefs42">{{aitem.price_n}}</text><text wx:if="{{aitem.price_xs}}">.{{aitem.price_xs}}</text></view> | |
| 355 | + <view wx:if="{{object.wholesale_price}}" class="clor7b">¥{{aitem.shop_price || aitem.market_price}}</view> | |
| 356 | + </view> | |
| 357 | + </view> | |
| 358 | + <view> | |
| 359 | + <image wx:if="{{object.purchase_button<=4}}" src="{{imghost+'/miniapp/images/component/0'+object.purchase_button+'.png?v=1'}}" style="width: 60rpx;height: 60rpx;"></image> | |
| 360 | + <view wx:if="{{ 5<=object.purchase_button && object.purchase_button<=8 }}" class="{{'new_item1_but ' + (object.purchase_button==5 ? 'new_item1_but1':'' )+ (object.purchase_button==7 ? 'new_item1_but2':'' )+ (object.purchase_button==8 ? 'new_item1_but3':'' ) }}">{{object.button_content}}</view> | |
| 361 | + </view> | |
| 362 | + </view> | |
| 363 | + </navigator> | |
| 364 | + </view> | |
| 365 | + </block> | |
| 366 | + </block> | |
| 367 | + </view> | |
| 368 | + </block> | |
| 369 | + <!-- 横向滑动 2个--> | |
| 370 | + <block wx:if="{{object.style==7}}"> | |
| 371 | + <!-- <swiper indicator-dots circular> --> | |
| 372 | + <swiper indicator-dots style="{{'padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'+(swiperHeight ? ('height:'+swiperHeight+';'):'' )}}" class="{{' new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')}}"> | |
| 373 | + <swiper-item wx:for="{{goods_array}}" class="flex2" style="padding: 5rpx;"> | |
| 374 | + <view wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind" class="{{'boxpad swiper_h new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') + (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'') }}" style="{{'margin-bottom:'+object.product_spacing+'px; '+('width:calc(100%/2 - ' + object.product_spacing/2+'px)')}}"> | |
| 375 | + <navigator url="{{aitem.goods_type == 1 ? ('/packageA/pages/goodsInfo/goodsInfo?goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type=1&prom_id=' + aitem.id ) : ('/pages/goods/goodsInfo/goodsInfo?goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type=1&prom_id=' + aitem.id)}}" class="s1_gk_a1"> | |
| 376 | + <view class="imgBox"> | |
| 377 | + <!-- <image mode="{{object.picture_fill==1 ? 'aspectFill' : 'scaleToFill'}}" class="{{'new_item1_image '+ 'aspect_ratio'+object.picture_scale}}" style="{{'width:'+img_width+';height:'+img_height}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> --> | |
| 378 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 379 | + <!-- <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1'}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> --> | |
| 380 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1 ' }}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> | |
| 381 | + </view> | |
| 382 | + | |
| 383 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 384 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png'}}"></image> | |
| 385 | + </view> | |
| 386 | + <view class="new_item1_time" wx:if="{{object.count_down}}" style="{{'justify-content: center;background:'+(aitem.status ==0 ? object.scountdown_background_color : object.countdown_background_color)}}"> | |
| 387 | + <!-- <image src="{{imghost+imgobj[prom_type]}}"></image> --> | |
| 388 | + <!-- <view style="text-align: center;"> | |
| 389 | + <view>距结束时间</view> --> | |
| 390 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 391 | + <!-- </view> --> | |
| 392 | + </view> | |
| 393 | + <view class="ellipsis-2 new_item1_goods_name" style="{{(object.text_style==2 ? 'font-weight: bold;':'') + (object.text_align==2 ? 'text-align:center;' :'' )}}" wx:if="{{object.trade_name}}">{{aitem.goods_name}}</view> | |
| 394 | + <view wx:if="{{object.seconds_num || object.remaining_inventory}}" class="new_item1_price" style="{{'display:block;color: rgb(56, 56, 56); '+(object.text_align==2 ?'text-align:center;':'')+(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 395 | + <text wx:if="{{object.seconds_num}}">{{prom_text}}<text class="clor">{{aitem.buy_num}}</text>件</text> | |
| 396 | + <text wx:if="{{object.remaining_inventory}}">还剩余<text class="clor">{{aitem.residue}}</text>件</text> | |
| 397 | + </view> | |
| 398 | + <view class="new_item1_price" style="{{(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 399 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 400 | + <view style="{{'font-size: 28rpx; ' +(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 401 | + <view class="clor" style="margin-right: 5rpx;" wx:if="{{object.commodity_price}}">¥<text style="font-size:42rpx;">{{aitem.price}}</text></view> | |
| 402 | + <view wx:if="{{object.wholesale_price}}">¥{{aitem.shop_price || aitem.market_price}}</view> | |
| 403 | + </view> | |
| 404 | + </view> | |
| 405 | + <view> | |
| 406 | + <image wx:if="{{object.purchase_button<=4}}" src="{{imghost+'/miniapp/images/component/0'+object.purchase_button+'.png'}}" style="width: 100rpx;height: 100rpx;"></image> | |
| 407 | + <view wx:if="{{ 5<=object.purchase_button && object.purchase_button<=8 }}" class="{{'new_item1_but ' + (object.purchase_button==5 ? 'new_item1_but1':'' )+ (object.purchase_button==7 ? 'new_item1_but2':'' )+ (object.purchase_button==8 ? 'new_item1_but3':'' ) }}">{{object.button_content}}</view> | |
| 408 | + </view> | |
| 409 | + </view> | |
| 410 | + </navigator> | |
| 411 | + </view> | |
| 412 | + </swiper-item> | |
| 413 | + </swiper> | |
| 414 | + <!-- </swiper> --> | |
| 415 | + | |
| 416 | + </block> | |
| 417 | + <!-- 横向滑动 3个--> | |
| 418 | + <block wx:if="{{object.style==6}}"> | |
| 419 | + <!-- <swiper indicator-dots circular> --> | |
| 420 | + <swiper indicator-dots style="{{'padding-left:'+object.page_margins+'px;padding-right:'+object.page_margins+'px;'+(swiperHeight ? ('height:'+swiperHeight+';'):'' )}}" class="{{' new_item1_box '+ ((object.product_style==1 || object.product_style==3 )? ' bgf ':'')}}"> | |
| 421 | + <swiper-item wx:for="{{goods_array}}" class="flex2" style="padding: 5rpx;"> | |
| 422 | + <view wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind" class="{{'boxpad swiper_h new_item1 ' + (object.product_style==2 ? ' boxsha ':'') + (object.product_style==3 ? ' aborder ':'') + ((object.product_style==1 || object.product_style==3 )? ' bgf ':'') + (object.chamfer_of_main_drawing==2 ? ' but_radius5 ':'') }}" style="{{'margin-bottom:'+object.product_spacing+'px; '+('width:calc(100%/3 - ' + (object.product_spacing*2)/3+'px)')}}"> | |
| 423 | + <navigator url="{{aitem.goods_type == 1 ? ( nav1 + 'goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type=' + prom_type + '&prom_id=' + aitem.id ) : ( nav2 + 'goods_id=' + aitem.goods_id + '&title=' + aitem.goods_name + '&prom_type='+ prom_type +'&prom_id=' + aitem.id)}}" class="s1_gk_a1"> | |
| 424 | + <view class="topBox"> | |
| 425 | + <view class="imgBox"> | |
| 426 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 427 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1 '}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3"></image> | |
| 428 | + </view> | |
| 429 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 430 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png?v=1'}}"></image> | |
| 431 | + </view> | |
| 432 | + <block wx:if="{{object.count_down}}"> | |
| 433 | + <view wx:if="{{aitem.residue==0}}" class="{{'new_item1_time '+(object.count_down_float ? 'item_float' : '')}}" style="justify-content: center;color: #fff;background-color:rgb(166,166,166);"> | |
| 434 | + <view>已售罄</view> | |
| 435 | + </view> | |
| 436 | + <view wx:else class="{{'new_item1_time '+(object.count_down_float ? 'item_float' : '')}}" style="{{'justify-content: center;background:'+(aitem.status ==0 ? object.scountdown_background_color : object.countdown_background_color)}}"> | |
| 437 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 438 | + </view> | |
| 439 | + </block> | |
| 440 | + </view> | |
| 441 | + <view class="ellipsis-2 new_item1_goods_name " style="{{'height:88rpx;font-size:24rpx;' + (object.text_style==2 ? 'font-weight: bold;':'') + (object.text_align==2 ? 'text-align:center;' :'' )}}" wx:if="{{object.trade_name}}">{{aitem.goods_name}}</view> | |
| 442 | + <view wx:if="{{object.seconds_num || object.remaining_inventory}}" class="new_item1_price clor7b" style="{{'display:block;font-size:20rpx; '+(object.text_align==2 ?'text-align:center;':'')+(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 443 | + <text wx:if="{{object.seconds_num}}">{{prom_text}}<text class="clor">{{aitem.buy_num}}</text>件</text> | |
| 444 | + <text wx:if="{{object.remaining_inventory}}">剩<text class="clor">{{aitem.residue}}</text>件</text> | |
| 445 | + </view> | |
| 446 | + <view class="new_item1_price clor7b" style="{{(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 447 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 448 | + <view style="{{'font-size: 20rpx; ' +(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 449 | + <view class="clor" style="margin-right: 5rpx;" wx:if="{{object.commodity_price}}">¥<text class="pricefs38">{{aitem.price_n}}</text><text wx:if="{{aitem.price_xs}}">.{{aitem.price_xs}}</text></view> | |
| 450 | + <view wx:if="{{object.wholesale_price}}">¥{{aitem.shop_price || aitem.market_price}}</view> | |
| 451 | + </view> | |
| 452 | + </view> | |
| 453 | + <view> | |
| 454 | + <image wx:if="{{object.purchase_button<=4}}" src="{{imghost+'/miniapp/images/component/0'+object.purchase_button+'.png?v=1'}}" style="width: 50rpx;height: 50rpx;"></image> | |
| 455 | + <!-- <view style="width: 90rpx;height: 50rpx;line-height: 50rpx;" wx:if="{{ 5<=object.purchase_button && object.purchase_button<=8 }}" class="{{'new_item1_but ' + (object.purchase_button==5 ? 'new_item1_but1':'' )+ (object.purchase_button==7 ? 'new_item1_but2':'' )+ (object.purchase_button==8 ? 'new_item1_but3':'' ) }}">{{object.button_content}}</view> --> | |
| 456 | + </view> | |
| 457 | + </view> | |
| 458 | + </navigator> | |
| 459 | + </view> | |
| 460 | + </swiper-item> | |
| 461 | + </swiper> | |
| 462 | + <!-- </swiper> --> | |
| 463 | + </block> | |
| 464 | + </block> | |
| 465 | +</block> | |
| 0 | 466 | \ No newline at end of file | ... | ... |
components/diy_public/diy_public.wxss
0 → 100644
| 1 | +.flex{ | |
| 2 | + display: flex; | |
| 3 | + align-items: center; | |
| 4 | +} | |
| 5 | +.top { | |
| 6 | + background-color: white; | |
| 7 | + height: 70rpx; | |
| 8 | + line-height: 70rpx; | |
| 9 | + color: #000; | |
| 10 | + border-bottom: 2rpx solid #eee; | |
| 11 | + padding:0rpx 20rpx; | |
| 12 | + display: flex; | |
| 13 | + justify-content: space-between; | |
| 14 | + /* font-size: 32rpx; */ | |
| 15 | + font-size: 24rpx; | |
| 16 | +} | |
| 17 | + | |
| 18 | +.s_it { | |
| 19 | + width: 100%; | |
| 20 | + display: flex; | |
| 21 | + background-color: white; | |
| 22 | +} | |
| 23 | + | |
| 24 | +.s_prom { | |
| 25 | + width: 100%; | |
| 26 | + background-color: white; | |
| 27 | + min-height: 200rpx; | |
| 28 | +} | |
| 29 | + | |
| 30 | +swiper { | |
| 31 | + display: block; | |
| 32 | + height: 400rpx; | |
| 33 | +} | |
| 34 | + | |
| 35 | +.right_k { | |
| 36 | + width: 93rpx; | |
| 37 | + color: #7b7b7b; | |
| 38 | +} | |
| 39 | +.right_k image{ | |
| 40 | + width: 20rpx; | |
| 41 | + height: 20rpx; | |
| 42 | +} | |
| 43 | + .t_left { | |
| 44 | + width: 10rpx; | |
| 45 | + height: 38rpx; | |
| 46 | + background: #f23030; | |
| 47 | + margin-right: 10rpx; | |
| 48 | +} | |
| 49 | +.n_t_ms{ | |
| 50 | + color:#f23030; | |
| 51 | +} | |
| 52 | + | |
| 53 | +.sp { | |
| 54 | + min-height: 300rpx; | |
| 55 | + width: 100%; | |
| 56 | + background-color: white; | |
| 57 | + padding: 18rpx; | |
| 58 | + display: flex; | |
| 59 | +} | |
| 60 | + | |
| 61 | +.sp .sp_top { | |
| 62 | + height: 220rpx; | |
| 63 | + min-width: 30%; | |
| 64 | +} | |
| 65 | + | |
| 66 | +.sp .sp_top .s_img { | |
| 67 | + width: 210rpx; | |
| 68 | + height: 100%; | |
| 69 | +} | |
| 70 | + | |
| 71 | +.sp .sp_top .s_img image { | |
| 72 | + width: 210rpx; | |
| 73 | + height: 100%; | |
| 74 | + position: relative; | |
| 75 | + top: -74rpx; | |
| 76 | + left: 0rpx; | |
| 77 | +} | |
| 78 | + | |
| 79 | +.sp .sp_top .s_top_kill { | |
| 80 | + background-color: #c4182e; | |
| 81 | + font-size: 24rpx; | |
| 82 | + height: 38rpx; | |
| 83 | + line-height: 38rpx; | |
| 84 | + padding: 4rpx 10rpx; | |
| 85 | + border-radius: 10rpx; | |
| 86 | + z-index: 999; | |
| 87 | + position: relative; | |
| 88 | + top: 1rpx; | |
| 89 | + width: 110rpx; | |
| 90 | + color: #fff; | |
| 91 | + text-align: center; | |
| 92 | +} | |
| 93 | + | |
| 94 | +.po { | |
| 95 | + position: absolute; | |
| 96 | +} | |
| 97 | + | |
| 98 | +.sp .sp_top .s_foot_kill { | |
| 99 | + font-size: 20rpx; | |
| 100 | + position: relative; | |
| 101 | + top: -90rpx; | |
| 102 | + width: 210rpx; | |
| 103 | + height: 38rpx; | |
| 104 | + line-height: 38rpx; | |
| 105 | + color: #fff; | |
| 106 | + text-align: center; | |
| 107 | + background-color: rgba(0, 0, 0, 0.5); | |
| 108 | +} | |
| 109 | + | |
| 110 | +.sp_wz { | |
| 111 | + width: 210rpx; | |
| 112 | + min-height: 100rpx; | |
| 113 | +} | |
| 114 | + | |
| 115 | +.sp_wz .sp_wzi { | |
| 116 | + font-size: 30rpx; | |
| 117 | + border-bottom: 2rpx solid #dcdcdc; | |
| 118 | + width: 100%; | |
| 119 | + /* text-align: left; */ | |
| 120 | + padding: 4rpx 0; | |
| 121 | + /* overflow: hidden; */ | |
| 122 | + height: 90rpx; | |
| 123 | + word-break: break-all; | |
| 124 | + /* text-overflow: ellipsis; | |
| 125 | + white-space: nowrap; | |
| 126 | + line-height: 48rpx; */ | |
| 127 | +} | |
| 128 | + | |
| 129 | +.sp_wz .sp_jg { | |
| 130 | + color: #c4182e; | |
| 131 | + font-size: 30rpx; | |
| 132 | + overflow: hidden; | |
| 133 | + display: inline-block; | |
| 134 | + text-overflow: ellipsis; | |
| 135 | + white-space: nowrap; | |
| 136 | + margin-right: 10rpx; | |
| 137 | +} | |
| 138 | + | |
| 139 | +.sp_wz .sp_jgx { | |
| 140 | + color: #adadad; | |
| 141 | + text-decoration: line-through; | |
| 142 | + font-size: 24rpx; | |
| 143 | + overflow: hidden; | |
| 144 | + display: inline-block; | |
| 145 | + text-overflow: ellipsis; | |
| 146 | + white-space: nowrap; | |
| 147 | +} | |
| 148 | + | |
| 149 | +.one { | |
| 150 | + margin-left: 14rpx; | |
| 151 | +} | |
| 152 | + | |
| 153 | +.sp .sp_top .s_top1_kill { | |
| 154 | + position: absolute; | |
| 155 | + background-color: #c4182e; | |
| 156 | + font-size: 24rpx; | |
| 157 | + height: 38rpx; | |
| 158 | + line-height: 38rpx; | |
| 159 | + left: 265rpx; | |
| 160 | + top: 100rpx; | |
| 161 | + padding: 0 10rpx; | |
| 162 | + color: white; | |
| 163 | + border-radius: 10rpx; | |
| 164 | +} | |
| 165 | + | |
| 166 | +.sp .sp_top .s_top2_kill { | |
| 167 | + position: absolute; | |
| 168 | + background-color: #c4182e; | |
| 169 | + font-size: 24rpx; | |
| 170 | + height: 38rpx; | |
| 171 | + line-height: 38rpx; | |
| 172 | + right: 146rpx; | |
| 173 | + top: 100rpx; | |
| 174 | + padding: 0 10rpx; | |
| 175 | + color: white; | |
| 176 | + border-radius: 10rpx; | |
| 177 | +} | |
| 178 | + | |
| 179 | +.sp .sp_top .s_foot1_kill { | |
| 180 | + font-size: 20rpx; | |
| 181 | + position: absolute; | |
| 182 | + top: 270rpx; | |
| 183 | + width: 210rpx; | |
| 184 | + height: 38rpx; | |
| 185 | + line-height: 38rpx; | |
| 186 | + color: #fff; | |
| 187 | + text-align: center; | |
| 188 | + background-color: rgba(0, 0, 0, 0.5); | |
| 189 | +} | |
| 190 | + | |
| 191 | +.po1 { | |
| 192 | + position: absolute; | |
| 193 | +} | |
| 194 | + | |
| 195 | +.sp .sp_top .s_foot2_kill { | |
| 196 | + font-size: 20rpx; | |
| 197 | + position: absolute; | |
| 198 | + top: 270rpx; | |
| 199 | + width: 210rpx; | |
| 200 | + height: 38rpx; | |
| 201 | + line-height: 38rpx; | |
| 202 | + color: #fff; | |
| 203 | + text-align: center; | |
| 204 | + background-color: rgba(0, 0, 0, 0.5); | |
| 205 | +} | |
| 206 | + | |
| 207 | +.sp2 { | |
| 208 | + width: 100%; | |
| 209 | + min-height: 240rpx; | |
| 210 | +} | |
| 211 | + | |
| 212 | +.sp2 .one1 { | |
| 213 | + background-color: white; | |
| 214 | + height: 285rpx; | |
| 215 | + display: flex; | |
| 216 | + padding:0rpx 20rpx; | |
| 217 | + border-bottom: 6rpx#eee solid; | |
| 218 | + align-items: center; | |
| 219 | +} | |
| 220 | + | |
| 221 | +.sp2 .one1 .o1_img { | |
| 222 | + width: 220rpx; | |
| 223 | + height: 220rpx; | |
| 224 | + margin-right: 25rpx; | |
| 225 | +} | |
| 226 | + | |
| 227 | +.o1_right .sp_wzi { | |
| 228 | + font-size: 30rpx; | |
| 229 | + margin-bottom: 6rpx; | |
| 230 | + /* text-align: left; */ | |
| 231 | + padding: 4rpx 0; | |
| 232 | + height: 90rpx; | |
| 233 | + /* overflow: hidden; | |
| 234 | + white-space: nowrap; | |
| 235 | + text-overflow: ellipsis; */ | |
| 236 | +} | |
| 237 | + | |
| 238 | +.o1_right .o1_sj_kill { | |
| 239 | + height: 60rpx; | |
| 240 | + margin-bottom: 10rpx; | |
| 241 | + font-size: 28rpx; | |
| 242 | +} | |
| 243 | + | |
| 244 | +.o1_right .o1_sj_kill text { | |
| 245 | + background-color: #fdcb08; | |
| 246 | + text-align: center; | |
| 247 | + border-radius: 10rpx; | |
| 248 | + padding: 4rpx; | |
| 249 | + margin-left: 6rpx; | |
| 250 | +} | |
| 251 | + | |
| 252 | +.o1_right .sp_jg { | |
| 253 | + color: #c4182e; | |
| 254 | + font-size: 30rpx; | |
| 255 | + overflow: hidden; | |
| 256 | + display: inline-block; | |
| 257 | + margin-right: 10rpx; | |
| 258 | +} | |
| 259 | + | |
| 260 | +.o1_right .sp_jgx { | |
| 261 | + color: #dcdcdc; | |
| 262 | + text-decoration: line-through; | |
| 263 | + font-size: 26rpx; | |
| 264 | + overflow: hidden; | |
| 265 | + display: inline-block; | |
| 266 | +} | |
| 267 | + | |
| 268 | +.o1_img image { | |
| 269 | + width: 220rpx; | |
| 270 | + height: 220rpx; | |
| 271 | +} | |
| 272 | +.o1_right{ | |
| 273 | + width: 465rpx; | |
| 274 | +} | |
| 275 | +.o1_right .wo { | |
| 276 | + background-color: #c4182e; | |
| 277 | + width: 150rpx; | |
| 278 | + height: 50rpx; | |
| 279 | + line-height: 50rpx; | |
| 280 | + color: white; | |
| 281 | + text-align: center; | |
| 282 | + font-size: 30rpx; | |
| 283 | + border-radius: 14rpx; | |
| 284 | +} | |
| 285 | +.rob{ | |
| 286 | + display: flex; | |
| 287 | + justify-content: flex-end; | |
| 288 | + font-size: 30rpx; | |
| 289 | +} | |
| 290 | +.money{ | |
| 291 | + display: flex; | |
| 292 | + align-items: center; | |
| 293 | +} | |
| 294 | + | |
| 295 | +.sp .sp_top .s_top_kill.gray{background-color:#bdbdc1;color: #fff;font-weight: normal} | |
| 296 | + | |
| 297 | + | |
| 298 | +.ellipsis-2 { | |
| 299 | + | |
| 300 | + height: 110rpx; | |
| 301 | + overflow: hidden; | |
| 302 | + text-overflow: ellipsis; | |
| 303 | + display: -webkit-box; | |
| 304 | + -webkit-box-orient: vertical; | |
| 305 | + -webkit-line-clamp: 2; | |
| 306 | +} | |
| 307 | +.ellipsis-2n { | |
| 308 | + | |
| 309 | + /* height: 97rpx; */ | |
| 310 | + overflow: hidden; | |
| 311 | + text-overflow: ellipsis; | |
| 312 | + display: -webkit-box; | |
| 313 | + -webkit-box-orient: vertical; | |
| 314 | + -webkit-line-clamp: 2; | |
| 315 | +} | |
| 316 | +.pdlf10{ | |
| 317 | + padding: 0 10rpx; | |
| 318 | +} | |
| 319 | +.new_item1{ | |
| 320 | + width: 100%; | |
| 321 | + overflow: hidden; | |
| 322 | +} | |
| 323 | + | |
| 324 | +.new_item1_image{ | |
| 325 | + width: 100%; | |
| 326 | + /* max-width: 100%; | |
| 327 | + max-height: 100%; */ | |
| 328 | +} | |
| 329 | +.new_item1_time{ | |
| 330 | + height: 50rpx; | |
| 331 | + background: #f23030; | |
| 332 | + color: #fff; | |
| 333 | + /* font-size: 25rpx; */ | |
| 334 | + font-size: 24rpx; | |
| 335 | + display: flex; | |
| 336 | + justify-content: space-between; | |
| 337 | + align-items: center; | |
| 338 | + opacity:.8; | |
| 339 | + /* padding: 0rpx 30rpx; */ | |
| 340 | + | |
| 341 | +} | |
| 342 | +.new_item1_time image{ | |
| 343 | + width: 188rpx; | |
| 344 | + height: 52rpx; | |
| 345 | +} | |
| 346 | +.new_item1_goods_name{ | |
| 347 | + padding: 10rpx 10rpx 0rpx; | |
| 348 | + /* font-size: 26rpx; */ | |
| 349 | + font-size: 28rpx; | |
| 350 | + width: 100%; | |
| 351 | + box-sizing: border-box; | |
| 352 | + color: #333333; | |
| 353 | +} | |
| 354 | +.new_item1_price{ | |
| 355 | + display: flex; | |
| 356 | + /* padding: 0 10rpx; */ | |
| 357 | + align-items: center; | |
| 358 | + justify-content: space-between; | |
| 359 | + /* font-size: 26rpx; */ | |
| 360 | + font-size: 24rpx; | |
| 361 | + padding: 0 10rpx 10rpx; | |
| 362 | +} | |
| 363 | +.clor{ | |
| 364 | + /* color: rgba(196, 24, 45, 1); */ | |
| 365 | + color: #ec0022; | |
| 366 | +} | |
| 367 | +.clor7b{ | |
| 368 | + color: #7b7b7b; | |
| 369 | +} | |
| 370 | +.new_item1_but{ | |
| 371 | + width: 130rpx; | |
| 372 | + height: 60rpx; | |
| 373 | + color: #fff; | |
| 374 | + background-color: #f23030; | |
| 375 | + line-height: 60rpx; | |
| 376 | + text-align: center; | |
| 377 | + border-radius: 15rpx; | |
| 378 | +} | |
| 379 | +.new_item1_but1{ | |
| 380 | + border-radius: 50rpx !important; | |
| 381 | +} | |
| 382 | +.new_item1_but2{ | |
| 383 | + border-radius: 50rpx !important; | |
| 384 | + background-color: rgba(0, 0, 0, 0) !important; | |
| 385 | + color: #f23030 !important; | |
| 386 | + border: 1rpx solid #f23030 !important; | |
| 387 | +} | |
| 388 | +.new_item1_but3{ | |
| 389 | + background-color: rgba(0, 0, 0, 0) !important; | |
| 390 | + color: #f23030 !important; | |
| 391 | + border: 1rpx solid #f23030 !important; | |
| 392 | +} | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | +.new_item1_box{ | |
| 398 | + /* padding-top: 17rpx; */ | |
| 399 | + width: 100%; | |
| 400 | + box-sizing: border-box; | |
| 401 | + overflow: hidden; | |
| 402 | +} | |
| 403 | + | |
| 404 | +.aborder{ | |
| 405 | + border: 1px solid #e8e8e8; | |
| 406 | +} | |
| 407 | +.bgf{ | |
| 408 | + background-color: #fff; | |
| 409 | +} | |
| 410 | +.boxsha{ | |
| 411 | + /* box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.25); */ | |
| 412 | + /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */ | |
| 413 | + box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19); | |
| 414 | +} | |
| 415 | +.but_radius85{ | |
| 416 | + border-radius:289rpx; | |
| 417 | +} | |
| 418 | +.but_radius5{ | |
| 419 | + border-radius:8px; | |
| 420 | +} | |
| 421 | +.imgBox{ | |
| 422 | + position: relative; | |
| 423 | +} | |
| 424 | +.imgBox_img{ | |
| 425 | + position: absolute; | |
| 426 | + left: 0; | |
| 427 | + top: 0; | |
| 428 | + width: 74rpx; | |
| 429 | + height: 70rpx; | |
| 430 | + | |
| 431 | +} | |
| 432 | + | |
| 433 | +.aspect_ratio1{ | |
| 434 | + aspect-ratio:1/1; | |
| 435 | +} | |
| 436 | +.aspect_ratio2{ | |
| 437 | + aspect-ratio:16/9; | |
| 438 | +} | |
| 439 | +.aspect_ratio3{ | |
| 440 | + aspect-ratio:3/2; | |
| 441 | +} | |
| 442 | +.aspect_ratio4{ | |
| 443 | + aspect-ratio:3/4; | |
| 444 | +} | |
| 445 | +.container1 { | |
| 446 | + position: relative; | |
| 447 | + width:100%; | |
| 448 | + padding-top: 100%; | |
| 449 | + overflow: hidden; | |
| 450 | +} | |
| 451 | +.container2 { | |
| 452 | + position: relative; | |
| 453 | + width:100%; | |
| 454 | + padding-top: 56.25%; | |
| 455 | + overflow: hidden; | |
| 456 | +} | |
| 457 | +.container3 { | |
| 458 | + position: relative; | |
| 459 | + width:100%; | |
| 460 | + padding-top: 66.67%; | |
| 461 | + overflow: hidden; | |
| 462 | +} | |
| 463 | +.container4 { | |
| 464 | + position: relative; | |
| 465 | + width:100%; | |
| 466 | + padding-top: 133.33%; | |
| 467 | + overflow: hidden; | |
| 468 | + | |
| 469 | +} | |
| 470 | + | |
| 471 | +.images1 { | |
| 472 | + display: block; | |
| 473 | + position: absolute; | |
| 474 | + width: 100%; | |
| 475 | + height: 100%; | |
| 476 | + top: 0; | |
| 477 | + bottom: 0; | |
| 478 | + left: 0; | |
| 479 | + right: 0; | |
| 480 | + object-fit: cover; | |
| 481 | + | |
| 482 | +} | |
| 483 | + | |
| 484 | +.flex2{ | |
| 485 | + display: flex; | |
| 486 | + /* align-items: center; */ | |
| 487 | + justify-content: space-between; | |
| 488 | + flex-wrap: wrap; | |
| 489 | + box-sizing: border-box; | |
| 490 | +} | |
| 491 | +.flex2:after { | |
| 492 | + content: ""; | |
| 493 | + width: 30%; | |
| 494 | + height: 0px; | |
| 495 | + visibility: hidden; | |
| 496 | + } | |
| 497 | + | |
| 498 | + .boxpad{ | |
| 499 | + /* padding:11rpx 9rpx; */ | |
| 500 | + box-sizing: border-box; | |
| 501 | + } | |
| 502 | + .pricefs28{ | |
| 503 | + font-size: 28rpx !important; | |
| 504 | + } | |
| 505 | + .pricefs42{ | |
| 506 | + font-size: 42rpx !important; | |
| 507 | + } | |
| 508 | + .pricefs38{ | |
| 509 | + font-size: 38rpx !important; | |
| 510 | + } | |
| 511 | + .imgbox1{ | |
| 512 | + width: 60rpx; | |
| 513 | + height: 60rpx; | |
| 514 | + } | |
| 515 | + .topBox{ | |
| 516 | + position: relative; | |
| 517 | + } | |
| 518 | + | |
| 519 | + .item_float{ | |
| 520 | + position: absolute; | |
| 521 | + bottom: 0; | |
| 522 | + left: 0; | |
| 523 | + width: 100%; | |
| 524 | + box-sizing: border-box; | |
| 525 | + } | |
| 526 | + .buy_box{ | |
| 527 | + display: flex; | |
| 528 | + margin: 10rpx 0 0 10rpx; | |
| 529 | + width: 100%; | |
| 530 | + } | |
| 531 | + .buy_box view{ | |
| 532 | + padding: 10rpx; | |
| 533 | + background-color:#f23030; | |
| 534 | + color: #fff; | |
| 535 | + /* margin-top: 10rpx; */ | |
| 536 | + line-height: 28rpx; | |
| 537 | + border-radius: 10rpx; | |
| 538 | + } | |
| 539 | + .mgr10{ | |
| 540 | + margin-right: 10rpx; | |
| 541 | + } | |
| 542 | + .fs24{ | |
| 543 | + font-size: 24rpx; | |
| 544 | + } | |
| 545 | + .lineh24{ | |
| 546 | + line-height: 24rpx !important; | |
| 547 | + } | |
| 0 | 548 | \ No newline at end of file | ... | ... |
pages/index/index/index.json
| ... | ... | @@ -9,6 +9,7 @@ |
| 9 | 9 | "searchbox":"/components/diy_searchbox/diy_searchbox", |
| 10 | 10 | "shopname": "/components/diy_shopname/diy_shopname", |
| 11 | 11 | "pingd_buy": "/components/diy_pingd_buy/diy_pingd_buy", |
| 12 | + "div_public": "/components/diy_public/diy_public", | |
| 12 | 13 | "title": "/components/diy_title/diy_title", |
| 13 | 14 | "notice": "/components/diy_notice/diy_notice", |
| 14 | 15 | "voice": "/components/diy_voice/diy_voice", | ... | ... |
pages/index/index/index.wxml
| ... | ... | @@ -480,6 +480,9 @@ |
| 480 | 480 | <block wx:if="{{item.ename=='pingd_buy'}}"> |
| 481 | 481 | <pingd_buy object="{{item.content}}"></pingd_buy> |
| 482 | 482 | </block> |
| 483 | + <block wx:if="{{item.ename=='pingd_buyNew'}}"> | |
| 484 | + <div_public object="{{item.content}}" prom_type="6"></div_public> | |
| 485 | + </block> | |
| 483 | 486 | <!--秒杀--> |
| 484 | 487 | <block wx:if="{{item.ename=='seckill' || item.ename=='seckillNew'}}"> |
| 485 | 488 | <seckill object="{{item.content}}"></seckill> | ... | ... |
pages/template/index.json
| ... | ... | @@ -11,6 +11,7 @@ |
| 11 | 11 | "searchbox":"/components/diy_searchbox/diy_searchbox", |
| 12 | 12 | "shopname": "/components/diy_shopname/diy_shopname", |
| 13 | 13 | "pingd_buy": "/components/diy_pingd_buy/diy_pingd_buy", |
| 14 | + "diy_public": "/components/diy_public/diy_public", | |
| 14 | 15 | "title": "/components/diy_title/diy_title", |
| 15 | 16 | "notice": "/components/diy_notice/diy_notice", |
| 16 | 17 | "voice": "/components/diy_voice/diy_voice", | ... | ... |
pages/template/index.wxml
| ... | ... | @@ -37,6 +37,9 @@ |
| 37 | 37 | <block wx:if="{{item.ename=='pingd_buy'}}"> |
| 38 | 38 | <pingd_buy object="{{item.content}}"></pingd_buy> |
| 39 | 39 | </block> |
| 40 | + <block wx:if="{{item.ename=='pingd_buyNew'}}"> | |
| 41 | + <diy_public object="{{item.content}}" prom_type="6"></diy_public> | |
| 42 | + </block> | |
| 40 | 43 | <!--秒杀--> |
| 41 | 44 | <block wx:if="{{item.ename=='seckill' || item.ename=='seckillNew'}}"> |
| 42 | 45 | <seckill object="{{item.content}}"></seckill> | ... | ... |