From 8a1c6b012d33d1e00222f06846a2c058431ed5e3 Mon Sep 17 00:00:00 2001
From: cc_zbp <487602586@qq.com>
Date: Sat, 3 Jun 2023 17:18:56 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/zbpSwiper.vue | 6 +++---
pages/admin/stockOut/index.vue | 5 ++++-
pages/index/index.vue | 24 +++++++++++++++++++++---
3 files changed, 28 insertions(+), 7 deletions(-)
diff --git a/components/zbpSwiper.vue b/components/zbpSwiper.vue
index 8e49db0..9547437 100644
--- a/components/zbpSwiper.vue
+++ b/components/zbpSwiper.vue
@@ -17,7 +17,7 @@
-
+
@@ -83,7 +83,7 @@
watch: {
location: {
handler(newVal, oldVal) {
- if(newVal.address_component?.street) this.street = newVal.address_component.street
+ if (newVal.address_component?.street) this.street = newVal.address_component.street
},
immediate: true
}
@@ -91,7 +91,7 @@
created() {
this.getBanner()
this.Area()
- if(this.location.address_component?.street) this.street = this.location.address_component.street
+ if (this.location.address_component?.street) this.street = this.location.address_component.street
},
methods: {
swiperClick(item) {
diff --git a/pages/admin/stockOut/index.vue b/pages/admin/stockOut/index.vue
index d897ec1..76d4db4 100644
--- a/pages/admin/stockOut/index.vue
+++ b/pages/admin/stockOut/index.vue
@@ -350,11 +350,14 @@
const data = { cart_id: selectValue }
this.popUpShow = true
createtApi(data).then(res => {
+ console.log("createtApi", res.data);
+ if (res.data.status == "error") return Toast('生成二维码失败')
if (res.status === 200) {
- console.log("res", res.data);
this.payCodeUrl = res.data.config;
this.$refs.qrcode._makeCode()
}
+ }).catch(err => {
+ console.log('err-createtApi', err);
})
},
// 扫码结束
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 42f41cb..209d6bc 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -11,7 +11,14 @@
-
+
+
+
+
+
+
+
{{item.title}}
@@ -52,6 +59,7 @@