Commit 21141ccc67d499ff0f332231766459cbc5ca26cf
1 parent
8cb7a103
商品分组
Showing
6 changed files
with
1663 additions
and
892 deletions
components/diy_goodsGroup/diy_goodsGroup.js
| ... | ... | @@ -6,6 +6,7 @@ var t = getApp(), |
| 6 | 6 | ut = i, |
| 7 | 7 | s = require("../../utils/common.js"); |
| 8 | 8 | var regeneratorRuntime = require('../../utils/runtime.js'); |
| 9 | +var g_filter = require('./filter'); | |
| 9 | 10 | |
| 10 | 11 | Component({ |
| 11 | 12 | properties: { |
| ... | ... | @@ -60,7 +61,8 @@ Component({ |
| 60 | 61 | //判断接口是不是调用完成 |
| 61 | 62 | is_get:0, |
| 62 | 63 | |
| 63 | - is_retail_price:0 //是否显示零售价 | |
| 64 | + is_retail_price:0, //是否显示零售价 | |
| 65 | + // action_index:0, //选中的tab项 | |
| 64 | 66 | }, |
| 65 | 67 | |
| 66 | 68 | lifetimes: { |
| ... | ... | @@ -96,7 +98,8 @@ Component({ |
| 96 | 98 | } |
| 97 | 99 | if (idlist) idlist = ut.sub_last(idlist); |
| 98 | 100 | nav_list[ij].idlist = idlist; |
| 99 | - } | |
| 101 | + } | |
| 102 | + // console.error(nav_list); | |
| 100 | 103 | this.setData({ nav_list: nav_list, is_nav: parseInt(this.data.object.is_nav) }); |
| 101 | 104 | } |
| 102 | 105 | |
| ... | ... | @@ -174,7 +177,7 @@ Component({ |
| 174 | 177 | init: async function (classstyle_id, wgroup) { |
| 175 | 178 | |
| 176 | 179 | this.setData({ classstyle_id: classstyle_id }) |
| 177 | - | |
| 180 | + | |
| 178 | 181 | var th = this; |
| 179 | 182 | var g_id = this.data.g_id; |
| 180 | 183 | var len = this.data.firist_type_data.length; |
| ... | ... | @@ -307,7 +310,7 @@ Component({ |
| 307 | 310 | bind_bnerr3: function (e) { |
| 308 | 311 | var _errImg = e.target.dataset.errorimg; |
| 309 | 312 | var _errObj = {}; |
| 310 | - _errObj[_errImg] = this.data.imghost + "/public/images/default_goods_image_240.gif"; | |
| 313 | + _errObj[_errImg] = this.data.imghost + "/public/images/default_goods_image_240.gif"; | |
| 311 | 314 | this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ; |
| 312 | 315 | }, |
| 313 | 316 | |
| ... | ... | @@ -404,7 +407,7 @@ Component({ |
| 404 | 407 | this.data.classstyle_id = nav_item.classstyle; |
| 405 | 408 | this.data.wgroup = nav_item.wgroup; |
| 406 | 409 | } |
| 407 | - | |
| 410 | + | |
| 408 | 411 | |
| 409 | 412 | this.data.isyhgoods = this.data.is_recommend = this.data.is_hot = this.data.is_new = 0; |
| 410 | 413 | //推荐,热卖,新品 |
| ... | ... | @@ -519,8 +522,6 @@ Component({ |
| 519 | 522 | if (res && res.data) prom = res.data.data; |
| 520 | 523 | if (prom != null && prom.is_end == 0 && prom.end_time > now && (prom.start_time < now || (prom.show_time && prom.show_time < now))) { |
| 521 | 524 | item.prom_price = res.data.data.price; |
| 522 | - console.log(res.data.data) | |
| 523 | - console.log('11111'); | |
| 524 | 525 | |
| 525 | 526 | if (res.data.data.user_price) item.prom_price = res.data.data.user_price; |
| 526 | 527 | var vNum = res.data.data.virtual_num ? res.data.data.virtual_num : 0; |
| ... | ... | @@ -538,23 +539,73 @@ Component({ |
| 538 | 539 | } else { |
| 539 | 540 | th.data.requestData.push(item); |
| 540 | 541 | } |
| 541 | - } | |
| 542 | - | |
| 543 | - if (th.data.object.column == 5) { | |
| 544 | - var arr = new Array(); | |
| 545 | - var rData = th.data.requestData; | |
| 546 | - //--三个三个一组--- | |
| 547 | - for (var i = 0; i < rData.length; i += 3) { | |
| 548 | - arr.push(rData.slice(i, i + 3)); | |
| 549 | - } | |
| 550 | - th.setData({ goods_array: arr, page: th.data.currentPage - 1,is_get:1 }); | |
| 551 | - } else { | |
| 552 | - th.setData({ | |
| 553 | - goods_array: th.data.requestData, | |
| 554 | - page: th.data.currentPage - 1, | |
| 555 | - is_get:1 | |
| 556 | - }); | |
| 557 | - } | |
| 542 | + } | |
| 543 | + | |
| 544 | + // 新版组件价格处理 | |
| 545 | + th.data.requestData.map(ite=>{ | |
| 546 | + let price = 0 | |
| 547 | + if (ite.prom_price || ite.prom_integral) { | |
| 548 | + price = ite.prom_price + '' | |
| 549 | + }else{ | |
| 550 | + if (g_filter.is_has_rank(th.data.rank_switch,ite)) { | |
| 551 | + if (th.data.card_field) { | |
| 552 | + if (ite[th.data.card_field] > 0) { | |
| 553 | + price = ite[th.data.card_field] + '' | |
| 554 | + }else{ | |
| 555 | + price = ite.shop_price + '' | |
| 556 | + } | |
| 557 | + }else{ | |
| 558 | + price = ite.shop_price + '' | |
| 559 | + } | |
| 560 | + }else{ | |
| 561 | + price = ite.shop_price + '' | |
| 562 | + } | |
| 563 | + } | |
| 564 | + | |
| 565 | + if (price && price.indexOf('.') > -1) { | |
| 566 | + let priceArr = price.split(".") | |
| 567 | + ite.price_n = priceArr[0] | |
| 568 | + ite.price_xs = priceArr[1] | |
| 569 | + }else{ | |
| 570 | + ite.price_n = price | |
| 571 | + } | |
| 572 | + | |
| 573 | + }) | |
| 574 | + console.error(th.data.requestData); | |
| 575 | + //----------------------- | |
| 576 | + if (th.data.object.column_action_name) { | |
| 577 | + if (th.data.object.style == 6 || th.data.object.style == 5) { | |
| 578 | + var arr = new Array(); | |
| 579 | + var rData = th.data.requestData; | |
| 580 | + //--三个三个一组--- | |
| 581 | + for (var i = 0; i < rData.length; i += 3) { | |
| 582 | + arr.push(rData.slice(i, i + 3)); | |
| 583 | + } | |
| 584 | + th.setData({ goods_array: arr, page: th.data.currentPage - 1,is_get:1 }); | |
| 585 | + } else { | |
| 586 | + th.setData({ | |
| 587 | + goods_array: th.data.requestData, | |
| 588 | + page: th.data.currentPage - 1, | |
| 589 | + is_get:1 | |
| 590 | + }); | |
| 591 | + } | |
| 592 | + }else{ | |
| 593 | + if (th.data.object.column == 5) { | |
| 594 | + var arr = new Array(); | |
| 595 | + var rData = th.data.requestData; | |
| 596 | + //--三个三个一组--- | |
| 597 | + for (var i = 0; i < rData.length; i += 3) { | |
| 598 | + arr.push(rData.slice(i, i + 3)); | |
| 599 | + } | |
| 600 | + th.setData({ goods_array: arr, page: th.data.currentPage - 1,is_get:1 }); | |
| 601 | + } else { | |
| 602 | + th.setData({ | |
| 603 | + goods_array: th.data.requestData, | |
| 604 | + page: th.data.currentPage - 1, | |
| 605 | + is_get:1 | |
| 606 | + }); | |
| 607 | + } | |
| 608 | + } | |
| 558 | 609 | |
| 559 | 610 | }, |
| 560 | 611 | ... | ... |
components/diy_goodsGroup/diy_goodsGroup.wxml
| ... | ... | @@ -6,929 +6,1358 @@ |
| 6 | 6 | <!-- <mp-loading show ="{{goods_array.length== 0}}" type="circle"></mp-loading> --> |
| 7 | 7 | |
| 8 | 8 | <view id="container"> |
| 9 | - | |
| 10 | 9 | |
| 11 | -<block wx:if="{{is_nav}}"> | |
| 12 | - <mp-sticky wx:if="{{sticky == 1}}" container="{{container}}"> | |
| 13 | - <view class="flex gr_title_list" style="overflow-x: auto;"> | |
| 14 | - <view class="gr_title_item" wx:for="{{nav_list}}" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}"> | |
| 15 | - <text class="{{index==title_index?'t_red':''}}" style="{{title_class}}">{{item.title}}</text> | |
| 10 | + <block wx:if="{{object.column_action_name}}"> | |
| 11 | + <view class="{{'tabBox ' + (object.menu_style==2 ? 'tab2' :'')}}"> | |
| 12 | + <!--样式一--> | |
| 13 | + <block wx:if="{{object.menu_style==1}}"> | |
| 14 | + <view wx:if="{{object.show_all==1}}" style="padding: 0 35rpx;" class="{{'tab ' + (title_index == 10 ? 'clor ' :'')}}" >全部<span class="tab1" wx:if="{{10==title_index}}"></span></view> | |
| 15 | + <view wx:for="{{object.nav_list}}" style="padding: 0 35rpx;" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}" class="{{'tab ' + (index==title_index ? 'clor ' :'')}}">{{item.title}}<span class="tab1" wx:if="{{index==title_index}}"></span></view> | |
| 16 | + </block> | |
| 17 | + <!--样式二--> | |
| 18 | + <block wx:if="{{object.menu_style==2}}"> | |
| 19 | + <view wx:for="{{object.nav_list}}" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}" class="{{'tab ' + (index==title_index ? 'tab_action' : '')}}"> {{item.title}}</view> | |
| 20 | + </block> | |
| 21 | + <!--样式三--> | |
| 22 | + <block wx:if="{{object.menu_style==3}}"> | |
| 23 | + <view wx:for="{{object.nav_list}}" class="tab "> | |
| 24 | + <view class="{{'tab3 ' + (index==title_index ? 'tab_action' : '')}}" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}"> | |
| 25 | + {{item.title}} | |
| 26 | + </view> | |
| 16 | 27 | </view> |
| 28 | + </block> | |
| 17 | 29 | </view> |
| 18 | - </mp-sticky> | |
| 19 | - | |
| 20 | - <view class="flex gr_title_list" style="overflow-x: auto;" wx:else> | |
| 21 | - <view class="gr_title_item" wx:for="{{nav_list}}" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}"> | |
| 22 | - <text class="{{index==title_index?'t_red':''}}" style="{{title_class}}">{{item.title}}</text> | |
| 23 | - </view> | |
| 24 | - </view> | |
| 25 | -</block> | |
| 26 | - | |
| 27 | - | |
| 28 | -<view style="background-color: {{bg_color}};" wx:if="{{goods_array.length > 0 }}"> | |
| 29 | - <!--1个列表的时候--> | |
| 30 | - <view class="zs_goods_wai" wx:if='{{object.column==1}}'> | |
| 31 | - <block wx:for="{{goods_array}}"> | |
| 32 | - <view class='zs_goods {{g_filter.get_border_type(object.big_order_type)}}'> | |
| 33 | - <navigator url="{{g_filter.get_url_by_type(item)}}" class="s1_gk_a1"> | |
| 34 | - <!-- <navigator url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}&prom_id={{item.prom_id}}&&prom_type={{item.prom_type}}" class="s1_gk_a1"> --> | |
| 35 | - <view class='zs_top rel'> | |
| 36 | - | |
| 37 | - <block wx:if="{{object.big_order_type==3}}"> | |
| 38 | - <view style="position: relative; width: 100%; height: 100%"> | |
| 39 | - <image class='zs_t_img' src="{{object.pic_back}}" data-errorimg="object.pic_back" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 40 | - <image class="n_box" style="top: {{object.top}}%;left:{{object.left}}%;width: {{object.width}}%;height: {{object.width}}%" src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 41 | - </view> | |
| 42 | - </block> | |
| 43 | - <block wx:else> | |
| 44 | - <image class='zs_t_img' src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" binderror="bind_bnerr3" lazy-load="true"></image> | |
| 45 | - </block> | |
| 30 | + </block> | |
| 31 | + <block wx:else> | |
| 32 | + <block wx:if="{{is_nav}}"> | |
| 33 | + <mp-sticky wx:if="{{sticky == 1}}" container="{{container}}"> | |
| 34 | + <view class="flex gr_title_list" style="overflow-x: auto;"> | |
| 35 | + <view class="gr_title_item" wx:for="{{nav_list}}" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}"> | |
| 36 | + <text class="{{index==title_index?'t_red':''}}" style="{{title_class}}">{{item.title}}</text> | |
| 37 | + </view> | |
| 38 | + </view> | |
| 39 | + </mp-sticky> | |
| 46 | 40 | |
| 47 | - <block wx:if="{{object.goodicon==3}}"> | |
| 48 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 49 | - class='{{g_filter.get_class(object.column,object.position)}}' src='{{object.customicon}}'></image> | |
| 50 | - </block> | |
| 51 | - <block wx:if="{{object.goodicon==1}}"> | |
| 52 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 53 | - class='{{g_filter.get_class(object.column,object.position)}}' src=''></image> | |
| 54 | - </block> | |
| 55 | - <block wx:if="{{object.goodicon==2}}"> | |
| 56 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 57 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==1}}" src='{{imghost}}/miniapp/images/Recommend.png'></image> | |
| 58 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 59 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==2}}" src='{{imghost}}/miniapp/images/hot.png'></image> | |
| 60 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 61 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==3}}" src='{{imghost}}/miniapp/images/new.png'></image> | |
| 62 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 63 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==4}}" src='{{imghost}}/miniapp/images/Promotion.png'></image> | |
| 64 | - </block> | |
| 41 | + <view class="flex gr_title_list" style="overflow-x: auto;" wx:else> | |
| 42 | + <view class="gr_title_item" wx:for="{{nav_list}}" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}"> | |
| 43 | + <text class="{{index==title_index?'t_red':''}}" style="{{title_class}}">{{item.title}}</text> | |
| 44 | + </view> | |
| 45 | + </view> | |
| 46 | + </block> | |
| 47 | + </block> | |
| 48 | + <!-- 新版 --> | |
| 49 | + <block wx:if="{{object.column_action_name}}"> | |
| 50 | + <block wx:if="{{goods_array.length > 0 }}"> | |
| 51 | + <!-- 大图模式 --> | |
| 52 | + <block wx:if="{{object.style==1}}"> | |
| 53 | + <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 ':'')}}"> | |
| 54 | + <!-- <block wx:for="{{goods_array}}"> --> | |
| 55 | + <view wx:for="{{goods_array}}" 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;'}}"> | |
| 56 | + <navigator url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1"> | |
| 57 | + <view class="topBox"> | |
| 58 | + <view class="imgBox"> | |
| 59 | + <!-- <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[{{aind}}].goods_img" binderror="bind_bnerr3"></image> --> | |
| 60 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 61 | + <!-- <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1'}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{aind}}].goods_img" binderror="bind_bnerr3"></image> --> | |
| 62 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1'}}" src="{{aitem.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" binderror="bind_bnerr3"></image> | |
| 63 | + </view> | |
| 64 | + | |
| 65 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 66 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png?v=1'}}"></image> | |
| 67 | + </view> | |
| 68 | + </view> | |
| 69 | + <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> | |
| 70 | + <view class="new_item1_price" style="{{'padding:10rpx 10rpx;'+(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 71 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 72 | + <view class="clor7b"> | |
| 73 | + <text wx:if="{{object.seconds_num}}">销量:<text class="clor">{{aitem.sales_sum}}</text>件</text> | |
| 74 | + </view> | |
| 75 | + <view class="flex" style="{{'font-size: 24rpx; ' +(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 76 | + <view class="clor"> | |
| 77 | + <text wx:if="{{object.commodity_price}}">¥<text class="pricefs42">{{aitem.price_n}}</text><text wx:if="{{aitem.price_xs}}">.{{aitem.price_xs}}</text><text wx:if="{{aitem.prom_integral && (aitem.price_n || aitem.price_xs)}}">+</text> <text wx:if="{{aitem.prom_integral}}">{{aitem.prom_integral}}积分</text></text> | |
| 78 | + <text style="margin-left: 5rpx;" wx:if="{{object.wholesale_price}}" class="clor7b">¥{{aitem.market_price}}</text> | |
| 79 | + </view> | |
| 80 | + </view> | |
| 81 | + </view> | |
| 82 | + <view> | |
| 83 | + <image wx:if="{{object.purchase_button<=4}}" src="{{imghost+'/miniapp/images/component/0'+object.purchase_button+'.png?v=1'}}" class="imgbox1"></image> | |
| 84 | + <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> | |
| 85 | + </view> | |
| 86 | + </view> | |
| 87 | + </navigator> | |
| 88 | + </view> | |
| 89 | + <!-- </block> --> | |
| 90 | + </view> | |
| 91 | + </block> | |
| 92 | + <!-- 一行两个 --> | |
| 93 | + <block wx:if="{{object.style==2}}"> | |
| 94 | + <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 ':'') }}"> | |
| 95 | + <!-- <block wx:for="{{goods_array}}"> --> | |
| 96 | + <view wx:for="{{goods_array}}" 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)')}}"> | |
| 97 | + <navigator url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1"> | |
| 98 | + <view class="topBox"> | |
| 99 | + <view class="imgBox"> | |
| 100 | + <!-- <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[{{aind}}].goods_img" binderror="bind_bnerr3"></image> --> | |
| 101 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 102 | + <!-- <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1'}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{aind}}].goods_img" binderror="bind_bnerr3"></image> --> | |
| 103 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1 '}}" src="{{aitem.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" binderror="bind_bnerr3"></image> | |
| 65 | 104 | </view> |
| 66 | - <view class='zs_center'> | |
| 67 | - <view class='zs_wz1' wx:if="{{object.goodstit}}">{{item.goods_name}}</view> | |
| 68 | - <!--如果有显示价格 --> | |
| 69 | - <view class='zs_wz2' wx:if="{{object.goodsprice}}"> | |
| 70 | - <block wx:if="{{item.prom_price || item.prom_integral}}"> | |
| 71 | - <view class='wz_red'> | |
| 72 | - <text wx:if="{{item.prom_integral}}">{{item.prom_integral}}积分</text> | |
| 73 | - <text wx:if="{{item.prom_integral && item.prom_price}}">+</text> | |
| 74 | - <text wx:if="{{item.prom_price}}">¥{{item.prom_price}}</text> | |
| 75 | - </view> | |
| 76 | - <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{item.market_price}}</view> | |
| 77 | - </block> | |
| 78 | - <block wx:else> | |
| 79 | 105 | |
| 80 | - <block wx:if="{{g_filter.is_has_rank(rank_switch,item)}}"> | |
| 81 | - <!-- 当会员是等级卡的时候 --> | |
| 82 | - <block wx:if="{{card_field}}"> | |
| 83 | - <!-- 等级价>0 --> | |
| 84 | - <block wx:if="{{item[card_field]>0}}"> | |
| 85 | - <view class="money flex ai_and"> | |
| 86 | - <!-- 办卡价 --> | |
| 87 | - <view class="flex xc-wc ai_and"> | |
| 88 | - <view class="fs24 wz_red">¥</view> | |
| 89 | - <view class="fs35 wz_red">{{filter.toFix(item[card_field],2)}}</view> | |
| 90 | - <view class="card_bg ellipsis-1"> | |
| 91 | - <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 92 | - <text class="card_name">{{card_name}}</text> | |
| 93 | - </view> | |
| 94 | - </view> | |
| 95 | - </view> | |
| 96 | - <view class="flex" style="line-height: 28rpx;"> | |
| 97 | - <!-- 原价 --> | |
| 98 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 99 | - <view class="fs22">¥</view> | |
| 100 | - <view class="fs22">{{item.market_price}}</view> | |
| 101 | - </view> | |
| 102 | - </view> | |
| 103 | - </block> | |
| 104 | - <block wx:else> | |
| 105 | - <view class="money flex"> | |
| 106 | - <!-- 办卡价 --> | |
| 107 | - <view class="flex xc-wc"> | |
| 108 | - <view class="fs24 wz_red">¥</view> | |
| 109 | - <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 110 | - </view> | |
| 111 | - </view> | |
| 112 | - <view class="flex" style="line-height: 28rpx;"> | |
| 113 | - <!-- 原价 --> | |
| 114 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 115 | - <view class="fs22">¥</view> | |
| 116 | - <view class="fs22">{{item.market_price}}</view> | |
| 117 | - </view> | |
| 118 | - </view> | |
| 119 | - </block> | |
| 120 | - </block> | |
| 121 | - <block wx:else> | |
| 122 | - <!-- 如果商品有设置等级价大于0的 --> | |
| 123 | - <block wx:if="{{g_filter.get_card_price(item,card_list,0) && is_no_plus}}"> | |
| 124 | - <view class="money flex"> | |
| 125 | - <!-- 办卡价 --> | |
| 126 | - <view class="flex xc-wc"> | |
| 127 | - <view class="fs24 wz_red">¥</view> | |
| 128 | - <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 129 | - </view> | |
| 130 | - <!-- 原价 --> | |
| 131 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 132 | - <view class="fs22">¥</view> | |
| 133 | - <view class="fs22">{{item.market_price}}</view> | |
| 134 | - </view> | |
| 135 | - | |
| 136 | - </view> | |
| 137 | - <view class="flex" style="line-height: 28rpx;"> | |
| 138 | - <!-- 等级价 --> | |
| 139 | - <view class="price flex ai_and"> | |
| 140 | - <view class="fs22">¥</view> | |
| 141 | - <view class="fs28">{{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}}</view> | |
| 142 | - <view class="card_bg ellipsis-1"> | |
| 143 | - <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 144 | - <text class="card_name">{{g_filter.get_card_price(item,card_list,1)}}</text> | |
| 145 | - </view> | |
| 146 | - </view> | |
| 147 | - </view> | |
| 148 | - </block> | |
| 149 | - <block wx:else> | |
| 150 | - <view class="money flex"> | |
| 151 | - <!-- 办卡价 --> | |
| 152 | - <view class="flex xc-wc"> | |
| 153 | - <view class="fs24 wz_red">¥</view> | |
| 154 | - <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 155 | - </view> | |
| 156 | - </view> | |
| 157 | - <view class="flex" style="line-height: 28rpx;"> | |
| 158 | - <!-- 原价 --> | |
| 159 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 160 | - <view class="fs22">¥</view> | |
| 161 | - <view class="fs22">{{item.market_price}}</view> | |
| 162 | - </view> | |
| 163 | - </view> | |
| 164 | - </block> | |
| 165 | - </block> | |
| 166 | - </block> | |
| 167 | - | |
| 168 | - <block wx:else> | |
| 169 | - <view class='wz_red'>¥{{item.shop_price}}</view> | |
| 170 | - <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{item.market_price}}</view> | |
| 171 | - </block> | |
| 106 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 107 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png?v=1'}}"></image> | |
| 108 | + </view> | |
| 109 | + <block wx:if="{{object.count_down}}"> | |
| 110 | + <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);"> | |
| 111 | + <view>已售罄</view> | |
| 112 | + </view> | |
| 113 | + <!-- <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)}}"> | |
| 114 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 115 | + </view> --> | |
| 116 | + </block> | |
| 117 | + </view> | |
| 118 | + <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> | |
| 119 | + <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;':'')}}"> | |
| 120 | + <text wx:if="{{object.seconds_num}}">销量:<text class="clor">{{aitem.sales_sum}}</text>件</text> | |
| 121 | + <!-- <text wx:if="{{object.remaining_inventory}}">还剩余<text class="clor">{{aitem.residue}}</text>件</text> --> | |
| 122 | + </view> | |
| 123 | + <view class="new_item1_price pdlf10" style="{{(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 124 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 125 | + <view style="{{(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 126 | + <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 wx:if="{{aitem.prom_integral && (aitem.price_n || aitem.price_xs)}}">+</text> <text wx:if="{{aitem.prom_integral}}">{{aitem.prom_integral}}积分</text></view> | |
| 127 | + <view wx:if="{{object.wholesale_price}}" class="clor7b">¥{{aitem.market_price}}</view> | |
| 128 | + </view> | |
| 129 | + </view> | |
| 130 | + <view> | |
| 131 | + <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> | |
| 132 | + <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> | |
| 133 | + </view> | |
| 134 | + </view> | |
| 135 | + </navigator> | |
| 136 | + </view> | |
| 137 | + <!-- </block> --> | |
| 138 | + </view> | |
| 139 | + </block> | |
| 140 | + <!-- 一行三个 --> | |
| 141 | + <block wx:if="{{object.style==3}}"> | |
| 142 | + <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 ':'')}}"> | |
| 143 | + <!-- <block wx:for="{{goods_array}}"> --> | |
| 144 | + <view wx:for="{{goods_array}}" 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)')}}"> | |
| 145 | + <navigator url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1"> | |
| 146 | + <view class="topBox"> | |
| 147 | + <view class="imgBox"> | |
| 148 | + <!-- <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[{{aind}}].goods_img" binderror="bind_bnerr3"></image> --> | |
| 149 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 150 | + <!-- <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1'}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{aind}}].goods_img" binderror="bind_bnerr3"></image> --> | |
| 151 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1 '}}" src="{{aitem.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" binderror="bind_bnerr3"></image> | |
| 152 | + </view> | |
| 172 | 153 | |
| 173 | - </block> | |
| 154 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 155 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png?v=1'}}"></image> | |
| 156 | + </view> | |
| 157 | + <block wx:if="{{object.count_down}}"> | |
| 158 | + <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);"> | |
| 159 | + <view>已售罄</view> | |
| 160 | + </view> | |
| 161 | + <!-- <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)}}"> | |
| 162 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 163 | + </view> --> | |
| 164 | + </block> | |
| 165 | + </view> | |
| 166 | + <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> | |
| 167 | + <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;':'')}}"> | |
| 168 | + <text wx:if="{{object.seconds_num}}">销量<text class="clor">{{aitem.sales_sum}}</text>件</text> | |
| 169 | + <!-- <text wx:if="{{object.remaining_inventory}}">剩<text class="clor">{{aitem.residue}}</text>件</text> --> | |
| 170 | + </view> | |
| 171 | + <view class="new_item1_price clor7b" style="{{(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 172 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 173 | + <view style="{{'font-size: 20rpx; ' +(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 174 | + <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><text wx:if="{{aitem.prom_integral && (aitem.price_n || aitem.price_xs)}}">+</text> <text wx:if="{{aitem.prom_integral}}">{{aitem.prom_integral}}积分</text></view> | |
| 175 | + <view wx:if="{{object.wholesale_price}}">¥{{aitem.market_price}}</view> | |
| 176 | + </view> | |
| 177 | + </view> | |
| 178 | + <view> | |
| 179 | + <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> | |
| 180 | + <!-- <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> --> | |
| 181 | + </view> | |
| 182 | + </view> | |
| 183 | + </navigator> | |
| 184 | + </view> | |
| 185 | + <!-- </block> --> | |
| 186 | + </view> | |
| 187 | + </block> | |
| 188 | + <!-- 详细列表 --> | |
| 189 | + <block wx:if="{{object.style==4}}"> | |
| 190 | + <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 ':'') }}"> | |
| 191 | + <!-- <block wx:for="{{goods_array}}"> --> | |
| 192 | + <view wx:for="{{goods_array}}" 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;'}}"> | |
| 193 | + <navigator style="display: flex;" url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1"> | |
| 194 | + <view style="width: 33%;" class="topBox"> | |
| 195 | + <view class="imgBox"> | |
| 196 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 197 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1'}}" src="{{aitem.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" binderror="bind_bnerr3"></image> | |
| 198 | + </view> | |
| 199 | + | |
| 200 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 201 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png?v=1'}}"></image> | |
| 202 | + </view> | |
| 203 | + <block wx:if="{{object.count_down}}"> | |
| 204 | + <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);"> | |
| 205 | + <view>已售罄</view> | |
| 206 | + </view> | |
| 207 | + <!-- <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)}}"> | |
| 208 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 209 | + </view> --> | |
| 210 | + </block> | |
| 211 | + </view> | |
| 212 | + <view style="{{'width: 67%;display: flex;flex-wrap: wrap;padding-left: 10rpx;' + (object.text_align==2 ? 'justify-content:center;' :'' )}}"> | |
| 213 | + <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> | |
| 214 | + <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;':'')}}"> | |
| 215 | + <text wx:if="{{object.seconds_num}}">销量<text class="clor">{{aitem.sales_sum}}</text>件</text> | |
| 216 | + <!-- <text wx:if="{{object.remaining_inventory}}">剩<text class="clor">{{aitem.residue}}</text>件</text> --> | |
| 217 | + </view> | |
| 218 | + <view class="new_item1_price clor7b" style="{{'width:100%;' + (object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 219 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 220 | + <view style="{{'font-size: 24rpx; ' +(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 221 | + <view class="clor" style="margin-right: 5rpx;"><text wx:if="{{object.commodity_price}}">¥<text class="pricefs42">{{aitem.price_n}}</text><text wx:if="{{aitem.price_xs}}">.{{aitem.price_xs}}</text></text><text style="color: #7b7b7b;margin-left: 5rpx;" wx:if="{{object.wholesale_price}}">¥{{aitem.market_price}}</text><text wx:if="{{aitem.prom_integral && (aitem.price_n || aitem.price_xs)}}">+</text> <text wx:if="{{aitem.prom_integral}}">{{aitem.prom_integral}}积分</text></view> | |
| 174 | 222 | |
| 223 | + </view> | |
| 224 | + </view> | |
| 225 | + <view> | |
| 226 | + <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> | |
| 227 | + <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> | |
| 228 | + </view> | |
| 229 | + </view> | |
| 230 | + </view> | |
| 231 | + </navigator> | |
| 232 | + </view> | |
| 233 | + <!-- </block> --> | |
| 234 | + </view> | |
| 235 | + </block> | |
| 236 | + <!-- 一大一小 --> | |
| 237 | + <block wx:if="{{object.style==5}}"> | |
| 238 | + <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 ':'')}}"> | |
| 239 | + <block wx:for="{{goods_array}}"> | |
| 240 | + <block wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind"> | |
| 241 | + <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;'}}"> | |
| 242 | + <navigator url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1"> | |
| 243 | + <view class="topBox"> | |
| 244 | + <view class="imgBox"> | |
| 245 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 246 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1'}}" src="{{aitem.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" binderror="bind_bnerr3"></image> | |
| 247 | + </view> | |
| 248 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 249 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png?v=1'}}"></image> | |
| 250 | + </view> | |
| 251 | + <block wx:if="{{object.count_down}}"> | |
| 252 | + <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;"> | |
| 253 | + 已售罄 | |
| 254 | + </view> | |
| 255 | + <!-- <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)}}"> | |
| 256 | + <image src="{{imghost+'/miniapp/images/component/seckill.png'}}"></image> | |
| 257 | + <view style="text-align: center;line-height: 30rpx;"> | |
| 258 | + <view wx:if="{{aitem.status == 1}}">距结束时间</view> | |
| 259 | + <view wx:if="{{aitem.status == 0}}">距开始时间</view> | |
| 260 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 261 | + <view>30天21:59:40</view> | |
| 175 | 262 | </view> |
| 176 | - <!-- <view class='zs_wz5' wx:if="{{object.goodsnum}}">销量:{{item.sales_sum}}件</view> --> | |
| 177 | - <view class="flex jc-sb ai-center"> | |
| 178 | - <view class='zs_wz5_x' wx:if="{{object.goodsnum}}">销量:{{item.sales_sum}}件</view> | |
| 179 | - | |
| 180 | - <!-- 购物车图标 --> | |
| 181 | - <view class="icon-box" wx:if="{{object.goodcaricon != 1}}"> | |
| 182 | - <!-- 系统图标 --> | |
| 183 | - <block wx:if="{{object.goodcaricon == 2}}"> | |
| 184 | - <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_1.png'}}" wx:if="{{object.stylecaricon == 1}}" mode="widthFix"></image> | |
| 185 | - <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_2.png'}}" wx:if="{{object.stylecaricon == 2}}" mode="widthFix"></image> | |
| 186 | - <text class="icon-text" wx:if="{{object.stylecaricon == 3}}">马上抢</text> | |
| 187 | - <text class="icon-text" wx:if="{{object.stylecaricon == 4}}">立即购买</text> | |
| 188 | - </block> | |
| 189 | - <!-- 自定义图标 --> | |
| 190 | - <block wx:if="{{object.goodcaricon == 3}}"> | |
| 191 | - <image class="icon icon2" src="{{object.customcaricon}}" mode="widthFix"></image> | |
| 192 | - </block> | |
| 193 | - </view> | |
| 194 | - </view> | |
| 195 | - <view style="height: 10rpx;"></view> | |
| 263 | + </view> --> | |
| 264 | + </block> | |
| 265 | + </view> | |
| 266 | + <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> | |
| 267 | + <view class="new_item1_price" style="{{'padding:10rpx 10rpx;'+(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 268 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 269 | + <view class="clor7b"> | |
| 270 | + <text wx:if="{{object.seconds_num}}">销量:<text class="clor">{{aitem.sales_sum}}</text>件</text> | |
| 271 | + <!-- <text wx:if="{{object.remaining_inventory}}">还剩余<text class="clor">{{aitem.status==2 ? '0' : aitem.residue}}</text>件</text> --> | |
| 272 | + </view> | |
| 273 | + <view class="flex" style="{{'font-size: 24rpx; ' +(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 274 | + <view class="clor"> | |
| 275 | + <text wx:if="{{object.commodity_price}}">¥<text class="pricefs42">{{aitem.price_n}}</text><text wx:if="{{aitem.price_xs}}">.{{aitem.price_xs}}</text><text wx:if="{{aitem.prom_integral && (aitem.price_n || aitem.price_xs)}}">+</text> <text wx:if="{{aitem.prom_integral}}">{{aitem.prom_integral}}积分</text></text> | |
| 276 | + <text style="margin-left: 5rpx;" wx:if="{{object.wholesale_price}}" class="clor7b">¥{{aitem.market_price}}</text> | |
| 277 | + </view> | |
| 278 | + </view> | |
| 279 | + </view> | |
| 280 | + <view> | |
| 281 | + <image wx:if="{{object.purchase_button<=4}}" src="{{imghost+'/miniapp/images/component/0'+object.purchase_button+'.png?v=1'}}" class="imgbox1"></image> | |
| 282 | + <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> | |
| 283 | + </view> | |
| 284 | + </view> | |
| 285 | + </navigator> | |
| 286 | + </view> | |
| 287 | + <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)')}}"> | |
| 288 | + <navigator url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1"> | |
| 289 | + <view class="topBox"> | |
| 290 | + <view class="imgBox"> | |
| 291 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 292 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1 '}}" src="{{aitem.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" binderror="bind_bnerr3"></image> | |
| 293 | + </view> | |
| 294 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 295 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png?v=1'}}"></image> | |
| 296 | + </view> | |
| 297 | + <block wx:if="{{object.count_down}}"> | |
| 298 | + <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);"> | |
| 299 | + <view>已售罄</view> | |
| 300 | + </view> | |
| 301 | + <!-- <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)}}"> | |
| 302 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 303 | + </view> --> | |
| 304 | + </block> | |
| 305 | + </view> | |
| 306 | + <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> | |
| 307 | + <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;':'')}}"> | |
| 308 | + <text wx:if="{{object.seconds_num}}">销量:<text class="clor">{{aitem.sales_sum}}</text>件</text> | |
| 309 | + <!-- <text wx:if="{{object.remaining_inventory}}">还剩余<text class="clor">{{aitem.residue}}</text>件</text> --> | |
| 310 | + </view> | |
| 311 | + <view class="new_item1_price pdlf10" style="{{(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 312 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 313 | + <view style="{{(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 314 | + <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 wx:if="{{aitem.prom_integral && (aitem.price_n || aitem.price_xs)}}">+</text> <text wx:if="{{aitem.prom_integral}}">{{aitem.prom_integral}}积分</text></view> | |
| 315 | + <view wx:if="{{object.wholesale_price}}" class="clor7b">¥{{aitem.market_price}}</view> | |
| 316 | + </view> | |
| 317 | + </view> | |
| 318 | + <view> | |
| 319 | + <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> | |
| 320 | + <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> | |
| 196 | 321 | </view> |
| 322 | + </view> | |
| 197 | 323 | </navigator> |
| 324 | + </view> | |
| 325 | + <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)')}}"> | |
| 326 | + <navigator url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1"> | |
| 327 | + <view class="topBox"> | |
| 328 | + <view class="imgBox"> | |
| 329 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 330 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1 '}}" src="{{aitem.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" binderror="bind_bnerr3"></image> | |
| 331 | + </view> | |
| 332 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 333 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png?v=1'}}"></image> | |
| 334 | + </view> | |
| 335 | + <block wx:if="{{object.count_down}}"> | |
| 336 | + <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);"> | |
| 337 | + <view>已售罄</view> | |
| 338 | + </view> | |
| 339 | + <!-- <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)}}"> | |
| 340 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 341 | + </view> --> | |
| 342 | + </block> | |
| 343 | + </view> | |
| 344 | + <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> | |
| 345 | + <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;':'')}}"> | |
| 346 | + <text wx:if="{{object.seconds_num}}">销量:<text class="clor">{{aitem.sales_sum}}</text>件</text> | |
| 347 | + <!-- <text wx:if="{{object.remaining_inventory}}">还剩余<text class="clor">{{aitem.residue}}</text>件</text> --> | |
| 348 | + </view> | |
| 349 | + <view class="new_item1_price pdlf10" style="{{(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 350 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 351 | + <view style="{{(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 352 | + <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 wx:if="{{aitem.prom_integral && (aitem.price_n || aitem.price_xs)}}">+</text> <text wx:if="{{aitem.prom_integral}}">{{aitem.prom_integral}}积分</text></view> | |
| 353 | + <view wx:if="{{object.wholesale_price}}" class="clor7b">¥{{aitem.market_price}}</view> | |
| 354 | + </view> | |
| 355 | + </view> | |
| 356 | + <view> | |
| 357 | + <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> | |
| 358 | + <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> | |
| 359 | + </view> | |
| 360 | + </view> | |
| 361 | + </navigator> | |
| 362 | + </view> | |
| 363 | + </block> | |
| 364 | + </block> | |
| 365 | + </view> | |
| 366 | + </block> | |
| 367 | + <!-- 横向滑动 2个--> | |
| 368 | + <block wx:if="{{object.style==7}}"> | |
| 369 | + <!-- <swiper indicator-dots circular> --> | |
| 370 | + <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 ':'')}}"> | |
| 371 | + <swiper-item wx:for="{{goods_array}}" class="flex2" style="padding: 5rpx;"> | |
| 372 | + <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)')}}"> | |
| 373 | + <navigator url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1"> | |
| 374 | + <view class="imgBox"> | |
| 375 | + <!-- <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[{{aind}}].goods_img" binderror="bind_bnerr3"></image> --> | |
| 376 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 377 | + <!-- <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1'}}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{aind}}].goods_img" binderror="bind_bnerr3"></image> --> | |
| 378 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1 ' }}" src="{{imghost+aitem.original_img}}" data-errorimg="goods_array[{{aind}}].goods_img" binderror="bind_bnerr3"></image> | |
| 379 | + </view> | |
| 380 | + | |
| 381 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 382 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png'}}"></image> | |
| 383 | + </view> | |
| 384 | + <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)}}"> | |
| 385 | + <!-- <image src="{{imghost+'/miniapp/images/component/seckill.png'}}"></image> --> | |
| 386 | + <!-- <view style="text-align: center;"> | |
| 387 | + <view>距结束时间</view> --> | |
| 388 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 389 | + <!-- </view> --> | |
| 390 | + </view> | |
| 391 | + <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> | |
| 392 | + <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;':'')}}"> | |
| 393 | + <text wx:if="{{object.seconds_num}}">已秒<text class="clor">{{aitem.sales_sum}}</text>件</text> | |
| 394 | + <text wx:if="{{object.remaining_inventory}}">还剩余<text class="clor">{{aitem.residue}}</text>件</text> | |
| 395 | + </view> | |
| 396 | + <view class="new_item1_price" style="{{(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 397 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 398 | + <view style="{{'font-size: 28rpx; ' +(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 399 | + <view class="clor" style="margin-right: 5rpx;" wx:if="{{object.commodity_price}}">¥<text style="font-size:42rpx;">{{aitem.price}}</text></view> | |
| 400 | + <view wx:if="{{object.wholesale_price}}">¥{{aitem.market_price}}</view> | |
| 401 | + </view> | |
| 402 | + </view> | |
| 403 | + <view> | |
| 404 | + <image wx:if="{{object.purchase_button<=4}}" src="{{imghost+'/miniapp/images/component/0'+object.purchase_button+'.png'}}" style="width: 100rpx;height: 100rpx;"></image> | |
| 405 | + <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> | |
| 406 | + </view> | |
| 407 | + </view> | |
| 408 | + </navigator> | |
| 409 | + </view> | |
| 410 | + </swiper-item> | |
| 411 | + </swiper> | |
| 412 | + <!-- </swiper> --> | |
| 413 | + | |
| 414 | + </block> | |
| 415 | + <!-- 横向滑动 3个--> | |
| 416 | + <block wx:if="{{object.style==6}}"> | |
| 417 | + <!-- <swiper indicator-dots circular> --> | |
| 418 | + <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 ':'')}}"> | |
| 419 | + <swiper-item wx:for="{{goods_array}}" class="flex2" style="padding: 5rpx;"> | |
| 420 | + <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)')}}"> | |
| 421 | + <navigator url="{{g_filter.get_url_by_type(aitem)}}" class="s1_gk_a1"> | |
| 422 | + <view class="topBox"> | |
| 423 | + <view class="imgBox"> | |
| 424 | + <view class="{{'container'+object.picture_scale}}" style="{{object.picture_fill==1 ? 'background-color: #fff;' : ''}}"> | |
| 425 | + <image mode="{{object.picture_fill==1 ? 'aspectFit' : 'aspectFill'}}" class="{{'new_item1_image images1 '}}" src="{{aitem.goods_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].goods_img" binderror="bind_bnerr3"></image> | |
| 426 | + </view> | |
| 427 | + <image class="imgBox_img" wx:if="{{object.subscript_style==5}}" src="{{object.subscript_diy_style}}"></image> | |
| 428 | + <image class="imgBox_img" wx:if="{{object.subscript_style<=4}}" src="{{imghost+'/miniapp/images/component/j0'+object.subscript_style +'.png?v=1'}}"></image> | |
| 429 | + </view> | |
| 430 | + <block wx:if="{{object.count_down}}"> | |
| 431 | + <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);"> | |
| 432 | + <view>已售罄</view> | |
| 433 | + </view> | |
| 434 | + <!-- <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)}}"> | |
| 435 | + <view>{{aitem.djs.day}}天{{aitem.djs.hou}}:{{aitem.djs.min}}:{{aitem.djs.sec}}</view> | |
| 436 | + </view> --> | |
| 437 | + </block> | |
| 438 | + </view> | |
| 439 | + <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> | |
| 440 | + <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;':'')}}"> | |
| 441 | + <text wx:if="{{object.seconds_num}}">销量:<text class="clor">{{aitem.sales_sum}}</text>件</text> | |
| 442 | + <!-- <text wx:if="{{object.remaining_inventory}}">剩<text class="clor">{{aitem.residue}}</text>件</text> --> | |
| 443 | + </view> | |
| 444 | + <view class="new_item1_price clor7b" style="{{(object.text_align==2 ? 'justify-content:center;flex-direction:column;' :'' )}}"> | |
| 445 | + <view style="{{(object.text_style==2 ? 'font-weight: bold;':'')}}"> | |
| 446 | + <view style="{{'font-size: 20rpx; ' +(object.text_align==2 ? 'justify-content:center;' :'' ) }}"> | |
| 447 | + <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><text wx:if="{{aitem.prom_integral && (aitem.price_n || aitem.price_xs)}}">+</text> <text wx:if="{{aitem.prom_integral}}">{{aitem.prom_integral}}积分</text></view> | |
| 448 | + <view wx:if="{{object.wholesale_price}}">¥{{aitem.market_price}}</view> | |
| 449 | + </view> | |
| 450 | + </view> | |
| 451 | + <view> | |
| 452 | + <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> | |
| 453 | + <!-- <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> --> | |
| 454 | + </view> | |
| 455 | + </view> | |
| 456 | + </navigator> | |
| 457 | + </view> | |
| 458 | + </swiper-item> | |
| 459 | + </swiper> | |
| 460 | + <!-- </swiper> --> | |
| 461 | + | |
| 462 | + </block> | |
| 463 | + | |
| 464 | + <block wx:if="{{object.style!=6}}"> | |
| 465 | + <block wx:if="{{classstyle_id=='1' }}"> | |
| 466 | + <view class="button-wrapper" wx:if="{{goods_btn.length!=0 }}" style="border: none"> | |
| 467 | + <view loading="{{loading}}" disabled="{{disabled}}" bindtap="setLoading" style="background-color: rgba(0,0,0,0);border:none;text-align: center;"> | |
| 468 | + <image style="width:30rpx;height:30rpx;" src="{{imghost+'/miniapp/images/component/loading.png'}}"></image> {{loadText}} | |
| 198 | 469 | </view> |
| 199 | - <view style="height:20rpx"></view> | |
| 470 | + </view> | |
| 200 | 471 | </block> |
| 472 | + <block wx:if="{{classstyle_id!='1' }}"> | |
| 473 | + <view class="button-wrapper" wx:if="{{object.goodscount * page <total }}" style="border: none"> | |
| 474 | + <view loading="{{loading}}" disabled="{{disabled}}" bindtap="setLoading" style="background-color: rgba(0,0,0,0);border:none;text-align: center;"> | |
| 475 | + <image style="width:30rpx;height:30rpx;" src="{{imghost+'/miniapp/images/component/loading.png'}}"></image> {{loadText}} | |
| 476 | + </view> | |
| 477 | + </view> | |
| 478 | + <!-- <view class="fs28" wx:if="{{object.goodscount * page >=total }}" style="color:{{object.nomore_color}};text-align: center; padding: 20rpx 0">-- 没有更多 -- </view>--> | |
| 201 | 479 | |
| 480 | + </block> | |
| 481 | + </block> | |
| 482 | + </block> | |
| 483 | + <view class="nodata-title" wx:elif="{{is_get}}">暂无数据</view> | |
| 484 | + <view class="flex jcc loader" wx:else> | |
| 485 | + <image style="width: 40rpx; height: 40rpx; " src="{{url}}/miniapp/images/loader.gif"></image> | |
| 202 | 486 | </view> |
| 203 | - <!--2个一列--> | |
| 204 | - <block wx:if="{{object.column==2}}"> | |
| 487 | + </block> | |
| 488 | + <!-- 旧版 --> | |
| 489 | + <block wx:else> | |
| 490 | + <view style="background-color: {{bg_color}};" wx:if="{{goods_array.length > 0 }}"> | |
| 491 | + <!--1个列表的时候--> | |
| 492 | + <view class="zs_goods_wai" wx:if='{{object.column==1}}'> | |
| 205 | 493 | <block wx:for="{{goods_array}}"> |
| 494 | + <view class='zs_goods {{g_filter.get_border_type(object.big_order_type)}}'> | |
| 206 | 495 | <navigator url="{{g_filter.get_url_by_type(item)}}" class="s1_gk_a1"> |
| 207 | - <view class="zs_goods_wai_ban {{g_filter.get_border_type(object.big_order_type)}}"> | |
| 208 | - <view class="zs_goods_ban"> | |
| 209 | - <view class='zs_goods_2l'> | |
| 210 | - <view class='zs_top_2l rel'> | |
| 211 | - | |
| 212 | - <block wx:if="{{object.big_order_type==3}}"> | |
| 213 | - <view style="position: relative; width: 100%; height: 100%"> | |
| 214 | - <image class='zs_t_img_2l' src="{{object.pic_back}}" data-errorimg="object.pic_back" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 215 | - <image class="n_box" style="top: {{object.top}}%;left:{{object.left}}%;width: {{object.width}}%;height: {{object.width}}%" src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 216 | - </view> | |
| 217 | - </block> | |
| 218 | - <block wx:else> | |
| 219 | - <image class='zs_t_img_2l' src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 220 | - </block> | |
| 221 | - | |
| 222 | - <block wx:if="{{object.goodicon==3}}"> | |
| 223 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 224 | - class='{{g_filter.get_class(object.column,object.position)}}' src='{{object.customicon}}'></image> | |
| 225 | - </block> | |
| 226 | - <block wx:if="{{object.goodicon==1}}"> | |
| 227 | - <image class='{{g_filter.get_class(object.column,object.position)}}' src=''></image> | |
| 228 | - </block> | |
| 229 | - <block wx:if="{{object.goodicon==2}}"> | |
| 230 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 231 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==1}}" src='{{imghost}}/miniapp/images/Recommend.png'></image> | |
| 232 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 233 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==2 }}" src='{{imghost}}/miniapp/images/hot.png'></image> | |
| 234 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 235 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==3}}" src='{{imghost}}/miniapp/images/new.png'></image> | |
| 236 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 237 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==4 }}" src='{{imghost}}/miniapp/images/Promotion.png'></image> | |
| 238 | - </block> | |
| 496 | + <!-- <navigator url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}&prom_id={{item.prom_id}}&&prom_type={{item.prom_type}}" class="s1_gk_a1"> --> | |
| 497 | + <view class='zs_top rel'> | |
| 498 | + | |
| 499 | + <block wx:if="{{object.big_order_type==3}}"> | |
| 500 | + <view style="position: relative; width: 100%; height: 100%"> | |
| 501 | + <image class='zs_t_img' src="{{object.pic_back}}" data-errorimg="object.pic_back" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 502 | + <image class="n_box" style="top: {{object.top}}%;left:{{object.left}}%;width: {{object.width}}%;height: {{object.width}}%" src="{{item.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 503 | + </view> | |
| 504 | + </block> | |
| 505 | + <block wx:else> | |
| 506 | + <image class='zs_t_img' src="{{item.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" binderror="bind_bnerr3" lazy-load="true"></image> | |
| 507 | + </block> | |
| 508 | + | |
| 509 | + <block wx:if="{{object.goodicon==3}}"> | |
| 510 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' src='{{object.customicon}}'></image> | |
| 511 | + </block> | |
| 512 | + <block wx:if="{{object.goodicon==1}}"> | |
| 513 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' src=''></image> | |
| 514 | + </block> | |
| 515 | + <block wx:if="{{object.goodicon==2}}"> | |
| 516 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==1}}" src='{{imghost}}/miniapp/images/Recommend.png'></image> | |
| 517 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==2}}" src='{{imghost}}/miniapp/images/hot.png'></image> | |
| 518 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==3}}" src='{{imghost}}/miniapp/images/new.png'></image> | |
| 519 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==4}}" src='{{imghost}}/miniapp/images/Promotion.png'></image> | |
| 520 | + </block> | |
| 521 | + </view> | |
| 522 | + <view class='zs_center'> | |
| 523 | + <view class='zs_wz1' wx:if="{{object.goodstit}}">{{item.goods_name}}</view> | |
| 524 | + <!--如果有显示价格 --> | |
| 525 | + <view class='zs_wz2' wx:if="{{object.goodsprice}}"> | |
| 526 | + <block wx:if="{{item.prom_price || item.prom_integral}}"> | |
| 527 | + <view class='wz_red'> | |
| 528 | + <text wx:if="{{item.prom_integral}}">{{item.prom_integral}}积分</text> | |
| 529 | + <text wx:if="{{item.prom_integral && item.prom_price}}">+</text> | |
| 530 | + <text wx:if="{{item.prom_price}}">¥{{item.prom_price}}</text> | |
| 531 | + </view> | |
| 532 | + <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{item.market_price}}</view> | |
| 533 | + </block> | |
| 534 | + <block wx:else> | |
| 535 | + | |
| 536 | + <block wx:if="{{g_filter.is_has_rank(rank_switch,item)}}"> | |
| 537 | + <!-- 当会员是等级卡的时候 --> | |
| 538 | + <block wx:if="{{card_field}}"> | |
| 539 | + <!-- 等级价>0 --> | |
| 540 | + <block wx:if="{{item[card_field]>0}}"> | |
| 541 | + <view class="money flex ai_and"> | |
| 542 | + <!-- 办卡价 --> | |
| 543 | + <view class="flex xc-wc ai_and"> | |
| 544 | + <view class="fs24 wz_red">¥</view> | |
| 545 | + <view class="fs35 wz_red">{{filter.toFix(item[card_field],2)}}</view> | |
| 546 | + <view class="card_bg ellipsis-1"> | |
| 547 | + <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 548 | + <text class="card_name">{{card_name}}</text> | |
| 549 | + </view> | |
| 550 | + </view> | |
| 551 | + </view> | |
| 552 | + <view class="flex" style="line-height: 28rpx;"> | |
| 553 | + <!-- 原价 --> | |
| 554 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 555 | + <view class="fs22">¥</view> | |
| 556 | + <view class="fs22">{{item.market_price}}</view> | |
| 557 | + </view> | |
| 558 | + </view> | |
| 559 | + </block> | |
| 560 | + <block wx:else> | |
| 561 | + <view class="money flex"> | |
| 562 | + <!-- 办卡价 --> | |
| 563 | + <view class="flex xc-wc"> | |
| 564 | + <view class="fs24 wz_red">¥</view> | |
| 565 | + <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 566 | + </view> | |
| 567 | + </view> | |
| 568 | + <view class="flex" style="line-height: 28rpx;"> | |
| 569 | + <!-- 原价 --> | |
| 570 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 571 | + <view class="fs22">¥</view> | |
| 572 | + <view class="fs22">{{item.market_price}}</view> | |
| 573 | + </view> | |
| 574 | + </view> | |
| 575 | + </block> | |
| 576 | + </block> | |
| 577 | + <block wx:else> | |
| 578 | + <!-- 如果商品有设置等级价大于0的 --> | |
| 579 | + <block wx:if="{{g_filter.get_card_price(item,card_list,0) && is_no_plus}}"> | |
| 580 | + <view class="money flex"> | |
| 581 | + <!-- 办卡价 --> | |
| 582 | + <view class="flex xc-wc"> | |
| 583 | + <view class="fs24 wz_red">¥</view> | |
| 584 | + <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 585 | + </view> | |
| 586 | + <!-- 原价 --> | |
| 587 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 588 | + <view class="fs22">¥</view> | |
| 589 | + <view class="fs22">{{item.market_price}}</view> | |
| 239 | 590 | </view> |
| 240 | 591 | |
| 241 | - <view class='zs_center_2l'> | |
| 242 | - <view class='zs_wz1_2l ellipsis-2' wx:if="{{object.goodstit}}">{{item.goods_name}}</view> | |
| 243 | - <view class='zs_wz2_2l' wx:if="{{object.goodsprice}}"> | |
| 244 | - | |
| 245 | - <block wx:if="{{item.prom_price || item.prom_integral}}"> | |
| 246 | - <view class='wz_red'> | |
| 247 | - <text wx:if="{{item.prom_integral}}">{{item.prom_integral}}积分</text> | |
| 248 | - <text wx:if="{{item.prom_integral && item.prom_price}}">+</text> | |
| 249 | - <text wx:if="{{item.prom_price}}">¥{{item.prom_price}}</text> | |
| 250 | - </view> | |
| 251 | - <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{item.market_price}}</view> | |
| 252 | - </block> | |
| 253 | - <block wx:else> | |
| 254 | - <block wx:if="{{g_filter.is_has_rank(rank_switch,item)}}"> | |
| 255 | - <!-- 当会员是等级卡的时候 --> | |
| 256 | - <block wx:if="{{card_field}}"> | |
| 257 | - <!-- 等级价>0 --> | |
| 258 | - <block wx:if="{{item[card_field]>0}}"> | |
| 259 | - <view class="money flex"> | |
| 260 | - <!-- 办卡价 --> | |
| 261 | - <view class="flex xc-wc ai_and"> | |
| 262 | - <view class="fs24 wz_red">¥</view> | |
| 263 | - <view class="fs35 wz_red">{{filter.toFix(item[card_field],2)}}</view> | |
| 264 | - <view class="card_bg ellipsis-1"> | |
| 265 | - <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 266 | - <view class="card_name">{{card_name}}</view> | |
| 267 | - </view> | |
| 268 | - </view> | |
| 269 | - </view> | |
| 270 | - <view class="flex" style="line-height: 28rpx;"> | |
| 271 | - <!-- 原价 --> | |
| 272 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 273 | - <view class="fs22">¥</view> | |
| 274 | - <view class="fs22">{{item.market_price}}</view> | |
| 275 | - </view> | |
| 276 | - </view> | |
| 277 | - </block> | |
| 278 | - <block wx:else> | |
| 279 | - <view class="money flex"> | |
| 280 | - <!-- 办卡价 --> | |
| 281 | - <view class="flex xc-wc"> | |
| 282 | - <view class="fs24 wz_red">¥</view> | |
| 283 | - <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 284 | - </view> | |
| 285 | - </view> | |
| 286 | - <view class="flex" style="line-height: 28rpx;"> | |
| 287 | - <!-- 原价 --> | |
| 288 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 289 | - <view class="fs22">¥</view> | |
| 290 | - <view class="fs22">{{item.market_price}}</view> | |
| 291 | - </view> | |
| 292 | - </view> | |
| 293 | - </block> | |
| 294 | - </block> | |
| 295 | - <block wx:else> | |
| 296 | - <!-- 如果商品有设置等级价大于0的 --> | |
| 297 | - <block wx:if="{{g_filter.get_card_price(item,card_list,0) && is_no_plus}}"> | |
| 298 | - <view class="money flex"> | |
| 299 | - <!-- 办卡价 --> | |
| 300 | - <view class="flex xc-wc"> | |
| 301 | - <view class="fs24 wz_red">¥</view> | |
| 302 | - <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 303 | - </view> | |
| 304 | - <!-- 原价 --> | |
| 305 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 306 | - <view class="fs22">¥</view> | |
| 307 | - <view class="fs22">{{item.market_price}}</view> | |
| 308 | - </view> | |
| 309 | - | |
| 310 | - </view> | |
| 311 | - <view class="flex" style="line-height: 28rpx;"> | |
| 312 | - <!-- 等级价 --> | |
| 313 | - <view class="price flex ai_and"> | |
| 314 | - <view class="fs22">¥</view> | |
| 315 | - <view class="fs28">{{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}}</view> | |
| 316 | - <view class="card_bg ellipsis-1"> | |
| 317 | - <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 318 | - <text class="card_name">{{g_filter.get_card_price(item,card_list,1)}}</text> | |
| 319 | - </view> | |
| 320 | - </view> | |
| 321 | - </view> | |
| 322 | - </block> | |
| 323 | - <block wx:else> | |
| 324 | - <view class="money flex"> | |
| 325 | - <!-- 办卡价 --> | |
| 326 | - <view class="flex xc-wc"> | |
| 327 | - <view class="fs24 wz_red">¥</view> | |
| 328 | - <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 329 | - </view> | |
| 330 | - </view> | |
| 331 | - <view class="flex" style="line-height: 28rpx;"> | |
| 332 | - <!-- 原价 --> | |
| 333 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 334 | - <view class="fs22">¥</view> | |
| 335 | - <view class="fs22">{{item.market_price}}</view> | |
| 336 | - </view> | |
| 337 | - </view> | |
| 338 | - </block> | |
| 339 | - </block> | |
| 340 | - </block> | |
| 341 | - <block wx:else> | |
| 342 | - <view class='wz_red'>¥{{item.shop_price}}</view> | |
| 343 | - <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{item.market_price}}</view> | |
| 344 | - </block> | |
| 345 | - </block> | |
| 346 | - </view> | |
| 347 | - <!-- <view class='zs_wz5_2l' wx:if="{{object.goodsnum}}">销量:{{item.sales_sum}}件</view> --> | |
| 348 | - <view class="flex jc-sb ai-center"> | |
| 349 | - <view class='zs_wz5_x' wx:if="{{object.goodsnum}}">销量:{{item.sales_sum}}件</view> | |
| 350 | - | |
| 351 | - <!-- 购物车图标 --> | |
| 352 | - <view class="icon-box" wx:if="{{object.goodcaricon != 1}}"> | |
| 353 | - <!-- 系统图标 --> | |
| 354 | - <block wx:if="{{object.goodcaricon == 2}}"> | |
| 355 | - <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_1.png'}}" wx:if="{{object.stylecaricon == 1}}" mode="widthFix"></image> | |
| 356 | - <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_2.png'}}" wx:if="{{object.stylecaricon == 2}}" mode="widthFix"></image> | |
| 357 | - <text class="icon-text" wx:if="{{object.stylecaricon == 3}}">马上抢</text> | |
| 358 | - <text class="icon-text" wx:if="{{object.stylecaricon == 4}}">立即购买</text> | |
| 359 | - </block> | |
| 360 | - <!-- 自定义图标 --> | |
| 361 | - <block wx:if="{{object.goodcaricon == 3}}"> | |
| 362 | - <image class="icon icon2" src="{{object.customcaricon}}" mode="widthFix"></image> | |
| 363 | - </block> | |
| 364 | - </view> | |
| 365 | - </view> | |
| 366 | - | |
| 367 | - <view style="height: 10rpx;"></view> | |
| 592 | + </view> | |
| 593 | + <view class="flex" style="line-height: 28rpx;"> | |
| 594 | + <!-- 等级价 --> | |
| 595 | + <view class="price flex ai_and"> | |
| 596 | + <view class="fs22">¥</view> | |
| 597 | + <view class="fs28">{{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}}</view> | |
| 598 | + <view class="card_bg ellipsis-1"> | |
| 599 | + <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 600 | + <text class="card_name">{{g_filter.get_card_price(item,card_list,1)}}</text> | |
| 601 | + </view> | |
| 368 | 602 | </view> |
| 603 | + </view> | |
| 604 | + </block> | |
| 605 | + <block wx:else> | |
| 606 | + <view class="money flex"> | |
| 607 | + <!-- 办卡价 --> | |
| 608 | + <view class="flex xc-wc"> | |
| 609 | + <view class="fs24 wz_red">¥</view> | |
| 610 | + <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 611 | + </view> | |
| 612 | + </view> | |
| 613 | + <view class="flex" style="line-height: 28rpx;"> | |
| 614 | + <!-- 原价 --> | |
| 615 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 616 | + <view class="fs22">¥</view> | |
| 617 | + <view class="fs22">{{item.market_price}}</view> | |
| 618 | + </view> | |
| 619 | + </view> | |
| 620 | + </block> | |
| 621 | + </block> | |
| 622 | + </block> | |
| 623 | + | |
| 624 | + <block wx:else> | |
| 625 | + <view class='wz_red'>¥{{item.shop_price}}</view> | |
| 626 | + <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{item.market_price}}</view> | |
| 627 | + </block> | |
| 628 | + | |
| 629 | + </block> | |
| 630 | + | |
| 631 | + </view> | |
| 632 | + <!-- <view class='zs_wz5' wx:if="{{object.goodsnum}}">销量:{{item.sales_sum}}件</view> --> | |
| 633 | + <view class="flex jc-sb ai-center"> | |
| 634 | + <view class='zs_wz5_x' wx:if="{{object.goodsnum}}">销量:{{item.sales_sum}}件</view> | |
| 635 | + | |
| 636 | + <!-- 购物车图标 --> | |
| 637 | + <view class="icon-box" wx:if="{{object.goodcaricon != 1}}"> | |
| 638 | + <!-- 系统图标 --> | |
| 639 | + <block wx:if="{{object.goodcaricon == 2}}"> | |
| 640 | + <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_1.png'}}" wx:if="{{object.stylecaricon == 1}}" mode="widthFix"></image> | |
| 641 | + <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_2.png'}}" wx:if="{{object.stylecaricon == 2}}" mode="widthFix"></image> | |
| 642 | + <text class="icon-text" wx:if="{{object.stylecaricon == 3}}">马上抢</text> | |
| 643 | + <text class="icon-text" wx:if="{{object.stylecaricon == 4}}">立即购买</text> | |
| 644 | + </block> | |
| 645 | + <!-- 自定义图标 --> | |
| 646 | + <block wx:if="{{object.goodcaricon == 3}}"> | |
| 647 | + <image class="icon icon2" src="{{object.customcaricon}}" mode="widthFix"></image> | |
| 648 | + </block> | |
| 649 | + </view> | |
| 650 | + </view> | |
| 651 | + <view style="height: 10rpx;"></view> | |
| 652 | + </view> | |
| 653 | + </navigator> | |
| 654 | + </view> | |
| 655 | + <view style="height:20rpx"></view> | |
| 656 | + </block> | |
| 657 | + | |
| 658 | + </view> | |
| 659 | + <!--2个一列--> | |
| 660 | + <block wx:if="{{object.column==2}}"> | |
| 661 | + <block wx:for="{{goods_array}}"> | |
| 662 | + <navigator url="{{g_filter.get_url_by_type(item)}}" class="s1_gk_a1"> | |
| 663 | + <view class="zs_goods_wai_ban {{g_filter.get_border_type(object.big_order_type)}}"> | |
| 664 | + <view class="zs_goods_ban"> | |
| 665 | + <view class='zs_goods_2l'> | |
| 666 | + <view class='zs_top_2l rel'> | |
| 667 | + | |
| 668 | + <block wx:if="{{object.big_order_type==3}}"> | |
| 669 | + <view style="position: relative; width: 100%; height: 100%"> | |
| 670 | + <image class='zs_t_img_2l' src="{{object.pic_back}}" data-errorimg="object.pic_back" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 671 | + <image class="n_box" style="top: {{object.top}}%;left:{{object.left}}%;width: {{object.width}}%;height: {{object.width}}%" src="{{item.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 672 | + </view> | |
| 673 | + </block> | |
| 674 | + <block wx:else> | |
| 675 | + <image class='zs_t_img_2l' src="{{item.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 676 | + </block> | |
| 677 | + | |
| 678 | + <block wx:if="{{object.goodicon==3}}"> | |
| 679 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' src='{{object.customicon}}'></image> | |
| 680 | + </block> | |
| 681 | + <block wx:if="{{object.goodicon==1}}"> | |
| 682 | + <image class='{{g_filter.get_class(object.column,object.position)}}' src=''></image> | |
| 683 | + </block> | |
| 684 | + <block wx:if="{{object.goodicon==2}}"> | |
| 685 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==1}}" src='{{imghost}}/miniapp/images/Recommend.png'></image> | |
| 686 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==2 }}" src='{{imghost}}/miniapp/images/hot.png'></image> | |
| 687 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==3}}" src='{{imghost}}/miniapp/images/new.png'></image> | |
| 688 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==4 }}" src='{{imghost}}/miniapp/images/Promotion.png'></image> | |
| 689 | + </block> | |
| 690 | + </view> | |
| 691 | + | |
| 692 | + <view class='zs_center_2l'> | |
| 693 | + <view class='zs_wz1_2l ellipsis-2' wx:if="{{object.goodstit}}">{{item.goods_name}}</view> | |
| 694 | + <view class='zs_wz2_2l' wx:if="{{object.goodsprice}}"> | |
| 695 | + | |
| 696 | + <block wx:if="{{item.prom_price || item.prom_integral}}"> | |
| 697 | + <view class='wz_red'> | |
| 698 | + <text wx:if="{{item.prom_integral}}">{{item.prom_integral}}积分</text> | |
| 699 | + <text wx:if="{{item.prom_integral && item.prom_price}}">+</text> | |
| 700 | + <text wx:if="{{item.prom_price}}">¥{{item.prom_price}}</text> | |
| 369 | 701 | </view> |
| 702 | + <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{item.market_price}}</view> | |
| 703 | + </block> | |
| 704 | + <block wx:else> | |
| 705 | + <block wx:if="{{g_filter.is_has_rank(rank_switch,item)}}"> | |
| 706 | + <!-- 当会员是等级卡的时候 --> | |
| 707 | + <block wx:if="{{card_field}}"> | |
| 708 | + <!-- 等级价>0 --> | |
| 709 | + <block wx:if="{{item[card_field]>0}}"> | |
| 710 | + <view class="money flex"> | |
| 711 | + <!-- 办卡价 --> | |
| 712 | + <view class="flex xc-wc ai_and"> | |
| 713 | + <view class="fs24 wz_red">¥</view> | |
| 714 | + <view class="fs35 wz_red">{{filter.toFix(item[card_field],2)}}</view> | |
| 715 | + <view class="card_bg ellipsis-1"> | |
| 716 | + <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 717 | + <view class="card_name">{{card_name}}</view> | |
| 718 | + </view> | |
| 719 | + </view> | |
| 720 | + </view> | |
| 721 | + <view class="flex" style="line-height: 28rpx;"> | |
| 722 | + <!-- 原价 --> | |
| 723 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 724 | + <view class="fs22">¥</view> | |
| 725 | + <view class="fs22">{{item.market_price}}</view> | |
| 726 | + </view> | |
| 727 | + </view> | |
| 728 | + </block> | |
| 729 | + <block wx:else> | |
| 730 | + <view class="money flex"> | |
| 731 | + <!-- 办卡价 --> | |
| 732 | + <view class="flex xc-wc"> | |
| 733 | + <view class="fs24 wz_red">¥</view> | |
| 734 | + <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 735 | + </view> | |
| 736 | + </view> | |
| 737 | + <view class="flex" style="line-height: 28rpx;"> | |
| 738 | + <!-- 原价 --> | |
| 739 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 740 | + <view class="fs22">¥</view> | |
| 741 | + <view class="fs22">{{item.market_price}}</view> | |
| 742 | + </view> | |
| 743 | + </view> | |
| 744 | + </block> | |
| 745 | + </block> | |
| 746 | + <block wx:else> | |
| 747 | + <!-- 如果商品有设置等级价大于0的 --> | |
| 748 | + <block wx:if="{{g_filter.get_card_price(item,card_list,0) && is_no_plus}}"> | |
| 749 | + <view class="money flex"> | |
| 750 | + <!-- 办卡价 --> | |
| 751 | + <view class="flex xc-wc"> | |
| 752 | + <view class="fs24 wz_red">¥</view> | |
| 753 | + <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 754 | + </view> | |
| 755 | + <!-- 原价 --> | |
| 756 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 757 | + <view class="fs22">¥</view> | |
| 758 | + <view class="fs22">{{item.market_price}}</view> | |
| 759 | + </view> | |
| 760 | + | |
| 761 | + </view> | |
| 762 | + <view class="flex" style="line-height: 28rpx;"> | |
| 763 | + <!-- 等级价 --> | |
| 764 | + <view class="price flex ai_and"> | |
| 765 | + <view class="fs22">¥</view> | |
| 766 | + <view class="fs28">{{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}}</view> | |
| 767 | + <view class="card_bg ellipsis-1"> | |
| 768 | + <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 769 | + <text class="card_name">{{g_filter.get_card_price(item,card_list,1)}}</text> | |
| 770 | + </view> | |
| 771 | + </view> | |
| 772 | + </view> | |
| 773 | + </block> | |
| 774 | + <block wx:else> | |
| 775 | + <view class="money flex"> | |
| 776 | + <!-- 办卡价 --> | |
| 777 | + <view class="flex xc-wc"> | |
| 778 | + <view class="fs24 wz_red">¥</view> | |
| 779 | + <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 780 | + </view> | |
| 781 | + </view> | |
| 782 | + <view class="flex" style="line-height: 28rpx;"> | |
| 783 | + <!-- 原价 --> | |
| 784 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 785 | + <view class="fs22">¥</view> | |
| 786 | + <view class="fs22">{{item.market_price}}</view> | |
| 787 | + </view> | |
| 788 | + </view> | |
| 789 | + </block> | |
| 790 | + </block> | |
| 791 | + </block> | |
| 792 | + <block wx:else> | |
| 793 | + <view class='wz_red'>¥{{item.shop_price}}</view> | |
| 794 | + <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{item.market_price}}</view> | |
| 795 | + </block> | |
| 796 | + </block> | |
| 370 | 797 | </view> |
| 798 | + <!-- <view class='zs_wz5_2l' wx:if="{{object.goodsnum}}">销量:{{item.sales_sum}}件</view> --> | |
| 799 | + <view class="flex jc-sb ai-center"> | |
| 800 | + <view class='zs_wz5_x' wx:if="{{object.goodsnum}}">销量:{{item.sales_sum}}件</view> | |
| 371 | 801 | |
| 802 | + <!-- 购物车图标 --> | |
| 803 | + <view class="icon-box" wx:if="{{object.goodcaricon != 1}}"> | |
| 804 | + <!-- 系统图标 --> | |
| 805 | + <block wx:if="{{object.goodcaricon == 2}}"> | |
| 806 | + <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_1.png'}}" wx:if="{{object.stylecaricon == 1}}" mode="widthFix"></image> | |
| 807 | + <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_2.png'}}" wx:if="{{object.stylecaricon == 2}}" mode="widthFix"></image> | |
| 808 | + <text class="icon-text" wx:if="{{object.stylecaricon == 3}}">马上抢</text> | |
| 809 | + <text class="icon-text" wx:if="{{object.stylecaricon == 4}}">立即购买</text> | |
| 810 | + </block> | |
| 811 | + <!-- 自定义图标 --> | |
| 812 | + <block wx:if="{{object.goodcaricon == 3}}"> | |
| 813 | + <image class="icon icon2" src="{{object.customcaricon}}" mode="widthFix"></image> | |
| 814 | + </block> | |
| 815 | + </view> | |
| 816 | + </view> | |
| 817 | + | |
| 818 | + <view style="height: 10rpx;"></view> | |
| 819 | + </view> | |
| 372 | 820 | </view> |
| 373 | - </navigator> | |
| 821 | + </view> | |
| 822 | + | |
| 823 | + </view> | |
| 824 | + </navigator> | |
| 374 | 825 | </block> |
| 375 | 826 | <view class="clear"></view> |
| 376 | - </block> | |
| 377 | - <!--3个一列--> | |
| 378 | - <block wx:if='{{object.column==3}}'> | |
| 827 | + </block> | |
| 828 | + <!--3个一列--> | |
| 829 | + <block wx:if='{{object.column==3}}'> | |
| 379 | 830 | <view class="zwp_3 flex wrap"> |
| 380 | - <block wx:for="{{goods_array}}"> | |
| 381 | - <navigator url="{{g_filter.get_url_by_type(item)}}" class="s1_gk_a1"> | |
| 382 | - <view class="zs_goods_wai_san {{g_filter.get_border_type(object.big_order_type)}}"> | |
| 383 | - <view class="zs_goods_san"> | |
| 384 | - <view class='zs_goods_3l'> | |
| 385 | - <view class='zs_top_3l rel'> | |
| 386 | - <block wx:if="{{object.big_order_type==3}}"> | |
| 387 | - <view style="position: relative; width: 100%; height: 100%"> | |
| 388 | - <image class='zs_t_img_3l' src="{{object.pic_back}}" data-errorimg="object.pic_back" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 389 | - <image class="n_box" style="top: {{object.top}}%;left:{{object.left}}%;width: {{object.width}}%;height: {{object.width}}%" src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 390 | - </view> | |
| 391 | - </block> | |
| 392 | - <block wx:else> | |
| 393 | - <image class='zs_t_img_3l' src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 394 | - </block> | |
| 395 | - | |
| 396 | - <block wx:if="{{object.goodicon==3}}"> | |
| 397 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 398 | - class='{{g_filter.get_class(object.column,object.position)}}' src='{{object.customicon}}'></image> | |
| 399 | - </block> | |
| 400 | - <block wx:if="{{object.goodicon==1}}"> | |
| 401 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 402 | - class='{{g_filter.get_class(object.column,object.position)}}' src=''></image> | |
| 403 | - </block> | |
| 404 | - <block wx:if="{{object.goodicon==2}}"> | |
| 405 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 406 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==1}}" src='{{imghost}}/miniapp/images/Recommend.png'></image> | |
| 407 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 408 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==2 }}" src='{{imghost}}/miniapp/images/hot.png'></image> | |
| 409 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 410 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==3}}" src='{{imghost}}/miniapp/images/new.png'></image> | |
| 411 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 412 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==4 }}" src='{{imghost}}/miniapp/images/Promotion.png'></image> | |
| 413 | - </block> | |
| 831 | + <block wx:for="{{goods_array}}"> | |
| 832 | + <navigator url="{{g_filter.get_url_by_type(item)}}" class="s1_gk_a1"> | |
| 833 | + <view class="zs_goods_wai_san {{g_filter.get_border_type(object.big_order_type)}}"> | |
| 834 | + <view class="zs_goods_san"> | |
| 835 | + <view class='zs_goods_3l'> | |
| 836 | + <view class='zs_top_3l rel'> | |
| 837 | + <block wx:if="{{object.big_order_type==3}}"> | |
| 838 | + <view style="position: relative; width: 100%; height: 100%"> | |
| 839 | + <image class='zs_t_img_3l' src="{{object.pic_back}}" data-errorimg="object.pic_back" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 840 | + <image class="n_box" style="top: {{object.top}}%;left:{{object.left}}%;width: {{object.width}}%;height: {{object.width}}%" src="{{item.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 841 | + </view> | |
| 842 | + </block> | |
| 843 | + <block wx:else> | |
| 844 | + <image class='zs_t_img_3l' src="{{item.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 845 | + </block> | |
| 846 | + | |
| 847 | + <block wx:if="{{object.goodicon==3}}"> | |
| 848 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' src='{{object.customicon}}'></image> | |
| 849 | + </block> | |
| 850 | + <block wx:if="{{object.goodicon==1}}"> | |
| 851 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' src=''></image> | |
| 852 | + </block> | |
| 853 | + <block wx:if="{{object.goodicon==2}}"> | |
| 854 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==1}}" src='{{imghost}}/miniapp/images/Recommend.png'></image> | |
| 855 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==2 }}" src='{{imghost}}/miniapp/images/hot.png'></image> | |
| 856 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==3}}" src='{{imghost}}/miniapp/images/new.png'></image> | |
| 857 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==4 }}" src='{{imghost}}/miniapp/images/Promotion.png'></image> | |
| 858 | + </block> | |
| 859 | + </view> | |
| 860 | + <view class='zs_center_3l'> | |
| 861 | + | |
| 862 | + | |
| 863 | + <view class='zs_wz1_3l' wx:if="{{object.goodstit}}">{{item.goods_name}}</view> | |
| 864 | + <view class='zs_wz2_3l' wx:if="{{object.goodsprice}}"> | |
| 865 | + <block wx:if="{{item.prom_price || item.prom_integral}}"> | |
| 866 | + <view class='wz_red'> | |
| 867 | + <text wx:if="{{item.prom_integral}}">{{item.prom_integral}}积分</text> | |
| 868 | + <text wx:if="{{item.prom_integral && item.prom_price}}">+</text> | |
| 869 | + <text wx:if="{{item.prom_price}}">¥{{item.prom_price}}</text> | |
| 870 | + </view> | |
| 871 | + <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{item.market_price}}</view> | |
| 872 | + </block> | |
| 873 | + <block wx:else> | |
| 874 | + <block wx:if="{{g_filter.is_has_rank(rank_switch,item)}}"> | |
| 875 | + <!-- 当会员是等级卡的时候 --> | |
| 876 | + <block wx:if="{{card_field}}"> | |
| 877 | + <!-- 等级价>0 --> | |
| 878 | + <block wx:if="{{item[card_field]>0}}"> | |
| 879 | + <view class="money flex"> | |
| 880 | + <!-- 办卡价 --> | |
| 881 | + <view class="flex xc-wc ai_and"> | |
| 882 | + <view class="fs24 wz_red">¥</view> | |
| 883 | + <view class="fs35 wz_red">{{filter.toFix(item[card_field],2)}}</view> | |
| 884 | + <view class="card_bg ellipsis-1"> | |
| 885 | + <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 886 | + <text class="card_name">{{card_name}}</text> | |
| 887 | + </view> | |
| 888 | + </view> | |
| 889 | + </view> | |
| 890 | + <view class="flex" style="line-height: 28rpx;"> | |
| 891 | + <!-- 原价 --> | |
| 892 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 893 | + <view class="fs22">¥</view> | |
| 894 | + <view class="fs22">{{item.market_price}}</view> | |
| 895 | + </view> | |
| 896 | + </view> | |
| 897 | + </block> | |
| 898 | + <block wx:else> | |
| 899 | + <view class="money flex"> | |
| 900 | + <!-- 办卡价 --> | |
| 901 | + <view class="flex xc-wc"> | |
| 902 | + <view class="fs24 wz_red">¥</view> | |
| 903 | + <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 904 | + </view> | |
| 414 | 905 | </view> |
| 415 | - <view class='zs_center_3l'> | |
| 416 | - | |
| 417 | - | |
| 418 | - <view class='zs_wz1_3l' wx:if="{{object.goodstit}}">{{item.goods_name}}</view> | |
| 419 | - <view class='zs_wz2_3l' wx:if="{{object.goodsprice}}"> | |
| 420 | - <block wx:if="{{item.prom_price || item.prom_integral}}"> | |
| 421 | - <view class='wz_red'> | |
| 422 | - <text wx:if="{{item.prom_integral}}">{{item.prom_integral}}积分</text> | |
| 423 | - <text wx:if="{{item.prom_integral && item.prom_price}}">+</text> | |
| 424 | - <text wx:if="{{item.prom_price}}">¥{{item.prom_price}}</text> | |
| 425 | - </view> | |
| 426 | - <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{item.market_price}}</view> | |
| 427 | - </block> | |
| 428 | - <block wx:else> | |
| 429 | - <block wx:if="{{g_filter.is_has_rank(rank_switch,item)}}"> | |
| 430 | - <!-- 当会员是等级卡的时候 --> | |
| 431 | - <block wx:if="{{card_field}}"> | |
| 432 | - <!-- 等级价>0 --> | |
| 433 | - <block wx:if="{{item[card_field]>0}}"> | |
| 434 | - <view class="money flex"> | |
| 435 | - <!-- 办卡价 --> | |
| 436 | - <view class="flex xc-wc ai_and"> | |
| 437 | - <view class="fs24 wz_red">¥</view> | |
| 438 | - <view class="fs35 wz_red">{{filter.toFix(item[card_field],2)}}</view> | |
| 439 | - <view class="card_bg ellipsis-1"> | |
| 440 | - <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 441 | - <text class="card_name">{{card_name}}</text> | |
| 442 | - </view> | |
| 443 | - </view> | |
| 444 | - </view> | |
| 445 | - <view class="flex" style="line-height: 28rpx;"> | |
| 446 | - <!-- 原价 --> | |
| 447 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 448 | - <view class="fs22">¥</view> | |
| 449 | - <view class="fs22">{{item.market_price}}</view> | |
| 450 | - </view> | |
| 451 | - </view> | |
| 452 | - </block> | |
| 453 | - <block wx:else> | |
| 454 | - <view class="money flex"> | |
| 455 | - <!-- 办卡价 --> | |
| 456 | - <view class="flex xc-wc"> | |
| 457 | - <view class="fs24 wz_red">¥</view> | |
| 458 | - <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 459 | - </view> | |
| 460 | - </view> | |
| 461 | - <view class="flex" style="line-height: 28rpx;"> | |
| 462 | - <!-- 原价 --> | |
| 463 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 464 | - <view class="fs22">¥</view> | |
| 465 | - <view class="fs22">{{item.market_price}}</view> | |
| 466 | - </view> | |
| 467 | - </view> | |
| 468 | - </block> | |
| 469 | - </block> | |
| 470 | - <block wx:else> | |
| 471 | - <!-- 如果商品有设置等级价大于0的 --> | |
| 472 | - <block wx:if="{{g_filter.get_card_price(item,card_list,0) && is_no_plus}}"> | |
| 473 | - <view class="money flex"> | |
| 474 | - <!-- 办卡价 --> | |
| 475 | - <view class="flex xc-wc"> | |
| 476 | - <view class="fs24 wz_red">¥</view> | |
| 477 | - <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 478 | - </view> | |
| 479 | - <!-- 原价 --> | |
| 480 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 481 | - <view class="fs22">¥</view> | |
| 482 | - <view class="fs22">{{item.market_price}}</view> | |
| 483 | - </view> | |
| 484 | - | |
| 485 | - </view> | |
| 486 | - <view class="flex" style="line-height: 28rpx;"> | |
| 487 | - <!-- 等级价 --> | |
| 488 | - <view class="price flex ai_and"> | |
| 489 | - <view class="fs22">¥</view> | |
| 490 | - <view class="fs28">{{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}}</view> | |
| 491 | - <view class="card_bg ellipsis-1"> | |
| 492 | - <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 493 | - <text class="card_name">{{g_filter.get_card_price(item,card_list,1)}}</text> | |
| 494 | - </view> | |
| 495 | - </view> | |
| 496 | - </view> | |
| 497 | - </block> | |
| 498 | - <block wx:else> | |
| 499 | - <view class="money flex"> | |
| 500 | - <!-- 办卡价 --> | |
| 501 | - <view class="flex xc-wc"> | |
| 502 | - <view class="fs24 wz_red">¥</view> | |
| 503 | - <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 504 | - </view> | |
| 505 | - </view> | |
| 506 | - <view class="flex" style="line-height: 28rpx;"> | |
| 507 | - <!-- 原价 --> | |
| 508 | - <view class="price flex xc-ash line_th ~no_line_x"> | |
| 509 | - <view class="fs22">¥</view> | |
| 510 | - <view class="fs22">{{item.market_price}}</view> | |
| 511 | - </view> | |
| 512 | - </view> | |
| 513 | - </block> | |
| 514 | - </block> | |
| 515 | - </block> | |
| 516 | - <block wx:else> | |
| 517 | - <view class='wz_red'>¥{{item.shop_price}}</view> | |
| 518 | - <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{item.market_price}}</view> | |
| 519 | - </block> | |
| 520 | - </block> | |
| 906 | + <view class="flex" style="line-height: 28rpx;"> | |
| 907 | + <!-- 原价 --> | |
| 908 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 909 | + <view class="fs22">¥</view> | |
| 910 | + <view class="fs22">{{item.market_price}}</view> | |
| 911 | + </view> | |
| 912 | + </view> | |
| 913 | + </block> | |
| 914 | + </block> | |
| 915 | + <block wx:else> | |
| 916 | + <!-- 如果商品有设置等级价大于0的 --> | |
| 917 | + <block wx:if="{{g_filter.get_card_price(item,card_list,0) && is_no_plus}}"> | |
| 918 | + <view class="money flex"> | |
| 919 | + <!-- 办卡价 --> | |
| 920 | + <view class="flex xc-wc"> | |
| 921 | + <view class="fs24 wz_red">¥</view> | |
| 922 | + <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 923 | + </view> | |
| 924 | + <!-- 原价 --> | |
| 925 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 926 | + <view class="fs22">¥</view> | |
| 927 | + <view class="fs22">{{item.market_price}}</view> | |
| 928 | + </view> | |
| 929 | + | |
| 930 | + </view> | |
| 931 | + <view class="flex" style="line-height: 28rpx;"> | |
| 932 | + <!-- 等级价 --> | |
| 933 | + <view class="price flex ai_and"> | |
| 934 | + <view class="fs22">¥</view> | |
| 935 | + <view class="fs28">{{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}}</view> | |
| 936 | + <view class="card_bg ellipsis-1"> | |
| 937 | + <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 938 | + <text class="card_name">{{g_filter.get_card_price(item,card_list,1)}}</text> | |
| 521 | 939 | </view> |
| 522 | - <!-- <view class='zs_wz5_3l' wx:if="{{object.goodsnum}}">销量:{{item.sales_sum}}件</view> --> | |
| 523 | - <view class="flex jc-sb ai-center"> | |
| 524 | - <view class='zs_wz5_x' wx:if="{{object.goodsnum}}">销量:{{item.sales_sum}}件</view> | |
| 525 | - | |
| 526 | - <!-- 购物车图标 --> | |
| 527 | - <view class="icon-box" wx:if="{{object.goodcaricon != 1}}"> | |
| 528 | - <!-- 系统图标 --> | |
| 529 | - <block wx:if="{{object.goodcaricon == 2}}"> | |
| 530 | - <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_1.png'}}" wx:if="{{object.stylecaricon == 1}}" mode="widthFix"></image> | |
| 531 | - <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_2.png'}}" wx:if="{{object.stylecaricon == 2}}" mode="widthFix"></image> | |
| 532 | - <text class="icon-text" wx:if="{{object.stylecaricon == 3}}">马上抢</text> | |
| 533 | - <text class="icon-text" wx:if="{{object.stylecaricon == 4}}">立即购买</text> | |
| 534 | - </block> | |
| 535 | - <!-- 自定义图标 --> | |
| 536 | - <block wx:if="{{object.goodcaricon == 3}}"> | |
| 537 | - <image class="icon icon2" src="{{object.customcaricon}}" mode="widthFix"></image> | |
| 538 | - </block> | |
| 539 | - </view> | |
| 540 | - </view> | |
| 541 | - <view style="height: 10rpx;"></view> | |
| 940 | + </view> | |
| 542 | 941 | </view> |
| 543 | - </view> | |
| 942 | + </block> | |
| 943 | + <block wx:else> | |
| 944 | + <view class="money flex"> | |
| 945 | + <!-- 办卡价 --> | |
| 946 | + <view class="flex xc-wc"> | |
| 947 | + <view class="fs24 wz_red">¥</view> | |
| 948 | + <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 949 | + </view> | |
| 950 | + </view> | |
| 951 | + <view class="flex" style="line-height: 28rpx;"> | |
| 952 | + <!-- 原价 --> | |
| 953 | + <view class="price flex xc-ash line_th ~no_line_x"> | |
| 954 | + <view class="fs22">¥</view> | |
| 955 | + <view class="fs22">{{item.market_price}}</view> | |
| 956 | + </view> | |
| 957 | + </view> | |
| 958 | + </block> | |
| 959 | + </block> | |
| 960 | + </block> | |
| 961 | + <block wx:else> | |
| 962 | + <view class='wz_red'>¥{{item.shop_price}}</view> | |
| 963 | + <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{item.market_price}}</view> | |
| 964 | + </block> | |
| 965 | + </block> | |
| 966 | + </view> | |
| 967 | + <!-- <view class='zs_wz5_3l' wx:if="{{object.goodsnum}}">销量:{{item.sales_sum}}件</view> --> | |
| 968 | + <view class="flex jc-sb ai-center"> | |
| 969 | + <view class='zs_wz5_x' wx:if="{{object.goodsnum}}">销量:{{item.sales_sum}}件</view> | |
| 970 | + | |
| 971 | + <!-- 购物车图标 --> | |
| 972 | + <view class="icon-box" wx:if="{{object.goodcaricon != 1}}"> | |
| 973 | + <!-- 系统图标 --> | |
| 974 | + <block wx:if="{{object.goodcaricon == 2}}"> | |
| 975 | + <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_1.png'}}" wx:if="{{object.stylecaricon == 1}}" mode="widthFix"></image> | |
| 976 | + <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_2.png'}}" wx:if="{{object.stylecaricon == 2}}" mode="widthFix"></image> | |
| 977 | + <text class="icon-text" wx:if="{{object.stylecaricon == 3}}">马上抢</text> | |
| 978 | + <text class="icon-text" wx:if="{{object.stylecaricon == 4}}">立即购买</text> | |
| 979 | + </block> | |
| 980 | + <!-- 自定义图标 --> | |
| 981 | + <block wx:if="{{object.goodcaricon == 3}}"> | |
| 982 | + <image class="icon icon2" src="{{object.customcaricon}}" mode="widthFix"></image> | |
| 983 | + </block> | |
| 544 | 984 | </view> |
| 985 | + </view> | |
| 986 | + <view style="height: 10rpx;"></view> | |
| 545 | 987 | </view> |
| 546 | - </navigator> | |
| 547 | - </block> | |
| 988 | + </view> | |
| 989 | + </view> | |
| 990 | + </view> | |
| 991 | + </navigator> | |
| 992 | + </block> | |
| 548 | 993 | </view> |
| 549 | 994 | <view class="clear"></view> |
| 550 | - </block> | |
| 551 | - <!-- 列表显示 --> | |
| 552 | - <view class="zs_goods_xiao_wai" wx:if='{{object.column==4}}'> | |
| 995 | + </block> | |
| 996 | + <!-- 列表显示 --> | |
| 997 | + <view class="zs_goods_xiao_wai" wx:if='{{object.column==4}}'> | |
| 553 | 998 | <block wx:for="{{goods_array}}"> |
| 554 | - <navigator url="{{g_filter.get_url_by_type(item)}}" class="s1_gk_a1 {{object.noboder==0?'list_border':'' }}"> | |
| 555 | - <view class="zs_goods_xiao_bottom {{g_filter.get_border_type(object.big_order_type)}}"> | |
| 556 | - <view class='zs_top_x'> | |
| 557 | - <block wx:if="{{object.big_order_type==3}}"> | |
| 558 | - <view style="position: relative; width: 100%; height: 100%"> | |
| 559 | - <image class='zs_t_img_x' src="{{object.pic_back}}" data-errorimg="object.pic_back" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 560 | - <image class="n_box" style="top: {{object.top}}%;left:{{object.left}}%;width: {{object.width}}%;height: {{object.width}}%" src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 999 | + <navigator url="{{g_filter.get_url_by_type(item)}}" class="s1_gk_a1 {{object.noboder==0?'list_border':'' }}"> | |
| 1000 | + <view class="zs_goods_xiao_bottom {{g_filter.get_border_type(object.big_order_type)}}"> | |
| 1001 | + <view class='zs_top_x'> | |
| 1002 | + <block wx:if="{{object.big_order_type==3}}"> | |
| 1003 | + <view style="position: relative; width: 100%; height: 100%"> | |
| 1004 | + <image class='zs_t_img_x' src="{{object.pic_back}}" data-errorimg="object.pic_back" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 1005 | + <image class="n_box" style="top: {{object.top}}%;left:{{object.left}}%;width: {{object.width}}%;height: {{object.width}}%" src="{{item.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 1006 | + </view> | |
| 1007 | + </block> | |
| 1008 | + | |
| 1009 | + <block wx:else> | |
| 1010 | + <!-- 原来的 --> | |
| 1011 | + <!-- <image class="zs_t_img_x {{object.big_order_type==0?'zj':''}}{{object.big_order_type==1?'yj':''}}" | |
| 1012 | + src="{{item.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" lazy-load="true" | |
| 1013 | + binderror="bind_bnerr3" mode="widthFix" style='max-height:290rpx'></image> --> | |
| 1014 | + | |
| 1015 | + <!-- 2021.11.27修改 --> | |
| 1016 | + <image class="block zs_t_img_x {{object.big_order_type==0?'zj':''}}{{object.big_order_type==1?'yj':''}}" src="{{item.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 1017 | + </block> | |
| 1018 | + | |
| 1019 | + <block wx:if="{{object.goodicon==3}}"> | |
| 1020 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' src='{{object.customicon}}'></image> | |
| 1021 | + </block> | |
| 1022 | + <block wx:if="{{object.goodicon==1}}"> | |
| 1023 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' src=''></image> | |
| 1024 | + </block> | |
| 1025 | + <block wx:if="{{object.goodicon==2}}"> | |
| 1026 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==1}}" src='{{imghost}}/miniapp/images/Recommend.png'></image> | |
| 1027 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==2 }}" src='{{imghost}}/miniapp/images/hot.png'></image> | |
| 1028 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==3}}" src='{{imghost}}/miniapp/images/new.png'></image> | |
| 1029 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==4 }}" src='{{imghost}}/miniapp/images/Promotion.png'></image> | |
| 1030 | + </block> | |
| 1031 | + </view> | |
| 1032 | + <view class='zs_center_x'> | |
| 1033 | + <view class='zs_wz1_x ellipsis-2' style="width: 360rpx; margin-top: 10rpx" wx:if="{{object.goodstit}}">{{item.goods_name}}</view> | |
| 1034 | + <view class='zs_wz2_x' wx:if="{{object.goodsprice}}"> | |
| 1035 | + | |
| 1036 | + <block wx:if="{{item.prom_price || item.prom_integral}}"> | |
| 1037 | + <view class='wz_red'> | |
| 1038 | + <text wx:if="{{item.prom_integral}}">{{item.prom_integral}}积分</text> | |
| 1039 | + <text wx:if="{{item.prom_integral && item.prom_price}}">+</text> | |
| 1040 | + <text wx:if="{{item.prom_price}}">¥{{item.prom_price}}</text> | |
| 1041 | + </view> | |
| 1042 | + <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{item.market_price}}</view> | |
| 1043 | + </block> | |
| 1044 | + <!-- 不是活动的情况 --> | |
| 1045 | + <block wx:else> | |
| 1046 | + | |
| 1047 | + <block wx:if="{{g_filter.is_has_rank(rank_switch,item)}}"> | |
| 1048 | + <!-- 当会员是等级卡的时候 --> | |
| 1049 | + <block wx:if="{{card_field}}"> | |
| 1050 | + <!-- 等级价>0 --> | |
| 1051 | + <block wx:if="{{item[card_field]>0}}"> | |
| 1052 | + <view class="money flex"> | |
| 1053 | + <!-- 办卡价 --> | |
| 1054 | + <view class="flex xc-wc ai_and"> | |
| 1055 | + <view class="fs24 wz_red">¥</view> | |
| 1056 | + <view class="fs35 wz_red">{{filter.toFix(item[card_field],2)}}</view> | |
| 1057 | + <view class="card_bg ellipsis-1"> | |
| 1058 | + <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 1059 | + <text class="card_name">{{card_name}}</text> | |
| 1060 | + </view> | |
| 1061 | + </view> | |
| 1062 | + </view> | |
| 1063 | + <view class="flex" style="line-height: 28rpx;"> | |
| 1064 | + <!-- 原价 --> | |
| 1065 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 1066 | + <view class="fs22">¥</view> | |
| 1067 | + <view class="fs22">{{item.market_price}}</view> | |
| 561 | 1068 | </view> |
| 1069 | + </view> | |
| 562 | 1070 | </block> |
| 563 | - | |
| 564 | 1071 | <block wx:else> |
| 565 | - <!-- 原来的 --> | |
| 566 | - <!-- <image class="zs_t_img_x {{object.big_order_type==0?'zj':''}}{{object.big_order_type==1?'yj':''}}" | |
| 567 | - src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" lazy-load="true" | |
| 568 | - binderror="bind_bnerr3" mode="widthFix" style='max-height:290rpx'></image> --> | |
| 569 | - | |
| 570 | - <!-- 2021.11.27修改 --> | |
| 571 | - <image class="block zs_t_img_x {{object.big_order_type==0?'zj':''}}{{object.big_order_type==1?'yj':''}}" src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 1072 | + <view class="money flex"> | |
| 1073 | + <!-- 办卡价 --> | |
| 1074 | + <view class="flex xc-wc"> | |
| 1075 | + <view class="fs24">¥</view> | |
| 1076 | + <view class="fs35">{{filter.toFix(item.shop_price,2)}}</view> | |
| 1077 | + </view> | |
| 1078 | + </view> | |
| 1079 | + <view class="flex" style="line-height: 28rpx;"> | |
| 1080 | + <!-- 原价 --> | |
| 1081 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 1082 | + <view class="fs22">¥</view> | |
| 1083 | + <view class="fs22">{{item.market_price}}</view> | |
| 1084 | + </view> | |
| 1085 | + </view> | |
| 572 | 1086 | </block> |
| 1087 | + </block> | |
| 1088 | + <block wx:else> | |
| 1089 | + <!-- 如果商品有设置等级价大于0的 --> | |
| 1090 | + <block wx:if="{{g_filter.get_card_price(item,card_list,0)}}"> | |
| 1091 | + <view class="money flex"> | |
| 1092 | + <!-- 办卡价 --> | |
| 1093 | + <view class="flex xc-wc"> | |
| 1094 | + <view class="fs24">¥</view> | |
| 1095 | + <view class="fs35">{{filter.toFix(item.shop_price,2)}}</view> | |
| 1096 | + </view> | |
| 1097 | + <!-- 原价 --> | |
| 1098 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 1099 | + <view class="fs22">¥</view> | |
| 1100 | + <view class="fs22">{{item.market_price}}</view> | |
| 1101 | + </view> | |
| 573 | 1102 | |
| 574 | - <block wx:if="{{object.goodicon==3}}"> | |
| 575 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 576 | - class='{{g_filter.get_class(object.column,object.position)}}' src='{{object.customicon}}'></image> | |
| 577 | - </block> | |
| 578 | - <block wx:if="{{object.goodicon==1}}"> | |
| 579 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 580 | - class='{{g_filter.get_class(object.column,object.position)}}' src=''></image> | |
| 1103 | + </view> | |
| 1104 | + <view class="flex" style="line-height: 28rpx;"> | |
| 1105 | + <!-- 等级价 --> | |
| 1106 | + <view class="price flex ai_and"> | |
| 1107 | + <view class="fs22">¥</view> | |
| 1108 | + <view class="fs28">{{filter.toFix(g_filter.get_card_price(item,card_list,0),2) && is_no_plus}}</view> | |
| 1109 | + <view class="card_bg"> | |
| 1110 | + <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image>{{g_filter.get_card_price(item,card_list,1)}} | |
| 1111 | + </view> | |
| 1112 | + </view> | |
| 1113 | + </view> | |
| 581 | 1114 | </block> |
| 582 | - <block wx:if="{{object.goodicon==2}}"> | |
| 583 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 584 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==1}}" src='{{imghost}}/miniapp/images/Recommend.png'></image> | |
| 585 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 586 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==2 }}" src='{{imghost}}/miniapp/images/hot.png'></image> | |
| 587 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 588 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==3}}" src='{{imghost}}/miniapp/images/new.png'></image> | |
| 589 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 590 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==4 }}" src='{{imghost}}/miniapp/images/Promotion.png'></image> | |
| 1115 | + <block wx:else> | |
| 1116 | + <view class="money flex"> | |
| 1117 | + <!-- 办卡价 --> | |
| 1118 | + <view class="flex xc-wc"> | |
| 1119 | + <view class="fs24 wz_red">¥</view> | |
| 1120 | + <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 1121 | + </view> | |
| 1122 | + </view> | |
| 1123 | + <view class="flex" style="line-height: 28rpx;"> | |
| 1124 | + <!-- 原价 --> | |
| 1125 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 1126 | + <view class="fs22">¥</view> | |
| 1127 | + <view class="fs22">{{item.market_price}}</view> | |
| 1128 | + </view> | |
| 1129 | + </view> | |
| 591 | 1130 | </block> |
| 592 | - </view> | |
| 593 | - <view class='zs_center_x'> | |
| 594 | - <view class='zs_wz1_x ellipsis-2' style="width: 360rpx; margin-top: 10rpx" wx:if="{{object.goodstit}}">{{item.goods_name}}</view> | |
| 595 | - <view class='zs_wz2_x' wx:if="{{object.goodsprice}}"> | |
| 1131 | + </block> | |
| 1132 | + </block> | |
| 596 | 1133 | |
| 597 | - <block wx:if="{{item.prom_price || item.prom_integral}}"> | |
| 598 | - <view class='wz_red'> | |
| 599 | - <text wx:if="{{item.prom_integral}}">{{item.prom_integral}}积分</text> | |
| 600 | - <text wx:if="{{item.prom_integral && item.prom_price}}">+</text> | |
| 601 | - <text wx:if="{{item.prom_price}}">¥{{item.prom_price}}</text> | |
| 602 | - </view> | |
| 603 | - <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{item.market_price}}</view> | |
| 604 | - </block> | |
| 605 | - <!-- 不是活动的情况 --> | |
| 606 | - <block wx:else> | |
| 1134 | + <block wx:else> | |
| 1135 | + <view class='wz_red'>¥{{item.shop_price}}</view> | |
| 1136 | + <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{item.market_price}}</view> | |
| 1137 | + </block> | |
| 1138 | + | |
| 1139 | + </block> | |
| 1140 | + </view> | |
| 607 | 1141 | |
| 608 | - <block wx:if="{{g_filter.is_has_rank(rank_switch,item)}}"> | |
| 609 | - <!-- 当会员是等级卡的时候 --> | |
| 610 | - <block wx:if="{{card_field}}"> | |
| 611 | - <!-- 等级价>0 --> | |
| 612 | - <block wx:if="{{item[card_field]>0}}"> | |
| 613 | - <view class="money flex"> | |
| 614 | - <!-- 办卡价 --> | |
| 615 | - <view class="flex xc-wc ai_and"> | |
| 616 | - <view class="fs24 wz_red">¥</view> | |
| 617 | - <view class="fs35 wz_red">{{filter.toFix(item[card_field],2)}}</view> | |
| 618 | - <view class="card_bg ellipsis-1"> | |
| 619 | - <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 620 | - <text class="card_name">{{card_name}}</text> | |
| 621 | - </view> | |
| 622 | - </view> | |
| 623 | - </view> | |
| 624 | - <view class="flex" style="line-height: 28rpx;"> | |
| 625 | - <!-- 原价 --> | |
| 626 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 627 | - <view class="fs22">¥</view> | |
| 628 | - <view class="fs22">{{item.market_price}}</view> | |
| 629 | - </view> | |
| 630 | - </view> | |
| 631 | - </block> | |
| 632 | - <block wx:else> | |
| 633 | - <view class="money flex"> | |
| 634 | - <!-- 办卡价 --> | |
| 635 | - <view class="flex xc-wc"> | |
| 636 | - <view class="fs24">¥</view> | |
| 637 | - <view class="fs35">{{filter.toFix(item.shop_price,2)}}</view> | |
| 638 | - </view> | |
| 639 | - </view> | |
| 640 | - <view class="flex" style="line-height: 28rpx;"> | |
| 641 | - <!-- 原价 --> | |
| 642 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 643 | - <view class="fs22">¥</view> | |
| 644 | - <view class="fs22">{{item.market_price}}</view> | |
| 645 | - </view> | |
| 646 | - </view> | |
| 647 | - </block> | |
| 648 | - </block> | |
| 649 | - <block wx:else> | |
| 650 | - <!-- 如果商品有设置等级价大于0的 --> | |
| 651 | - <block wx:if="{{g_filter.get_card_price(item,card_list,0)}}"> | |
| 652 | - <view class="money flex"> | |
| 653 | - <!-- 办卡价 --> | |
| 654 | - <view class="flex xc-wc"> | |
| 655 | - <view class="fs24">¥</view> | |
| 656 | - <view class="fs35">{{filter.toFix(item.shop_price,2)}}</view> | |
| 657 | - </view> | |
| 658 | - <!-- 原价 --> | |
| 659 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 660 | - <view class="fs22">¥</view> | |
| 661 | - <view class="fs22">{{item.market_price}}</view> | |
| 662 | - </view> | |
| 663 | - | |
| 664 | - </view> | |
| 665 | - <view class="flex" style="line-height: 28rpx;"> | |
| 666 | - <!-- 等级价 --> | |
| 667 | - <view class="price flex ai_and"> | |
| 668 | - <view class="fs22">¥</view> | |
| 669 | - <view class="fs28">{{filter.toFix(g_filter.get_card_price(item,card_list,0),2) && is_no_plus}}</view> | |
| 670 | - <view class="card_bg"> | |
| 671 | - <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image>{{g_filter.get_card_price(item,card_list,1)}} | |
| 672 | - </view> | |
| 673 | - </view> | |
| 674 | - </view> | |
| 675 | - </block> | |
| 676 | - <block wx:else> | |
| 677 | - <view class="money flex"> | |
| 678 | - <!-- 办卡价 --> | |
| 679 | - <view class="flex xc-wc"> | |
| 680 | - <view class="fs24 wz_red">¥</view> | |
| 681 | - <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view> | |
| 682 | - </view> | |
| 683 | - </view> | |
| 684 | - <view class="flex" style="line-height: 28rpx;"> | |
| 685 | - <!-- 原价 --> | |
| 686 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 687 | - <view class="fs22">¥</view> | |
| 688 | - <view class="fs22">{{item.market_price}}</view> | |
| 689 | - </view> | |
| 690 | - </view> | |
| 691 | - </block> | |
| 692 | - </block> | |
| 693 | - </block> | |
| 694 | - | |
| 695 | - <block wx:else> | |
| 696 | - <view class='wz_red'>¥{{item.shop_price}}</view> | |
| 697 | - <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{item.market_price}}</view> | |
| 698 | - </block> | |
| 1142 | + <view class="flex jc-sb ai-center"> | |
| 1143 | + <view class='zs_wz5_x' wx:if="{{object.goodsnum}}">销量:{{item.sales_sum}}件</view> | |
| 699 | 1144 | |
| 700 | - </block> | |
| 701 | - </view> | |
| 702 | - | |
| 703 | - <view class="flex jc-sb ai-center"> | |
| 704 | - <view class='zs_wz5_x' wx:if="{{object.goodsnum}}">销量:{{item.sales_sum}}件</view> | |
| 705 | - | |
| 706 | - <!-- 购物车图标 --> | |
| 707 | - <view class="icon-box" wx:if="{{object.goodcaricon != 1}}"> | |
| 708 | - <!-- 系统图标 --> | |
| 709 | - <block wx:if="{{object.goodcaricon == 2}}"> | |
| 710 | - <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_1.png'}}" wx:if="{{object.stylecaricon == 1}}" mode="widthFix"></image> | |
| 711 | - <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_2.png'}}" wx:if="{{object.stylecaricon == 2}}" mode="widthFix"></image> | |
| 712 | - <text class="icon-text" wx:if="{{object.stylecaricon == 3}}">马上抢</text> | |
| 713 | - <text class="icon-text" wx:if="{{object.stylecaricon == 4}}">立即购买</text> | |
| 714 | - </block> | |
| 715 | - <!-- 自定义图标 --> | |
| 716 | - <block wx:if="{{object.goodcaricon == 3}}"> | |
| 717 | - <image class="icon icon2" src="{{object.customcaricon}}" mode="widthFix"></image> | |
| 718 | - </block> | |
| 719 | - </view> | |
| 720 | - </view> | |
| 721 | - | |
| 722 | - </view> | |
| 1145 | + <!-- 购物车图标 --> | |
| 1146 | + <view class="icon-box" wx:if="{{object.goodcaricon != 1}}"> | |
| 1147 | + <!-- 系统图标 --> | |
| 1148 | + <block wx:if="{{object.goodcaricon == 2}}"> | |
| 1149 | + <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_1.png'}}" wx:if="{{object.stylecaricon == 1}}" mode="widthFix"></image> | |
| 1150 | + <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_2.png'}}" wx:if="{{object.stylecaricon == 2}}" mode="widthFix"></image> | |
| 1151 | + <text class="icon-text" wx:if="{{object.stylecaricon == 3}}">马上抢</text> | |
| 1152 | + <text class="icon-text" wx:if="{{object.stylecaricon == 4}}">立即购买</text> | |
| 1153 | + </block> | |
| 1154 | + <!-- 自定义图标 --> | |
| 1155 | + <block wx:if="{{object.goodcaricon == 3}}"> | |
| 1156 | + <image class="icon icon2" src="{{object.customcaricon}}" mode="widthFix"></image> | |
| 1157 | + </block> | |
| 1158 | + </view> | |
| 723 | 1159 | </view> |
| 724 | - </navigator> | |
| 1160 | + | |
| 1161 | + </view> | |
| 1162 | + </view> | |
| 1163 | + </navigator> | |
| 725 | 1164 | </block> |
| 726 | 1165 | <view class="clear"></view> |
| 727 | - </view> | |
| 728 | - | |
| 729 | - | |
| 730 | - <!-- 商品的显示不是左右 --> | |
| 731 | - <block wx:if="{{object.column!=5}}"> | |
| 1166 | + </view> | |
| 1167 | + <!-- 商品的显示不是左右 --> | |
| 1168 | + <block wx:if="{{object.column!=5}}"> | |
| 732 | 1169 | <block wx:if="{{classstyle_id=='1' }}"> |
| 733 | - <view class="button-wrapper" wx:if="{{goods_btn.length!=0 }}" style="border: none"> | |
| 734 | - <button type="default" size="default" loading="{{loading}}" disabled="{{disabled}}" bindtap="setLoading" style="background-color: rgba(0,0,0,0);border:none"> | |
| 735 | - {{loadText}} | |
| 736 | - </button> | |
| 737 | - </view> | |
| 1170 | + <view class="button-wrapper" wx:if="{{goods_btn.length!=0 }}" style="border: none"> | |
| 1171 | + <button type="default" size="default" loading="{{loading}}" disabled="{{disabled}}" bindtap="setLoading" style="background-color: rgba(0,0,0,0);border:none"> | |
| 1172 | + {{loadText}} | |
| 1173 | + </button> | |
| 1174 | + </view> | |
| 738 | 1175 | </block> |
| 739 | 1176 | <block wx:if="{{classstyle_id!='1' }}"> |
| 740 | - <view class="button-wrapper" wx:if="{{object.goodscount * page <total }}" style="border: none"> | |
| 741 | - <button type="default" size="default" loading="{{loading}}" disabled="{{disabled}}" bindtap="setLoading" style="background-color: rgba(0,0,0,0);border:none">{{loadText}}</button> | |
| 742 | - </view> | |
| 743 | -<!-- <view class="fs28" wx:if="{{object.goodscount * page >=total }}" style="color:{{object.nomore_color}};text-align: center; padding: 20rpx 0">-- 没有更多 -- </view>--> | |
| 1177 | + <view class="button-wrapper" wx:if="{{object.goodscount * page <total }}" style="border: none"> | |
| 1178 | + <button type="default" size="default" loading="{{loading}}" disabled="{{disabled}}" bindtap="setLoading" style="background-color: rgba(0,0,0,0);border:none">{{loadText}}</button> | |
| 1179 | + </view> | |
| 1180 | + <!-- <view class="fs28" wx:if="{{object.goodscount * page >=total }}" style="color:{{object.nomore_color}};text-align: center; padding: 20rpx 0">-- 没有更多 -- </view>--> | |
| 744 | 1181 | |
| 745 | 1182 | </block> |
| 746 | - </block> | |
| 1183 | + </block> | |
| 1184 | + <!--商品展示--> | |
| 1185 | + <swiper class="s_prom" indicator-active-color='red' indicator-dots="false" wx:if="{{object.column==5}}" style="height: {{swiper_hei}}rpx;"> | |
| 1186 | + <view class="sp"> | |
| 1187 | + <swiper-item class="s_it" wx:for="{{goods_array}}"> | |
| 1188 | + <block wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind"> | |
| 1189 | + <navigator url="{{g_filter.get_url_by_type(aitem)}}" style="width: 32%"> | |
| 1190 | + <view class="one {{object.big_order_type==0?'zj':''}}{{object.big_order_type==1?'yj':''}} " style="margin-left: 10rpx"> | |
| 1191 | + <view class='sp_top'> | |
| 1192 | + <view class='s_img' style="position: relative; width: 100%"> | |
| 747 | 1193 | |
| 1194 | + <block wx:if="{{object.big_order_type==3}}"> | |
| 1195 | + <view style="position: relative; width: 100%; height: 100%"> | |
| 1196 | + <image src="{{object.pic_back}}" data-errorimg="object.pic_back" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 748 | 1197 | |
| 749 | - <!--商品展示--> | |
| 750 | - <swiper class="s_prom" indicator-active-color='red' indicator-dots="false" wx:if="{{object.column==5}}" style="height: {{swiper_hei}}rpx;"> | |
| 751 | - <view class="sp"> | |
| 752 | - <swiper-item class="s_it" wx:for="{{goods_array}}"> | |
| 753 | - <block wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind"> | |
| 754 | - <navigator url="{{g_filter.get_url_by_type(aitem)}}" style="width: 32%"> | |
| 755 | - <view class="one {{object.big_order_type==0?'zj':''}}{{object.big_order_type==1?'yj':''}} " style="margin-left: 10rpx"> | |
| 756 | - <view class='sp_top'> | |
| 757 | - <view class='s_img' style="position: relative; width: 100%"> | |
| 758 | - | |
| 759 | - <block wx:if="{{object.big_order_type==3}}"> | |
| 760 | - <view style="position: relative; width: 100%; height: 100%"> | |
| 761 | - <image src="{{object.pic_back}}" data-errorimg="object.pic_back" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 762 | - | |
| 763 | - <image class="n_box" style="top: {{object.top}}%;left:{{object.left}}%;width: {{object.width}}%;height: {{object.width}}%" src="{{aitem.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 764 | - </view> | |
| 765 | - </block> | |
| 766 | - | |
| 767 | - <block wx:else> | |
| 768 | - <image src="{{aitem.goods_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].goods_img" binderror="bind_bnerr3" lazy-load="true" style="width: 100%"></image> | |
| 769 | - </block> | |
| 770 | - | |
| 771 | - | |
| 772 | - <block wx:if="{{object.goodicon==3}}"> | |
| 773 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 774 | - class='{{g_filter.get_class(object.column,object.position)}}' src='{{object.customicon}}'></image> | |
| 775 | - </block> | |
| 776 | - <block wx:if="{{object.goodicon==1}}"> | |
| 777 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 778 | - class='{{g_filter.get_class(object.column,object.position)}}' src=''></image> | |
| 779 | - </block> | |
| 780 | - <block wx:if="{{object.goodicon==2}}"> | |
| 781 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 782 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==1}}" src='{{imghost}}/miniapp/images/Recommend.png'></image> | |
| 783 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 784 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==2 }}" src='{{imghost}}/miniapp/images/hot.png'></image> | |
| 785 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 786 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==3}}" src='{{imghost}}/miniapp/images/new.png'></image> | |
| 787 | - <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" | |
| 788 | - class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==4 }}" src='{{imghost}}/miniapp/images/Promotion.png'></image> | |
| 789 | - </block> | |
| 1198 | + <image class="n_box" style="top: {{object.top}}%;left:{{object.left}}%;width: {{object.width}}%;height: {{object.width}}%" src="{{aitem.goods_img}}" data-errorimg="goods_array[{{aind}}].goods_img" lazy-load="true" binderror="bind_bnerr3"></image> | |
| 1199 | + </view> | |
| 1200 | + </block> | |
| 1201 | + | |
| 1202 | + <block wx:else> | |
| 1203 | + <image src="{{aitem.goods_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].goods_img" binderror="bind_bnerr3" lazy-load="true" style="width: 100%"></image> | |
| 1204 | + </block> | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + <block wx:if="{{object.goodicon==3}}"> | |
| 1208 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' src='{{object.customicon}}'></image> | |
| 1209 | + </block> | |
| 1210 | + <block wx:if="{{object.goodicon==1}}"> | |
| 1211 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' src=''></image> | |
| 1212 | + </block> | |
| 1213 | + <block wx:if="{{object.goodicon==2}}"> | |
| 1214 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==1}}" src='{{imghost}}/miniapp/images/Recommend.png'></image> | |
| 1215 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==2 }}" src='{{imghost}}/miniapp/images/hot.png'></image> | |
| 1216 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==3}}" src='{{imghost}}/miniapp/images/new.png'></image> | |
| 1217 | + <image style="width: {{object.icon_width*1.2}}rpx;height: {{object.icon_width*1.2}}rpx" class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==4 }}" src='{{imghost}}/miniapp/images/Promotion.png'></image> | |
| 1218 | + </block> | |
| 1219 | + | |
| 1220 | + </view> | |
| 1221 | + <view class='clear'></view> | |
| 1222 | + </view> | |
| 790 | 1223 | |
| 1224 | + <view class='sp_wz'> | |
| 1225 | + <view class='zs_wz1_3l' wx:if="{{object.goodstit}}">{{aitem.goods_name}}</view> | |
| 1226 | + <view class='zs_wz2_3l' wx:if="{{object.goodsprice}}"> | |
| 1227 | + <block wx:if="{{aitem.prom_price || aitem.prom_integral }}"> | |
| 1228 | + <view class='wz_red'> | |
| 1229 | + <text wx:if="{{aitem.prom_integral}}">{{aitem.prom_integral}}</text> | |
| 1230 | + <text wx:if="{{aitem.prom_integral && aitem.prom_price}}">+</text> | |
| 1231 | + <text wx:if="{{aitem.prom_price}}">¥{{aitem.prom_price}}</text> | |
| 1232 | + </view> | |
| 1233 | + <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{aitem.market_price}}</view> | |
| 1234 | + </block> | |
| 1235 | + <block wx:else> | |
| 1236 | + <block wx:if="{{g_filter.is_has_rank(rank_switch,aitem)}}"> | |
| 1237 | + <!-- 当会员是等级卡的时候 --> | |
| 1238 | + <block wx:if="{{card_field}}"> | |
| 1239 | + <!-- 等级价>0 --> | |
| 1240 | + <block wx:if="{{aitem[card_field]>0}}"> | |
| 1241 | + <view class="money flex"> | |
| 1242 | + <!-- 办卡价 --> | |
| 1243 | + <view class="flex xc-wc ai_and"> | |
| 1244 | + <view class="fs24 wz_red">¥</view> | |
| 1245 | + <view class="fs35 wz_red">{{filter.toFix(aitem[card_field],2)}}</view> | |
| 1246 | + <view class="card_bg ellipsis-1"> | |
| 1247 | + <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 1248 | + <text class="card_name">{{card_name}}</text> | |
| 1249 | + </view> | |
| 1250 | + </view> | |
| 1251 | + </view> | |
| 1252 | + <view class="flex" style="line-height: 28rpx;"> | |
| 1253 | + <!-- 原价 --> | |
| 1254 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 1255 | + <view class="fs22">¥</view> | |
| 1256 | + <view class="fs22">{{aitem.market_price}}</view> | |
| 1257 | + </view> | |
| 1258 | + </view> | |
| 1259 | + </block> | |
| 1260 | + <block wx:else> | |
| 1261 | + <view class="money flex"> | |
| 1262 | + <!-- 办卡价 --> | |
| 1263 | + <view class="flex xc-wc"> | |
| 1264 | + <view class="fs24 wz_red">¥</view> | |
| 1265 | + <view class="fs35 wz_red">{{filter.toFix(aitem.shop_price,2)}}</view> | |
| 1266 | + </view> | |
| 1267 | + </view> | |
| 1268 | + <view class="flex" style="line-height: 28rpx;"> | |
| 1269 | + <!-- 原价 --> | |
| 1270 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 1271 | + <view class="fs22">¥</view> | |
| 1272 | + <view class="fs22">{{aitem.market_price}}</view> | |
| 1273 | + </view> | |
| 1274 | + </view> | |
| 1275 | + </block> | |
| 1276 | + </block> | |
| 1277 | + <block wx:else> | |
| 1278 | + <!-- 如果商品有设置等级价大于0的 --> | |
| 1279 | + <block wx:if="{{g_filter.get_card_price(aitem,card_list,0) && is_no_plus}}"> | |
| 1280 | + <view class="money flex"> | |
| 1281 | + <!-- 办卡价 --> | |
| 1282 | + <view class="flex xc-wc"> | |
| 1283 | + <view class="fs24 wz_red">¥</view> | |
| 1284 | + <view class="fs35 wz_red">{{filter.toFix(aitem.shop_price,2)}}</view> | |
| 1285 | + </view> | |
| 1286 | + <!-- 原价 --> | |
| 1287 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 1288 | + <view class="fs22">¥</view> | |
| 1289 | + <view class="fs22">{{aitem.market_price}}</view> | |
| 791 | 1290 | </view> |
| 792 | - <view class='clear'></view> | |
| 793 | - </view> | |
| 794 | 1291 | |
| 795 | - <view class='sp_wz'> | |
| 796 | - <view class='zs_wz1_3l' wx:if="{{object.goodstit}}">{{aitem.goods_name}}</view> | |
| 797 | - <view class='zs_wz2_3l' wx:if="{{object.goodsprice}}"> | |
| 798 | - <block wx:if="{{aitem.prom_price || aitem.prom_integral }}"> | |
| 799 | - <view class='wz_red'> | |
| 800 | - <text wx:if="{{aitem.prom_integral}}">{{aitem.prom_integral}}</text> | |
| 801 | - <text wx:if="{{aitem.prom_integral && aitem.prom_price}}">+</text> | |
| 802 | - <text wx:if="{{aitem.prom_price}}">¥{{aitem.prom_price}}</text> | |
| 803 | - </view> | |
| 804 | - <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{aitem.market_price}}</view> | |
| 805 | - </block> | |
| 806 | - <block wx:else> | |
| 807 | - <block wx:if="{{g_filter.is_has_rank(rank_switch,aitem)}}"> | |
| 808 | - <!-- 当会员是等级卡的时候 --> | |
| 809 | - <block wx:if="{{card_field}}"> | |
| 810 | - <!-- 等级价>0 --> | |
| 811 | - <block wx:if="{{aitem[card_field]>0}}"> | |
| 812 | - <view class="money flex"> | |
| 813 | - <!-- 办卡价 --> | |
| 814 | - <view class="flex xc-wc ai_and"> | |
| 815 | - <view class="fs24 wz_red">¥</view> | |
| 816 | - <view class="fs35 wz_red">{{filter.toFix(aitem[card_field],2)}}</view> | |
| 817 | - <view class="card_bg ellipsis-1"> | |
| 818 | - <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 819 | - <text class="card_name">{{card_name}}</text> | |
| 820 | - </view> | |
| 821 | - </view> | |
| 822 | - </view> | |
| 823 | - <view class="flex" style="line-height: 28rpx;"> | |
| 824 | - <!-- 原价 --> | |
| 825 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 826 | - <view class="fs22">¥</view> | |
| 827 | - <view class="fs22">{{aitem.market_price}}</view> | |
| 828 | - </view> | |
| 829 | - </view> | |
| 830 | - </block> | |
| 831 | - <block wx:else> | |
| 832 | - <view class="money flex"> | |
| 833 | - <!-- 办卡价 --> | |
| 834 | - <view class="flex xc-wc"> | |
| 835 | - <view class="fs24 wz_red">¥</view> | |
| 836 | - <view class="fs35 wz_red">{{filter.toFix(aitem.shop_price,2)}}</view> | |
| 837 | - </view> | |
| 838 | - </view> | |
| 839 | - <view class="flex" style="line-height: 28rpx;"> | |
| 840 | - <!-- 原价 --> | |
| 841 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 842 | - <view class="fs22">¥</view> | |
| 843 | - <view class="fs22">{{aitem.market_price}}</view> | |
| 844 | - </view> | |
| 845 | - </view> | |
| 846 | - </block> | |
| 847 | - </block> | |
| 848 | - <block wx:else> | |
| 849 | - <!-- 如果商品有设置等级价大于0的 --> | |
| 850 | - <block wx:if="{{g_filter.get_card_price(aitem,card_list,0) && is_no_plus}}"> | |
| 851 | - <view class="money flex"> | |
| 852 | - <!-- 办卡价 --> | |
| 853 | - <view class="flex xc-wc"> | |
| 854 | - <view class="fs24 wz_red">¥</view> | |
| 855 | - <view class="fs35 wz_red">{{filter.toFix(aitem.shop_price,2)}}</view> | |
| 856 | - </view> | |
| 857 | - <!-- 原价 --> | |
| 858 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 859 | - <view class="fs22">¥</view> | |
| 860 | - <view class="fs22">{{aitem.market_price}}</view> | |
| 861 | - </view> | |
| 862 | - | |
| 863 | - </view> | |
| 864 | - <view class="flex" style="line-height: 28rpx;"> | |
| 865 | - <!-- 等级价 --> | |
| 866 | - <view class="price flex ai_and"> | |
| 867 | - <view class="fs22">¥</view> | |
| 868 | - <view class="fs28">{{filter.toFix(g_filter.get_card_price(aitem,card_list,0),2)}}</view> | |
| 869 | - <view class="card_bg ellipsis-1"> | |
| 870 | - <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 871 | - <text class="card_name">{{g_filter.get_card_price(aitem,card_list,1)}}</text> | |
| 872 | - </view> | |
| 873 | - </view> | |
| 874 | - </view> | |
| 875 | - </block> | |
| 876 | - <block wx:else> | |
| 877 | - <view class="money flex"> | |
| 878 | - <!-- 办卡价 --> | |
| 879 | - <view class="flex xc-wc"> | |
| 880 | - <view class="fs24 wz_red">¥</view> | |
| 881 | - <view class="fs35 wz_red">{{filter.toFix(aitem.shop_price,2)}}</view> | |
| 882 | - </view> | |
| 883 | - </view> | |
| 884 | - <view class="flex" style="line-height: 28rpx;"> | |
| 885 | - <!-- 原价 --> | |
| 886 | - <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 887 | - <view class="fs22">¥</view> | |
| 888 | - <view class="fs22">{{aitem.market_price}}</view> | |
| 889 | - </view> | |
| 890 | - </view> | |
| 891 | - </block> | |
| 892 | - </block> | |
| 893 | - </block> | |
| 894 | - <block wx:else> | |
| 895 | - <view class='wz_red'>¥{{aitem.shop_price}}</view> | |
| 896 | - <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{aitem.market_price}}</view> | |
| 897 | - </block> | |
| 898 | - </block> | |
| 1292 | + </view> | |
| 1293 | + <view class="flex" style="line-height: 28rpx;"> | |
| 1294 | + <!-- 等级价 --> | |
| 1295 | + <view class="price flex ai_and"> | |
| 1296 | + <view class="fs22">¥</view> | |
| 1297 | + <view class="fs28">{{filter.toFix(g_filter.get_card_price(aitem,card_list,0),2)}}</view> | |
| 1298 | + <view class="card_bg ellipsis-1"> | |
| 1299 | + <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image> | |
| 1300 | + <text class="card_name">{{g_filter.get_card_price(aitem,card_list,1)}}</text> | |
| 1301 | + </view> | |
| 899 | 1302 | </view> |
| 900 | - <!-- <view class='zs_wz5_3l' wx:if="{{object.goodsnum}}">销量:{{aitem.sales_sum}}件</view> --> | |
| 901 | - <view class="flex jc-sb ai-center"> | |
| 902 | - <view class='zs_wz5_x' wx:if="{{object.goodsnum}}">销量:{{aitem.sales_sum}}件</view> | |
| 903 | - | |
| 904 | - <!-- 购物车图标 --> | |
| 905 | - <view class="icon-box" wx:if="{{object.goodcaricon != 1}}"> | |
| 906 | - <!-- 系统图标 --> | |
| 907 | - <block wx:if="{{object.goodcaricon == 2}}"> | |
| 908 | - <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_1.png'}}" wx:if="{{object.stylecaricon == 1}}" mode="widthFix"></image> | |
| 909 | - <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_2.png'}}" wx:if="{{object.stylecaricon == 2}}" mode="widthFix"></image> | |
| 910 | - <text class="icon-text" wx:if="{{object.stylecaricon == 3}}">马上抢</text> | |
| 911 | - <text class="icon-text" wx:if="{{object.stylecaricon == 4}}">立即购买</text> | |
| 912 | - </block> | |
| 913 | - <!-- 自定义图标 --> | |
| 914 | - <block wx:if="{{object.goodcaricon == 3}}"> | |
| 915 | - <image class="icon icon2" src="{{object.customcaricon}}" mode="widthFix"></image> | |
| 916 | - </block> | |
| 917 | - </view> | |
| 918 | - </view> | |
| 919 | - <view style="height: 10rpx;"></view> | |
| 920 | - </view> | |
| 1303 | + </view> | |
| 1304 | + </block> | |
| 1305 | + <block wx:else> | |
| 1306 | + <view class="money flex"> | |
| 1307 | + <!-- 办卡价 --> | |
| 1308 | + <view class="flex xc-wc"> | |
| 1309 | + <view class="fs24 wz_red">¥</view> | |
| 1310 | + <view class="fs35 wz_red">{{filter.toFix(aitem.shop_price,2)}}</view> | |
| 1311 | + </view> | |
| 1312 | + </view> | |
| 1313 | + <view class="flex" style="line-height: 28rpx;"> | |
| 1314 | + <!-- 原价 --> | |
| 1315 | + <view wx:if="{{is_retail_price}}" class="price flex xc-ash line_th ~no_line_x"> | |
| 1316 | + <view class="fs22">¥</view> | |
| 1317 | + <view class="fs22">{{aitem.market_price}}</view> | |
| 1318 | + </view> | |
| 1319 | + </view> | |
| 1320 | + </block> | |
| 1321 | + </block> | |
| 1322 | + </block> | |
| 1323 | + <block wx:else> | |
| 1324 | + <view class='wz_red'>¥{{aitem.shop_price}}</view> | |
| 1325 | + <view wx:if="{{is_retail_price}}" class='del ~no_line_x'>¥{{aitem.market_price}}</view> | |
| 1326 | + </block> | |
| 1327 | + </block> | |
| 1328 | + </view> | |
| 1329 | + <!-- <view class='zs_wz5_3l' wx:if="{{object.goodsnum}}">销量:{{aitem.sales_sum}}件</view> --> | |
| 1330 | + <view class="flex jc-sb ai-center"> | |
| 1331 | + <view class='zs_wz5_x' wx:if="{{object.goodsnum}}">销量:{{aitem.sales_sum}}件</view> | |
| 921 | 1332 | |
| 922 | - </view> | |
| 923 | - </navigator> | |
| 924 | - </block> | |
| 925 | - </swiper-item> | |
| 926 | - </view> | |
| 927 | - </swiper> | |
| 1333 | + <!-- 购物车图标 --> | |
| 1334 | + <view class="icon-box" wx:if="{{object.goodcaricon != 1}}"> | |
| 1335 | + <!-- 系统图标 --> | |
| 1336 | + <block wx:if="{{object.goodcaricon == 2}}"> | |
| 1337 | + <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_1.png'}}" wx:if="{{object.stylecaricon == 1}}" mode="widthFix"></image> | |
| 1338 | + <image class="icon" src="{{url + '/miniapp/images/cart/group_goods_car_2.png'}}" wx:if="{{object.stylecaricon == 2}}" mode="widthFix"></image> | |
| 1339 | + <text class="icon-text" wx:if="{{object.stylecaricon == 3}}">马上抢</text> | |
| 1340 | + <text class="icon-text" wx:if="{{object.stylecaricon == 4}}">立即购买</text> | |
| 1341 | + </block> | |
| 1342 | + <!-- 自定义图标 --> | |
| 1343 | + <block wx:if="{{object.goodcaricon == 3}}"> | |
| 1344 | + <image class="icon icon2" src="{{object.customcaricon}}" mode="widthFix"></image> | |
| 1345 | + </block> | |
| 1346 | + </view> | |
| 1347 | + </view> | |
| 1348 | + <view style="height: 10rpx;"></view> | |
| 1349 | + </view> | |
| 928 | 1350 | |
| 929 | -</view> | |
| 930 | -<view class="nodata-title" wx:elif="{{is_get}}">暂无数据</view> | |
| 931 | -<view class="flex jcc loader" wx:else> | |
| 932 | - <image style="width: 40rpx; height: 40rpx; " src="{{url}}/miniapp/images/loader.gif"></image> | |
| 933 | -</view> | |
| 1351 | + </view> | |
| 1352 | + </navigator> | |
| 1353 | + </block> | |
| 1354 | + </swiper-item> | |
| 1355 | + </view> | |
| 1356 | + </swiper> | |
| 1357 | + </view> | |
| 1358 | + <view class="nodata-title" wx:elif="{{is_get}}">暂无数据</view> | |
| 1359 | + <view class="flex jcc loader" wx:else> | |
| 1360 | + <image style="width: 40rpx; height: 40rpx; " src="{{url}}/miniapp/images/loader.gif"></image> | |
| 1361 | + </view> | |
| 1362 | + </block> | |
| 934 | 1363 | </view> |
| 935 | 1364 | \ No newline at end of file | ... | ... |
components/diy_goodsGroup/diy_goodsGroup.wxss
| ... | ... | @@ -919,3 +919,291 @@ top: 10rpx; |
| 919 | 919 | .jcc{ justify-content: center;} |
| 920 | 920 | .loader{ width:750rpx; margin:20rpx 0} |
| 921 | 921 | |
| 922 | +.ellipsis-2n { | |
| 923 | + | |
| 924 | + /* height: 97rpx; */ | |
| 925 | + overflow: hidden; | |
| 926 | + text-overflow: ellipsis; | |
| 927 | + display: -webkit-box; | |
| 928 | + -webkit-box-orient: vertical; | |
| 929 | + -webkit-line-clamp: 2; | |
| 930 | +} | |
| 931 | +.pdlf10{ | |
| 932 | + padding: 0 10rpx; | |
| 933 | +} | |
| 934 | +.new_item1{ | |
| 935 | + width: 100%; | |
| 936 | + overflow: hidden; | |
| 937 | +} | |
| 938 | + | |
| 939 | +.new_item1_image{ | |
| 940 | + width: 100%; | |
| 941 | + /* max-width: 100%; | |
| 942 | + max-height: 100%; */ | |
| 943 | +} | |
| 944 | +.new_item1_time{ | |
| 945 | + height: 50rpx; | |
| 946 | + background: #f23030; | |
| 947 | + color: #fff; | |
| 948 | + /* font-size: 25rpx; */ | |
| 949 | + font-size: 24rpx; | |
| 950 | + display: flex; | |
| 951 | + justify-content: space-between; | |
| 952 | + align-items: center; | |
| 953 | + opacity:.8; | |
| 954 | + /* padding: 0rpx 30rpx; */ | |
| 955 | + | |
| 956 | +} | |
| 957 | +.new_item1_time image{ | |
| 958 | + width: 188rpx; | |
| 959 | + height: 52rpx; | |
| 960 | +} | |
| 961 | +.new_item1_goods_name{ | |
| 962 | + padding: 10rpx 10rpx 0rpx; | |
| 963 | + /* font-size: 26rpx; */ | |
| 964 | + font-size: 28rpx; | |
| 965 | + width: 100%; | |
| 966 | + box-sizing: border-box; | |
| 967 | + color: #333333; | |
| 968 | +} | |
| 969 | +.new_item1_price{ | |
| 970 | + display: flex; | |
| 971 | + /* padding: 0 10rpx; */ | |
| 972 | + align-items: center; | |
| 973 | + justify-content: space-between; | |
| 974 | + /* font-size: 26rpx; */ | |
| 975 | + font-size: 24rpx; | |
| 976 | + padding: 0 10rpx 10rpx; | |
| 977 | +} | |
| 978 | +.clor{ | |
| 979 | + /* color: rgba(196, 24, 45, 1); */ | |
| 980 | + color: #ec0022 !important; | |
| 981 | +} | |
| 982 | +.clor7b{ | |
| 983 | + color: #7b7b7b; | |
| 984 | +} | |
| 985 | +.new_item1_but{ | |
| 986 | + width: 130rpx; | |
| 987 | + height: 60rpx; | |
| 988 | + color: #fff; | |
| 989 | + background-color: #f23030; | |
| 990 | + line-height: 60rpx; | |
| 991 | + text-align: center; | |
| 992 | + border-radius: 15rpx; | |
| 993 | +} | |
| 994 | +.new_item1_but1{ | |
| 995 | + border-radius: 50rpx !important; | |
| 996 | +} | |
| 997 | +.new_item1_but2{ | |
| 998 | + border-radius: 50rpx !important; | |
| 999 | + background-color: rgba(0, 0, 0, 0) !important; | |
| 1000 | + color: #f23030 !important; | |
| 1001 | + border: 1rpx solid #f23030 !important; | |
| 1002 | +} | |
| 1003 | +.new_item1_but3{ | |
| 1004 | + background-color: rgba(0, 0, 0, 0) !important; | |
| 1005 | + color: #f23030 !important; | |
| 1006 | + border: 1rpx solid #f23030 !important; | |
| 1007 | +} | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | +.new_item1_box{ | |
| 1013 | + /* padding-top: 17rpx; */ | |
| 1014 | + width: 100%; | |
| 1015 | + box-sizing: border-box; | |
| 1016 | + overflow: hidden; | |
| 1017 | +} | |
| 1018 | + | |
| 1019 | +.aborder{ | |
| 1020 | + border: 1px solid #e8e8e8; | |
| 1021 | +} | |
| 1022 | +.bgf{ | |
| 1023 | + background-color: #fff; | |
| 1024 | +} | |
| 1025 | +.boxsha{ | |
| 1026 | + /* box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.25); */ | |
| 1027 | + /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */ | |
| 1028 | + box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19); | |
| 1029 | +} | |
| 1030 | +.but_radius85{ | |
| 1031 | + border-radius:289rpx; | |
| 1032 | +} | |
| 1033 | +.but_radius5{ | |
| 1034 | + border-radius:8px; | |
| 1035 | +} | |
| 1036 | +.imgBox{ | |
| 1037 | + position: relative; | |
| 1038 | +} | |
| 1039 | +.imgBox_img{ | |
| 1040 | + position: absolute; | |
| 1041 | + left: 0; | |
| 1042 | + top: 0; | |
| 1043 | + width: 74rpx; | |
| 1044 | + height: 70rpx; | |
| 1045 | + | |
| 1046 | +} | |
| 1047 | + | |
| 1048 | +.aspect_ratio1{ | |
| 1049 | + aspect-ratio:1/1; | |
| 1050 | +} | |
| 1051 | +.aspect_ratio2{ | |
| 1052 | + aspect-ratio:16/9; | |
| 1053 | +} | |
| 1054 | +.aspect_ratio3{ | |
| 1055 | + aspect-ratio:3/2; | |
| 1056 | +} | |
| 1057 | +.aspect_ratio4{ | |
| 1058 | + aspect-ratio:3/4; | |
| 1059 | +} | |
| 1060 | +.container1 { | |
| 1061 | + position: relative; | |
| 1062 | + width:100%; | |
| 1063 | + padding-top: 100%; | |
| 1064 | + overflow: hidden; | |
| 1065 | +} | |
| 1066 | +.container2 { | |
| 1067 | + position: relative; | |
| 1068 | + width:100%; | |
| 1069 | + padding-top: 56.25%; | |
| 1070 | + overflow: hidden; | |
| 1071 | +} | |
| 1072 | +.container3 { | |
| 1073 | + position: relative; | |
| 1074 | + width:100%; | |
| 1075 | + padding-top: 66.67%; | |
| 1076 | + overflow: hidden; | |
| 1077 | +} | |
| 1078 | +.container4 { | |
| 1079 | + position: relative; | |
| 1080 | + width:100%; | |
| 1081 | + padding-top: 133.33%; | |
| 1082 | + overflow: hidden; | |
| 1083 | + | |
| 1084 | +} | |
| 1085 | + | |
| 1086 | +.images1 { | |
| 1087 | + display: block; | |
| 1088 | + position: absolute; | |
| 1089 | + width: 100%; | |
| 1090 | + height: 100%; | |
| 1091 | + top: 0; | |
| 1092 | + bottom: 0; | |
| 1093 | + left: 0; | |
| 1094 | + right: 0; | |
| 1095 | + object-fit: cover; | |
| 1096 | + | |
| 1097 | +} | |
| 1098 | + | |
| 1099 | +.flex2{ | |
| 1100 | + display: flex; | |
| 1101 | + /* align-items: center; */ | |
| 1102 | + justify-content: space-between; | |
| 1103 | + flex-wrap: wrap; | |
| 1104 | + box-sizing: border-box; | |
| 1105 | +} | |
| 1106 | +.flex2:after { | |
| 1107 | + content: ""; | |
| 1108 | + width: 30%; | |
| 1109 | + height: 0px; | |
| 1110 | + visibility: hidden; | |
| 1111 | + } | |
| 1112 | + | |
| 1113 | + .boxpad{ | |
| 1114 | + /* padding:11rpx 9rpx; */ | |
| 1115 | + box-sizing: border-box; | |
| 1116 | + } | |
| 1117 | + .pricefs28{ | |
| 1118 | + font-size: 28rpx !important; | |
| 1119 | + } | |
| 1120 | + .pricefs42{ | |
| 1121 | + font-size: 42rpx !important; | |
| 1122 | + } | |
| 1123 | + .pricefs38{ | |
| 1124 | + font-size: 38rpx !important; | |
| 1125 | + } | |
| 1126 | + .imgbox1{ | |
| 1127 | + width: 60rpx; | |
| 1128 | + height: 60rpx; | |
| 1129 | + } | |
| 1130 | + .topBox{ | |
| 1131 | + position: relative; | |
| 1132 | + } | |
| 1133 | + | |
| 1134 | + .item_float{ | |
| 1135 | + position: absolute; | |
| 1136 | + bottom: 0; | |
| 1137 | + left: 0; | |
| 1138 | + width: 100%; | |
| 1139 | + box-sizing: border-box; | |
| 1140 | + } | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + /* 新版tab样式 */ | |
| 1144 | + .tabBox{ | |
| 1145 | + min-width: 100%; | |
| 1146 | + /*height: 30px;*/ | |
| 1147 | + padding: 10rpx 0; | |
| 1148 | + display: flex; | |
| 1149 | + align-items: center; | |
| 1150 | + /*justify-content: space-around;*/ | |
| 1151 | + font-size: 28rpx; | |
| 1152 | + font-weight: bold; | |
| 1153 | + overflow-x: auto; | |
| 1154 | + margin-bottom: 20rpx; | |
| 1155 | + /* min-width: 25%; */ | |
| 1156 | + } | |
| 1157 | + | |
| 1158 | +/* 不显示滚动条 */ | |
| 1159 | +.tabBox::-webkit-scrollbar { | |
| 1160 | + display: none; | |
| 1161 | +} | |
| 1162 | + .tab{ | |
| 1163 | + /*flex-grow: 1;*/ | |
| 1164 | + flex-shrink: 0; | |
| 1165 | + /*color: #f23030;*/ | |
| 1166 | + padding: 0 20rpx; | |
| 1167 | + /* padding: 0 35rpx; */ | |
| 1168 | + color: rgba(166, 166, 166, 1); | |
| 1169 | + display: flex; | |
| 1170 | + justify-content: center; | |
| 1171 | + align-items: center; | |
| 1172 | + height: 100%; | |
| 1173 | + position: relative; | |
| 1174 | + margin: auto; | |
| 1175 | + /* min-width: 25%; */ | |
| 1176 | + } | |
| 1177 | + .tab1{ | |
| 1178 | + position: absolute; | |
| 1179 | + bottom: -8rpx; | |
| 1180 | + left: 0; | |
| 1181 | + right: 0; | |
| 1182 | + margin: auto; | |
| 1183 | + width: 40%; | |
| 1184 | + height: 4rpx; | |
| 1185 | + /* background-color: rgba(196,24,45,.8); */ | |
| 1186 | + background-color: #f23030; | |
| 1187 | + opacity: .8; | |
| 1188 | + } | |
| 1189 | + .tab_action{ | |
| 1190 | + background-color: #f23030; | |
| 1191 | + color: #fff; | |
| 1192 | + border: none !important; | |
| 1193 | + opacity: .8; | |
| 1194 | + /* border-color: #f23030 !important; */ | |
| 1195 | + } | |
| 1196 | + .tab2{ | |
| 1197 | + padding: 0 !important; | |
| 1198 | + } | |
| 1199 | + .tab2 view{ | |
| 1200 | + padding: 10rpx 35rpx; | |
| 1201 | + flex-grow: 1; | |
| 1202 | + } | |
| 1203 | + .tab3{ | |
| 1204 | + padding: 6rpx 16rpx; | |
| 1205 | + border: 1px solid rgba(166, 166, 166, 1); | |
| 1206 | + border-radius: 20rpx; | |
| 1207 | + box-sizing: border-box; | |
| 1208 | + } | |
| 1209 | + | ... | ... |
components/diy_goodsGroup/g_filter.wxs
pages/index/index/index.wxml
| ... | ... | @@ -456,7 +456,7 @@ |
| 456 | 456 | <advertising object="{{item.content}}"></advertising> |
| 457 | 457 | </block> |
| 458 | 458 | <!--商品分组--> |
| 459 | - <block wx:if="{{item.ename=='goodsGroup'}}"> | |
| 459 | + <block wx:if="{{item.ename=='goodsGroup' || item.ename=='goodsGroupNew'}}"> | |
| 460 | 460 | <goodsGroup class="{{'goodsGroup' + index}}" object="{{item.content}}" sticky="{{template_arr[0].content.is_top}}"></goodsGroup> |
| 461 | 461 | |
| 462 | 462 | </block> | ... | ... |
pages/template/index.wxml
| ... | ... | @@ -13,10 +13,13 @@ |
| 13 | 13 | <block wx:if="{{item.ename=='advertising'}}"> |
| 14 | 14 | <advertising object="{{item.content}}"></advertising> |
| 15 | 15 | </block> |
| 16 | - <!--商品分组--> | |
| 17 | - <block wx:if="{{item.ename=='goodsGroup'}}"> | |
| 16 | + <!--商品分组--> | |
| 17 | + <block wx:if="{{item.ename=='goodsGroup' || item.ename=='goodsGroupNew'}}"> | |
| 18 | 18 | <goodsGroup class="{{'goodsGroup' + index}}" object="{{item.content}}"></goodsGroup> |
| 19 | 19 | </block> |
| 20 | + <!-- <block wx:if="{{item.ename=='goodsGroupNew'}}"> | |
| 21 | + <diy_public class="{{'goodsGroup' + index}}" object="{{item.content}}" prom_type="21"></diy_public> | |
| 22 | + </block> --> | |
| 20 | 23 | <!--通知--> |
| 21 | 24 | <block wx:if="{{item.ename=='notice'}}"> |
| 22 | 25 | <notice object="{{item.content}}"></notice> | ... | ... |