From 357ece26f673319d63e140a21f31bfd644af7bd4 Mon Sep 17 00:00:00 2001
From: Enzo <1284707383@qq.com>
Date: Thu, 24 Jun 2021 15:33:36 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=BB=86=E8=8A=82=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=20=E7=AC=AC=E4=B8=89=E6=96=B9=E4=BE=9D=E8=B5=96?=
=?UTF-8?q?=E6=9B=BF=E6=8D=A2=E6=88=90=E8=87=AA=E5=B7=B1=E7=9A=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 1 -
colorui/main.css | 2 +-
common/api.js | 5 +-
main.js | 13 --
pages.json | 15 +-
pages/agreement/agreement.vue | 22 +++
pages/order/apply-details.vue | 198 ++++++++++--------------
pages/order/apply-refund.vue | 208 +++++++++++--------------
pages/order/confirm-order.vue | 139 +++++++++--------
pages/order/index.vue | 283 ++++++++++++++++++++++++++++------
pages/order/order-details.vue | 186 +++++++++-------------
pages/order/order-item.vue | 10 +-
pages/order/unpay-details.vue | 126 +++++++++++++++
13 files changed, 730 insertions(+), 478 deletions(-)
create mode 100644 pages/agreement/agreement.vue
create mode 100644 pages/order/unpay-details.vue
diff --git a/App.vue b/App.vue
index 2160245..383ddd7 100644
--- a/App.vue
+++ b/App.vue
@@ -17,7 +17,6 @@
methods: {
// 接口code换取用户信息
userCode(code){
- return console.log("code", code);
this.$http('', { code }).then(res => {
console.log("获得用户信息", res);
})
diff --git a/colorui/main.css b/colorui/main.css
index e07381f..6b5081a 100644
--- a/colorui/main.css
+++ b/colorui/main.css
@@ -3494,7 +3494,7 @@ scroll-view.cu-steps .cu-item {
}
.bg-green {
- background-color: #10CB3B;
+ background-color: #10CB3B!important;
color: #ffffff;
}
diff --git a/common/api.js b/common/api.js
index 2d27944..d63ba8e 100644
--- a/common/api.js
+++ b/common/api.js
@@ -21,4 +21,7 @@ export const API_COFIRMORDER_DETAILS = '/api/order/confirm';
export const API_GOODS_DETAIL = '/api/goods/detail'; // 商品详情
export const API_COLLECT_DEAL = '/api/collect/deal'; // 商品收藏
-export const TEST = '/api/order/deal';
\ No newline at end of file
+export const TEST = '/api/order/deal';
+
+//订单预支付
+export const API_PRPAID = '/api/order/deal'
diff --git a/main.js b/main.js
index a972626..2453761 100644
--- a/main.js
+++ b/main.js
@@ -21,15 +21,6 @@ Vue.use(uView);
import { $http } from '@/common/http.js';
Vue.prototype.$http = $http;
-//color-ui-标题组件
-import cuCustom from './colorui/components/cu-custom.vue'
-Vue.component('cu-custom', cuCustom)
-
-
-// 上拉加载、下拉刷新
-import MescrollBody from './components/mescroll-uni/mescroll-body.vue'
-Vue.component('mescroll-body', MescrollBody)
-
//骨架屏
import Skeleton from './components/my-uni-skeleton/index.vue'
Vue.component('skeleton', Skeleton);
@@ -38,10 +29,6 @@ Vue.component('skeleton', Skeleton);
import myNocontent from './components/my-nocontent/my-nocontent.vue';
Vue.component('my-nocontent', myNocontent);
-//金融数字
-import aMount from './components/amount/index.vue'
-Vue.component('amount', aMount)
-
Vue.prototype.$toast=msg=>{
uni.showToast({
icon:'none',
diff --git a/pages.json b/pages.json
index ebcdee7..bef8819 100644
--- a/pages.json
+++ b/pages.json
@@ -13,7 +13,8 @@
{
"path": "pages/order/index",
"style": {
- "navigationBarTitleText": "我的订单"
+ "navigationBarTitleText": "我的订单",
+ "enablePullDownRefresh": true
}
},
{
@@ -22,6 +23,12 @@
"navigationBarTitleText": "订单详情"
}
},
+ {
+ "path": "pages/order/unpay-details",
+ "style": {
+ "navigationBarTitleText": "订单详情"
+ }
+ },
{
"path": "pages/order/confirm-order",
"style": {
@@ -34,6 +41,12 @@
"navigationBarTitleText": "支付结果"
}
},
+ {
+ "path": "pages/agreement/agreement",
+ "style": {
+ "navigationBarTitleText": "协议"
+ }
+ },
{
"path": "pages/order/apply-refund",
"style": {
diff --git a/pages/agreement/agreement.vue b/pages/agreement/agreement.vue
new file mode 100644
index 0000000..c3ebb6d
--- /dev/null
+++ b/pages/agreement/agreement.vue
@@ -0,0 +1,22 @@
+
+
+ 协议协议协议协议协议协议协议协议协议协议协议协议协议协议协议协议
+ 协议协议协议协议协议协议协议协议协议协议协议协议协议协议协议协议协议协议协议协议
+
+
+
+
+
+
diff --git a/pages/order/apply-details.vue b/pages/order/apply-details.vue
index dac4973..a08931b 100644
--- a/pages/order/apply-details.vue
+++ b/pages/order/apply-details.vue
@@ -1,116 +1,111 @@
-
-
-
-
-
-
+
+
+
+
-
-
-
-
- 网红辣椒棒 魔鬼辣椒挑战全网第一辣 网红优惠季
+
+
+
+
+ 网红辣椒棒 魔鬼辣椒挑战全网第一辣 网红优惠季
+
+ 数量 x1
+
+
+
+ 19.90
- 数量 x1
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
- 订单金额
-
-
-
+
+
+
+
+
+
+ 订单金额
+
+ 19.90
-
- 扣费率
-
- 30%
-
+
+
+ 扣费率
+
+ 30%
-
- 扣费金额
-
-
-
+
+
+ 扣费金额
+
+ 3.90
-
-
-
-
-
-
- 可退金额
-
-
-
+
+
+
+
+
+
+
+ 可退金额
+
+ 16.00
-
- 订单编号
-
- 67432428794847982374
- 复制
-
+
+
+ 订单编号
+
+ 67432428794847982374
+ 复制
-
-
-
-
-
-
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
diff --git a/pages/order/apply-refund.vue b/pages/order/apply-refund.vue
index 3057d8d..f4f4f25 100644
--- a/pages/order/apply-refund.vue
+++ b/pages/order/apply-refund.vue
@@ -1,119 +1,113 @@
-
+
+
+
+
-
-
-
-
-
-
-
-
-
- 网红辣椒棒 魔鬼辣椒挑战全网第一辣 网红优惠季
-
- 数量 x1
-
-
-
-
-
-
+
+
+
+
+ 网红辣椒棒 魔鬼辣椒挑战全网第一辣 网红优惠季
-
-
-
-
-
-
-
-
-
- 订单金额
-
-
-
-
-
- 扣费率
-
- 30%
-
-
-
- 扣费金额
-
-
+ 数量 x1
+
+
+
+ 19.90
+
+
-
-
-
-
-
-
- 可退金额
-
-
-
+
+
+
+
+
+
+ 订单金额
+
+ 19.90
-
- 订单编号
-
- 67432428794847982374
- 复制
-
+
+
+ 扣费率
+
+ 30%
-
- 退款说明
-
+
+
+ 扣费金额
+
+ 3.90
-
-
-
-
-
+
+
+
+
+
+
+
+ 可退金额
+
+ 16.00
-
-
+
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/order/confirm-order.vue b/pages/order/confirm-order.vue
index 230d2dc..7f3286d 100644
--- a/pages/order/confirm-order.vue
+++ b/pages/order/confirm-order.vue
@@ -1,53 +1,50 @@
-
+
+
+
+
-
-
-
-
-
-
-
-
-
- {{orderDetails.goods.name}}
-
-
- 数量
-
-
-
-
-
+
+
+
+
+ {{orderDetails.goods.name}}
+
+
+ 数量
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+ {{Number(orderDetails.goods.specs[0].selling_price || 0)}}
+
-
-
-
-
-
-
-
-
- 优惠
- 暂无优惠
-
+
-
-
+
+
+
+
+
+
+ 优惠
+ 暂无优惠
+
+
+
+
@@ -64,7 +61,7 @@
应付款:
-
+ {{Number(orderDetails.goods.specs[0].selling_price*num || 0)}}
diff --git a/pages/order/order-item.vue b/pages/order/order-item.vue
index f357a1d..6d33b19 100644
--- a/pages/order/order-item.vue
+++ b/pages/order/order-item.vue
@@ -7,7 +7,7 @@
-
+
{{item.state_text.text}}
@@ -101,6 +101,14 @@
}
},
methods: {
+ goDetails(item) {
+ if(item.state==1) {
+ this.$routerGo('/pages/order/unpay-details?orderid='+item.id)
+ }else {
+ this.$routerGo('/pages/order/order-details?orderid='+item.id)
+ }
+
+ },
getUserOrder(pagenum) {
this.$http(this.API.API_USERORDER, {state: this.tabs[this.index].type,page: pagenum,per_page: 20}).then(res => {
if(res.code == 0) {
diff --git a/pages/order/unpay-details.vue b/pages/order/unpay-details.vue
new file mode 100644
index 0000000..3c18f7b
--- /dev/null
+++ b/pages/order/unpay-details.vue
@@ -0,0 +1,126 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{orderDetails.goods.name}}
+
+ 数量 x{{orderDetails.number}}
+
+
+
+
+
+
+ 申请退款
+ 退款中
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 订单编号
+
+ {{orderDetails.order_sn}}
+ 复制
+
+
+
+ 下单时间
+ {{orderDetails.created_at_text}}
+
+
+ 付款时间
+ {{orderDetails.payment_at_text}}
+
+
+ 支付方式
+ {{orderDetails.payment_type}}
+
+
+
+
+
+
+ 优惠
+ 暂无优惠
+
+
+
+
+
+
+
+
+