xbx #143

Merged
theluyuan merged 6 commits from xbx into master 2020-08-10 09:39:15 +00:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 8df5bc2701 - Show all commits

View File

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

View File

@ -21,10 +21,10 @@
<image class="cart" src="../../static/cart.png" @click="show = true">
</image>
<view class="danmufasongbox" @click="danmu = true">
<view class="danmufasongbox" @click="danmu = $store.state.hasLogin">
<view class="danmufasongboxback"></view>
<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>
<image class="liketap" src="../../static/like.png" @click="">