From b3b79d1fbbb8a86b2f39bf1e3cc34449664a8543 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期一, 05 八月 2024 10:47:56 +0800
Subject: [PATCH] 1
---
pages/home/supplier-home.vue | 24 ++++++++++++++++++++++--
1 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/pages/home/supplier-home.vue b/pages/home/supplier-home.vue
index 0693bff..ace7e77 100644
--- a/pages/home/supplier-home.vue
+++ b/pages/home/supplier-home.vue
@@ -204,6 +204,26 @@
};
},
+ onShareAppMessage() {
+ let that = this;
+ var name = that.currentInfo.customerDTO&&that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO&&that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO&&that.currentInfo.partnerDTO.name || ''
+ var url =
+ `/pages/login/supplier-login?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
+ return {
+ title: "花满芫",
+ path: url,
+ }
+ },
+ onShareTimeline() {
+ let that = this;
+ var name = that.currentInfo.customerDTO&&that.currentInfo.customerDTO.name || that.currentInfo.supplierDTO&&that.currentInfo.supplierDTO.name || that.currentInfo.partnerDTO&&that.currentInfo.partnerDTO.name || ''
+ var url =
+ `/pages/login/supplier-login?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数
+ return {
+ title: "花满芫",
+ path: url,
+ }
+ },
async onPullDownRefresh() {
await this.$store.dispatch('getCurrentInfo')
uni.stopPullDownRefresh()
@@ -289,7 +309,7 @@
}
},
fail: (res) => {
- console.log("蓝牙状态",res)
+ console.log("蓝牙状态", res)
that.$message.showToast('获取蓝牙状态失败')
}
@@ -350,7 +370,7 @@
},
fail: function(res) {
- console.log('createBLEConnection fail',res)
+ console.log('createBLEConnection fail', res)
that.$message.showToast('连接打印机失败')
},
complete() {
--
Gitblit v1.9.3