<!--pages/residents/code.wxml-->
<view id="codeView" :style="{ display: isShow }">
  <view id="user-text"><text>{{ userText }}</text></view>
  <view id="time-text"><text>{{ time }}</text></view>
  <canvas type="2d" style="width: 250px; height: 250px;" id="myQrcode"></canvas>
  <view id="show-text"><text style="color: {{ showTextColor }}">{{ showText }}</text></view>
  <view id="small-text"><text>下拉可刷新</text></view>

  <button id="scan-btn" size="mini" bindtap="scan">扫门禁码</button>
</view>