From e07b984728e0a97473b2954d097afac4a5c8b80a Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Thu, 27 Jun 2024 15:31:53 +0800 Subject: [PATCH] fix: 限期天数修改 --- pages/actionChange/components/basicInfor.vue | 34 +++++++++++++++++++++++++++++++++- 1 files changed, 33 insertions(+), 1 deletions(-) diff --git a/pages/actionChange/components/basicInfor.vue b/pages/actionChange/components/basicInfor.vue index ca19e88..3e1aed5 100644 --- a/pages/actionChange/components/basicInfor.vue +++ b/pages/actionChange/components/basicInfor.vue @@ -66,12 +66,18 @@ <text class="rowTipContenetLabel">������������:</text> <text class="rowTipContenetAll"> <text>{{ dictObj.changeEnum[basicInfor.changeType]||'' }}</text> - <!-- <text>{{ basicInfor.residueDay||'' }}</text> --> </text> </view> </view> </p> <p class="rowTip"> + <view class="rowTipContenet" v-if="basicInfor.changeDay"> + <view class="wholeLine"> + <text class="rowTipContenetLabel">������������:</text> + <text class="rowTipContenetAll"> + {{ basicInfor.changeDay }}��� </text> + </view> + </view> <view class="rowTipContenet"> <view class="wholeLine"> <text class="rowTipContenetLabel">������������:</text> @@ -85,6 +91,8 @@ <view class="wholeLine"> <text class="rowTipContenetLabel">������������:</text> <text class="rowTipContenetAll">{{ basicInfor.pollutePosition ||'' }}</text> + <u-icon name="map" color="#2979ff" size="28" @tap="toNavigation()" + v-if="basicInfor.longitude !==null"></u-icon> </view> </p> <p class="rowTip"> @@ -93,6 +101,16 @@ <text class="rowTipContenetLabel">������������:</text> <text class="rowTipContenetAll"> <text>{{ dictObj.emphasisEnum[basicInfor.keyPoint]||'' }}</text> + </text> + </view> + </view> + </p> + <p class="rowTip"> + <view class="rowTipContenet" style="width: 100%;"> + <view class="wholeLine"> + <text class="rowTipContenetLabel">������������:</text> + <text class="rowTipContenetAll" style="white-space: break-spaces;"> + {{ basicInfor.problemDescribe }} </text> </view> </view> @@ -159,6 +177,20 @@ } }, methods: { + //������--������������������������ + toNavigation: function() { + //������������������������������������ + uni.openLocation({ + longitude: parseFloat(this.basicInfor.longitude), // ������������������-180~180��������������������� + latitude: parseFloat(this.basicInfor.latitude), // ������������������-90~90��������������������� + scale: 28, // ������������ + name: this.basicInfor.name, //������������ + address: this.basicInfor.address, //������������������ + success: function(res) { + console.log('success:', res) + } + }) + }, getUnitList() { this.$http.httpGet('/allocation/unit').then(res => { this.unitList = res.data -- Gitblit v1.8.0