shish 2 лет назад
Родитель
Сommit
26ba65906e
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      ghsApp/src/admin/billing/result.vue

+ 2 - 2
ghsApp/src/admin/billing/result.vue

@@ -3,12 +3,12 @@
 <appResult :title="option.title">
 <appResult :title="option.title">
   <view v-if="detailInfo.hasNoticeCustom && detailInfo.hasNoticeCustom == 1" style="margin-bottom:30upx;font-weight:bold;color:#049E2C;font-size:36upx;">【客户已收到新订单提醒】</view>
   <view v-if="detailInfo.hasNoticeCustom && detailInfo.hasNoticeCustom == 1" style="margin-bottom:30upx;font-weight:bold;color:#049E2C;font-size:36upx;">【客户已收到新订单提醒】</view>
   <!-- #ifdef MP-WEIXIN -->
   <!-- #ifdef MP-WEIXIN -->
-  <button v-if="option.title != '报损成功'" class="admin-button-com big blue" open-type="share">
+  <button v-if="option.title != '报损成功' && detailInfo.purchaseId && detailInfo.purchaseId > 0" class="admin-button-com big blue" open-type="share">
     分享给<text style="font-weight:bold;margin-left:12upx;">{{customName}}</text>
     分享给<text style="font-weight:bold;margin-left:12upx;">{{customName}}</text>
   </button>
   </button>
   <!-- #endif -->
   <!-- #endif -->
   <!-- #ifdef APP-PLUS -->
   <!-- #ifdef APP-PLUS -->
-  <button v-if="option.title != '报损成功'" class="admin-button-com big blue" @click="shareOrder">
+  <button v-if="option.title != '报损成功' && detailInfo.purchaseId && detailInfo.purchaseId > 0" class="admin-button-com big blue" @click="shareOrder">
     分享给<text style="font-weight:bold;margin-left:12upx;">{{customName}}</text>
     分享给<text style="font-weight:bold;margin-left:12upx;">{{customName}}</text>
   </button>
   </button>
   <!-- #endif -->
   <!-- #endif -->