|
@@ -15,7 +15,7 @@
|
|
|
<!-- 作物档案 -->
|
|
<!-- 作物档案 -->
|
|
|
<div class="archives-time-line">
|
|
<div class="archives-time-line">
|
|
|
<div class="archives-time-line-header">
|
|
<div class="archives-time-line-header">
|
|
|
- <div class="line-title">农事记录</div>
|
|
|
|
|
|
|
+ <div class="line-title" @click="handleFarmInfoClick">农事记录</div>
|
|
|
<!-- <el-date-picker style="width: 110px" v-model="date" type="year" placeholder="全部日期" /> -->
|
|
<!-- <el-date-picker style="width: 110px" v-model="date" type="year" placeholder="全部日期" /> -->
|
|
|
</div>
|
|
</div>
|
|
|
<div class="archives-time-line-content">
|
|
<div class="archives-time-line-content">
|
|
@@ -45,6 +45,20 @@ import farmInfoPopup from "../home/components/farmInfoPopup.vue";
|
|
|
import tipPopup from "@/components/popup/tipPopup.vue";
|
|
import tipPopup from "@/components/popup/tipPopup.vue";
|
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
import ArchivesFarmTimeLine from "@/components/pageComponents/ArchivesFarmTimeLine.vue";
|
|
import ArchivesFarmTimeLine from "@/components/pageComponents/ArchivesFarmTimeLine.vue";
|
|
|
|
|
+import wx from "weixin-js-sdk";
|
|
|
|
|
+
|
|
|
|
|
+const handleFarmInfoClick = () =>{
|
|
|
|
|
+ const query = {
|
|
|
|
|
+ askInfo: { title: "农场认领", content: "是否分享该链接给好友" },
|
|
|
|
|
+ shareText: "我分享了农场认领链接,快来认领吧~",
|
|
|
|
|
+ targetUrl: `create_farm`,
|
|
|
|
|
+ paramsPage: JSON.stringify({isFarmer:true}),
|
|
|
|
|
+ imageUrl: 'https://birdseye-img-ali-cdn.sysuimars.com//container_phenology_interaction/example_images/0/0/1770021421822.jpg',
|
|
|
|
|
+ };
|
|
|
|
|
+ wx.miniProgram.navigateTo({
|
|
|
|
|
+ url: `/pages/subPages/share_page/index?pageParams=${JSON.stringify(query)}&type=sharePage`,
|
|
|
|
|
+ });
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
const showFarmPopup = ref(false); // 农场领取成功弹窗
|
|
const showFarmPopup = ref(false); // 农场领取成功弹窗
|
|
|
const date = ref(new Date());
|
|
const date = ref(new Date());
|