This commit is contained in:
luyuan 2020-08-10 17:30:41 +08:00
parent 0c8e81f484
commit 8df5bc2701
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 3 additions and 2 deletions

View File

@ -256,6 +256,7 @@ export default {
}, },
methods: { methods: {
customers(){ customers(){
console.log(this.$store.state.hasLogin)
if(!this.$store.state.hasLogin){ if(!this.$store.state.hasLogin){
this.$refs.uToast.show({ this.$refs.uToast.show({
title: "请先登录", title: "请先登录",

View File

@ -21,10 +21,10 @@
<image class="cart" src="../../static/cart.png" @click="show = true"> <image class="cart" src="../../static/cart.png" @click="show = true">
</image> </image>
<view class="danmufasongbox" @click="danmu = true"> <view class="danmufasongbox" @click="danmu = $store.state.hasLogin">
<view class="danmufasongboxback"></view> <view class="danmufasongboxback"></view>
<image src="../../static/danmu.png" class="danmubianji"></image> <image src="../../static/danmu.png" class="danmubianji"></image>
<text style="font-size:26rpx;color:#fff;margin-left:20rpx">想说点什么</text> <text style="font-size:26rpx;color:#fff;margin-left:20rpx">{{$store.state.hasLogin '想说点什么' : '请先登录'}}</text>
</view> </view>
<image class="liketap" src="../../static/like.png" @click=""> <image class="liketap" src="../../static/like.png" @click="">