Browse Source

fix bug 与距离显示调整

shizhongqi 8 months ago
parent
commit
c10a0e0d89
1 changed files with 7 additions and 6 deletions
  1. 7 6
      hdApp/src/admin/billing/affirmGhs.vue

+ 7 - 6
hdApp/src/admin/billing/affirmGhs.vue

@@ -229,6 +229,12 @@
 		</tui-list-cell>
 	</block>
 </block>
+
+			<tui-list-cell class="line-cell" :hover="false" v-if="displaySendCost == true && Number(showDistance)>0">
+				<view class="tui-title">距离</view>
+				<text v-if="showDistance > 500" style="color: #3385FF">{{ (showDistance/1000).toFixed(1) }} 千米</text>
+				<text v-else style="color: #3385FF">{{ showDistance }} 米</text>
+			</tui-list-cell>
 			<tui-list-cell class="line-cell" :hover="false" v-if="displaySendCost == true">
 				<view class="tui-title">跑腿费</view>
 				<view>
@@ -247,11 +253,6 @@
 						</view>
 					</tui-list-cell>
 
-					<tui-list-cell class="line-cell" :hover="false" v-if="displaySendCost == true && Number(showDistance)>0">
-					<view class="tui-title">距离</view>
-					<text style="color: #3385FF">{{ showDistance }}米</text>
-					</tui-list-cell>
-
 					<tui-list-cell class="line-cell" :hover="false" v-if="needAddPackCost == true">
 					<view class="tui-title">包装费</view>
 					<text style="color: #3385FF">¥{{ form.packCost }}</text>
@@ -414,7 +415,7 @@ export default {
 			//计算运费
 			//this.calcFreight()
 
-			if(this.displaySendCost() == true){
+			if(this.displaySendCost == true){
 				//各跑腿平台报价
 				this.getDeliveryQuotes()
 			}