6
0
Fork 0

select_store banner

hui.zhou
panliang 2023-02-12 09:34:31 +08:00
parent b88ba1c865
commit fe38402b7f
2 changed files with 10 additions and 1 deletions

View File

@ -2,4 +2,5 @@
ENV = 'production' ENV = 'production'
VUE_APP_BASE_API = 'https://jiqu-library.peidikeji.cn/api' VUE_APP_BASE_API = 'https://jiqu-library.peidikeji.cn/api'
# VUE_APP_BASE_API = 'https://jiqu-library.abcdefg.fun/api'

View File

@ -3,7 +3,7 @@
<loading-view v-if="isFirstLoading"></loading-view> <loading-view v-if="isFirstLoading"></loading-view>
<view class="text-center text-42rpx pt-30rpx">线上预约店</view> <view class="text-center text-42rpx pt-30rpx">线上预约店</view>
<view class="my-20rpx px-80rpx" @tap="navigateToCategory"> <view class="my-20rpx px-80rpx" @tap="navigateToCategory">
<image mode="widtFix" class="w-full h-250rpx rounded-15rpx" src="/static/images/user/u=2313295534,3451005153&fm=253&fmt=auto&app=138&f=JPEG.webp"></image> <image mode="widtFix" class="w-full h-250rpx rounded-15rpx" :src="image"></image>
</view> </view>
<view class="my-20rpx px-80rpx"> <view class="my-20rpx px-80rpx">
<u-line></u-line> <u-line></u-line>
@ -40,12 +40,20 @@ export default {
noMoreSize: 1, noMoreSize: 1,
}, },
dataList: [], // dataList: [], //
image: '/static/images/user/u=2313295534,3451005153&fm=253&fmt=auto&app=138&f=JPEG.webp',
}; };
}, },
onLoad() { onLoad() {
setTimeout(() => { setTimeout(() => {
this.isFirstLoading = false; this.isFirstLoading = false;
}, 300); }, 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: { methods: {
downCallback() { downCallback() {