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
67b6faee
Commit
67b6faee
authored
Aug 06, 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
!53
parents
f635798e
eb7a103e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
90 additions
and
42 deletions
+90
-42
my.js
src/pages/my/my.js
+59
-35
my.wxml
src/pages/my/my.wxml
+1
-1
my.wxss
src/pages/my/my.wxss
+5
-0
order.wxml
src/pages/order/order.wxml
+3
-3
order.wxss
src/pages/order/order.wxss
+14
-2
project.config.json
src/project.config.json
+8
-1
No files found.
src/pages/my/my.js
View file @
67b6faee
...
@@ -10,7 +10,10 @@ wxService.page({
...
@@ -10,7 +10,10 @@ wxService.page({
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
unfold
:
false
unfold
:
false
,
startY
:
''
,
refreshClass
:
''
,
delBtnWidth
:
114
},
},
/**
/**
...
@@ -44,38 +47,58 @@ wxService.page({
...
@@ -44,38 +47,58 @@ wxService.page({
}
}
},
},
/**
// // 开始滑动事件
* 生命周期函数--监听页面隐藏
// touchS: function (e) {
*/
// console.log('e', e)
onHide
:
function
()
{
// if (e.touches.length == 1) {
// this.setData({
},
// //设置触摸起始点水平方向位置
// startY: e.touches[0].clientY
/**
// });
* 生命周期函数--监听页面卸载
// }
*/
// },
onUnload
:
function
()
{
// touchM: function (e) {
// console.log('333', e)
},
// if (e.touches.length == 1) {
// //手指移动时y方向位置
/**
// var moveY = e.touches[0].clientY;
* 页面相关事件处理函数--监听用户下拉动作
// //手指起始点位置与移动期间的差值
*/
// var disY = moveY - this.data.startY;
onPullDownRefresh
:
function
()
{
// var delBtnWidth = this.data.delBtnWidth;
// var moveDistance = delBtnWidth - disY;
},
// var txtStyle = "";
// console.log('------', disY)
/**
// if (disY == 0 || disY < 0) { //如果移动距离小于等于0,文本层位置不变
* 页面上拉触底事件的处理函数
// txtStyle = "margin-top:-114px";
*/
// } else if (disY > 0) { //移动距离大于0,文本层left值等于手指移动距离
onReachBottom
:
function
()
{
// txtStyle = "margin-top:-" + moveDistance + "px";
// console.log('+++', txtStyle)
},
// if (disY >= delBtnWidth) {
// //控制手指移动距离最大值为删除按钮的宽度
/**
// txtStyle = "margin-top:0px" ;
* 用户点击右上角分享
// }
*/
// }
onShareAppMessage
:
function
()
{
// this.setData({
// refreshClass: txtStyle
}
// })
// }
// },
// // 滑动中事件
// touchE: function (e) {
// if (e.changedTouches.length == 1) {
// //手指移动结束后水平位置
// var endY = e.changedTouches[0].clientY;
// //触摸开始与结束,手指移动的距离
// var disY = this.data.startY - endY;
// var delBtnWidth = this.data.delBtnWidth;
// //如果距离小于删除按钮的1/2,不显示删除按钮
// var txtStyle = "";
// txtStyle = disY > delBtnWidth / 2 ? "margin-top:" + delBtnWidth + "px" : "margin-top:-114px";
// this.setData({
// refreshClass: txtStyle
// })
// } else {
// }
// },
})
})
\ No newline at end of file
src/pages/my/my.wxml
View file @
67b6faee
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
</view>
</view>
</view>
</view>
<view class="main-content {{unfold ? '' : 'content'}}">
<view class="main-content {{unfold ? '' : 'content'}}"
>
<view class="order-ul">
<view class="order-ul">
<view class="order-list">
<view class="order-list">
<view class="my-order">
<view class="my-order">
...
...
src/pages/my/my.wxss
View file @
67b6faee
...
@@ -181,11 +181,16 @@ page{
...
@@ -181,11 +181,16 @@ page{
text-align: center;
text-align: center;
}
}
.main-content{
.main-content{
/* position: relative; */
margin-top: -4rpx;
margin-top: -4rpx;
padding: 0 20rpx;
padding: 0 20rpx;
background-color: #F9F9F9;
}
}
.content{
.content{
margin-top: 28rpx;
margin-top: 28rpx;
/* margin-top: -228rpx;
z-index: 99; */
}
}
.order-list{
.order-list{
width: 664rpx;
width: 664rpx;
...
...
src/pages/order/order.wxml
View file @
67b6faee
...
@@ -25,9 +25,9 @@
...
@@ -25,9 +25,9 @@
<text class="pro-img-dot">...</text>
<text class="pro-img-dot">...</text>
</view>
</view>
<view class="pro-number">
<view class="pro-number">
<text>共5件商品</text>
<text
class="total-pro"
>共5件商品</text>
<view>
<view
class="total-price"
>
实付 <text>¥480</text>
实付 <text
class="price"
>¥480</text>
</view>
</view>
</view>
</view>
<view class="btn-group">
<view class="btn-group">
...
...
src/pages/order/order.wxss
View file @
67b6faee
...
@@ -55,7 +55,7 @@ scroll-view{
...
@@ -55,7 +55,7 @@ scroll-view{
color: #333333;
color: #333333;
}
}
.pro-list{
.pro-list{
margin-top: 1
4
rpx;
margin-top: 1
6
rpx;
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
}
}
...
@@ -71,7 +71,7 @@ scroll-view{
...
@@ -71,7 +71,7 @@ scroll-view{
line-height: 144rpx;
line-height: 144rpx;
}
}
.pro-number{
.pro-number{
margin-top: 2
5
rpx;
margin-top: 2
8
rpx;
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
padding-bottom: 12rpx;
padding-bottom: 12rpx;
...
@@ -88,6 +88,18 @@ scroll-view{
...
@@ -88,6 +88,18 @@ scroll-view{
font-size: 24rpx;
font-size: 24rpx;
margin-left: 25rpx;
margin-left: 25rpx;
}
}
.total-pro{
color: #666666;
font-size: 26rpx;
}
.total-price{
font-size: 26rpx;
color: #333333;
}
.total-price .price{
color: #cb3c3c;
font-weight: 600;
}
...
...
src/project.config.json
View file @
67b6faee
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
"list"
:
[]
"list"
:
[]
},
},
"miniprogram"
:
{
"miniprogram"
:
{
"current"
:
2
1
,
"current"
:
2
2
,
"list"
:
[
"list"
:
[
{
{
"id"
:
-1
,
"id"
:
-1
,
...
@@ -178,6 +178,13 @@
...
@@ -178,6 +178,13 @@
"id"
:
-1
,
"id"
:
-1
,
"name"
:
"我的订单"
,
"name"
:
"我的订单"
,
"pathName"
:
"pages/order/order"
,
"pathName"
:
"pages/order/order"
,
"query"
:
""
,
"scene"
:
null
},
{
"id"
:
-1
,
"name"
:
"我的"
,
"pathName"
:
"pages/my/my"
,
"scene"
:
null
"scene"
:
null
}
}
]
]
...
...
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