Browse Source

转换数据类型,避免出错

shizhongqi 4 months ago
parent
commit
8cf9a875d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ghsApp/src/pagesOrder/detail.vue

+ 1 - 1
ghsApp/src/pagesOrder/detail.vue

@@ -268,7 +268,7 @@
 							<block v-if="detailInfo.book == 1 && detailInfo.status == 2 && parseFloat(detailInfo.actPrice) == 0">
 							<block v-if="detailInfo.book == 1 && detailInfo.status == 2 && parseFloat(detailInfo.actPrice) == 0">
 							</block>
 							</block>
 							<block v-else>
 							<block v-else>
-								<text style="position:absolute;left:155upx;top:103upx;color:#3385FF;" @click="giveItemFn(s)">{{ s.ratioType == 1 ? '若干支装' : (s.ratioType == 0 ? s.ratio + '支装' : '发起赠送') }}</text>
+								<text style="position:absolute;left:155upx;top:103upx;color:#3385FF;" @click="giveItemFn(s)">{{ Number(s.ratioType) == 1 ? '若干支装' : (s.ratioType != null && Number(s.ratioType) == 0) ? s.ratio + '支装' : '发起赠送' }}</text>
 							</block>
 							</block>
 
 
 							<text v-if="detailInfo.book == 1" style="position:absolute;left:155upx;top:65upx;color:#999999;">预订 {{ parseFloat(s.xhPreNum) }}{{s.xhUnitName}} x ¥{{ s.xhUnitPrice?parseFloat(s.xhUnitPrice):0 }}</text>
 							<text v-if="detailInfo.book == 1" style="position:absolute;left:155upx;top:65upx;color:#999999;">预订 {{ parseFloat(s.xhPreNum) }}{{s.xhUnitName}} x ¥{{ s.xhUnitPrice?parseFloat(s.xhUnitPrice):0 }}</text>