修改js,json等文件时候,只复制被修改文件,而非全文件覆盖.
Showing
6 changed files
with
100 additions
and
20 deletions
This diff is collapsed.
Click to expand it.
| ... | @@ -43,7 +43,7 @@ module.exports = { | ... | @@ -43,7 +43,7 @@ module.exports = { |
| 43 | auctionSubmit: '/auction/submit', // post 拍卖出价提交 | 43 | auctionSubmit: '/auction/submit', // post 拍卖出价提交 |
| 44 | auctionRecordList: '/auction/record/list', // post 拍卖出价列表 | 44 | auctionRecordList: '/auction/record/list', // post 拍卖出价列表 |
| 45 | auctionRecordLast: '/auction/record/last', // post 获得最高价 和列表 | 45 | auctionRecordLast: '/auction/record/last', // post 获得最高价 和列表 |
| 46 | auctionMine: '/auction/member', // post 我的拍卖产品 | 46 | auctionMine: '/auction/member/list', // post 我的拍卖产品 |
| 47 | 47 | ||
| 48 | // 秒杀 | 48 | // 秒杀 |
| 49 | seckillList: '/seckill/list', // post 秒杀列表 | 49 | seckillList: '/seckill/list', // post 秒杀列表 | ... | ... |
| ... | @@ -172,6 +172,7 @@ Page({ | ... | @@ -172,6 +172,7 @@ Page({ |
| 172 | element.recordTime = new Date(element.recordTime).toString("yyyy.MM.dd hh:mm:ss"); | 172 | element.recordTime = new Date(element.recordTime).toString("yyyy.MM.dd hh:mm:ss"); |
| 173 | element.memberPhone = element.memberPhone.substr(0, 3) + '****' + element.memberPhone.substr(7); | 173 | element.memberPhone = element.memberPhone.substr(0, 3) + '****' + element.memberPhone.substr(7); |
| 174 | }); | 174 | }); |
| 175 | priceInfo = []; | ||
| 175 | this.setData({ | 176 | this.setData({ |
| 176 | priceInfo: priceInfo, | 177 | priceInfo: priceInfo, |
| 177 | maxPrice: result.maxPrice || 0, | 178 | maxPrice: result.maxPrice || 0, | ... | ... |
| ... | @@ -47,25 +47,28 @@ | ... | @@ -47,25 +47,28 @@ |
| 47 | <view class="t1">延时周期:{{productInfo.delayPeriod}}</view> | 47 | <view class="t1">延时周期:{{productInfo.delayPeriod}}</view> |
| 48 | </view> | 48 | </view> |
| 49 | <view class="auction-table"> | 49 | <view class="auction-table"> |
| 50 | <view class="tab"> | 50 | <view wx:if="{{priceInfo && priceInfo.length > 0}}"> |
| 51 | <!-- 表头 --> | 51 | <view class="tab"> |
| 52 | <view class="tab-item"> | 52 | <!-- 表头 --> |
| 53 | <view class="item item1">状态</view> | 53 | <view class="tab-item"> |
| 54 | <view class="item item2">竞拍者</view> | 54 | <view class="item item1">状态</view> |
| 55 | <view class="item item3">出价</view> | 55 | <view class="item item2">竞拍者</view> |
| 56 | <view class="item item4">时间</view> | 56 | <view class="item item3">出价</view> |
| 57 | </view> | 57 | <view class="item item4">时间</view> |
| 58 | <!-- 表体 --> | 58 | </view> |
| 59 | <view wx:for="{{priceInfo}}" wx:key="index" class="tab-item {{index != 0 ? 'tab-item2':''}}"> | 59 | <!-- 表体 --> |
| 60 | <view class="item item1"> | 60 | <view wx:for="{{priceInfo}}" wx:key="index" class="tab-item {{index != 0 ? 'tab-item2':''}}"> |
| 61 | <view class="block">{{index == 0 ? "领先" : "淘汰"}}</view> | 61 | <view class="item item1"> |
| 62 | <view class="block">{{index == 0 ? "领先" : "淘汰"}}</view> | ||
| 63 | </view> | ||
| 64 | <view class="item item2">{{item.memberPhone}}</view> | ||
| 65 | <view class="item item3">¥{{item.priceStr}}</view> | ||
| 66 | <view class="item item4">{{item.recordTime}}</view> | ||
| 62 | </view> | 67 | </view> |
| 63 | <view class="item item2">{{item.memberPhone}}</view> | ||
| 64 | <view class="item item3">¥{{item.priceStr}}</view> | ||
| 65 | <view class="item item4">{{item.recordTime}}</view> | ||
| 66 | </view> | 68 | </view> |
| 69 | <view bindtap="onShowAuctionBidDetailHandler" class="tips">查看所有{{priceTotal}}次出价></view> | ||
| 67 | </view> | 70 | </view> |
| 68 | <view bindtap="onShowAuctionBidDetailHandler" class="tips">查看所有{{priceTotal}}次出价></view> | 71 | <view wx:else>大家都很矜持,该拍卖还未有人出价</view> |
| 69 | </view> | 72 | </view> |
| 70 | </view> | 73 | </view> |
| 71 | </view> | 74 | </view> | ... | ... |
| 1 | import { | 1 | import { |
| 2 | getBindtapData | 2 | getBindtapData |
| 3 | } from '../../utils/util'; | 3 | } from '../../utils/util'; |
| 4 | let Date = require('../../utils/date.js'); | ||
| 4 | 5 | ||
| 5 | let app = getApp(); | 6 | let app = getApp(); |
| 6 | Page({ | 7 | Page({ |
| 7 | data: {}, | 8 | data: { |
| 9 | authorizeVisible: false, | ||
| 10 | total: 0, | ||
| 11 | page: 1, | ||
| 12 | size: 10, | ||
| 13 | dataList: [], | ||
| 14 | }, | ||
| 8 | onShareAppMessage() {}, | 15 | onShareAppMessage() {}, |
| 9 | showAuth() { | 16 | showAuth() { |
| 10 | this.setData({ | 17 | this.setData({ |
| 11 | authorizeVisible: true | 18 | authorizeVisible: true |
| 12 | }) | 19 | }) |
| 13 | }, | 20 | }, |
| 14 | onLoad(options) {}, | 21 | onShow() { |
| 22 | |||
| 23 | }, | ||
| 24 | onLoad(options) { | ||
| 25 | this.resetPage(); | ||
| 26 | this.initData(); | ||
| 27 | }, | ||
| 28 | initData() { | ||
| 29 | this.queryAuctionList(); | ||
| 30 | }, | ||
| 31 | |||
| 32 | // 到达底部 | ||
| 33 | onReachBottom() { | ||
| 34 | if (this.data.dataList.length < this.data.total) { | ||
| 35 | this.setData({ | ||
| 36 | page: this.data.page + 1 | ||
| 37 | }); | ||
| 38 | this.queryAuctionList(); | ||
| 39 | } | ||
| 40 | }, | ||
| 41 | |||
| 42 | // 重置页面列表 点击搜索条件时需要 | ||
| 43 | resetPage() { | ||
| 44 | this.setData({ | ||
| 45 | page: 1, | ||
| 46 | dataList: [] | ||
| 47 | }) | ||
| 48 | }, | ||
| 49 | |||
| 50 | // 拍卖列表 | ||
| 51 | queryAuctionList() { | ||
| 52 | return new Promise((resolve, reject) => { | ||
| 53 | app.post({ | ||
| 54 | url: app.api.auctionMine, | ||
| 55 | data: { | ||
| 56 | page: this.data.page, | ||
| 57 | size: this.data.size, | ||
| 58 | } | ||
| 59 | }).then((result) => { | ||
| 60 | if (!result) return; | ||
| 61 | if (!result.list) return; | ||
| 62 | let dataList = result.list; | ||
| 63 | dataList.forEach(element => { | ||
| 64 | element.dateStr = new Date(element.startTime).toString("yyyy.MM.dd hh:mm") + " - " + new Date(element.endTime).toString("yyyy.MM.dd hh:mm"); | ||
| 65 | }); | ||
| 66 | dataList = this.data.dataList.concat(dataList); | ||
| 67 | this.setData({ | ||
| 68 | dataList: dataList, | ||
| 69 | total: result.total | ||
| 70 | }) | ||
| 71 | resolve(); | ||
| 72 | }) | ||
| 73 | }) | ||
| 74 | }, | ||
| 75 | |||
| 15 | // 隐藏蒙层 | 76 | // 隐藏蒙层 |
| 16 | hideMask() { | 77 | hideMask() { |
| 17 | this.setData({ | 78 | this.setData({ | ... | ... |
| ... | @@ -4,7 +4,22 @@ | ... | @@ -4,7 +4,22 @@ |
| 4 | <!-- <view class="app__top-shadow"></view> --> | 4 | <!-- <view class="app__top-shadow"></view> --> |
| 5 | <view class="app__content main"> | 5 | <view class="app__content main"> |
| 6 | <view class="top-space"></view> | 6 | <view class="top-space"></view> |
| 7 | <view class="content">我的竞拍订单</view> | 7 | <view class="content"> |
| 8 | <view class="list"> | ||
| 9 | <view wx:for="{{dataList}}" wx:key="{{index}}" class="border list-item"> | ||
| 10 | <view class="prize"> | ||
| 11 | <image class="image" mode="aspectFill" src="{{item.auctionImage && item.auctionImage[0] || ''}}" /> | ||
| 12 | </view> | ||
| 13 | <view class="cont"> | ||
| 14 | <view class="tt tit">{{item.auctionName}}</view> | ||
| 15 | <view class="tt t2">活动区域:{{item.district}}</view> | ||
| 16 | <view class="tt t3">{{item.dateStr}}</view> | ||
| 17 | <view class="tt t4 m1">{{item.dateStr}}</view> | ||
| 18 | <view class="tt t4">{{item.dateStr}}</view> | ||
| 19 | </view> | ||
| 20 | </view> | ||
| 21 | </view> | ||
| 22 | </view> | ||
| 8 | </view> | 23 | </view> |
| 9 | </view> | 24 | </view> |
| 10 | <van-popup show="{{ authorizeVisible }}"> | 25 | <van-popup show="{{ authorizeVisible }}"> | ... | ... |
-
Please register or sign in to post a comment