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 b3a42b1..f3cd12e 100644
--- a/common/api.js
+++ b/common/api.js
@@ -21,6 +21,9 @@ 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 API_PRPAID = '/api/order/deal'
+
/* 个人中心相关 */
export const API_COLLECT_LIST = '/api/collect/list'; // 我的收藏列表
@@ -28,4 +31,3 @@ export const API_COLLECT_LIST = '/api/collect/list'; // 我的收藏列表
export const API_WXLOGIN = '/api/wxlogin'; // 用户登录
export const API_WECHAT_SETPHONE = '/api/wechat/setPhone'; // 用户授权手机号提交
-export const TEST = '/api/order/deal';
\ No newline at end of file
diff --git a/main.js b/main.js
index 852a09f..89a4a70 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 8d2f894..bfab971 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}}
+
+
+
+
+
+
+ 优惠
+ 暂无优惠
+
+
+
+
+
+
+
+
+