jufubao-base 1.0.61-beta5 → 1.0.62

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.61-beta5",
3
+ "version": "1.0.62",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -67,37 +67,39 @@
67
67
  </view>
68
68
  </template>
69
69
  </view>
70
+ <!--notice-->
70
71
  <view class="jfb-base-card__body-line" v-if="!notice"></view>
71
- <view
72
- class="jfb-base-card__body-notice"
73
- :style="{ background: noticeBackgroundColor }"
74
- v-if="notice"
75
- >
76
- <xd-notice-bar
77
- :showIcon="true"
78
- :scrollable="true"
79
- :speed="20"
80
- :fontSize="24"
81
- :height="70"
82
- :is-no-bgc="false"
72
+ <view class="jfb-base-card__body-notice" v-if="notice">
73
+ <view
74
+ class="jfb-base-card__body-notice-in"
75
+ :style="{ background: noticeBackgroundColor }"
83
76
  >
84
- <template>
85
- <view v-html="notice"></view>
86
- </template>
87
- </xd-notice-bar>
77
+ <xd-notice-bar
78
+ :showIcon="true"
79
+ :scrollable="true"
80
+ :speed="20"
81
+ :fontSize="24"
82
+ :height="70"
83
+ :is-no-bgc="false"
84
+ >
85
+ <template>
86
+ <view v-html="notice"></view>
87
+ </template>
88
+ </xd-notice-bar>
89
+ </view>
88
90
  </view>
89
- <view
90
- v-if="noticeStatus && isPreview && notice === ''"
91
- class="jfb-base-card__body-notice"
92
- :style="{
91
+ <view class="jfb-base-card__body-notice" v-if="noticeStatus && isPreview && notice === ''">
92
+ <view
93
+ class="jfb-base-card__body-notice-in"
94
+ :style="{
93
95
  background: noticeBackgroundColor,
94
96
  textAlign: 'center',
95
97
  color: dangerColor,
96
98
  fontSize: 26 + 'rpx',
97
99
  }"
98
- >
99
- 该组件未配置数据,因此改模块在正式环境将不显示</view
100
- >
100
+ >该组件未配置数据,因此改模块在正式环境将不显示</view>
101
+ </view>
102
+ <!--notice end-->
101
103
  <view class="jfb-base-card__body-tab">
102
104
  <view
103
105
  @click="tabIndex = 1"
@@ -298,10 +300,10 @@ export default {
298
300
  this.init(this.container);
299
301
  this.noticeBackgroundColor = Color(this.warningColor).alpha(0.2).toString();
300
302
  this.isPreview = this.$configProject.isPreview;
301
-
303
+
302
304
  //#ifdef H5
303
305
  this.isWx = this.isPreview || isWechat();
304
-
306
+
305
307
  if (!this.$configProject.isPreview) {
306
308
  jfbRootExec("getH5WxAuthorize", {
307
309
  vm: this,
@@ -331,7 +333,7 @@ export default {
331
333
  this.allEntryPath = getContainerPropsValue(container,"content.allEntryPath",{value: ""}).value;
332
334
  this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
333
335
  },
334
-
336
+
335
337
  handleToLink(path) {
336
338
  this.$xdUniHelper.navigateTo({
337
339
  url: path,
@@ -529,7 +531,7 @@ export default {
529
531
  .catch(() => this.$xdHideLoading());
530
532
  },
531
533
 
532
- onShow(options) {
534
+ onJfbShow(options) {
533
535
  this.onJfbLoad(options);
534
536
  },
535
537
 
@@ -629,9 +631,22 @@ export default {
629
631
  }
630
632
 
631
633
  &-notice {
632
- margin: unit(46, rpx) unit(-35, rpx) 0 unit(-35, rpx);
633
- padding: unit(22, rpx) unit(35, rpx);
634
- line-height: unit(70, rpx);
634
+ width: 100%;
635
+ margin-top: unit(30, rpx);
636
+ height: unit(80, rpx);
637
+ position: relative;
638
+ &-in {
639
+ position: absolute;
640
+ left: unit(-30, rpx);
641
+ top: unit(0, rpx);
642
+ right: unit(-30, rpx);
643
+ bottom: 0;
644
+ display: flex;
645
+ padding: 0 unit(30, rpx);
646
+ overflow: hidden;
647
+ align-items: center;
648
+ }
649
+
635
650
  }
636
651
 
637
652
  &-tab {