From fe38402b7f193ec0f9ab633c00f851b32f924f7b Mon Sep 17 00:00:00 2001
From: panliang <1163816051@qq.com>
Date: Sun, 12 Feb 2023 09:34:31 +0800
Subject: [PATCH] select_store banner
---
.env.production | 1 +
src/pageB/select_store/index.vue | 10 +++++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.env.production b/.env.production
index 454ac2c..c36eacc 100644
--- a/.env.production
+++ b/.env.production
@@ -2,4 +2,5 @@
ENV = 'production'
VUE_APP_BASE_API = 'https://jiqu-library.peidikeji.cn/api'
+# VUE_APP_BASE_API = 'https://jiqu-library.abcdefg.fun/api'
diff --git a/src/pageB/select_store/index.vue b/src/pageB/select_store/index.vue
index 745769f..79b64bb 100644
--- a/src/pageB/select_store/index.vue
+++ b/src/pageB/select_store/index.vue
@@ -3,7 +3,7 @@
线上预约店
-
+
@@ -40,12 +40,20 @@ export default {
noMoreSize: 1,
},
dataList: [], //获取到的数据
+ image: '/static/images/user/u=2313295534,3451005153&fm=253&fmt=auto&app=138&f=JPEG.webp',
};
},
onLoad() {
setTimeout(() => {
this.isFirstLoading = false;
}, 300);
+ this.$api.get(`/v1/ads`, { params: { keys: 'wechat_mini_store_online' }}).then(res => {
+ let url = '/static/images/user/u=2313295534,3451005153&fm=253&fmt=auto&app=138&f=JPEG.webp'
+ if (res && res.wechat_mini_store_online.length > 0) {
+ url = res.wechat_mini_store_online[0].image
+ }
+ this.image = url
+ })
},
methods: {
downCallback() {