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
79fdc34d
Commit
79fdc34d
authored
Nov 28, 2023
by
侯体倬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
佣金展示 bug 修复
parent
bdfd9844
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
static/nativeComponents/GoodsList/GoodsItem/index.js
+4
-0
static/nativeComponents/GoodsList/GoodsItem/index.wxml
+2
-2
static/nativeComponents/GoodsList/index.js
+1
-2
No files found.
static/nativeComponents/GoodsList/GoodsItem/index.js
View file @
79fdc34d
...
@@ -33,6 +33,7 @@ const componentOptions = {
...
@@ -33,6 +33,7 @@ const componentOptions = {
cutPrice
:
""
,
// 砍价价格
cutPrice
:
""
,
// 砍价价格
minPrice
:
0
,
minPrice
:
0
,
minGoodsSuggestedRetailPrice
:
0
,
minGoodsSuggestedRetailPrice
:
0
,
commissionColor
:
"#ff9051"
,
// 佣金默认颜色
},
},
// 数据监听器
// 数据监听器
observers
:
{
observers
:
{
...
@@ -61,6 +62,9 @@ const componentOptions = {
...
@@ -61,6 +62,9 @@ const componentOptions = {
if
(
datas
.
componentData
.
angleSignImg
&&
datas
.
componentData
.
angleSignImg
.
lenght
!=
0
){
if
(
datas
.
componentData
.
angleSignImg
&&
datas
.
componentData
.
angleSignImg
.
lenght
!=
0
){
datas
.
componentData
.
angleSignImg
=
DFSImg
(
datas
.
componentData
.
angleSignImg
,
150
,
150
,
1
)
datas
.
componentData
.
angleSignImg
=
DFSImg
(
datas
.
componentData
.
angleSignImg
,
150
,
150
,
1
)
}
}
if
(
datas
.
componentData
.
commissionColor
)
{
this
.
setData
({
commissionColor
:
datas
.
componentData
.
commissionColor
});
}
if
(
datas
.
componentData
.
style
===
'rowList'
||
datas
.
componentData
.
style
===
'heap'
)
{
if
(
datas
.
componentData
.
style
===
'rowList'
||
datas
.
componentData
.
style
===
'heap'
)
{
imgFillType
=
"aspectFit"
imgFillType
=
"aspectFit"
}
else
if
(
datas
.
componentData
.
style
==
'waterfall'
&&
datas
.
componentData
.
imgShowMode
==
"1"
)
{
}
else
if
(
datas
.
componentData
.
style
==
'waterfall'
&&
datas
.
componentData
.
imgShowMode
==
"1"
)
{
...
...
static/nativeComponents/GoodsList/GoodsItem/index.wxml
View file @
79fdc34d
...
@@ -222,7 +222,7 @@
...
@@ -222,7 +222,7 @@
<block wx:if="{{items!=null&&items['minProductGoodsCommission']&&items['minProductGoodsCommission']-0>0.01}}">
<block wx:if="{{items!=null&&items['minProductGoodsCommission']&&items['minProductGoodsCommission']-0>0.01}}">
<view
<view
class="showCommission"
class="showCommission"
style="color:{{
datas.componentData.commissionColor}};border-color:{{datas.componentData.
commissionColor}};"
style="color:{{
commissionColor}};border-color:{{
commissionColor}};"
wx:if="{{datas.componentData.commissionStyle==0}}"
wx:if="{{datas.componentData.commissionStyle==0}}"
>
>
<view class="commission-box" style="background-color:{{datas.componentData.commissionBgColor}}">
<view class="commission-box" style="background-color:{{datas.componentData.commissionBgColor}}">
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
<view
<view
class="showCommissionTwo flex"
class="showCommissionTwo flex"
wx:if="{{datas.componentData.commissionStyle==1}}"
wx:if="{{datas.componentData.commissionStyle==1}}"
style="color:{{
datas.componentData.commissionColor}};border-color:{{datas.componentData.
commissionColor}};"
style="color:{{
commissionColor}};border-color:{{
commissionColor}};"
>
>
<view class="commission-box" style="background-color:{{datas.componentData.commissionBgColor}}">
<view class="commission-box" style="background-color:{{datas.componentData.commissionBgColor}}">
<text class="iconfont-common common-iconfenxiang"></text>
<text class="iconfont-common common-iconfenxiang"></text>
...
...
static/nativeComponents/GoodsList/index.js
View file @
79fdc34d
...
@@ -292,8 +292,7 @@ const componentOptions = {
...
@@ -292,8 +292,7 @@ const componentOptions = {
whetherQueryCollectCount
:
true
,
whetherQueryCollectCount
:
true
,
whetherUseVirtualSalesQty
:
true
,
whetherUseVirtualSalesQty
:
true
,
whetherUseVirtualCollectCount
:
true
,
whetherUseVirtualCollectCount
:
true
,
whetherFindDistributionCommission
:
this
whetherFindDistributionCommission
:
this
.
data
.
datas
.
componentData
.
whetherFindDistributionCommission
,
.
whetherFindDistributionCommission
,
whetherFindRecommendedCardFlag
:
this
.
data
.
datas
.
componentData
.
vipPrice
whetherFindRecommendedCardFlag
:
this
.
data
.
datas
.
componentData
.
vipPrice
?
1
?
1
:
0
,
:
0
,
...
...
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