|
@@ -129,6 +129,7 @@
|
|
|
import { Popup } from "vant";
|
|
import { Popup } from "vant";
|
|
|
import { ref, computed, onActivated } from "vue";
|
|
import { ref, computed, onActivated } from "vue";
|
|
|
import { useRouter } from "vue-router";
|
|
import { useRouter } from "vue-router";
|
|
|
|
|
+import { ElMessage } from "element-plus";
|
|
|
import wx from "weixin-js-sdk";
|
|
import wx from "weixin-js-sdk";
|
|
|
import html2canvas from "html2canvas";
|
|
import html2canvas from "html2canvas";
|
|
|
|
|
|
|
@@ -221,7 +222,21 @@ function fetchPriceData() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const handleShare = () => {
|
|
const handleShare = () => {
|
|
|
- console.log("handleShare");
|
|
|
|
|
|
|
+ const userId = quotationData.value.users[0]?.userId;
|
|
|
|
|
+ const parmasPage = {
|
|
|
|
|
+ farmWorkOrderId:quotationData.value.orderId,
|
|
|
|
|
+ farmMiniUserId:userId,
|
|
|
|
|
+ farmMiniUserName:quotationData.value.expertUserName,
|
|
|
|
|
+ farmId:quotationData.value.farmId,
|
|
|
|
|
+ farmWorkName:quotationData.value.farmWorkName,
|
|
|
|
|
+ id:quotationData.value.id,
|
|
|
|
|
+ type:'quotation'
|
|
|
|
|
+ }
|
|
|
|
|
+ if(userId){
|
|
|
|
|
+ router.push(`/chat_frame?userId=${userId}&name=${parmasPage.farmMiniUserName}&farmId=${parmasPage.farmId}&pageParams=${JSON.stringify(parmasPage)}`);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ ElMessage.warning('尚未绑定用户,暂时无法分享')
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const handleWechat = () => {
|
|
const handleWechat = () => {
|