diff --git a/components/cate-one/cate-one.vue b/components/cate-one/cate-one.vue
index 3f21770..2876b82 100644
--- a/components/cate-one/cate-one.vue
+++ b/components/cate-one/cate-one.vue
@@ -186,6 +186,7 @@
},
created() {
this.getCartNum()
+ this.getCartListFun()
},
methods: {
...mapActions(['getCartNum']),
@@ -241,8 +242,7 @@
showCartPopup() {
if (this.cartLists.length > 0) {
this.showCart = true
- }
- else {
+ } else {
this.$toast({
title: '请先添加商品'
});
@@ -285,30 +285,29 @@
// 获取购物车列表数据
getCartListFun() {
- console.log("1>>>", 1);
-
getCartList().then((res) => {
if (res.code == 1) {
- console.log("res>>>", res);
let {
lists,
total_amount
} = res.data;
- // let cartType = 0;
-
- // if (lists.length == 0) {
- // cartType = 2;
- // } else {
- // cartType = 1;
- // }
-
this.cartLists = lists;
-
- // this.cartType = cartType;
+ // // let cartType = 0;
+
+ // // if (lists.length == 0) {
+ // // cartType = 2;
+ // // } else {
+ // // cartType = 1;
+ // // }
+
+ // this.cartLists = list;
+ // console.log(">>>", this.cartLists);
+
+ // // this.cartType = cartType;
this.totalPrice = total_amount
- // this.isShow = true;
- this.getCartNum();
+ // // this.isShow = true;
+ // this.getCartNum();
}
});
},
@@ -415,7 +414,7 @@
.main-wrap {
position: relative;
- padding: 0 20rpx;
+ padding: 0 20rpx 160rpx;
.goods {
.info {
width: 100%;
@@ -432,7 +431,7 @@
position: fixed;
left: 0;
right: 0;
- bottom: env(safe-area-inset-bottom);
+ bottom: calc(env(safe-area-inset-bottom) + 10rpx);
height: 100rpx;
background-color: #212526;
}
diff --git a/components/order-dialog/order-dialog.vue b/components/order-dialog/order-dialog.vue
new file mode 100644
index 0000000..757b11c
--- /dev/null
+++ b/components/order-dialog/order-dialog.vue
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
diff --git a/components/order-goods/order-goods.vue b/components/order-goods/order-goods.vue
index 61fa8fb..2cdca34 100644
--- a/components/order-goods/order-goods.vue
+++ b/components/order-goods/order-goods.vue
@@ -1,59 +1,61 @@
-
+
-
+
{{ item.goods_name || item.name }}
{{ orderDesc }}
-
+
-
+
下单时间:2024-10-10 16:58:53
预计时间:2025-10-10 16:58:54
数量:x{{ item.goods_num }}
- 实付:¥0.00
+ 实付:
+
+
{{item.spec_value_str || item.spec_value}}
+
+ {{ item.goods_name || item.name }}
+ 周一至周日可用
+
+
+
+
+
+
+
+ {{ item.goods_name || item.name }}
+
+
+ {{ item.goods_name || item.name }}
+ x{{ item.goods_num }}
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
- 取消订单
-
-
- 去付款
-
-
-
-
-
+
该商品不支持快递配送
@@ -116,7 +118,7 @@ export default {
type: Number,
default: 1
},
- // order | comfirm
+ // order | confirm | pay
mode: {
type: String,
default: 'order'
@@ -140,10 +142,6 @@ export default {
orderDesc: {
type: String,
default: ''
- },
- orderCancleTime: {
- type: Number,
- default: 0
}
},
@@ -153,18 +151,8 @@ export default {
uni.navigateTo({
url: `/pages/goods_details/goods_details?id=${id}`
})
- },
-
- refresh() {
- this.$emit('refresh')
-
}
- },
- computed: {
- getCancelTime() {
- return (time) => time - Date.now() / 1000;
- },
- },
+ }
}
\ No newline at end of file
diff --git a/config/app.js b/config/app.js
index ba7283a..12606d8 100644
--- a/config/app.js
+++ b/config/app.js
@@ -15,8 +15,8 @@ const IS_H5 = false
const baseURLMap = {
// 开发环境
// development: 'https://likeshop-open.yixiangonline.com',
- // development: 'http://admin.likeshop.com',
- development: 'https://jianbing.stnav.com',
+ development: 'http://admin.likeshop.com',
+ // development: 'https://jianbing.stnav.com',
// development: 'https://jb.stnav.com',
// 生产环境https://php-b2c.likeshop.cn
diff --git a/pages/order/order.vue b/pages/order/order.vue
index e1a9fdb..4bc10d6 100644
--- a/pages/order/order.vue
+++ b/pages/order/order.vue
@@ -22,11 +22,11 @@
},
{
name: '待付款',
- type: orderType.WAIT_PAY
+ type: orderType.PAY
},
{
name: '未制作',
- type: orderType.NOT_MADE
+ type: orderType.DELIVERY
},
{
name: '已完成',
@@ -34,7 +34,7 @@
},
{
name: '退款',
- type: orderType.REFUND
+ type: orderType.CLOSE
}
],
current: 0,
@@ -46,8 +46,10 @@
},
methods: {
tabChange(index) {
+ console.log("this.list>>>", this.list);
this.current = index
this.type = this.list[index].type
+
}
}
}
diff --git a/pages/order_details/order_details.vue b/pages/order_details/order_details.vue
index ea94ec6..d1e41c0 100644
--- a/pages/order_details/order_details.vue
+++ b/pages/order_details/order_details.vue
@@ -1,12 +1,21 @@
-
-
- 滨江区XXX门店
+
+
+ 未付款
+ 请在
+
+ 内完成支付
+
+
+
+
+ {{ orderDetail.delivery_address }}
-
+
+
-
+
再来一单
申请售后
+
+
+ 保温盒地址
+
+
+ 孙婉宛
+
+
+ 15271435646
+
+
+ 站前北街4号顺义供电公司北50米
+
+
+
+
+
+ 订单信息
+
+
+ 买家昵称: 134213234122321232123
+
+
+
+ 订单编号: {{ orderDetail.order_sn }}
+
+
+
+ 下单时间: {{ orderDetail.create_time }}
+
+
+
@@ -103,21 +146,126 @@
+
+
+ 取消订单
+ 立即支付
+
+
+
-
+
- 查看物流
+ 查看物流
-
- 确认收货
+
+ 确认收货
+
@@ -140,7 +288,13 @@
.btn-group {
& > view {
+ font-size: 36rpx;
height: 100rpx;
+ line-height: 100rpx;
+ }
+
+ .btn1 {
+ color: #323232;
}
}
\ No newline at end of file
diff --git a/pages/order_now/order_now.vue b/pages/order_now/order_now.vue
index 240a196..6233add 100644
--- a/pages/order_now/order_now.vue
+++ b/pages/order_now/order_now.vue
@@ -74,25 +74,7 @@
-
+ :order_type="orderInfo.order_type" :imageWidth="260" :imageHeight="172" mode="confirm">
diff --git a/styles/base.scss b/styles/base.scss
index 7702920..f3ef767 100644
--- a/styles/base.scss
+++ b/styles/base.scss
@@ -64,6 +64,10 @@ page {
/* 定义字体大小 */
+.xxxl {
+ font-size: 40rpx;
+}
+
.xxl {
font-size: 36rpx;
}
diff --git a/utils/type.js b/utils/type.js
index 54ef421..fc303d0 100644
--- a/utils/type.js
+++ b/utils/type.js
@@ -23,13 +23,14 @@ export const orderType = {
// 全部
ALL: 'all',
// 待付款
- WAIT_PAY: 'wait_pay',
+ PAY: 'pay',
// 未制作
- NOT_MADE: 'not_made',
+ DELIVERY: 'delivery',
// 已完成
FINISH: 'finish',
// 退款
- REFUND: 'refund'
+ REFUND: 'refund',
+ CLOSE: 'close' //待收货
};
// 售后状态
export const AfterSaleType = {