Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
qinhaitao
taobao-mini-template
Commits
bcd09660
Commit
bcd09660
authored
Oct 16, 2020
by
慕轻风
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wnf
parent
524f2bed
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
goodsModal.axml
c_client/client/components/goodsModal/goodsModal.axml
+4
-2
browseGoods.js
c_client/client/pages/browseGoods/browseGoods.js
+12
-0
No files found.
c_client/client/components/goodsModal/goodsModal.axml
View file @
bcd09660
<view class="goods-modal-container" style="{{{'background':`url(${task.image.bg}) no-repeat`}}}">
<view class="goods-modal-container" style="{{{'background':`url(${task.image.bg}) no-repeat`
,'backgroundSize': '750rpx 1624rpx'
}}}">
<view a:if="{{task.type == '01'}}"
<view a:if="{{task.type == '01'}}"
style="{{{'background':`url(${task.image.title}) no-repeat`,'backgroundSize': '100% 100%'}}}" class="goods-modal-container__title"></view>
style="{{{'background':`url(${task.image.title}) no-repeat`,'backgroundSize': '100% 100%'}}}"
class="goods-modal-container__title">
</view>
<view a:else class="goods-modal-container__banner" style="{{{'background':`url(${task.image.banner}) no-repeat`,'backgroundSize': '100% 100%','height':task.bannerHeight+'rpx'}}}"></view>
<view a:else class="goods-modal-container__banner" style="{{{'background':`url(${task.image.banner}) no-repeat`,'backgroundSize': '100% 100%','height':task.bannerHeight+'rpx'}}}"></view>
<view class="goods-modal-container__content" style="{{{'top':task.type == '02'?task.bannerHeight+'rpx':'209rpx'}}}">
<view class="goods-modal-container__content" style="{{{'top':task.type == '02'?task.bannerHeight+'rpx':'209rpx'}}}">
<scroll-view scroll-y="{{true}}" class="goods-modal-container__scroll">
<scroll-view scroll-y="{{true}}" class="goods-modal-container__scroll">
...
...
c_client/client/pages/browseGoods/browseGoods.js
View file @
bcd09660
...
@@ -42,6 +42,18 @@ Page({
...
@@ -42,6 +42,18 @@ Page({
console
.
log
(
10
-
this
.
usePercent
)
console
.
log
(
10
-
this
.
usePercent
)
}
}
},
},
onHide
()
{
// 页面隐藏
if
(
this
.
timer
)
{
clearInterval
(
this
.
timer
)
}
},
onUnload
()
{
// 页面被关闭
if
(
this
.
timer
)
{
clearInterval
(
this
.
timer
)
}
},
init
()
{
init
()
{
this
.
setData
({
this
.
setData
({
task
:
{
task
:
{
...
...
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