From 58179e90a2fc73ca32ac906444b36c58e9cf70db Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期一, 19 一月 2026 18:31:17 +0800
Subject: [PATCH] Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev

---
 utils/getuiUtils.js                               |   58 ++++++++
 pages/ZLGL/checkFlowList/QC_CheckBillflowList.vue |  140 +++++++++++++++++++
 utils/WebSocketServices.js                        |   29 +++-
 manifest.json                                     |   38 ++++
 pages/index/login.vue                             |   45 +++--
 App.vue                                           |   54 +++++++
 pages/tiaomachaima/tiaomachaima2.vue              |   48 ------
 pages/index/mine.vue                              |    2 
 8 files changed, 332 insertions(+), 82 deletions(-)

diff --git a/App.vue b/App.vue
index 16c947d..540bc51 100644
--- a/App.vue
+++ b/App.vue
@@ -7,6 +7,7 @@
         getToken,
         getUserInfo
     } from "./utils/auth";
+    import getuiUtils from "./utils/getuiUtils";
     export default {
         onLaunch: function() {
             console.log('App Launch')
@@ -38,6 +39,36 @@
             //     });
             // }
             // #endif
+
+            // #ifdef APP-PLUS || APP
+            // 鐩戝惉 App 鍚姩鏃剁殑鎺ㄩ�佸弬鏁帮紙鍐峰惎鍔細App 鍏抽棴鍚庣偣鍑婚�氱煡鍚姩锛�
+            const launchOpts = plus.runtime.launchArguments;
+            if (launchOpts && launchOpts.payload) {
+                this.handlePushJump(launchOpts.payload); // 澶勭悊璺宠浆
+            }
+
+            // 鐩戝惉閫氱煡鐐瑰嚮浜嬩欢锛堢儹鍚姩锛欰pp 鍚庡彴杩愯鏃剁偣鍑婚�氱煡锛�
+            plus.push.addEventListener("click", (msg) => {
+                let payload = {};
+                console.log('msg: ', msg);
+                // 鍏煎涓嶅悓鏍煎紡鐨� payload锛堟湰鍦版帹閫� vs 杩滅▼鎺ㄩ�侊級
+                if (typeof msg.payload === "string") {
+                    payload = JSON.parse(msg.payload); // 杩滅▼鎺ㄩ�佸彲鑳芥槸瀛楃涓诧紝闇�瑙f瀽
+                } else {
+                    payload = msg.payload; // 鏈湴鎺ㄩ�佹槸瀵硅薄
+                }
+                this.handlePushJump(payload); // 澶勭悊璺宠浆
+            });
+
+            // 涓帹v1鐗堟湰鍙兘閫氳繃閫忎紶浼犲弬
+            plus.push.addEventListener('receive', (msg) => {
+                console.log('鏀跺埌 V1 鐗堟湰閫忎紶娑堟伅锛�', msg);
+                // 浠呴�忎紶妯℃澘闇�瑕侊紙閫氱煡妯℃澘鏃犻渶澶勭悊锛�
+                if (msg.payload) {
+                    this.handlePushJump(msg.payload);
+                }
+            }, false);
+            // #endif
         },
         onShow: function() {
             console.log('App Show')
@@ -45,6 +76,29 @@
         },
         onHide: function() {
             console.log('App Hide')
+        },
+        methods: {
+            // 澶勭悊閫氱煡璺宠浆閫昏緫
+            handlePushJump(payload) {
+                console.log('payload-enter: ', payload);
+                if (!payload || !payload.pagePath) return;
+
+                // 纭繚 App 澶勪簬鍓嶅彴
+                // plus.runtime.foreground();
+
+                // 璺宠浆鍒版寚瀹氶〉闈�
+                setTimeout(() => {
+                    uni.navigateTo({
+                        url: `${payload.pagePath}?itemId=${payload.itemId}`, // 鎼哄甫鍙傛暟
+                        fail: (err) => {
+                            // 鑻ラ〉闈㈡爤婊★紙鏈�澶�10灞傦級锛屼娇鐢� redirectTo 鏇挎崲褰撳墠椤甸潰
+                            uni.redirectTo({
+                                url: `${payload.pagePath}?itemId=${payload.itemId}`,
+                            });
+                        }
+                    });
+                }, 300)
+            }
         }
     }
 </script>
diff --git a/manifest.json b/manifest.json
index 2a2de20..c128efa 100644
--- a/manifest.json
+++ b/manifest.json
@@ -52,10 +52,24 @@
                     "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
                     "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>",
                     "<uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\"/>",
-                    "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>"
+                    "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
+                    "<uses-permission android:name=\"android.permission.INTERNET\"/>",
+                    "<uses-permission android:name=\"android.permission.RECEIVE_BOOT_COMPLETED\"/>",
+                    "<uses-permission android:name=\"android.permission.GET_TASKS\"/>",
+                    "<uses-permission android:name=\"android.permission.BLUETOOTH\"/>",
+                    "<uses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\"/>",
+                    "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
+                    "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
+                    "<uses-permission android:name=\"android.permission.BROADCAST_PACKAGE_ADDED\"/>",
+                    "<uses-permission android:name=\"android.permission.BROADCAST_PACKAGE_CHANGED\"/>",
+                    "<uses-permission android:name=\"android.permission.BROADCAST_PACKAGE_INSTALL\"/>",
+                    "<uses-permission android:name=\"android.permission.BROADCAST_PACKAGE_REPLACED\"/>",
+                    "<uses-permission android:name=\"android.permission.RESTART_PACKAGES\"/>",
+                    "<uses-permission android:name=\"android.permission.REQUEST_INSTALL_PACKAGES\"/>"
                 ],
                 "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
-                "minSdkVersion" : 23
+                "minSdkVersion" : 23,
+                "excludePermissions" : []
             },
             /* ios鎵撳寘閰嶇疆 */
             "ios" : {
@@ -63,7 +77,20 @@
             },
             /* SDK閰嶇疆 */
             "sdkConfigs" : {
-                "ad" : {}
+                "ad" : {},
+                "push" : {
+                    "unipush" : {
+                        "icons" : {
+                            "small" : {
+                                "ldpi" : "static/logo_icon.png",
+                                "mdpi" : "static/logo_icon.png",
+                                "hdpi" : "static/logo_icon.png",
+                                "xhdpi" : "static/logo_icon.png",
+                                "xxhdpi" : "static/logo_icon.png"
+                            }
+                        }
+                    }
+                }
             },
             "icons" : {
                 "android" : {
@@ -132,7 +159,7 @@
                     }
                 }
             }
-            }
+        }
     },
     /* 蹇簲鐢ㄧ壒鏈夌浉鍏� */
     "quickapp" : {},
@@ -160,3 +187,6 @@
     "locale" : "zh-Hans",
     "fallbackLocale" : "zh-Hans"
 }
+//docs.getui.com/getui/question/sdk/ -->
+/* ios鎵撳寘閰嶇疆 *//* SDK閰嶇疆 */
+
diff --git a/pages/ZLGL/checkFlowList/QC_CheckBillflowList.vue b/pages/ZLGL/checkFlowList/QC_CheckBillflowList.vue
index 6dc23a8..456e57f 100644
--- a/pages/ZLGL/checkFlowList/QC_CheckBillflowList.vue
+++ b/pages/ZLGL/checkFlowList/QC_CheckBillflowList.vue
@@ -69,7 +69,8 @@
 				<view class="op" v-if="operations == index">
 					<button class="op3" size="mini" plain @tap.stop="audit(item, 0)">瀹℃牳</button>
 					<button class="op3" size="mini" plain @tap.stop="audit(item, 1)">鍙嶅鏍�</button>
-					<button class="op3" size="mini" plain @tap.stop="fileUpload()">鏂囦欢涓婁紶</button>
+					<button class="op3" size="mini" plain @tap.stop="fileUpload(item)">鏂囦欢涓婁紶</button>
+					<button class="op3" size="mini" plain @tap.stop="getImage(item)">棰勮鍥剧墖</button>
 					<!-- <button class="op3" size="mini" plain @tap.stop="Reject(item)">椹冲洖</button> -->
 					<button class="op5" size="mini" plain @tap.stop="operations = -1">鍙栨秷鎿嶄綔</button>
 				</view>
@@ -98,8 +99,17 @@
             return {
                 showDetail: -1,
 				operations : -1,
+				serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
 				//涓婁紶鍙傛暟
-				uploadOptions: {},
+				uploadOptions: {
+					url: CommonUtils.getServerUrl() + "/LMES/UploadFile",
+					formData: {
+					    HBillNo:"",
+					    HRemark: "",
+					    HUserName: getUserInfo()["Czymc"]
+					}
+					
+				},
                 hform: {
                     HSourceBillType:'8505',
 					HSourceBillTypeName: "棣栦欢妫�楠屽崟",
@@ -255,9 +265,13 @@
                     let {count, data, Message} = res.data
                     
                     if(count == 1) {
+						
                         CommonUtils.showTips({
                             message: `瀹℃牳鎴愬姛`
                         })
+						if(mode==1){
+							this.showDialog(item["hmainid"]);
+						}
                         this.$forceUpdate()
                         setTimeout(() => {
                             this.cmdSearch()
@@ -337,7 +351,127 @@
                 })
 
             },
-            
+            //鍙嶅鏍告彁浜ゆ剰瑙�
+			showDialog(HInterID) {
+			  uni.showModal({
+				title: '璇锋彁浜ゅ弽瀹℃牳鎰忚',
+				editable: true,
+				placeholderText: '璇疯緭鍏ュ唴瀹�',
+				success: (result) => {
+				  if (result.confirm) {
+					try {
+					    let res = CommonUtils.doRequest2Sync({
+					        url: '/LMES/AuditFlowOpinion',
+					        data: {
+					            "sWhere": result.content,
+								"billType":this.hform.HSourceBillType,
+								"HInterID":HInterID,
+								"type":1,
+					            "user": getUserInfo()["Czymc"]
+					        },
+					    })
+					    if (!res) {
+					        return
+					    }
+					    let {
+					        data,
+					        count,
+					        Message
+					    } = res.data
+					    if (count > 0) {
+					        uni.showToast({
+					            icon: 'none',
+					            title: Message
+					        })
+					        
+					    } else {
+					        uni.showToast({
+					            icon: 'none',
+					            title: Message
+					        })
+					    }
+					} catch (err) {
+					    console.warn(err);
+					    uni.showToast({
+					        title: '鎺ュ彛璇锋眰澶辫触:' + err,
+					        icon: 'none'
+					    })
+					}
+				  }
+				}
+			  })
+			},
+			// 涓婁紶鏂囦欢
+			fileUpload(item) {
+				this.uploadOptions.formData.HBillNo = item.鍗曟嵁鍙�
+			    this.$refs.XeUpload.upload('image', {});// image, video, file
+			},
+			handleUploadCallback(e) { // 鏂囦欢涓婁紶鍥炶皟
+			    console.log('file: ', e);
+			    if (['choose', 'success'].includes(e.type)) {
+			      // 鏍规嵁鎺ュ彛杩斿洖淇敼瀵瑰簲鐨剅esponse鐩稿叧鐨勯�昏緫
+			      const tmpFiles = (e.data || []).map(({ response, tempFilePath, name, fileType }) => {
+			        
+					if(response.code=="1"){
+						CommonUtils.showTips({
+						    message: "涓婁紶鎴愬姛"
+						})
+					}else{
+						CommonUtils.showTips({
+						    message: "涓婁紶澶辫触"+response.Message
+						})
+					}
+			      });
+			    }
+			},
+			async getImage(item) {//棰勮鍥剧墖
+				try {
+				    let res = await CommonUtils.doRequest2Sync({
+				        url: '/LMES/Filelist',
+				        data: {
+				            "HBillNo": item.鍗曟嵁鍙�,
+				        },
+				    })
+				    if (!res) {
+				        return
+				    }
+				    let {
+				        data,
+				        count,
+				        Message
+				    } = res.data
+				    if (count > 0) {
+						if(data.length>0){
+							const imageUrl = res.data.data[0]["url"];
+							//姝e垯琛ㄨ揪寮忚幏鍙栨湇鍔″櫒璺緞鍊掓暟绗簩涓唴瀹�
+							const regex = /^(.*\/)[^\/]+\/[^\/]*\/?$/;
+							const match = this.serverUrl.match(regex);
+							console.log(match[1],imageUrl)
+							// 鎴栬�呯洿鎺ラ瑙堝浘鐗�
+							uni.previewImage({
+								urls: [match[1]+imageUrl]
+							})
+						}else{
+							CommonUtils.showTips({
+							    message: "鏃犲浘鐗囪鍏堜笂浼犲浘鐗�"
+							})
+						}
+				        
+				        
+				    } else {
+				        uni.showToast({
+				            icon: 'none',
+				            title: Message
+				        })
+				    }
+				} catch (err) {
+				    console.warn(err);
+				    uni.showToast({
+				        title: '鎺ュ彛璇锋眰澶辫触:' + err,
+				        icon: 'none'
+				    })
+				}
+			}
         },
         onShow() {
             this.$nextTick(() => {
diff --git a/pages/index/login.vue b/pages/index/login.vue
index e5484ab..f6e8b25 100644
--- a/pages/index/login.vue
+++ b/pages/index/login.vue
@@ -81,8 +81,11 @@
     import {
         CommonUtils
     } from "../../utils/common";
-    import { getLanguagePackJson } from "../../utils/i18n";
+    import {
+        getLanguagePackJson
+    } from "../../utils/i18n";
     import WebSocketServices from "@/utils/WebSocketServices";
+    import getuiUtils from "../../utils/getuiUtils";
     export default {
         components: {
             hFormAlert
@@ -107,7 +110,7 @@
                     "鏉窞鍑礉濂堢壒澶栫綉": 'http://erp.hzcabinet.cn:9090/API/',
                     "缈佹稕娑涙湰鍦版祴璇�": 'http://localhost:81/API/',
                     "闄堥晲鍝叉湰鍦版祴璇�": 'http://192.168.0.121:81/API/',
-                    "闄堥晲鍝叉湰鍦版祴璇�2": 'http://192.168.255.35:81/API/',
+                    "闄堥晲鍝叉湰鍦版祴璇�2": 'http://192.168.0.102:81/API/',
                     "寮犵憺骞挎湰鍦版祴璇�": 'http://localhost:8082/API/',
                     "浣欐�濇澃鏈湴娴嬭瘯": 'http://localhost:8082/LuBaoAPI/',
                     // 灏忓崼鍐呭缃�
@@ -119,12 +122,12 @@
                     // 閿﹂殕
                     "閿﹂殕-鏅鸿兘瀹跺眳": "http://192.168.1.11/API/",
                     "閿﹂殕-鏅鸿兘瀹跺眳-澶栫綉": "http://61.174.29.234:8880/API/",
-					// 鍗庤垷鍖呰
-					"瀹佹尝鍗庤垷鍖呰1": "http://192.168.110.222:8082/API_NW/",
+                    // 鍗庤垷鍖呰
+                    "瀹佹尝鍗庤垷鍖呰1": "http://192.168.110.222:8082/API_NW/",
                     "瀹佹尝鍗庤垷鍖呰2": "http://192.168.88.167:8082/API_NW/",
-					"瀹佹尝鍗庤垷鍖呰": "http://61.164.64.222:8082/API_WW/",
+                    "瀹佹尝鍗庤垷鍖呰": "http://61.164.64.222:8082/API_WW/",
                 },
-                serverUrlName:uni.getStorageSync('serverUrlName') || '娴欐睙鏅轰簯杩堟��',
+                serverUrlName: uni.getStorageSync('serverUrlName') || '娴欐睙鏅轰簯杩堟��',
 
                 arrayOrganization: [],
                 Organization: '',
@@ -197,7 +200,7 @@
                 let url = this.serverUrlandName[this.serverUrlName];
                 if (url != undefined) {
                     uni.setStorageSync('serverUrl', url)
-					uni.setStorageSync('serverUrlName', this.serverUrlName)
+                    uni.setStorageSync('serverUrlName', this.serverUrlName)
                     this.serverUrl = url
                     this.changeApi = false
                     this.getOrganization()
@@ -322,21 +325,23 @@
                                 uni.setStorageSync('login', "login");
                                 uni.setStorageSync('Organization', this.Organization);
                                 uni.setStorageSync('OrganizationID', this.HOrgName);
-								//瀛樺偍閮ㄩ棬 鑱屽憳 浠撳簱 绛変俊鎭�
-								uni.setStorageSync('HDeptID', res.data.data[0].HDeptID); //閮ㄩ棬
-								uni.setStorageSync('HDeptName', res.data.data[0].HDeptName);
-								uni.setStorageSync('HEmpID', res.data.data[0].HEmpID); //鑱屽憳
-								uni.setStorageSync('HEmpName', res.data.data[0].HEmpName);
-								uni.setStorageSync('HSCWHID', res.data.data[0].HSCWHID); //璋冨叆浠撳簱
-								uni.setStorageSync('HSCWHName', res.data.data[0].HSCWHName);
-								uni.setStorageSync('HWhID', res.data.data[0].HWhID);//瀵瑰簲浠撳簱
-								uni.setStorageSync('HWhName', res.data.data[0].HWhName);
-								uni.setStorageSync('HWorkCenterID', res.data.data[0].HWorkCenterID);//宸ヤ綔涓績
-								uni.setStorageSync('HWorkCenterName', res.data.data[0].HWorkCenterName);
-								uni.setStorageSync('HSecManagerID', res.data.data[0].HSecManagerID); //瀵瑰簲楠屾敹
-								uni.setStorageSync('HSecManagerName', res.data.data[0].HSecManagerName);
+                                //瀛樺偍閮ㄩ棬 鑱屽憳 浠撳簱 绛変俊鎭�
+                                uni.setStorageSync('HDeptID', res.data.data[0].HDeptID); //閮ㄩ棬
+                                uni.setStorageSync('HDeptName', res.data.data[0].HDeptName);
+                                uni.setStorageSync('HEmpID', res.data.data[0].HEmpID); //鑱屽憳
+                                uni.setStorageSync('HEmpName', res.data.data[0].HEmpName);
+                                uni.setStorageSync('HSCWHID', res.data.data[0].HSCWHID); //璋冨叆浠撳簱
+                                uni.setStorageSync('HSCWHName', res.data.data[0].HSCWHName);
+                                uni.setStorageSync('HWhID', res.data.data[0].HWhID); //瀵瑰簲浠撳簱
+                                uni.setStorageSync('HWhName', res.data.data[0].HWhName);
+                                uni.setStorageSync('HWorkCenterID', res.data.data[0].HWorkCenterID); //宸ヤ綔涓績
+                                uni.setStorageSync('HWorkCenterName', res.data.data[0].HWorkCenterName);
+                                uni.setStorageSync('HSecManagerID', res.data.data[0].HSecManagerID); //瀵瑰簲楠屾敹
+                                uni.setStorageSync('HSecManagerName', res.data.data[0].HSecManagerName);
                                 this.CommonUtils.setServerUrl(this.serverUrl)
                                 // this.WebSocketServices.createConnect(res.data.data[0].Czybm,res.data.data[0].Czymc);
+                                // getuiUtils.getClientID()
+                                getuiUtils.getClientID(res.data.data[0].Czybm,res.data.data[0].Czymc)
                                 uni.reLaunch({
                                     url: '/pages/index/index'
                                 })
diff --git a/pages/index/mine.vue b/pages/index/mine.vue
index 3c3242c..0ac7a2a 100644
--- a/pages/index/mine.vue
+++ b/pages/index/mine.vue
@@ -103,7 +103,7 @@
                             // 鏂紑Socket杩炴帴
                             // WebSocketServices.closeSocket();
                             // 閿�姣� userInfo 缂撳瓨
-                            uni.removeStorageSync("userinfo")
+                            // uni.removeStorageSync("userinfo")
 							uni.reLaunch({
 								url:'/pages/index/login'
 							})
diff --git a/pages/tiaomachaima/tiaomachaima2.vue b/pages/tiaomachaima/tiaomachaima2.vue
index 6d6b8ac..5c64f9f 100644
--- a/pages/tiaomachaima/tiaomachaima2.vue
+++ b/pages/tiaomachaima/tiaomachaima2.vue
@@ -257,53 +257,7 @@
 					}
 				)
 			},
-			//绾㈠鎵潯鐮�
-			getCode(HBarCode) {
-				if (!HBarCode) {
-					CommonUtils.playSound(0)
-					this.refreshBarCodeState()
-					uni.showToast({
-						title: '鏉$爜涓嶈兘涓虹┖',
-						icon: 'none'
-					})
-				} else {
-					uni.request({
-						url: this.serverUrl + '/Gy_BarCodeBillList/page',
-						data: {
-							sWhere: ` and 鏉$爜缂栧彿=''${this.barCodeInfoMeta.barCodeNo}''`,
-							user: this.userInfo.HEmpName,
-							page: 1,
-							size: 1
-						},
-						success: (res) => {
-							console.log('鎵爜杩斿洖', res.data.data);
-							if (res.data.count == 1) {
-								CommonUtils.playSound(1)
-								this.barCodeInfo = res.data.data[0]
-								this.barCodeSplitInfo = []
-								// 鎵弿鏉$爜鍚庨噸缃寜閽姸鎬�
-								this.resetButtonState();
-							} else {
-								CommonUtils.playSound(0)
-								this.refreshBarCodeState()
-								uni.showToast({
-									title: res.data.Message,
-									icon: 'none'
-								})
-							}
-						},
-						fail: (res) => {
-							CommonUtils.playSound(0)
-							this.refreshBarCodeState()
-							console.log(res);
-							uni.showToast({
-								title: '鎺ュ彛璇锋眰澶辫触',
-								icon: 'none'
-							})
-						},
-					});
-				}
-			},
+			
 			dialogInputConfirm(val) {
 				this.itemCache["HSplitNum"] = val
 
diff --git a/utils/WebSocketServices.js b/utils/WebSocketServices.js
index 7115a50..c1a0526 100644
--- a/utils/WebSocketServices.js
+++ b/utils/WebSocketServices.js
@@ -11,7 +11,7 @@
         this.wsUrl = CommonUtils.httpFormatWs(); // WebSocket 鍩虹鍦板潃
 
         // 瓒呮椂鏍¢獙閰嶇疆
-        this.businessMessageInterval = 5 * 60 * 1000; 
+        this.businessMessageInterval = 5 * 60 * 1000;
         this.noMessageTimeout = this.businessMessageInterval + 2 * 60 * 1000;
         this.noMessageTimer = null; // 鏃犳秷鎭秴鏃跺畾鏃跺櫒
 
@@ -96,10 +96,22 @@
                 this.resetNoMessageTimer();
 
                 // 澶勭悊涓氬姟娑堟伅
-                if (message.Type === "Message") {
+                if (message.Type === "MessageUnRead") { // 鏈娑堟伅
+                    let payload = {
+                        pagePath: "/pages/ZLGL/OA_WorkLink/OA_WorkLinkBillList",
+                        itemId: 0
+                    }
                     const content = JSON.parse(message.Content);
-                    this.showTaskTip(`鎮ㄦ湁${content.length}鏉℃秷鎭渶瑕佸鐞�!`);
+                    this.showTaskTip(`鎮ㄦ湁${content.length}鏉℃秷鎭渶瑕佸鐞�!`, payload);
                     // this.emit("message", content); // 鏀寔澶栭儴鐩戝惉
+                } else if (message.Type === "Message") {
+                    const content = JSON.parse(message.Content)
+                    let payload = {
+                        pagePath: "/pages/ZLGL/OA_WorkLink/OA_WorkLinkBillList",
+                        itemId: 0
+                    }
+                    this.showTaskTip(content[0]["鍐呭"], payload, content[0]["涓婚"]);
+                    
                 }
             } catch (error) {
                 console.error("[WebSocket] 娑堟伅瑙f瀽澶辫触", error, res.data);
@@ -213,16 +225,19 @@
     }
 
 
-    showTaskTip(Content) {
+    showTaskTip(Content, payloads, Title = "閲嶈閫氱煡") {
         // #ifdef APP-PLUS || APP
         let content = Content;
         let options = {
-            title: "閲嶈閫氱煡",
+            title: Title,
             cover: true, // 鏄惁瑕嗙洊涓婁竴娆$殑閫氱煡
-            when: new Date() // 閫氱煡鏄剧ず鏃堕棿
+            when: new Date(), // 閫氱煡鏄剧ず鏃堕棿
+            icon: "../static/logo.png",
+            largeIcon: "../static/logo.png"
         };
         // TODO 璺宠浆鍒版寚瀹氶〉
-        let payload = JSON.stringify({});
+        let payload = JSON.stringify(payloads);
+        console.log('payload: ', payload);
 
         plus.push.createMessage(content, payload, options);
         // #endif
diff --git a/utils/getuiUtils.js b/utils/getuiUtils.js
new file mode 100644
index 0000000..c9e8e10
--- /dev/null
+++ b/utils/getuiUtils.js
@@ -0,0 +1,58 @@
+import {
+    CommonUtils
+} from "./common";
+
+class getuiInstance {
+    constructor() {
+        this.cid = ""
+    }
+
+    getClientID(Userbm, UserName) {
+        // #ifdef APP-PLUS
+        const info = plus.push.getClientInfo()
+        this.cid = info["clientid"]
+        console.log('cid: ', this.cid);
+        this.setUserClientIDRelative(Userbm, UserName, this.cid, 1)
+        // #endif
+    };
+
+    async setUserClientIDRelative(Userbm, UserName, ClientID, Online) {
+        try {
+            let res = await CommonUtils.doRequest2Async({
+                url: "/Web/SetGy_UserClientIdConnection",
+                method: "POST",
+                data: {
+                    HUserbm: Userbm,
+                    HUserName: UserName,
+                    HClientID: ClientID,
+                    HOnline: Online
+                }
+            })
+            
+
+            let {
+                data,
+                count,
+                Message
+            } = res.data
+            
+            if(count != 1) {
+                CommonUtils.showTips({
+                    title: "娓╅Θ鎻愮ず",
+                    message: Message
+                })
+            }
+        }catch(err) {
+            CommonUtils.showTips({
+                title: "娓╅Θ鎻愮ず",
+                message: err
+            })
+        }
+
+    }
+}
+
+
+
+
+export default new getuiInstance()
\ No newline at end of file

--
Gitblit v1.9.1