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
c4e1c6e7
Commit
c4e1c6e7
authored
Sep 18, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plus会员购买页
parent
a913267e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
14 deletions
+10
-14
picNav.js
src/component/picNav/picNav.js
+1
-0
picNav.wxml
src/component/picNav/picNav.wxml
+8
-3
extendProduct.js
src/pages/extendProduct/extendProduct.js
+1
-11
No files found.
src/component/picNav/picNav.js
View file @
c4e1c6e7
...
@@ -94,6 +94,7 @@ Component({
...
@@ -94,6 +94,7 @@ Component({
imagewidth
:
imageSize
.
imageWidth
,
imagewidth
:
imageSize
.
imageWidth
,
imageheight
:
imageSize
.
imageHeight
imageheight
:
imageSize
.
imageHeight
})
})
console
.
log
(
'-----'
,
imageSize
)
},
},
preview
(
event
)
{
preview
(
event
)
{
utilLink
.
currentLinkRouter
(
event
)
utilLink
.
currentLinkRouter
(
event
)
...
...
src/component/picNav/picNav.wxml
View file @
c4e1c6e7
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
>
>
<image
<image
class="pic-img hhh"
class="pic-img hhh"
style="width: {{100}}%;
height: {{100}}px;
"
style="width: {{100}}%;"
src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
data-appid="{{item.link.appid}}"
data-appid="{{item.link.appid}}"
data-path="{{item.link.url}}"
data-path="{{item.link.url}}"
...
@@ -28,13 +28,15 @@
...
@@ -28,13 +28,15 @@
data-item="{{item}}"
data-item="{{item}}"
bindload="imageLoad"
bindload="imageLoad"
bindtap='preview'
bindtap='preview'
mode="widthFix"
/>
/>
</button>
</button>
<image
<image
wx:if="{{currentHasUserInfo}}"
wx:if="{{currentHasUserInfo}}"
class="pic-img yyyy"
class="pic-img yyyy"
style="width: {{100}}%;
height: {{100}}px;
"
style="width: {{100}}%;"
src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
data-appid="{{item.link.appid}}"
data-appid="{{item.link.appid}}"
data-path="{{item.link.url}}"
data-path="{{item.link.url}}"
...
@@ -42,12 +44,14 @@
...
@@ -42,12 +44,14 @@
data-item="{{item}}"
data-item="{{item}}"
bindload="imageLoad"
bindload="imageLoad"
bindtap='preview'
bindtap='preview'
mode="widthFix"
/>
/>
</view>
</view>
<view wx:else>
<view wx:else>
<image
<image
class="pic-img ttt"
class="pic-img ttt"
style="width: {{100}}%;
height: {{100}}px;
"
style="width: {{100}}%;"
src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
src="{{utils.formateUrl(item.imageUrl,baseImgUrl)}}"
data-appid="{{item.link.appid}}"
data-appid="{{item.link.appid}}"
data-path="{{item.link.url}}"
data-path="{{item.link.url}}"
...
@@ -55,6 +59,7 @@
...
@@ -55,6 +59,7 @@
data-item="{{item}}"
data-item="{{item}}"
bindload="imageLoad"
bindload="imageLoad"
bindtap='preview'
bindtap='preview'
mode="widthFix"
/>
/>
</view>
</view>
</view>
</view>
...
...
src/pages/extendProduct/extendProduct.js
View file @
c4e1c6e7
...
@@ -268,23 +268,13 @@ wxService.page({
...
@@ -268,23 +268,13 @@ wxService.page({
if
(
result
==
0
)
{
if
(
result
==
0
)
{
wx
.
hideLoading
()
wx
.
hideLoading
()
data
.
content
.
forEach
((
item
)
=>
{
data
.
content
.
forEach
((
item
)
=>
{
//内容类型 1.文章 2.商品 3.页面
wxService
.
getContentByContentType
(
item
.
tentacleContent
)
// if (item.content){
// if (item.contentType == 3){
// item.content = item.content
// }else{
// let content = JSON.parse(item.content)
// item.contentArr = content
// }
// }
wxService
.
getContentByContentType
(
item
)
})
})
this
.
setData
({
this
.
setData
({
myExtendList
:
this
.
data
.
pageNum
==
1
?
[...
data
.
content
]
:
[...
this
.
data
.
myExtendList
,
...
data
.
content
],
myExtendList
:
this
.
data
.
pageNum
==
1
?
[...
data
.
content
]
:
[...
this
.
data
.
myExtendList
,
...
data
.
content
],
myTotalPages
:
data
.
totalPages
myTotalPages
:
data
.
totalPages
},
()
=>
{
},
()
=>
{
})
})
console
.
log
(
'00000'
,
this
.
data
.
myExtendList
)
}
}
}
}
})
})
...
...
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