Browse Source

优化列表

master
wanghongjun 2 years ago
parent
commit
21065f5da5
  1. 12
      pages/user/order/buyOrder.vue
  2. 12
      pages/user/order/byOrder.vue

12
pages/user/order/buyOrder.vue

@ -197,7 +197,6 @@
let nlist = {data:result.data,total:result.count,current_page:pageNo} let nlist = {data:result.data,total:result.count,current_page:pageNo}
// //
const newList = app.initList(nlist) const newList = app.initList(nlist)
console.log(newList,"newlist")
app.list.data = getMoreListData(newList, app.list, pageNo) app.list.data = getMoreListData(newList, app.list, pageNo)
resolve(newList) resolve(newList)
}) })
@ -234,7 +233,6 @@
}, },
// //
onChangeTab(index) { onChangeTab(index) {
console.log(this.list)
const app = this const app = this
// //
app.curTab = index app.curTab = index
@ -271,6 +269,8 @@
justify-content: space-between; justify-content: space-between;
font-size: 26rpx; font-size: 26rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
padding-bottom: 20rpx;
border-bottom: 1rpx #9F9F9F solid;
.order-time { .order-time {
color: #777; color: #777;
@ -289,7 +289,6 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-bottom: 40rpx; margin-bottom: 40rpx;
border-top: 1rpx #777 solid;
// //
.goods-image { .goods-image {
@ -328,7 +327,8 @@
} }
.twoline-hide-sum{ .twoline-hide-sum{
color: red; color: red;
margin-left: 25%; float: right;
margin-top: 5rpx;
} }
} }
@ -342,6 +342,10 @@
margin-top: 10rpx; margin-top: 10rpx;
flex-basis: 100%; flex-basis: 100%;
color: $uni-text-color-grey; color: $uni-text-color-grey;
.goods-props-item {
margin-top: 10rpx;
}
} }
} }

12
pages/user/order/byOrder.vue

@ -197,7 +197,6 @@ export default {
let nlist = {data:result.data,total:result.count,current_page:pageNo} let nlist = {data:result.data,total:result.count,current_page:pageNo}
// //
const newList = app.initList(nlist) const newList = app.initList(nlist)
console.log(newList,"newlist")
app.list.data = getMoreListData(newList, app.list, pageNo) app.list.data = getMoreListData(newList, app.list, pageNo)
resolve(newList) resolve(newList)
}) })
@ -234,7 +233,6 @@ export default {
}, },
// //
onChangeTab(index) { onChangeTab(index) {
console.log(this.list)
const app = this const app = this
// //
app.curTab = index app.curTab = index
@ -271,6 +269,8 @@ export default {
justify-content: space-between; justify-content: space-between;
font-size: 26rpx; font-size: 26rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
padding-bottom: 20rpx;
border-bottom: 1rpx #9F9F9F solid;
.order-time { .order-time {
color: #777; color: #777;
@ -289,7 +289,6 @@ export default {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-bottom: 40rpx; margin-bottom: 40rpx;
border-top: 1rpx #777 solid;
// //
.goods-image { .goods-image {
@ -327,8 +326,9 @@ export default {
font-weight: bold; font-weight: bold;
} }
.twoline-hide-sum{ .twoline-hide-sum{
float: right;
margin-top: 5rpx;
color: red; color: red;
margin-left: 25%;
} }
} }
@ -342,6 +342,10 @@ export default {
margin-top: 10rpx; margin-top: 10rpx;
flex-basis: 100%; flex-basis: 100%;
color: $uni-text-color-grey; color: $uni-text-color-grey;
.goods-props-item {
margin-top: 10rpx;
}
} }
} }

Loading…
Cancel
Save