商品
diff --git a/src/router/index.js b/src/router/index.js
index 27ce779..00eed2c 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -10,26 +10,31 @@ const routes = [
component: layout,
redirect: '/home',
children: [
- {
- path: '/home',
- name: 'home',
- component: () => import('@/views/home/index.vue'),
- },
- {
- path: '/order',
- name: 'order',
- component: () => import('@/views/order/index.vue'),
+ {
+ path: '/home',
+ name: 'home',
+ component: () => import('@/views/home/index.vue'),
+ },
+ {
+ path: '/order',
+ name: 'order',
+ component: () => import('@/views/order/index.vue'),
},
{
path: '/orderList',
name: 'orderList',
component: () => import('@/views/order/indexList.vue'),
- },
+ },
{
path: '/shop',
name: 'shop',
component: () => import('@/views/shop/index.vue'),
- }
+ },
+ {
+ path: '/convert',
+ name: 'convert',
+ component: () => import('@/views/convert/index.vue'),
+ }
]
},
{
diff --git a/src/utils/audio.js b/src/utils/audio.js
index 8dbdce3..57f574e 100644
--- a/src/utils/audio.js
+++ b/src/utils/audio.js
@@ -1,5 +1,6 @@
export const audioplay = (text) => {
+ if(!text) return;
let ssu = new window.SpeechSynthesisUtterance(text);
window.speechSynthesis.speak(ssu);
}
\ No newline at end of file
diff --git a/src/views/convert/component/detail.vue b/src/views/convert/component/detail.vue
new file mode 100644
index 0000000..d5742b5
--- /dev/null
+++ b/src/views/convert/component/detail.vue
@@ -0,0 +1,359 @@
+
+
+
+
+
+
+
+
+ 共计
+ {{ formData.total_num }} 件商品
+
+
+
+
+
+
+ {{
+ row.cart_info.product.store_name
+ }}
+
+
+
+
+
+
+
+
+
+
订单信息
+
+
+
创建时间:
+
{{ formData.create_time }}
+
+
+
商品总数:
+
{{ formData.total_num }}
+
+
+
商品总价:
+
¥{{ formData.total_price }}
+
+
+
支付时间:
+
{{ formData.pay_time }}
+
+
+
优惠抵扣:
+
¥{{ formData.deduction_price }}
+
+
+
实际支付:
+
¥{{ formData.pay_price }}
+
+
+
支付方式:
+
+ 微信收款
+ 现金支付
+ 余额支付
+ 微信支付
+ 商户余额支付
+ 对公转账
+
+
+
+
收银员信息
+
+
+
+
昵称:
+
+ {{ formData.service_info.nickname }}
+
+
+
+
账号:
+
+ {{ formData.service_info.account }}
+
+
+
+
+
+
+
+
+ 提单前请清空购物车, 避免提单的商品与购物车商品混合,
+ 请确保购物车内无数据后再进行提单
+
+
+
+
+
+
+
+
diff --git a/src/views/convert/component/order.vue b/src/views/convert/component/order.vue
new file mode 100644
index 0000000..fcfd9f0
--- /dev/null
+++ b/src/views/convert/component/order.vue
@@ -0,0 +1,290 @@
+
+
+
+
+
+
+
+
+
+
单号: {{ item.order_sn }}
+
{{ item.create_time }}
+
+
+
+
+
+ {{ item.orderProduct[0].cart_info.product.store_name }}
+
+
+
+
¥{{ item.pay_price }}
+
共{{ item.total_num }}件商品
+
+
+
+
+
+ 已支付
+ (现金支付)
+ (微信支付)
+ (余额支付)
+ (微信支付)
+ (商户余额支付)
+ (对公转账)
+
+
未支付
+
+
收银员: {{ item.service_info.nickname }}
+
平台订单
+
+
+
没有更多了
+
加载中...
+
+
+
+
+, watch
diff --git a/src/views/convert/index.vue b/src/views/convert/index.vue
new file mode 100644
index 0000000..caa0b8a
--- /dev/null
+++ b/src/views/convert/index.vue
@@ -0,0 +1,115 @@
+
+
+
+
+
+
+
diff --git a/src/views/home/component/order.vue b/src/views/home/component/order.vue
index f765616..7a246e0 100644
--- a/src/views/home/component/order.vue
+++ b/src/views/home/component/order.vue
@@ -1,10 +1,12 @@
diff --git a/src/views/home/component/price.vue b/src/views/home/component/price.vue
index f7b5ca5..d4aad0d 100644
--- a/src/views/home/component/price.vue
+++ b/src/views/home/component/price.vue
@@ -1,13 +1,22 @@
@@ -42,10 +70,10 @@ defineExpose({
>
-
+
元
-
+
%
@@ -76,4 +104,4 @@ defineExpose({
display: flex;
}
}
-
+nextTick,
diff --git a/src/views/home/component/pupop.vue b/src/views/home/component/pupop.vue
index 118a202..6cd3308 100644
--- a/src/views/home/component/pupop.vue
+++ b/src/views/home/component/pupop.vue
@@ -1,7 +1,8 @@
diff --git a/src/views/home/component/shop.vue b/src/views/home/component/shop.vue
index 2f4898e..0b841df 100644
--- a/src/views/home/component/shop.vue
+++ b/src/views/home/component/shop.vue
@@ -1,5 +1,6 @@
-