Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
zhiliang-light-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
1cb94cb4
authored
2019-10-10 12:05:22 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改js,json等文件时候,只复制被修改文件,而非全文件覆盖.
1 parent
dd9d6ed0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
100 additions
and
20 deletions
gulpfile.js
src/http/api.js
src/pages/auction-detail/auction-detail.js
src/pages/auction-detail/auction-detail.wxml
src/pages/auction-mine/auction-mine.js
src/pages/auction-mine/auction-mine.wxml
gulpfile.js
View file @
1cb94cb
This diff is collapsed.
Click to expand it.
src/http/api.js
View file @
1cb94cb
...
...
@@ -43,7 +43,7 @@ module.exports = {
auctionSubmit
:
'/auction/submit'
,
// post 拍卖出价提交
auctionRecordList
:
'/auction/record/list'
,
// post 拍卖出价列表
auctionRecordLast
:
'/auction/record/last'
,
// post 获得最高价 和列表
auctionMine
:
'/auction/member'
,
// post 我的拍卖产品
auctionMine
:
'/auction/member
/list
'
,
// post 我的拍卖产品
// 秒杀
seckillList
:
'/seckill/list'
,
// post 秒杀列表
...
...
src/pages/auction-detail/auction-detail.js
View file @
1cb94cb
...
...
@@ -172,6 +172,7 @@ Page({
element
.
recordTime
=
new
Date
(
element
.
recordTime
).
toString
(
"yyyy.MM.dd hh:mm:ss"
);
element
.
memberPhone
=
element
.
memberPhone
.
substr
(
0
,
3
)
+
'****'
+
element
.
memberPhone
.
substr
(
7
);
});
priceInfo
=
[];
this
.
setData
({
priceInfo
:
priceInfo
,
maxPrice
:
result
.
maxPrice
||
0
,
...
...
src/pages/auction-detail/auction-detail.wxml
View file @
1cb94cb
...
...
@@ -47,25 +47,28 @@
<view class="t1">延时周期:{{productInfo.delayPeriod}}</view>
</view>
<view class="auction-table">
<view class="tab">
<!-- 表头 -->
<view class="tab-item">
<view class="item item1">状态</view>
<view class="item item2">竞拍者</view>
<view class="item item3">出价</view>
<view class="item item4">时间</view>
</view>
<!-- 表体 -->
<view wx:for="{{priceInfo}}" wx:key="index" class="tab-item {{index != 0 ? 'tab-item2':''}}">
<view class="item item1">
<view class="block">{{index == 0 ? "领先" : "淘汰"}}</view>
<view wx:if="{{priceInfo && priceInfo.length > 0}}">
<view class="tab">
<!-- 表头 -->
<view class="tab-item">
<view class="item item1">状态</view>
<view class="item item2">竞拍者</view>
<view class="item item3">出价</view>
<view class="item item4">时间</view>
</view>
<!-- 表体 -->
<view wx:for="{{priceInfo}}" wx:key="index" class="tab-item {{index != 0 ? 'tab-item2':''}}">
<view class="item item1">
<view class="block">{{index == 0 ? "领先" : "淘汰"}}</view>
</view>
<view class="item item2">{{item.memberPhone}}</view>
<view class="item item3">¥{{item.priceStr}}</view>
<view class="item item4">{{item.recordTime}}</view>
</view>
<view class="item item2">{{item.memberPhone}}</view>
<view class="item item3">¥{{item.priceStr}}</view>
<view class="item item4">{{item.recordTime}}</view>
</view>
<view bindtap="onShowAuctionBidDetailHandler" class="tips">查看所有{{priceTotal}}次出价></view>
</view>
<view
bindtap="onShowAuctionBidDetailHandler" class="tips">查看所有{{priceTotal}}次出价>
</view>
<view
wx:else>大家都很矜持,该拍卖还未有人出价
</view>
</view>
</view>
</view>
...
...
src/pages/auction-mine/auction-mine.js
View file @
1cb94cb
import
{
getBindtapData
}
from
'../../utils/util'
;
let
Date
=
require
(
'../../utils/date.js'
);
let
app
=
getApp
();
Page
({
data
:
{},
data
:
{
authorizeVisible
:
false
,
total
:
0
,
page
:
1
,
size
:
10
,
dataList
:
[],
},
onShareAppMessage
()
{},
showAuth
()
{
this
.
setData
({
authorizeVisible
:
true
})
},
onLoad
(
options
)
{},
onShow
()
{
},
onLoad
(
options
)
{
this
.
resetPage
();
this
.
initData
();
},
initData
()
{
this
.
queryAuctionList
();
},
// 到达底部
onReachBottom
()
{
if
(
this
.
data
.
dataList
.
length
<
this
.
data
.
total
)
{
this
.
setData
({
page
:
this
.
data
.
page
+
1
});
this
.
queryAuctionList
();
}
},
// 重置页面列表 点击搜索条件时需要
resetPage
()
{
this
.
setData
({
page
:
1
,
dataList
:
[]
})
},
// 拍卖列表
queryAuctionList
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
app
.
post
({
url
:
app
.
api
.
auctionMine
,
data
:
{
page
:
this
.
data
.
page
,
size
:
this
.
data
.
size
,
}
}).
then
((
result
)
=>
{
if
(
!
result
)
return
;
if
(
!
result
.
list
)
return
;
let
dataList
=
result
.
list
;
dataList
.
forEach
(
element
=>
{
element
.
dateStr
=
new
Date
(
element
.
startTime
).
toString
(
"yyyy.MM.dd hh:mm"
)
+
" - "
+
new
Date
(
element
.
endTime
).
toString
(
"yyyy.MM.dd hh:mm"
);
});
dataList
=
this
.
data
.
dataList
.
concat
(
dataList
);
this
.
setData
({
dataList
:
dataList
,
total
:
result
.
total
})
resolve
();
})
})
},
// 隐藏蒙层
hideMask
()
{
this
.
setData
({
...
...
src/pages/auction-mine/auction-mine.wxml
View file @
1cb94cb
...
...
@@ -4,7 +4,22 @@
<!-- <view class="app__top-shadow"></view> -->
<view class="app__content main">
<view class="top-space"></view>
<view class="content">我的竞拍订单</view>
<view class="content">
<view class="list">
<view wx:for="{{dataList}}" wx:key="{{index}}" class="border list-item">
<view class="prize">
<image class="image" mode="aspectFill" src="{{item.auctionImage && item.auctionImage[0] || ''}}" />
</view>
<view class="cont">
<view class="tt tit">{{item.auctionName}}</view>
<view class="tt t2">活动区域:{{item.district}}</view>
<view class="tt t3">{{item.dateStr}}</view>
<view class="tt t4 m1">{{item.dateStr}}</view>
<view class="tt t4">{{item.dateStr}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
<van-popup show="{{ authorizeVisible }}">
...
...
Please
register
or
sign in
to post a comment