新增拼团活动为空时优化提示

master
lemon橪 2021-07-07 10:56:57 +08:00
parent b8e0ddcb5a
commit 346eb13d50
4 changed files with 20 additions and 9 deletions

View File

@ -27,8 +27,19 @@ export default {
}; };
}, },
async mounted() { async mounted() {
if (this.$options.filters.isLogin("auth")) {
let result = await getUserWallet(); // let result = await getUserWallet(); //
this.walletNum = result.data.result.memberWallet; this.walletNum = result.data.result.memberWallet;
} else {
uni.showToast({
icon: "none",
duration: 3000,
title: "请先登录!",
});
uni.redirectTo({
url: "/pages/passport/login",
});
}
}, },
methods: { methods: {
back() { back() {

View File

@ -23,7 +23,7 @@
<!-- 商品栏 --> <!-- 商品栏 -->
<div class="swiper"> <div class="swiper">
<div v-if="groupBuy.length !=0">
<view class="view-item" v-for="(groupItem, groupIndex) in groupBuy" :key="groupIndex"> <view class="view-item" v-for="(groupItem, groupIndex) in groupBuy" :key="groupIndex">
<view class="view-left"> <view class="view-left">
<u-image border-radius="10" shape="square" :src="groupItem.goodsImage" width="186rpx" height="186rpx"> <u-image border-radius="10" shape="square" :src="groupItem.goodsImage" width="186rpx" height="186rpx">
@ -54,7 +54,8 @@
</view> </view>
</view> </view>
<u-loadmore bg-color='#f8f8f8' :status="status" /> <u-loadmore bg-color='#f8f8f8' :status="status" />
</div>
<u-empty v-else style="margin-top:20%" text="暂无拼团活动" mode="data"></u-empty>
</div> </div>
@ -91,8 +92,8 @@ export default {
val ? (this.title = "") : (this.title = "拼团活动"); val ? (this.title = "") : (this.title = "拼团活动");
}, },
}, },
onReachBottom(){ onReachBottom() {
this.loadMore() this.loadMore();
}, },
// //
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
@ -151,5 +152,4 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import "./style.scss"; @import "./style.scss";
</style> </style>

View File

@ -71,7 +71,7 @@
<!-- 常用工具 --> <!-- 常用工具 -->
<tool class="box" /> <tool />
</view> </view>
</template> </template>

View File

@ -116,7 +116,7 @@ export default {
.interact-tools { .interact-tools {
border-left: none; border-left: none;
border-right: none; border-right: none;
margin-top: 30rpx;
.interactBox { .interactBox {
height: 156rpx; height: 156rpx;