首页添加 扫门禁码 按钮
This commit is contained in:
parent
a6580355a2
commit
67e18187c0
9
TODOs.md
9
TODOs.md
@ -1,6 +1,6 @@
|
||||
还要做的部分
|
||||
|
||||
|
||||
【想一想访客怎么处理】
|
||||
|
||||
购物车隐藏
|
||||
|
||||
@ -18,8 +18,9 @@
|
||||
|
||||
后台管理两个端分开
|
||||
|
||||
小程序提审(项目部署到服务器,提审时隐藏小商店)
|
||||
|
||||
项目部署到服务器
|
||||
& 小程序提审(提审时隐藏小商店)
|
||||
& 发给老班看一看
|
||||
|
||||
数据库填充测试数据(以及创建一些测试账号)并备份,线上演示数据修改删除避免真删
|
||||
|
||||
@ -29,7 +30,7 @@
|
||||
|
||||
# IP 配置
|
||||
|
||||
内网穿透:124.220.172.110
|
||||
内网穿透:106.75.217.14
|
||||
nacos:106.75.217.14
|
||||
数据库:本地
|
||||
|
||||
|
1
weixin-miniprogram/image/icon/scan.svg
Normal file
1
weixin-miniprogram/image/icon/scan.svg
Normal file
@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1681574114426" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2661" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M242 512c0 24.8 20.2 45 45 45h450c24.8 0 45-20.2 45-45s-20.2-45-45-45H287c-24.8 0-45 20.2-45 45zM842 62H632c-24.9 0-45 20.1-45 45s20.1 45 45 45h180c33.1 0 60 26.9 60 60v180c0 24.9 20.1 45 45 45s45-20.1 45-45V182c0-66.3-53.7-120-120-120zM107 437c24.9 0 45-20.1 45-45V212c0-33.1 26.9-60 60-60h180c24.9 0 45-20.1 45-45s-20.1-45-45-45H182c-66.3 0-120 53.7-120 120v210c0 24.9 20.1 45 45 45zM392 872H212c-33.1 0-60-26.9-60-60V632c0-24.9-20.1-45-45-45s-45 20.1-45 45v210c0 66.3 53.7 120 120 120h210c24.9 0 45-20.1 45-45s-20.1-45-45-45zM917 587c-24.9 0-45 20.1-45 45v180c0 33.1-26.9 60-60 60H632c-24.9 0-45 20.1-45 45s20.1 45 45 45h210c66.3 0 120-53.7 120-120V632c0-24.9-20.1-45-45-45z" fill="#FF6031" p-id="2662"></path></svg>
|
After Width: | Height: | Size: 1.0 KiB |
@ -2,6 +2,8 @@
|
||||
const menuItemDict = require('../../utils/menuList.js')
|
||||
const getUserGroupByRole = require('../../utils/getUserGroupByRole.js')
|
||||
|
||||
import scanQRCode from '../../utils/scanQRCode'
|
||||
|
||||
const app = getApp()
|
||||
|
||||
Page({
|
||||
@ -144,6 +146,11 @@ Page({
|
||||
url: dataset.pageurl
|
||||
})
|
||||
break;
|
||||
case 'function':
|
||||
if (dataset.pageurl == 'scanQRCode') {
|
||||
scanQRCode(wx)
|
||||
}
|
||||
break;
|
||||
default:
|
||||
console.log("切换页面失败", dataset)
|
||||
break;
|
||||
|
@ -18,6 +18,13 @@ let menuItemDict = {
|
||||
switchFunc: switchTab,
|
||||
url: '/pages/residents/code'
|
||||
},
|
||||
'gateCode': {
|
||||
for: ['visitor', 'user'],
|
||||
title: "扫门禁码",
|
||||
image: "scan.svg",
|
||||
switchFunc: "function",
|
||||
url: 'scanQRCode'
|
||||
},
|
||||
'report': {
|
||||
for: ['user'],
|
||||
title: "体温上报",
|
||||
|
Loading…
Reference in New Issue
Block a user