gxd-uni-library-editx 1.0.27 → 1.0.29

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": "gxd-uni-library-editx",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "private": false,
5
5
  "description": "聚福宝基础插件专用库",
6
6
  "main": "index.js",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <view class="xd-Layout" id="xd-Layout">
3
3
  <view
4
- v-if="initStatus"
4
+ v-if="initStatus && websiteStatus === true"
5
5
  class="xd-Layout__animation"
6
6
  >
7
7
  <!--topBar-->
@@ -114,6 +114,9 @@
114
114
  <!--tabbar-->
115
115
  <view class="xd-Layout__footer-height" :style="{height: (bottomHeight + (isFooterSolt ? footerHeight: 110)) + 'rpx' }"></view>
116
116
  </view>
117
+ <view v-if="websiteStatus === false" class="website-disable">
118
+ <image src="//img.jufubao.cn/component/disabel_phone.png" mode="widthFix"></image>
119
+ </view>
117
120
  <xd-confirm v-if="getLayoutInfo" :get-layout-info="getLayoutInfo"></xd-confirm>
118
121
  <xd-loading v-if="getLayoutInfo" :get-layout-info="getLayoutInfo"></xd-loading>
119
122
  <xd-tips v-if="getLayoutInfo" :get-layout-info="getLayoutInfo"></xd-tips>
@@ -269,6 +272,7 @@
269
272
  open: false,
270
273
  layoutLoading: false,
271
274
  startTime: new Date().getTime(),
275
+ websiteStatus: null,
272
276
 
273
277
  startAnimation : false, //开始动画效果
274
278
  doneAnimation: false, //完成动画效果
@@ -328,7 +332,8 @@
328
332
  'errorLogs',
329
333
  'logs',
330
334
  'networkStatus',
331
- 'brandInfo'
335
+ 'brandInfo',
336
+ 'siteInfo'
332
337
  ]),
333
338
 
334
339
  isPreviewShowBar(){
@@ -510,7 +515,7 @@
510
515
  this.wiewType = this.$configProject.isPreview;
511
516
  this.systemInfoSyn = uni.getSystemInfoSync();
512
517
  this.gWindowHeight = uni.getSystemInfoSync().windowHeight;
513
-
518
+ this.websiteStatus = this.siteInfo && this.siteInfo.site && this.siteInfo.site.status === 'Y'
514
519
 
515
520
  // #ifdef H5
516
521
  if(!uni.getStorageSync('xd-max-window-height')) {
@@ -875,7 +880,6 @@
875
880
 
876
881
  &__view {
877
882
  height: unit(100, rpx);
878
-
879
883
  }
880
884
 
881
885
  /**动画效果**/
@@ -906,4 +910,16 @@
906
910
 
907
911
  }
908
912
  }
913
+
914
+ .website-disable {
915
+ width: 100%;
916
+ min-height: calc(100vh - var(--window-top));
917
+ display: flex;
918
+ justify-content: center;
919
+ align-items: center;
920
+
921
+ & > image {
922
+ max-width: 70vw;
923
+ }
924
+ }
909
925
  </style>
@@ -9,6 +9,7 @@
9
9
  :interval="interval"
10
10
  :duration="duration"
11
11
  :current="current"
12
+ circular
12
13
  @animationfinish="handleAnimationFinish"
13
14
  >
14
15
  <swiper-item v-for="(item,index) in list" :key="index" @click.stop="handleClick(item,index)">
@@ -78,6 +79,7 @@
78
79
  }
79
80
 
80
81
  },
82
+
81
83
  data(){
82
84
  return {
83
85
  background: ['color1', 'color2', 'color3'],
@@ -88,7 +90,6 @@
88
90
  this.$emit('animationfinish', item);
89
91
  },
90
92
  handleClick(item,index){
91
- //console.log('handleClick', item, index);
92
93
  this.$emit('onClickItem', item, index);
93
94
  },
94
95
  }