添加版本检查代码, 流程管理页面空数据处理

This commit is contained in:
zhengw
2026-02-28 11:15:31 +08:00
parent b17edae159
commit 816188c2bb
7 changed files with 51 additions and 11 deletions

View File

@@ -107,9 +107,7 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad() {
loginStatusPage(this);
},
onLoad() {},
/**
* 生命周期函数--监听页面初次渲染完成
@@ -120,6 +118,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
loginStatusPage(this);
wx.hideHomeButton();
},

View File

@@ -32,6 +32,14 @@ Page({
encodeURIComponent('https://docs.qq.com/aio/DS2NCRFFseG9Ma3Ja?p=7umJTJ6bznQtaBK2RSLmPD'),
});
},
txOfficialAccount() {
wx.openOfficialAccountChat({
username: 'gh_bc65d0d9f0a0',
fail: (res) => {
console.log(res);
},
});
},
handleLogin(e: any) {
this.setData({ isLogin: e.detail });
if (e.detail) {

View File

@@ -39,5 +39,6 @@
</t-cell-group>
<t-cell title="退出登录" bind:tap="loginOut" hover bordered arrow />
<t-cell title="版本" note="{{version}}" hover bind:tap="txDoc" bordered arrow />
<t-cell title="易宝赞普惠服务" note="留言反馈" hover bind:tap="txOfficialAccount" bordered arrow />
</page-plugin>
<tab-bar-plugin active="my" />

View File

@@ -1,5 +1,6 @@
<page-plugin isAuth="{{authInfo['SF_ERP_PRODUCT_PROCESS_VIEW']}}" loading="{{loading}}"
is-login="{{isLogin}}" bind:handleLogin="handleLogin">
<empty-plugin wx:if="{{process.length == 0}}" />
<block wx:for="{{ process }}" wx:key="parent_process_id">
<view class="p_process_name-box">
<view class="p_process_name">{{ item.p_process_name }}</view>