[门禁端&后端&小程序] 完成门禁端;完成小程序扫码跳转页面;完成后端获取不限制的小程序场景码接口
This commit is contained in:
@@ -28,3 +28,9 @@
|
||||
color: grey;
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
#scan-btn {
|
||||
margin-top: 50px;
|
||||
padding: 9px 60px;
|
||||
font-size: initial;
|
||||
}
|
||||
|
@@ -5,6 +5,8 @@
|
||||
<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" @tap="scan">扫门禁码</button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -12,6 +14,7 @@
|
||||
import Taro from '@tarojs/taro'
|
||||
import md5 from 'blueimp-md5'
|
||||
import drawQrcode from '../../utils/qrcode/index'
|
||||
import scanQRCode from '../../utils/scanQRCode'
|
||||
import utils from '../../utils/utils'
|
||||
|
||||
import './code.css'
|
||||
@@ -158,6 +161,9 @@ export default {
|
||||
updateTime() {
|
||||
this.time = utils.formatTime(new Date())
|
||||
console.log("刷新时间")
|
||||
},
|
||||
scan() {
|
||||
scanQRCode(Taro)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user