select_store banner
parent
b88ba1c865
commit
fe38402b7f
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<loading-view v-if="isFirstLoading"></loading-view>
|
||||
<view class="text-center text-42rpx pt-30rpx">线上预约店</view>
|
||||
<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 class="my-20rpx px-80rpx">
|
||||
<u-line></u-line>
|
||||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue