<block wx:if="{{object.bg_color}}">
<view  class="scan_view" disable-scroll="true"  bindtap='getScancode'
       style="top:{{top}}px;left:{{left}}px; background-color:{{object.bg_color}}; opacity: 0.5 " bindtouchmove="setTouchMove">
    <view style="text-align: center;">
      <image class="cs-img" src="{{object.img}}"></image>
      <view class="s_title" style="line-height: 14rpx;"  wx:if="{{object.title!=''}}">
          <text wx:if="{{object.word_color}}" style="color:{{object.word_color}}">{{object.title}}</text>
          <text wx:else >{{object.title}}</text>
      </view>
    </view>	
</view>
</block>

<block wx:else>
<view  class="scan_view" disable-scroll="true"  bindtap='getScancode'  style="top:{{top}}px;left:{{left}}px;" bindtouchmove="setTouchMove">
    <view style="text-align: center;">
        <image class="cs-img" src="{{object.img}}"></image>
        <view class="s_title" style="line-height: 14rpx;"  wx:if="{{object.title!=''}}">
            <text wx:if="{{object.word_color}}" style="color:{{object.word_color}}">{{object.title}}</text>
            <text wx:else>{{object.title}}</text>
        </view>
    </view>
</view>
</block>
