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

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() {
let result = await getUserWallet(); //
this.walletNum = result.data.result.memberWallet;
if (this.$options.filters.isLogin("auth")) {
let result = await getUserWallet(); //
this.walletNum = result.data.result.memberWallet;
} else {
uni.showToast({
icon: "none",
duration: 3000,
title: "请先登录!",
});
uni.redirectTo({
url: "/pages/passport/login",
});
}
},
methods: {
back() {

View File

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

View File

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

View File

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