diff --git a/src/pages/common/groupbuy/detail.vue b/src/pages/common/groupbuy/detail.vue index 14bff7b..b48592d 100644 --- a/src/pages/common/groupbuy/detail.vue +++ b/src/pages/common/groupbuy/detail.vue @@ -55,7 +55,7 @@ - + 浏览此商品的客户还浏览了 { if(isLogin()) { + await uni.showLoading(); groupBuyBean.value = await getGroupBuyDetail(e.id); groupBuyBean.value.goods.price = groupBuyBean.value.price; bannerList.value = JSON.parse(groupBuyBean.value.content).filter((item: any) => item.type === 2).map((item: any) => item.images); countdown(); await fetchRecommendList(); await fetchBuyRecordList(); + uni.hideLoading(); } }); @@ -306,8 +308,7 @@ const placeOrder = async () => { height: 130rpx; position: relative; padding: 15rpx 30rpx; - background: #F32B2B; - //background-image: url('../../../static/images/bg_groupbuy_countdown.png'); + background-image: url('https://img.lakeapp.cn/wx/images/bg_groupbuy_countdown.png'); background-size: 100% 100%; .super-second-kill { diff --git a/src/pages/common/groupbuy/index.vue b/src/pages/common/groupbuy/index.vue index c9544e9..737aad8 100644 --- a/src/pages/common/groupbuy/index.vue +++ b/src/pages/common/groupbuy/index.vue @@ -42,7 +42,7 @@ import { getGroupBuyList } from '@/api/groupbuy'; import { goPath } from '@/utils'; const tabIndex = ref(0); -const groupbuyList = ref([]); +const groupbuyList = ref([]); const currentPageNum = ref(1); onLoad((e) => { @@ -54,6 +54,7 @@ watch(() => tabIndex.value, () => { }); const fetchData = async (refresh: boolean = true) => { + await uni.showLoading(); if(!refresh) { currentPageNum.value += 1; } @@ -65,6 +66,7 @@ const fetchData = async (refresh: boolean = true) => { } }); groupbuyList.value = list; + uni.hideLoading(); }; const loadMore = () => { @@ -168,7 +170,7 @@ const loadMore = () => { height: 83rpx; margin-top: 20rpx; align-self: flex-end; - background-image: url("../../../static/images/bg_groupbuy_price.png"); + background-image: url("https://img.lakeapp.cn/wx/images/bg_groupbuy_price.png"); background-size: 100% 100%; color: #FFFFFF; justify-content: space-between; @@ -196,7 +198,7 @@ const loadMore = () => { } .bottom-price-disabled { - background-image: url("../../../static/images/bg_groupbuy_price_disabled.png"); + background-image: url("https://img.lakeapp.cn/wx/images/bg_groupbuy_price_disabled.png"); } } } diff --git a/src/pages/common/login/index.vue b/src/pages/common/login/index.vue index 102fb15..4d951d9 100644 --- a/src/pages/common/login/index.vue +++ b/src/pages/common/login/index.vue @@ -11,8 +11,8 @@ 登录代表同意 - - 用户协议、隐私政策, + + 《小程序隐私保护协议》 并授权使用您的账号信息(如昵称、头像、收获地址)以便您统一管理 @@ -32,6 +32,17 @@ function wechatLogin() { uni.reLaunch({ url: '/pages/home/index' }); }); } + +const openPrivacy = () => { + wx.openPrivacyContract({ + success: () => { + }, // 打开成功 + fail: () => { + }, // 打开失败 + complete: () => { + } + }); +};