jufubao-base 1.0.181-beta2 → 1.0.181-beta3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.181-beta2",
3
+ "version": "1.0.181-beta3",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -617,14 +617,21 @@
617
617
  </view>
618
618
  </view>
619
619
  </view>
620
- <!-- todo -->
621
- <view v-if="info.extras.travel_booking_info.travelers&&info.extras.travel_booking_info.travelers.length>0" :style="{
622
- background: backgroundColor,
623
- border: borderBox,
624
- borderRadius: radius + 'rpx',
625
- boxShadow: shadowBox,
626
- marginBottom: padding + 'rpx',
627
- }" class="jfb-base-order-detail__body-card jfb-base-order-detail__body-booking">
620
+ <!--旅游模块-->
621
+ <view
622
+ v-if="info.extras &&
623
+ info.extras.travel_booking_info &&
624
+ info.extras.travel_booking_info['travelers'] &&
625
+ info.extras.travel_booking_info['travelers'].length > 0"
626
+ :style="{
627
+ background: backgroundColor,
628
+ border: borderBox,
629
+ borderRadius: radius + 'rpx',
630
+ boxShadow: shadowBox,
631
+ marginBottom: padding + 'rpx',
632
+ }"
633
+ class="jfb-base-order-detail__body-card jfb-base-order-detail__body-booking"
634
+ >
628
635
  <view class="jfb-base-order-detail__body-delivery-bottom-title">预订信息</view>
629
636
  <view class="jfb-base-order-detail__body-line"></view>
630
637
  <view class="jfb-base-order-detail__body-booking-list">
@@ -638,6 +645,7 @@
638
645
  </view>
639
646
  </view>
640
647
  </view>
648
+ <!--旅游模块-->
641
649
  <view
642
650
  v-if="info.productDetail"
643
651
  class="jfb-base-order-detail__body-card jfb-base-order-detail__body-shop"
@@ -918,9 +926,17 @@ export default {
918
926
  .then((res) => {
919
927
  this.biz_code = res.biz_code;
920
928
  this.is_not_show_price = res.is_not_show_price;
921
- if(res.extras.travel_booking_info) {
922
- res.extras.travel_booking_info = JSON.parse(res.extras.travel_booking_info)
929
+
930
+ //旅游模块
931
+ if(res.extras && res.extras.travel_booking_info) {
932
+ try{
933
+ res.extras.travel_booking_info = JSON.parse(res.extras.travel_booking_info)
934
+ }catch(e){
935
+ res.extras.travel_booking_info = {}
936
+ }
923
937
  }
938
+
939
+ //预览模块
924
940
  if (this.isPreview) {
925
941
  switch (this.viewStatus) {
926
942
  case "mall":