Browse Source

执法端扫码

dev-v1.0.2
wangmingyong 4 months ago
parent
commit
c7a671d41c
  1. 2
      zdxt-web-client/zdxt-efcode-enforcement-app/src/util/util.js
  2. 2
      zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/enforce/enforcementRecord.vue
  3. 5
      zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/scanEntQRCode.vue
  4. 2
      zdxt-web-client/zdxt-efcode-enterprise-app/src/components/enterprise/footerNav.vue

2
zdxt-web-client/zdxt-efcode-enforcement-app/src/util/util.js

@ -147,7 +147,7 @@ const formatEnforcer = (item) => {
const ids = item.lawEnforcerId ? item.lawEnforcerId.split(',').map(id => id.trim()).filter(id => id) : []; const ids = item.lawEnforcerId ? item.lawEnforcerId.split(',').map(id => id.trim()).filter(id => id) : [];
names.forEach((name, index) => { names.forEach((name, index) => {
const id = ids[index] || ''; const id = ids[index] || '';
enforcers.push(id ? `${name} - ${id}` : name); enforcers.push(id ? `${name} ${id}` : name);
}); });
} }
// 支持两种字段名:lawEnforcerTwo 或 lawEnforcerOther // 支持两种字段名:lawEnforcerTwo 或 lawEnforcerOther

2
zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/enforce/enforcementRecord.vue

@ -273,7 +273,7 @@ const renderForceChart = () => {
position: 'center', position: 'center',
formatter: '{value|5274次}\n{label|合计}', formatter: '{value|5274次}\n{label|合计}',
rich: { rich: {
value: { fontSize: 20, fontWeight: 'bold', color: '#333', lineHeight: 28 }, value: { fontSize: 14, fontWeight: '500', color: '#333', lineHeight: 28 },
label: { fontSize: 12, color: '#999', lineHeight: 18 }, label: { fontSize: 12, color: '#999', lineHeight: 18 },
}, },
}, },

5
zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/scanEntQRCode.vue

@ -213,12 +213,9 @@ const openWxScan = () => {
// 当前仅预留调用骨架,需配合服务端 szyptGetToken 接口获取签名 // 当前仅预留调用骨架,需配合服务端 szyptGetToken 接口获取签名
const fullUrl = window.location.href; const fullUrl = window.location.href;
const paramUrl = fullUrl.split('#')[0]; const paramUrl = fullUrl.split('#')[0];
showToast('正在调起微信扫码...'); showToast('正在调起微信扫码...');
// 以下为 wx.config + wx.scanQRCode 的标准流程 // 以下为 wx.config + wx.scanQRCode 的标准流程
// 实际使用时需先调用服务端接口获取 config 参数 // 实际使用时需先调用服务端接口获取 config 参数
/*
szyptGetToken({ url: paramUrl }, (res) => { szyptGetToken({ url: paramUrl }, (res) => {
const data = res.data; const data = res.data;
wx.config({ wx.config({
@ -237,7 +234,7 @@ const openWxScan = () => {
showFailToast('微信配置失败,请重试'); showFailToast('微信配置失败,请重试');
}); });
}); });
*/
// 开发阶段直接尝试调用(在微信浏览器内有效) // 开发阶段直接尝试调用(在微信浏览器内有效)
wxClickScan(); wxClickScan();

2
zdxt-web-client/zdxt-efcode-enterprise-app/src/components/enterprise/footerNav.vue

@ -18,7 +18,7 @@
<img src="@/assets/images/nos/off_site_bottom_icon.png" class="nos-icon nos-icon-active" alt="" /> <img src="@/assets/images/nos/off_site_bottom_icon.png" class="nos-icon nos-icon-active" alt="" />
</template> </template>
</van-tabbar-item> </van-tabbar-item>
<van-tabbar-item name="Classify" replace icon="todo-list" to="/enterprise/messageCenter" :badge="useCommon.unreadMessageCount > 0 ? useCommon.unreadMessageCount : undefined"> <van-tabbar-item name="Classify" replace icon="bell" to="/enterprise/messageCenter" :badge="useCommon.unreadMessageCount > 0 ? useCommon.unreadMessageCount : undefined">
消息 消息
</van-tabbar-item> </van-tabbar-item>
<van-tabbar-item name="My" replace icon="manager-o" to="/enterprise/myPage"> <van-tabbar-item name="My" replace icon="manager-o" to="/enterprise/myPage">

Loading…
Cancel
Save