From 2582a6783913abe7afacb1968763eb52c032d95f Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Sun, 25 Aug 2024 11:44:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locale/en.js | 6 +- pages/center/center.vue | 4 +- pages/order/order.vue | 255 ++++++++++++++++++++++++++++++++---------------- 3 files changed, 178 insertions(+), 87 deletions(-) diff --git a/locale/en.js b/locale/en.js index e6ceddd..177a35d 100644 --- a/locale/en.js +++ b/locale/en.js @@ -148,10 +148,10 @@ export default { "login-now": "Lonin Now" }, "order": { - "Submit_New": "Submit New", + "Submit_New": "Submit", "Speedip": "Speedip", - "Total_Amount": "Total Amount", - "Profit": "Profit", + "Total_Amount": "Need to recharge", + "Profit": "Commission", "no-Order": "No Order", "take-stroll": "Take a Stroll", "class_1": "ALL", diff --git a/pages/center/center.vue b/pages/center/center.vue index f1ac791..eb1ab51 100644 --- a/pages/center/center.vue +++ b/pages/center/center.vue @@ -206,7 +206,7 @@ - + diff --git a/pages/order/order.vue b/pages/order/order.vue index 0b51628..b9030d5 100644 --- a/pages/order/order.vue +++ b/pages/order/order.vue @@ -1,7 +1,8 @@ @@ -107,8 +121,7 @@ }, data() { return { - classifyList: [ - { + classifyList: [{ name: this.$t('page.order.class_1') }, { @@ -129,9 +142,9 @@ pageSize: 10 }, noOrder: false, - loading : false, - show : false, - order : {} + loading: false, + show: false, + order: {} } }, onShow() { @@ -146,11 +159,11 @@ let data = { ...this.queryParams, } - - if(this.currentIndex) data.state = this.currentIndex - 1 - + + if (this.currentIndex) data.state = this.currentIndex - 1 + this.request('orderPage', {}, data).then(res => { - if(res.code == 200){ + if (res.code == 200) { this.loading = false this.productList = res.result.records } @@ -167,7 +180,7 @@ this.$play() uni.showLoading() this.request('pay', {}, { - id : this.order.id + id: this.order.id }).then(res => { uni.hideLoading() this.show = false @@ -176,13 +189,13 @@ } }) }, - toHome(){ //去首页 + toHome() { //去首页 this.$play() uni.switchTab({ url: '/pages/home/home' }) }, - scrolltolower(){ + scrolltolower() { this.queryParams.pageSize += 10 this.getOrderList() } @@ -200,31 +213,109 @@ font-weight: bold; min-height: 100vh; padding-bottom: 200rpx; - - .act{ - background-color: #000; - border-radius: 10rpx; - color: #fff; + + .type { + display: flex; + background-color: #fff; + // position: fixed; + width: 100%; + top: 0; + left: 0; + height: 90rpx; + justify-content: center; + align-items: center; + color: #989898; + font-size: 28rpx; + + &>view { + flex: 1; + display: flex; + justify-content: center; + align-items: center; + } + + .select { + color: #000; + + text { + padding-bottom: 10rpx; + border-bottom: 3px solid #000; + } + } } .order-list { box-sizing: border-box; - margin-top: 50px; + // margin-top: 50px; .order-item { position: relative; padding: 20rpx; border-radius: 5px; background-color: $uni-bg-color; - box-shadow: 0px 0px 5rpx 5rpx #00000023; + box-shadow: 0px 0px 5rpx 5rpx #00000010; margin: 0rpx 20rpx 20rpx 20rpx; - .top{ + + .top { display: flex; justify-content: space-between; } - .con{ + + .center-box { display: flex; - align-items: center; + padding: 20rpx 0; + + .img-box { + width: 200rpx; + height: 200rpx; + overflow: hidden; + border-radius: 10rpx; + display: flex; + align-items: center; + + image { + width: 100%; + height: 100%; + } + } + + .content { + font-weight: 500; + width: 430rpx; + font-size: 28rpx; + padding-left: 10rpx; + padding-top: 10rpx; + + .title { + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + width: 100%; + } + + .con { + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 15rpx; + } + } + } + + .buttom { + display: flex; + justify-content: flex-end; + + .btn { + padding: 10rpx 20rpx; + font-size: 26rpx; + font-weight: 500; + background-color: #f33; + color: #fff; + border-radius: 10rpx; + } } } }