Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
2bc21767
Commit
2bc21767
authored
Jan 22, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品列表优化
parent
456a3642
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
113 additions
and
33 deletions
+113
-33
static/nativeComponents/GoodsList/GoodsItem/index.wxml
+0
-0
static/nativeComponents/GoodsList/GoodsItem/index.wxss
+72
-0
static/nativeComponents/GoodsList/index.js
+5
-5
static/nativeComponents/GoodsList/index.wxml
+29
-28
static/nativeComponents/GoodsList/index.wxss
+7
-0
No files found.
static/nativeComponents/GoodsList/GoodsItem/index.wxml
View file @
2bc21767
This diff is collapsed.
Click to expand it.
static/nativeComponents/GoodsList/GoodsItem/index.wxss
View file @
2bc21767
.flex{
.flex{
display: flex;
display: flex;
}
}
.goods-item-child-bd{
border: 1px solid var(--border-color);
}
image{
image{
width: 100%;
width: 100%;
}
}
.goodsItem{
margin-bottom: var(--proGap2);
}
.goods-item-child {
position: relative;
overflow: hidden;
background: #ffffff;
}
.merchantsEntrance{
.merchantsEntrance{
padding: 8rpx 20rpx;
padding: 8rpx 20rpx;
}
}
...
@@ -86,6 +97,10 @@ image{
...
@@ -86,6 +97,10 @@ image{
position: relative;
position: relative;
background-color: white;
background-color: white;
}
}
.info .info-top{
overflow: hidden;
justify-content: space-between;
}
.info .name{
.info .name{
flex: 1;
flex: 1;
overflow: hidden;
overflow: hidden;
...
@@ -154,6 +169,9 @@ image{
...
@@ -154,6 +169,9 @@ image{
.priceItem {
.priceItem {
align-items: flex-end;
align-items: flex-end;
}
}
.priceItem .price{
align-items: center;
}
.vipPrice2{
.vipPrice2{
align-items: flex-end;
align-items: flex-end;
margin-top: 12rpx;
margin-top: 12rpx;
...
@@ -181,6 +199,60 @@ image{
...
@@ -181,6 +199,60 @@ image{
-ms-border-radius: 12rpx;
-ms-border-radius: 12rpx;
-o-border-radius: 12rpx;
-o-border-radius: 12rpx;
}
}
.Sold{
overflow: hidden;
color: #999;
}
.Sold text{
font-size: 0.7em;
}
.buy-now {
color: #ffffff;
position: absolute;
right: 0;
bottom: 0;
border-radius: 30rpx;
background-color: #333;
width: 140rpx;
white-space: nowrap;
padding: 8rpx 20rpx;
display: flex;
justify-content: center;
align-items: center;
-webkit-border-radius: 30rpx;
-moz-border-radius: 30rpx;
-ms-border-radius: 30rpx;
-o-border-radius: 30rpx;
}
.buy-now-icon {
position: absolute;
right: 0;
bottom: 0;
font-size: 36rpx;
}
.showCommissionTwo {
align-items: center;
justify-content: center;
margin-top: 16rpx;
width: 100%;
height: 52rpx;
font-size: 24rpx;
border: 1px solid transparent;
border-radius: 26px;
overflow: hidden;
}
.showCommissionTwo .commission-box {
width: 100%;
height: 100%;
padding-left: 20rpx;
display: flex;
justify-content: center;
align-items: center;
}
.showCommissionTwo i {
font-size: 28rpx;
margin-right: 8rpx;
}
.marketing {
.marketing {
align-items: center;
align-items: center;
flex-wrap: wrap;
flex-wrap: wrap;
...
...
static/nativeComponents/GoodsList/index.js
View file @
2bc21767
...
@@ -35,7 +35,7 @@ const componentOptions = {
...
@@ -35,7 +35,7 @@ const componentOptions = {
haveGroupNum
:
"0"
,
haveGroupNum
:
"0"
,
maxPrice
:
"21.00"
,
maxPrice
:
"21.00"
,
minGoodsId
:
"99121"
,
minGoodsId
:
"99121"
,
minGoodsSuggestedRetailPrice
:
"1
8.6
00000"
,
minGoodsSuggestedRetailPrice
:
"1
00.
00000"
,
minPrice
:
"21.00"
,
minPrice
:
"21.00"
,
minProductGoodsId
:
"85531"
,
minProductGoodsId
:
"85531"
,
minProductGoodsMixid
:
"daadejqb50l7"
,
minProductGoodsMixid
:
"daadejqb50l7"
,
...
@@ -85,7 +85,7 @@ const componentOptions = {
...
@@ -85,7 +85,7 @@ const componentOptions = {
haveGroupNum
:
"0"
,
haveGroupNum
:
"0"
,
maxPrice
:
"800.00"
,
maxPrice
:
"800.00"
,
minGoodsId
:
"99344"
,
minGoodsId
:
"99344"
,
minGoodsSuggestedRetailPrice
:
"
1
00.000000"
,
minGoodsSuggestedRetailPrice
:
"
3
00.000000"
,
minPrice
:
"200.00"
,
minPrice
:
"200.00"
,
minProductGoodsId
:
"92690"
,
minProductGoodsId
:
"92690"
,
minProductGoodsMixid
:
"emng64ho4rp3"
,
minProductGoodsMixid
:
"emng64ho4rp3"
,
...
@@ -130,7 +130,7 @@ const componentOptions = {
...
@@ -130,7 +130,7 @@ const componentOptions = {
haveGroupNum
:
"0"
,
haveGroupNum
:
"0"
,
maxPrice
:
"10.00"
,
maxPrice
:
"10.00"
,
minGoodsId
:
"99537"
,
minGoodsId
:
"99537"
,
minGoodsSuggestedRetailPrice
:
"
1
0.000000"
,
minGoodsSuggestedRetailPrice
:
"
2
0.000000"
,
minPrice
:
"10.00"
,
minPrice
:
"10.00"
,
minProductGoodsId
:
"92685"
,
minProductGoodsId
:
"92685"
,
minProductGoodsMixid
:
"lbsmteepkra4"
,
minProductGoodsMixid
:
"lbsmteepkra4"
,
...
@@ -299,8 +299,8 @@ const componentOptions = {
...
@@ -299,8 +299,8 @@ const componentOptions = {
followerColor
:
""
,
followerColor
:
""
,
alSaleShow
:
true
,
alSaleShow
:
true
,
followerFontSize
:
0.6
,
followerFontSize
:
0.6
,
paynow
:
fals
e
,
paynow
:
tru
e
,
priceMarking
:
tru
e
,
priceMarking
:
fals
e
,
goodsSort
:
0
,
goodsSort
:
0
,
whetherFindDistributionCommission
:
true
,
whetherFindDistributionCommission
:
true
,
commissionColor
:
""
,
commissionColor
:
""
,
...
...
static/nativeComponents/GoodsList/index.wxml
View file @
2bc21767
<!-- 商品列表组件 -->
<!-- 商品列表组件 -->
<view class="goodsList">
<view class="goodsList">
<!-- 头部 -->
<view class="list-wrap heap-wrap" style="background-color:{{datas.componentData['heapBgColorShow'] ? datas.componentData['heapBgColor'] : ''}};border-radius:{{datas.componentData['cardBorderRadius']*2}}rpx;">
<view class="tops flex">
<!-- 头部 -->
<view class="left flex">
<view class="tops flex" style="padding:{{(datas.componentData['titleIcon'] || (datas.componentData['moreShow'] && datas.componentData.moreButtonSite=='top')) ?'0rpx 0rpx 0rpx 10rpx' : ''}};margin-bottom:{{datas.componentData['titleCardGap']*2}}rpx">
<view class="img" wx:if="{{datas.componentData['titleIcon']}}">
<view class="left flex">
<image mode="widthFix" src="http://test-bucket-ant.oss-cn-shanghai.aliyuncs.com/product/ppefWK8BS6.png?x-oss-process=image/resize,limit_1,w_150,h_150" />
<view class="img" wx:if="{{datas.componentData['titleIcon']}}">
<image mode="widthFix" src="http://test-bucket-ant.oss-cn-shanghai.aliyuncs.com/product/ppefWK8BS6.png?x-oss-process=image/resize,limit_1,w_150,h_150" />
</view>
<view class="title">{{datas.componentData['titles']}}</view>
</view>
<view class="moreTop" wx:if="{{datas.componentData['moreShow'] && datas.componentData.moreButtonSite=='top' && datas.componentData['goodsSource']!='assign'}}">
查看更多
<text class="jt"></text>
</view>
</view>
<view class="title">{{datas.componentData['titles']}}</view>
</view>
<view class="moreTop" wx:if="{{datas.componentData['moreShow'] && datas.componentData.moreButtonSite=='top' && datas.componentData['goodsSource']!='assign'}}">
查看更多
<text class="jt"></text>
</view>
</view>
</view>
<!-- 网格布局 -->
<!-- 网格布局 -->
<view
wx:if="{{datas.componentData.style==='list'}}"
class="goodsItem-list flex"
style="margin-left:{{-datas.componentData.proGap*2}}rpx;"
>
<view
<view
wx:for="{{datas.componentData.goodsList}}"
wx:if="{{datas.componentData.style==='list'}}"
wx:key="index"
class="goodsItem-list flex"
class="item"
style="margin-left:{{-datas.componentData.proGap*2}}rpx;"
style="width:{{100/datas.componentData.columnNum}}%;padding-left:{{datas.componentData.proGap*2}}rpx"
>
>
<goods-item
<view
class="goodsItem"
wx:for="{{datas.componentData.goodsList}}"
datas="{{datas}}"
wx:key="index"
items="{{datas.componentData.goodsList[index]}}"
class="item"
indexs="{{index}}"
style="width:{{100/datas.componentData.columnNum}}%;padding-left:{{datas.componentData.proGap*2}}rpx"
></goods-item>
>
<goods-item
class="goodsItem"
datas="{{datas}}"
items="{{datas.componentData.goodsList[index]}}"
indexs="{{index}}"
></goods-item>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
static/nativeComponents/GoodsList/index.wxss
View file @
2bc21767
...
@@ -4,6 +4,13 @@
...
@@ -4,6 +4,13 @@
image{
image{
width: 100%;
width: 100%;
}
}
.goodsList{
font-size: 32rpx;
position: relative;
}
.goodsList .heap-wrap{
padding: 20rpx;
}
.tops{
.tops{
justify-content: space-between;
justify-content: space-between;
align-items: center;
align-items: center;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment