状态
This commit is contained in:
		
							parent
							
								
									0c8e81f484
								
							
						
					
					
						commit
						8df5bc2701
					
				@ -256,6 +256,7 @@ export default {
 | 
			
		||||
	},
 | 
			
		||||
	methods: {
 | 
			
		||||
		customers(){
 | 
			
		||||
			console.log(this.$store.state.hasLogin)
 | 
			
		||||
			if(!this.$store.state.hasLogin){
 | 
			
		||||
				this.$refs.uToast.show({
 | 
			
		||||
					title: "请先登录",
 | 
			
		||||
 | 
			
		||||
@ -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="">
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user