Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
zhwy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d7df5ff5
authored
Dec 27, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.22.1' into 'SAAS+v4.33.0'
甄选增加无商品样式 See merge request
!10
2 parents
7a9bba5c
912b0027
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
86 deletions
api/env/index.js
pages/tab/mall/components/CarOwner/CarOwner.scss
pages/tab/mall/components/CarOwner/CarOwner.wxml
api/env/index.js
View file @
d7df5ff
import
{
preReleaseAppId
}
from
'~/config'
import
{
preReleaseAppId
}
from
'~/config'
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'preRelease'
]
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'preRelease'
]
let
index
=
2
let
index
=
3
/**
/**
*
*
...
...
pages/tab/mall/components/CarOwner/CarOwner.scss
View file @
d7df5ff
...
@@ -547,4 +547,17 @@ page {
...
@@ -547,4 +547,17 @@ page {
left
:
20rpx
;
left
:
20rpx
;
bottom
:
56rpx
;
bottom
:
56rpx
;
}
}
}
.nothing
{
flex-direction
:
column
;
width
:
100%
;
padding
:
30rpx
0
;
text-align
:
center
;
font-size
:
24rpx
;
color
:
#858A94
;
.icon
{
width
:
320rpx
;
height
:
320rpx
;
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/mall/components/CarOwner/CarOwner.wxml
View file @
d7df5ff
<view>
<view wx:if="{{categoryList.length}}">
<view class="category_wrapper">
<view class="category_wrapper">
<view class="inner">
<view class="inner">
<scroll-view scroll-into-view="{{toSeri}}" class="scroll" enhanced="{{true}}" show-scrollbar="{{false}}" scroll-x="{{true}}" scroll-with-animation>
<scroll-view scroll-into-view="{{toSeri}}" class="scroll" enhanced="{{true}}" show-scrollbar="{{false}}" scroll-x="{{true}}" scroll-with-animation>
<block wx:for="{{categoryList}}" wx:key="index">
<block wx:for="{{categoryList}}" wx:key="index">
<view id="toCategory-{{index}}" data-item="{{item}}" bind:tap="toSelectCategory" data-index="{{index}}" class="image_text">
<view id="toCategory-{{index}}" data-item="{{item}}" bind:tap="toSelectCategory" data-index="{{index}}" class="image_text">
<view class="box {{curCategoryIdx==index?'box_active':''}}">
<view class="box {{curCategoryIdx==index?'box_active':''}}">
<image mode="aspectFill" class="icon" webp src="{{item.categoryImage}}"></image>
<image mode="aspectFill" class="icon" webp src="{{item.categoryImage}}"></image>
<glsx-image wx:if="{{curCategoryIdx==index}}" class="icon_active" webp src="discover/version/1_0_0/select_seri.png"></glsx-image>
<glsx-image wx:if="{{curCategoryIdx==index}}" class="icon_active" webp src="discover/version/1_0_0/select_seri.png"></glsx-image>
</view>
</view>
<view class="text hide {{curCategoryIdx==index?'text_active':''}}">
<view class="text hide {{curCategoryIdx==index?'text_active':''}}">
{{item.categoryName}}
{{item.categoryName}}
</view>
</view>
</view>
</view>
</block>
</block>
</scroll-view>
</scroll-view>
</view>
</view>
</view>
<view wx:if="{{categoryStyle>-1}}" class="{{ categoryStyle=='2' ? 'goods_ctnr_waterfall': categoryStyle=='3' ? 'goods_ctnr_grass_B' : categoryStyle=='1' ? 'goods_ctnr_row' : 'goods_ctnr_col' }}">
</view>
<view wx:if="{{categoryStyle==0 || categoryStyle==1}}" class="goods_wrap">
<view wx:if="{{categoryStyle>-1}}" class="{{ categoryStyle=='2' ? 'goods_ctnr_waterfall': categoryStyle=='3' ? 'goods_ctnr_grass_B' : categoryStyle=='1' ? 'goods_ctnr_row' : 'goods_ctnr_col' }}">
<view class="titleBg" wx:if="{{categoryStyle==1}}">热销爆款</view>
<view wx:if="{{categoryStyle==0 || categoryStyle==1}}" class="goods_wrap">
<view catch:tap="toGoodsDetail" data-item="{{item}}" class="goods_box {{categoryStyle==1&&index==0? 'mtStyle' : ''}}" wx:for="{{goodsList}}" wx:key="index">
<view class="titleBg" wx:if="{{categoryStyle==1}}">热销爆款</view>
<image mode="aspectFill" class="cover" src="{{item.commerceVideo ? item.coverUrl : item.goodsImage}}" />
<view catch:tap="toGoodsDetail" data-item="{{item}}" class="goods_box {{categoryStyle==1&&index==0? 'mtStyle' : ''}}" wx:for="{{goodsList}}" wx:key="index">
<view class="info {{categoryStyle?'flex_cccb':''}}">
<image mode="aspectFill" class="cover" src="{{item.commerceVideo ? item.coverUrl : item.goodsImage}}" />
<text class="name">{{item.goodsName}}</text>
<view class="info {{categoryStyle?'flex_cccb':''}}">
<!-- <block wx:if="{{categoryStyle}}">
<text class="name">{{item.goodsName}}</text>
<!-- <block wx:if="{{categoryStyle}}">
<text wx:if="{{item.giveIntegral}}" class="tip">获{{item.giveIntegral}}养车积分</text>
<text wx:if="{{item.giveIntegral}}" class="tip">获{{item.giveIntegral}}养车积分</text>
</block> -->
</block> -->
<view class="price_wrap">
<view class="price_wrap">
<text>
<text>
<!-- <text class="price_tip">到手价</text> -->
<!-- <text class="price_tip">到手价</text> -->
<text class="unit">¥</text>
<text class="unit">¥</text>
<text class="new_price">{{item.activityPrice}}</text>
<text class="new_price">{{item.activityPrice}}</text>
<text class="old_price">{{item.originalPrice}}</text>
<text class="old_price">{{item.originalPrice}}</text>
</text>
</text>
<!-- <glsx-image catch:tap="toAddBuuCar" data-item="{{item}}" class="add_btn" webp src="discover/version/1_13_0/add_buyCar_icon.png"></glsx-image> -->
<!-- <glsx-image catch:tap="toAddBuuCar" data-item="{{item}}" class="add_btn" webp src="discover/version/1_13_0/add_buyCar_icon.png"></glsx-image> -->
<view wx:if="{{categoryStyle==1}}" catch:tap="toAddBuuCar" data-item="{{item}}" class="add_btn flex_cc">
<view wx:if="{{categoryStyle==1}}" catch:tap="toAddBuuCar" data-item="{{item}}" class="add_btn flex_cc">
立即抢购
立即抢购
</view>
</view>
</view>
</view>
<!-- <block wx:if="{{!categoryStyle}}">
<!-- <block wx:if="{{!categoryStyle}}">
<text wx:if="{{item.giveIntegral}}" class="tip">获{{item.giveIntegral}}养车积分</text>
<text wx:if="{{item.giveIntegral}}" class="tip">获{{item.giveIntegral}}养车积分</text>
</block> -->
</block> -->
</view>
</view>
</view>
</view>
<!-- 种草 -->
</view>
<view wx:elif="{{categoryStyle==3}}" class="goods_wrap">
</view>
<view catch:tap="toGoodsDetail" data-item="{{item}}" wx:for="{{goodsList}}" wx:key="index">
<!-- 种草 -->
<image wx:if="{{item.styleBImg}}" mode="aspectFill" class="publicity-img" src="{{item.styleBImg}}" />
<view wx:elif="{{categoryStyle==3}}" class="goods_wrap">
<view class="goods_box">
<view catch:tap="toGoodsDetail" data-item="{{item}}" wx:for="{{goodsList}}" wx:key="index">
<video show-fullscreen-btn="{{false}}" show-play-btn="{{false}}" wx:if="{{curPlayIdx==index && (item.commerceVideo || item.goodsVideo)}}" loop id="video{{index}}" muted="{{false}}" autoplay class="cover" src="{{item.commerceVideo || item.goodsVideo}}"></video>
<image wx:if="{{item.styleBImg}}" mode="aspectFill" class="publicity-img" src="{{item.styleBImg}}" />
<image wx:else mode="aspectFill" class="cover" src="{{item.commerceVideo ? item.coverUrl : item.goodsImage}}" />
<view class="goods_box">
<view class="info {{categoryStyle?'flex_cccb':''}}">
<video show-fullscreen-btn="{{false}}" show-play-btn="{{false}}" wx:if="{{curPlayIdx==index && (item.commerceVideo || item.goodsVideo)}}" loop id="video{{index}}" muted="{{false}}" autoplay class="cover" src="{{item.commerceVideo || item.goodsVideo}}"></video>
<text class="name">{{item.goodsName}}</text>
<image wx:else mode="aspectFill" class="cover" src="{{item.commerceVideo ? item.coverUrl : item.goodsImage}}" />
<!-- <text wx:if="{{item.giveIntegral}}" class="tip">获{{item.giveIntegral}}养车积分</text> -->
<view class="info {{categoryStyle?'flex_cccb':''}}">
<view class="price_wrap">
<text class="name">{{item.goodsName}}</text>
<text>
<!-- <text wx:if="{{item.giveIntegral}}" class="tip">获{{item.giveIntegral}}养车积分</text> -->
<text class="price_tip">到手价</text>
<view class="price_wrap">
<text class="unit">¥</text>
<text>
<text class="new_price">{{item.activityPrice}}</text>
<text class="price_tip">到手价</text>
<text class="old_price">{{item.originalPrice}}</text>
<text class="unit">¥</text>
</text>
<text class="new_price">{{item.activityPrice}}</text>
<!-- <glsx-image catch:tap="toAddBuuCar" data-item="{{item}}" class="add_btn" webp src="discover/version/1_0_0/add_buyCar_icon.png"></glsx-image> -->
<text class="old_price">{{item.originalPrice}}</text>
<view catch:tap="toAddBuuCar" data-item="{{item}}" class="add_btn flex_cc">
</text>
立即抢购
<!-- <glsx-image catch:tap="toAddBuuCar" data-item="{{item}}" class="add_btn" webp src="discover/version/1_0_0/add_buyCar_icon.png"></glsx-image> -->
</view>
<view catch:tap="toAddBuuCar" data-item="{{item}}" class="add_btn flex_cc">
</view>
立即抢购
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 横排 -->
</view>
<block wx:else>
</view>
<view class="{{parentIndex==0 ? 'left-box' : 'right-box'}}" wx:for-item="parentItem" wx:for-index="parentIndex" wx:for="{{['leftList','rightList']}}" wx:key="index">
<!-- 横排 -->
<block wx:for="{{goodsList}}" wx:key="index">
<block wx:else>
<view catch:tap="toGoodsDetail" data-item="{{item}}" wx:if="{{index%2 == parentIndex}}" class="goods_box">
<view class="{{parentIndex==0 ? 'left-box' : 'right-box'}}" wx:for-item="parentItem" wx:for-index="parentIndex" wx:for="{{['leftList','rightList']}}" wx:key="index">
<image mode="widthFix" class="cover" src="{{item.commerceVideo ? item.coverUrl : item.goodsImage}}" />
<block wx:for="{{goodsList}}" wx:key="index">
<view class="info">
<view catch:tap="toGoodsDetail" data-item="{{item}}" wx:if="{{index%2 == parentIndex}}" class="goods_box">
<text class="name">{{item.goodsName}}</text>
<image mode="widthFix" class="cover" src="{{item.commerceVideo ? item.coverUrl : item.goodsImage}}" />
<!-- <text wx:if="{{item.giveIntegral}}" class="tip">获{{item.giveIntegral}}养车积分</text> -->
<view class="info">
<view class="price_wrap">
<text class="name">{{item.goodsName}}</text>
<text>
<!-- <text wx:if="{{item.giveIntegral}}" class="tip">获{{item.giveIntegral}}养车积分</text> -->
<text class="unit">¥</text>
<view class="price_wrap">
<text class="new_price">{{item.activityPrice}}</text>
<text>
<text class="old_price">{{item.originalPrice}}</text>
<text class="unit">¥</text>
</text>
<text class="new_price">{{item.activityPrice}}</text>
</view>
<text class="old_price">{{item.originalPrice}}</text>
</view>
</text>
</view>
</view>
</block>
</view>
</view>
</view>
</block>
</block>
<!-- <view style="height: 116rpx;">
</view>
</block>
<!-- <view style="height: 116rpx;">
</view> -->
</view> -->
</view>
</view>
</view>
<view class="nothing flex" wx:else>
<glsx-image src="mall/goods-nothing.png" class="icon"></glsx-image>
当前暂无上架商品
</view>
</view>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment