|
|
@@ -220,11 +220,13 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 农资,步骤:农资已执行,请求确认 -->
|
|
|
- <div class="fixed-btn-wrap center" v-if="curRole == 2 && !detailData?.expectedExecuteDate">
|
|
|
- <div class="fixed-btn orange" :class="{ 'primary-text': getButtonText() }" @click="selectExecuteTime">{{ getButtonText() ? '提醒确认执行时间' : '确认执行时间' }}</div>
|
|
|
+ <div class="fixed-btn-wrap" :class="{ 'center': !getButtonText() }" v-if="curRole == 2 && !detailData?.expectedExecuteDate">
|
|
|
+ <div class="fixed-btn orange primary-text" @click="handleRemindExecuteTime" v-if="getButtonText()">提醒确认执行时间</div>
|
|
|
+ <div class="fixed-btn orange" @click="selectExecuteTime">确认执行时间</div>
|
|
|
</div>
|
|
|
- <div class="fixed-btn-wrap center" v-if="curRole == 2 && detailData?.expectedExecuteDate">
|
|
|
- <div class="fixed-btn primary" @click="showOfferPopup(detailData)">{{ getButtonText() ? '提醒执行' : '上传照片' }}</div>
|
|
|
+ <div class="fixed-btn-wrap" :class="{ 'center': !getButtonText() }" v-if="curRole == 2 && detailData?.expectedExecuteDate">
|
|
|
+ <div class="fixed-btn primary primary-text width-120" @click="handleExecute" v-if="getButtonText()">提醒执行</div>
|
|
|
+ <div class="fixed-btn primary" @click="showOfferPopup(detailData)">上传照片</div>
|
|
|
</div>
|
|
|
|
|
|
<!-- 农资,步骤:农事已确认 -->
|
|
|
@@ -394,21 +396,21 @@ const getButtonText = () => {
|
|
|
const offerPopupRef = ref(null);
|
|
|
const isGoBack = ref(false);
|
|
|
const showOfferPopup = (item) => {
|
|
|
- if(getButtonText()) {
|
|
|
- const query = {
|
|
|
- askInfo: { title: "农事提醒", content: "是否分享该农事提醒给好友" },
|
|
|
- shareText: '向您分享了一条农事执行提醒,请您尽快执行',
|
|
|
- targetUrl: `completed_work`,
|
|
|
- paramsPage: JSON.stringify({id: item.id}),
|
|
|
- imageUrl: 'https://birdseye-img.sysuimars.com/birdseye-look-mini/invite_bg.png',
|
|
|
- };
|
|
|
- wx.miniProgram.navigateTo({
|
|
|
- url: `/pages/subPages/share_page/index?pageParams=${JSON.stringify(query)}&type=sharePage`,
|
|
|
- });
|
|
|
- }else{
|
|
|
- isGoBack.value = true;
|
|
|
- offerPopupRef.value.openPopup(item);
|
|
|
- }
|
|
|
+ isGoBack.value = true;
|
|
|
+ offerPopupRef.value.openPopup(item);
|
|
|
+};
|
|
|
+
|
|
|
+const handleExecute = () => {
|
|
|
+ const query = {
|
|
|
+ askInfo: { title: "农事提醒", content: "是否分享该农事提醒给好友" },
|
|
|
+ shareText: '向您分享了一条农事执行提醒,请您尽快执行',
|
|
|
+ targetUrl: `completed_work`,
|
|
|
+ paramsPage: JSON.stringify({id: detailData.value.id}),
|
|
|
+ imageUrl: 'https://birdseye-img.sysuimars.com/birdseye-look-mini/invite_bg.png',
|
|
|
+ };
|
|
|
+ wx.miniProgram.navigateTo({
|
|
|
+ url: `/pages/subPages/share_page/index?pageParams=${JSON.stringify(query)}&type=sharePage`,
|
|
|
+ });
|
|
|
};
|
|
|
|
|
|
const showCalendar = ref(false);
|
|
|
@@ -416,21 +418,21 @@ const maxDate = ref(new Date());
|
|
|
// 最小日期设置为今天,今天可以选择
|
|
|
const minDate = new Date();
|
|
|
const selectExecuteTime = () => {
|
|
|
- if(getButtonText()) {
|
|
|
- const query = {
|
|
|
- askInfo: { title: "农事提醒", content: "是否分享该农事提醒给好友" },
|
|
|
- shareText: '向您分享了一条农事提醒,请您尽快确认执行时间',
|
|
|
- targetUrl: `completed_work`,
|
|
|
- paramsPage: JSON.stringify({id: detailData.value.id}),
|
|
|
- imageUrl: 'https://birdseye-img.sysuimars.com/birdseye-look-mini/invite_bg.png',
|
|
|
- };
|
|
|
- wx.miniProgram.navigateTo({
|
|
|
- url: `/pages/subPages/share_page/index?pageParams=${JSON.stringify(query)}&type=sharePage`,
|
|
|
- });
|
|
|
- }else{
|
|
|
- maxDate.value = new Date(detailData.value.executeDeadlineDate);
|
|
|
- showCalendar.value = true;
|
|
|
- }
|
|
|
+ maxDate.value = new Date(detailData.value.executeDeadlineDate);
|
|
|
+ showCalendar.value = true;
|
|
|
+};
|
|
|
+
|
|
|
+const handleRemindExecuteTime = () => {
|
|
|
+ const query = {
|
|
|
+ askInfo: { title: "农事提醒", content: "是否分享该农事提醒给好友" },
|
|
|
+ shareText: '向您分享了一条农事提醒,请您尽快确认执行时间',
|
|
|
+ targetUrl: `completed_work`,
|
|
|
+ paramsPage: JSON.stringify({id: detailData.value.id}),
|
|
|
+ imageUrl: 'https://birdseye-img.sysuimars.com/birdseye-look-mini/invite_bg.png',
|
|
|
+ };
|
|
|
+ wx.miniProgram.navigateTo({
|
|
|
+ url: `/pages/subPages/share_page/index?pageParams=${JSON.stringify(query)}&type=sharePage`,
|
|
|
+ });
|
|
|
};
|
|
|
|
|
|
const onConfirmExecuteTime = (date) => {
|
|
|
@@ -700,6 +702,9 @@ const handlePriceInfo = async () => {
|
|
|
color: #2199f8;
|
|
|
border: 1px solid #2199f8;
|
|
|
}
|
|
|
+ &.width-120 {
|
|
|
+ width: 120px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.card-title {
|