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
64edebc5
Commit
64edebc5
authored
Jul 30, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-zyw-sc' into 'dev_7.1.0'
Feature zyw sc See merge request
!43
parents
13b6077f
8359e7ce
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
2 deletions
+51
-2
productDetail.js
src/pages/productDetail/productDetail.js
+9
-0
productDetail.wxml
src/pages/productDetail/productDetail.wxml
+16
-2
productDetail.wxss
src/pages/productDetail/productDetail.wxss
+26
-0
No files found.
src/pages/productDetail/productDetail.js
View file @
64edebc5
...
@@ -11,6 +11,8 @@ Page({
...
@@ -11,6 +11,8 @@ Page({
reachBottom
:
false
,
// 标识是否触底
reachBottom
:
false
,
// 标识是否触底
showSkuPopup
:
false
,
showSkuPopup
:
false
,
btnText
:
'立即购买'
,
btnText
:
'立即购买'
,
baseImgUrl
:
app
.
globalData
.
imageUrl
,
swiperCurrent
:
0
,
imageData
:
[{
imageData
:
[{
desc
:
"string"
,
desc
:
"string"
,
...
@@ -53,6 +55,13 @@ Page({
...
@@ -53,6 +55,13 @@ Page({
},
},
swiperChange
(
e
)
{
console
.
log
(
e
)
this
.
setData
({
swiperCurrent
:
e
.
detail
.
current
})
},
addCart
:
function
(
event
)
{
addCart
:
function
(
event
)
{
this
.
setData
({
this
.
setData
({
showSkuPopup
:
true
,
showSkuPopup
:
true
,
...
...
src/pages/productDetail/productDetail.wxml
View file @
64edebc5
...
@@ -5,7 +5,21 @@
...
@@ -5,7 +5,21 @@
bindtouchend="pageMoveEnd"
bindtouchend="pageMoveEnd"
bindtap="handleCloseSharePopup">
bindtap="handleCloseSharePopup">
<view>
<view>
<buy-image-swiper image-data="{{imageData}}"/>
<!-- <buy-image-swiper image-data="{{imageData}}"/>
-->
<swiper
autoplay="true" style="height: 750rpx;line-height: 100rpx;" bindchange="swiperChange">
<block wx:for="{{imageData}}" wx:key="index">
<swiper-item>
<image class="swiper-image" mode="widthFix" src="{{baseImgUrl}}{{item.imageUrl}}"></image>
</swiper-item>
</block>
</swiper>
<view class="dots">
<block wx:for="{{imageData}}" wx:key="index">
<view class="dot{{index == swiperCurrent ? ' active' : ''}}"></view>
</block>
</view>
</view>
</view>
<view class="product-detail-wrap">
<view class="product-detail-wrap">
...
@@ -28,7 +42,7 @@
...
@@ -28,7 +42,7 @@
</view>
</view>
<view class="member-price">
<view class="member-price">
<view class="member-price-info">
<view class="member-price-info">
<image class="member-price-icon"></image>
<image class="member-price-icon"
src="/assets/imgs/7_1_0/plus.png"
></image>
<text class="before-reduce-price">¥558,</text>
<text class="before-reduce-price">¥558,</text>
<text class="reduce-price">本次立减¥60</text>
<text class="reduce-price">本次立减¥60</text>
</view>
</view>
...
...
src/pages/productDetail/productDetail.wxss
View file @
64edebc5
/* pages/productDetail/productDetail.wxss */
/* pages/productDetail/productDetail.wxss */
.swiper-image{
width: 100%;
}
.dots{
position: absolute;
left: 0;
right: 0;
top: 700rpx;
display: flex;
justify-content: center;
}
.dots .dot{
margin: 0 8rpx;
width: 10rpx;
height: 10rpx;
border-radius: 50%;
background-color: rgba(0, 0, 0, 0.25);
transition: all .6s;
}
.dots .dot.active{
width: 22rpx;
height: 10rpx;
background: #C09A74;
border-radius: 20rpx;
}
.product-detail-wrap{
.product-detail-wrap{
padding: 0 16rpx 0 24rpx;
padding: 0 16rpx 0 24rpx;
}
}
...
@@ -88,6 +113,7 @@
...
@@ -88,6 +113,7 @@
.member-price-icon{
.member-price-icon{
width: 88rpx;
width: 88rpx;
height: 30rpx;
height: 30rpx;
vertical-align: middle;
}
}
.before-reduce-price{
.before-reduce-price{
font-size: 40rpx;
font-size: 40rpx;
...
...
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