功能完善
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class='recommend-view c-flex-column'>
|
||||
<view class='recommend-view c-flex-column' v-if='recommendList?.length>0'>
|
||||
<text>浏览此商品的客户还浏览了</text>
|
||||
<scroll-view scroll-x>
|
||||
<view style='display: inline-block' v-for='(item, index) in recommendList'
|
||||
@@ -164,12 +164,14 @@ const currentPageNum = ref(1);
|
||||
|
||||
onLoad(async (e: any) => {
|
||||
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 {
|
||||
|
@@ -42,7 +42,7 @@ import { getGroupBuyList } from '@/api/groupbuy';
|
||||
import { goPath } from '@/utils';
|
||||
|
||||
const tabIndex = ref(0);
|
||||
const groupbuyList = ref([]);
|
||||
const groupbuyList = ref<any[]>([]);
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -11,8 +11,8 @@
|
||||
</button>
|
||||
<view class='hint'>
|
||||
登录代表同意
|
||||
<text class='link'>
|
||||
用户协议、隐私政策,
|
||||
<text class='link' @click.stop='openPrivacy'>
|
||||
《小程序隐私保护协议》
|
||||
</text>
|
||||
并授权使用您的账号信息(如昵称、头像、收获地址)以便您统一管理
|
||||
</view>
|
||||
@@ -32,6 +32,17 @@ function wechatLogin() {
|
||||
uni.reLaunch({ url: '/pages/home/index' });
|
||||
});
|
||||
}
|
||||
|
||||
const openPrivacy = () => {
|
||||
wx.openPrivacyContract({
|
||||
success: () => {
|
||||
}, // 打开成功
|
||||
fail: () => {
|
||||
}, // 打开失败
|
||||
complete: () => {
|
||||
}
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang='scss' scoped>
|
||||
@@ -71,7 +82,7 @@ function wechatLogin() {
|
||||
|
||||
.hint {
|
||||
padding: 20rpx 50rpx;
|
||||
font-size: 20rpx;
|
||||
font-size: 25rpx;
|
||||
color: $u-tips-color;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
|
Reference in New Issue
Block a user