Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
2eb67703
Commit
2eb67703
authored
May 28, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改商品显示最小高度
parent
0539e015
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
15 deletions
+30
-15
categoryTab.js
src/component/categoryTab/categoryTab.js
+0
-6
productListStyleOne.js
src/component/productListStyleOne/productListStyleOne.js
+5
-2
productListStyleOne.wxml
src/component/productListStyleOne/productListStyleOne.wxml
+1
-1
productListStyleOne.wxss
src/component/productListStyleOne/productListStyleOne.wxss
+1
-0
productListStyleTwo.js
src/component/productListStyleTwo/productListStyleTwo.js
+9
-2
productListStyleTwo.wxml
src/component/productListStyleTwo/productListStyleTwo.wxml
+4
-1
userCenter.js
src/pages/userCenter/userCenter.js
+8
-1
userCenter.wxml
src/pages/userCenter/userCenter.wxml
+2
-2
No files found.
src/component/categoryTab/categoryTab.js
View file @
2eb67703
...
...
@@ -101,12 +101,6 @@ Component({
* 组件的方法列表
*/
methods
:
{
_getUserInfo
(
res
=
{})
{
wxService
.
nextTick
(()
=>
{
this
.
triggerEvent
(
'getAuth'
,
res
);
})
},
//获取标签下的商品列表
getTagProducts
(
e
){
console
.
log
(
4564
)
...
...
src/component/productListStyleOne/productListStyleOne.js
View file @
2eb67703
...
...
@@ -8,13 +8,16 @@ Component({
type
:
Array
,
value
:
[],
},
defaultProductUrl
:
{
type
:
String
,
value
:
'https://img3.bigaka.com/prd/3001/202005/20200528/3001780a626b-077b-4165-abd0-bc2123d40586.png'
}
},
/**
* 组件的初始数据
*/
data
:
{
},
/**
...
...
@@ -23,7 +26,7 @@ Component({
methods
:
{
//图片加载失败
imgLoadError
(
e
){
let
defaultUrl
=
'https://img3.bigaka.com/prd/3001/20200
3/20200331/30019aa78220-546f-41e0-8075-c2feb69e10b8.jp
g'
;
let
defaultUrl
=
'https://img3.bigaka.com/prd/3001/20200
5/20200528/3001780a626b-077b-4165-abd0-bc2123d40586.pn
g'
;
let
index
=
e
.
currentTarget
.
dataset
.
index
;
this
.
data
.
imageData
[
index
].
indexUrl
=
defaultUrl
;
this
.
setData
({
...
...
src/component/productListStyleOne/productListStyleOne.wxml
View file @
2eb67703
...
...
@@ -20,7 +20,7 @@
<image wx:if="{{isFlashSale}}" class="limited-icon" src="https://img3.bigaka.com/prd/3001/202005/20200508/3001a6dcdf69-369a-4f43-8757-60f071946ea8.png" />
<!-- 图片主图时 -->
<image class="item-img"
src="{{indexUrl}}"
src="{{indexUrl
? indexUrl : 'https://img3.bigaka.com/prd/3001/202005/20200528/3001780a626b-077b-4165-abd0-bc2123d40586.png'
}}"
mode="widthFix" lazy-load
wx:if="{{!utils.isVideo(indexUrl)}}"
binderror="imgLoadError"
...
...
src/component/productListStyleOne/productListStyleOne.wxss
View file @
2eb67703
...
...
@@ -45,6 +45,7 @@
width: 100%;
border-top-left-radius: 10rpx;
border-top-right-radius: 10rpx;
min-height: 200rpx;
}
.video-cover{
max-height: 188px;
...
...
src/component/productListStyleTwo/productListStyleTwo.js
View file @
2eb67703
...
...
@@ -14,13 +14,20 @@ Component({
* 组件的初始数据
*/
data
:
{
},
/**
* 组件的方法列表
*/
methods
:
{
//图片加载失败
imgLoadError
(
e
){
let
defaultUrl
=
'https://img3.bigaka.com/prd/3001/202005/20200528/3001780a626b-077b-4165-abd0-bc2123d40586.png'
;
let
index
=
e
.
currentTarget
.
dataset
.
index
;
this
.
data
.
imageData
[
index
].
indexUrl
=
defaultUrl
;
this
.
setData
({
imageData
:
this
.
data
.
imageData
});
}
}
})
src/component/productListStyleTwo/productListStyleTwo.wxml
View file @
2eb67703
...
...
@@ -5,7 +5,10 @@
<view class="hot-item border_box">
<view class="hot-img-box">
<image wx:if="{{item.isFlashSale}}" class="limited-icon" src="https://img3.bigaka.com/prd/3001/202005/20200508/3001a6dcdf69-369a-4f43-8757-60f071946ea8.png" />
<image class="hot-img" src="{{item.indexUrl}}" mode="aspectFit" lazy-load wx:if="{{!utils.isVideo(item.indexUrl)}}" />
<image class="hot-img" src="{{item.indexUrl || 'https://img3.bigaka.com/prd/3001/202005/20200528/3001780a626b-077b-4165-abd0-bc2123d40586.png'}}"
mode="aspectFit"
lazy-load
wx:if="{{!utils.isVideo(item.indexUrl)}}" binderror="imgLoadError"/>
<video id="myVideo" class="hot-img" src="{{item.indexUrl}}" muted wx:if="{{utils.isVideo(item.indexUrl)}}"></video>
<view class="promotion-tag" wx:if="{{item.hasPromotionTag}}">
...
...
src/pages/userCenter/userCenter.js
View file @
2eb67703
...
...
@@ -96,6 +96,14 @@ wxService.page({
},
300
);
},
// 页面滚动到底部
onReachBottom
(){
console
.
log
(
this
.
categoryTabComponent
)
if
(
this
.
categoryTabComponent
){
this
.
categoryTabComponent
.
getTagProducts
(
2
);
}
},
//页面滚动
onPageScroll
(
e
){
let
scrollTop
=
e
.
scrollTop
;
...
...
@@ -126,7 +134,6 @@ wxService.page({
if
(
res
){
this
.
scrollTop
=
res
.
top
;
this
.
categoryTabComponent
=
this
.
selectComponent
(
'#categoryTab'
);
console
.
log
(
this
.
categoryTabComponent
)
}
}).
exec
();
},
...
...
src/pages/userCenter/userCenter.wxml
View file @
2eb67703
...
...
@@ -47,11 +47,11 @@
currentHasUserInfo="{{currentHasUserInfo}}" bind:updatePage="updatePage"/>
</view>
<!-- 分类组件 -->
<view class="categoryTab" wx:if="{{pItem.type == 7}}">
<
!-- <
view class="categoryTab" wx:if="{{pItem.type == 7}}">
<category-tab currHomePageId="{{currHomePageId}}" categoryTab="{{pItem.categoryType}}" categoryTabFixed="{{categoryTabFixed}}"
id="categoryTab"
bind:getAuth="_getUserInfo" currentHasUserInfo="{{currentHasUserInfo}}" bind:updatePage="updatePage"/>
</view>
</view>
-->
</block>
</view>
...
...
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