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
653f765b
Commit
653f765b
authored
Sep 18, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
种草视频显示
parent
37a24d40
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
21 deletions
+28
-21
buyImageSwiper.wxml
src/component/buyImageSwiper/buyImageSwiper.wxml
+3
-1
grassCommunity.js
src/subPackage/page/pages/grassCommunity/grassCommunity.js
+19
-17
myReleaseDetail.json
...ubPackage/page/pages/myReleaseDetail/myReleaseDetail.json
+3
-1
myReleaseDetail.wxml
...ubPackage/page/pages/myReleaseDetail/myReleaseDetail.wxml
+3
-2
No files found.
src/component/buyImageSwiper/buyImageSwiper.wxml
View file @
653f765b
<!--component/buyImageSwiper/buyImageSwiper.wxml-->
<!--component/buyImageSwiper/buyImageSwiper.wxml-->
<wxs src="../../wxs/utils.wxs" module="utils" />
<view class="image-wrap">
<view class="image-wrap">
<swiper
<swiper
indicator-dots="{{indicatorDots}}"
indicator-dots="{{indicatorDots}}"
...
@@ -11,7 +12,8 @@
...
@@ -11,7 +12,8 @@
>
>
<block wx:for="{{imageData}}" wx:key="{{item}}">
<block wx:for="{{imageData}}" wx:key="{{item}}">
<swiper-item class="swiper-item">
<swiper-item class="swiper-item">
<image src="{{item.url}}" data-appid="{{item.id}}" data-path="{{item.link.url}}" data-link="{{item.link}}" data-item="{{item}}" bindtap='preview' class="slide-image" />
<image src="{{item.url}}" wx:if="{{!item.videoUrl}}" data-appid="{{item.id}}" data-path="{{item.link.url}}" data-link="{{item.link}}" data-item="{{item}}" bindtap='preview' class="slide-image" />
<video class="slide-image" src="{{utils.formateUrl(item.videoUrl,baseImgUrl)}}" wx:if="{{item.videoUrl}}" controls="true" autoplay="true"></video>
</swiper-item>
</swiper-item>
</block>
</block>
...
...
src/subPackage/page/pages/grassCommunity/grassCommunity.js
View file @
653f765b
...
@@ -87,26 +87,28 @@ wxService.page({
...
@@ -87,26 +87,28 @@ wxService.page({
// 获取关联商品
// 获取关联商品
getInitPro
(
productIds
){
getInitPro
(
productIds
){
wxService
.
post
(
`/sale/product/buyer/listPage?pageNo=
${
this
.
data
.
pageNo
}
&pageSize=
${
this
.
data
.
pageSize
}
`
,{
if
(
productIds
&&
productIds
.
length
>
0
){
productIds
:
productIds
wxService
.
post
(
`/sale/product/buyer/listPage?pageNo=
${
this
.
data
.
pageNo
}
&pageSize=
${
this
.
data
.
pageSize
}
`
,{
}).
then
(
res
=>
{
productIds
:
productIds
const
{
result
,
data
}
=
res
.
data
}).
then
(
res
=>
{
if
(
result
==
0
&&
data
.
content
)
{
const
{
result
,
data
}
=
res
.
data
this
.
setData
({
if
(
result
==
0
&&
data
.
content
)
{
proGoods
:
data
.
content
})
let
stcList
=
[]
for
(
var
i
in
this
.
data
.
proGoods
)
{
stcList
.
push
({
commodityId
:
this
.
data
.
proGoods
[
i
].
productId
})
this
.
setData
({
this
.
setData
({
'params.stcList'
:
stcLis
t
proGoods
:
data
.
conten
t
})
})
let
stcList
=
[]
for
(
var
i
in
this
.
data
.
proGoods
)
{
stcList
.
push
({
commodityId
:
this
.
data
.
proGoods
[
i
].
productId
})
this
.
setData
({
'params.stcList'
:
stcList
})
}
}
}
}
}
).
finally
(()
=>
{
}).
finally
(()
=>
{
})
}
)
}
},
},
// 关联商品
// 关联商品
...
...
src/subPackage/page/pages/myReleaseDetail/myReleaseDetail.json
View file @
653f765b
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
"x-dialog"
:
"/component/dialog/dialog"
,
"x-dialog"
:
"/component/dialog/dialog"
,
"card-modal"
:
"/component/cardModal/cardModal"
,
"card-modal"
:
"/component/cardModal/cardModal"
,
"go-home"
:
"/component/goHome/goHome"
,
"go-home"
:
"/component/goHome/goHome"
,
"x-html"
:
"/component/html2wxml/wxHtml"
"x-html"
:
"/component/html2wxml/wxHtml"
,
"buy-image-swiper"
:
"/component/buyImageSwiper/buyImageSwiper"
}
}
}
}
\ No newline at end of file
src/subPackage/page/pages/myReleaseDetail/myReleaseDetail.wxml
View file @
653f765b
<!--subPackage/page/pages/myReleaseDetail.wxml-->
<!--subPackage/page/pages/myReleaseDetail.wxml-->
<view class="release-detail">
<view class="release-detail">
<view class="detail-img">
<
!-- <
view class="detail-img">
<image src="{{contentInfo.sspList[0].url}}" />
<image src="{{contentInfo.sspList[0].url}}" />
</view>
</view> -->
<buy-image-swiper bind:updatePage="updatePage" image-data="{{contentInfo.sspList}}" />
<view class="detail-content border_box">
<view class="detail-content border_box">
<view class="detail-title">{{contentInfo.headline}}</view>
<view class="detail-title">{{contentInfo.headline}}</view>
<view class="detail-desc"><x-html html="{{contentInfo.article}}" /></view>
<view class="detail-desc"><x-html html="{{contentInfo.article}}" /></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