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 @@