From 1662622ce7b81ff40cf277adaf75bd80f40d53bf Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Tue, 22 Oct 2024 14:55:29 +0800
Subject: [PATCH 1/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95?=
=?UTF-8?q?=E5=88=97=E8=A1=A8=E4=BB=A5=E5=8F=8A=E8=AE=A2=E5=8D=95=E8=AF=A6?=
=?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=98=BE=E7=A4=BA=E4=BB=B7?=
=?UTF-8?q?=E6=A0=BC=E5=85=A8=E9=83=A8=E6=94=B9=E4=B8=BA=E6=80=BB=E4=BB=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pagesOrder/detail/components/list.vue | 13 +++++++++++--
pagesOrder/index/compoents/order-item.vue | 2 +-
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/pagesOrder/detail/components/list.vue b/pagesOrder/detail/components/list.vue
index 3d43056..38b85a3 100644
--- a/pagesOrder/detail/components/list.vue
+++ b/pagesOrder/detail/components/list.vue
@@ -40,7 +40,13 @@
¥{{item.salePrice||item.price}}
- ¥{{item.salePrice||item.price}}
+
+ ¥0.00
+ ¥{{returnTotalMoney(item)}}
+
+
+ ¥{{item.priceAmount}}
+
X{{item.number||item.num}}
@@ -130,6 +136,9 @@
import color from '@/commons/color.js'
const emits = defineEmits(['tuicai', 'tuikuan', 'printOrder'])
+ function returnTotalMoney(item){
+ return (item.price*item.num).toFixed(2)
+ }
function to2(n){
if(!n){
return 0
@@ -175,7 +184,7 @@
const goodsPrice = props.data.reduce((prve, cur) => {
const curTotal = cur.info.filter(v => v.isGift !== "true" && v.status !== "return").reduce((a,
b) => {
- return a + (b.salePrice || b.price) * (b.number || b.num)
+ return a + b.priceAmount*1
}, 0)
return prve + curTotal
}, 0)
diff --git a/pagesOrder/index/compoents/order-item.vue b/pagesOrder/index/compoents/order-item.vue
index c9dcd6d..5a8bc8c 100644
--- a/pagesOrder/index/compoents/order-item.vue
+++ b/pagesOrder/index/compoents/order-item.vue
@@ -40,7 +40,7 @@
×{{item.num}}
- ¥{{item.price}}
+ ¥{{item.priceAmount}}
From 076fa01fef9e8a4d357c2c5c89e0dfb849cf5337 Mon Sep 17 00:00:00 2001
From: YeMingfei666 <1619116647@qq.com>
Date: Wed, 23 Oct 2024 13:49:57 +0800
Subject: [PATCH 2/5] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=A2=E5=8D=95?=
=?UTF-8?q?=E9=80=80=E8=8F=9C=E5=B1=95=E7=A4=BA=E9=97=AE=E9=A2=98=EF=BC=8C?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A8=E5=87=BA=E7=99=BB=E5=BD=95=E6=8C=89?=
=?UTF-8?q?=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/index/index.vue | 2 +-
pages/login/index.vue | 3 +++
pagesCreateOrder/index/index.vue | 2 --
pagesOrder/detail/components/extra.vue | 2 +-
pagesOrder/detail/components/list.vue | 20 ++++++++++++++------
static/indexImg/icon-login-out.svg | 1 +
6 files changed, 20 insertions(+), 10 deletions(-)
create mode 100644 static/indexImg/icon-login-out.svg
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 2673ea5..dde1183 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -229,7 +229,7 @@
{
title: '退出登录',
- icon: '/static/indexImg/PAGE_SALES_SUMMARY.svg',
+ icon: '/static/indexImg/icon-login-out.svg',
pageUrl: 'PAGES_LOGIN',
clickFunc:()=>{
storageManage.cleanByLogout()
diff --git a/pages/login/index.vue b/pages/login/index.vue
index 1db82fe..6f9bd90 100644
--- a/pages/login/index.vue
+++ b/pages/login/index.vue
@@ -254,6 +254,9 @@
if(e==1){
vdata.formData.merchantName = '18049104914'
vdata.formData.username = '13666666666'
+ vdata.formData.pwd = '123456'
+ }else{
+ vdata.formData.pwd = 'qwer1234'
}
// #endif
}
diff --git a/pagesCreateOrder/index/index.vue b/pagesCreateOrder/index/index.vue
index a4c3aac..1f4eaef 100644
--- a/pagesCreateOrder/index/index.vue
+++ b/pagesCreateOrder/index/index.vue
@@ -158,7 +158,6 @@
reactive,
ref,
nextTick,
- getCurrentInstance,
watch
} from 'vue';
import myCar from './components/car'
@@ -179,7 +178,6 @@
canXiadan.value=await hasPermission('允许下单')
}
xiadanClick()
- const instance = getCurrentInstance();
//临时菜
const lingshi = reactive({
show: false
diff --git a/pagesOrder/detail/components/extra.vue b/pagesOrder/detail/components/extra.vue
index 0032d6b..7393980 100644
--- a/pagesOrder/detail/components/extra.vue
+++ b/pagesOrder/detail/components/extra.vue
@@ -5,7 +5,7 @@
退菜
-
+
退款
diff --git a/pagesOrder/detail/components/list.vue b/pagesOrder/detail/components/list.vue
index 38b85a3..a18357e 100644
--- a/pagesOrder/detail/components/list.vue
+++ b/pagesOrder/detail/components/list.vue
@@ -60,12 +60,15 @@
@tap="tuicai(item,index)">退菜
-
-
- 退款
-
+
+
+
+ 退款
+
+
+
+
-
-
+
+
+
+
+
+
+
\ No newline at end of file
From 51d273314e1e2ee2aec1998b3e0efd73181d8cc5 Mon Sep 17 00:00:00 2001
From: duan <1004387497@qq.com>
Date: Wed, 23 Oct 2024 15:28:34 +0800
Subject: [PATCH 5/5] =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=A0=81400=E7=9A=84?=
=?UTF-8?q?=E6=97=B6=E5=80=99=E8=B7=B3=E8=BD=AC=E7=99=BB=E5=BD=95=E3=80=82?=
=?UTF-8?q?=E9=A6=96=E9=A1=B5=E9=A1=B6=E9=83=A8=E6=8E=A5=E5=8F=A3=E8=BF=94?=
=?UTF-8?q?=E5=9B=9E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
http/yskApi/http.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/http/yskApi/http.js b/http/yskApi/http.js
index 81590ba..2ebc105 100644
--- a/http/yskApi/http.js
+++ b/http/yskApi/http.js
@@ -75,6 +75,7 @@ function commonsProcess(showLoading, httpReqCallback) {
} = httpData
// 避免混淆重新命名
let bodyData = data
+ console.log(statusCode,1111111111)
if (statusCode == 500) {
isShowErrorToast = true
return Promise.reject(bodyData) // 跳转到catch函数
@@ -124,7 +125,7 @@ function commonsProcess(showLoading, httpReqCallback) {
return Promise.resolve(bodyData)
}).catch(res => {
- if(res.status==401){
+ if(res.status==401||res.status==400){
storageManage.token(null, true)
infoBox.showErrorToast('请登录').then(() => {
go.to("PAGES_LOGIN", {}, go.GO_TYPE_RELAUNCH)
@@ -183,7 +184,6 @@ function request(args) {
} = args
let headerObject = {}
// headerObject[appConfig.tokenKey] = storageManage.token()
-
return commonsProcess(showLoading, () => {
return uni.request(
Object.assign({