jufubao-base 1.0.61-beta1005 → 1.0.61-beta1007

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-beta1005",
3
+ "version": "1.0.61-beta1007",
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,
@@ -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 {
@@ -70,34 +70,36 @@
70
70
  </template>
71
71
  </view>
72
72
  <view class="jfb-base-card-entry__body-line" v-if="!notice"></view>
73
- <view
74
- class="jfb-base-card-entry__body-notice"
75
- :style="{ background: noticeBackgroundColor }"
76
- v-if="notice"
77
- >
78
- <xd-notice-bar
79
- :showIcon="true"
80
- :scrollable="true"
81
- :speed="20"
82
- :fontSize="24"
83
- :height="70"
84
- :is-no-bgc="false"
73
+ <view class="jfb-base-card-entry__body-notice" v-if="notice">
74
+ <view
75
+ class="jfb-base-card-entry__body-notice-in"
76
+ :style="{ background: noticeBackgroundColor }"
85
77
  >
86
- <template>
87
- <view v-html="notice"></view>
88
- </template>
89
- </xd-notice-bar>
78
+ <xd-notice-bar
79
+ :showIcon="true"
80
+ :scrollable="true"
81
+ :speed="20"
82
+ :fontSize="24"
83
+ :height="70"
84
+ :is-no-bgc="false"
85
+ >
86
+ <template>
87
+ <view v-html="notice"></view>
88
+ </template>
89
+ </xd-notice-bar>
90
+ </view>
90
91
  </view>
91
- <view
92
- v-if="noticeStatus && isPreview && notice === ''"
93
- class="jfb-base-card-entry__body-notice"
94
- :style="{
92
+ <view class="jfb-base-card-entry__body-notice" v-if="noticeStatus && isPreview && notice === ''">
93
+ <view
94
+ class="jfb-base-card-entry__body-notice-in"
95
+ :style="{
95
96
  background: noticeBackgroundColor,
96
97
  textAlign: 'center',
97
98
  color: dangerColor,
98
99
  fontSize: 26 + 'rpx',
99
100
  }"
100
- >该组件未配置数据,因此改模块在正式环境将不显示</view>
101
+ >该组件未配置数据,因此改模块在正式环境将不显示</view>
102
+ </view>
101
103
  <view class="jfb-base-card-entry__body-tab">
102
104
  <view
103
105
  @click="tabIndex = 1"
@@ -794,10 +796,22 @@ export default {
794
796
  }
795
797
 
796
798
  &-notice {
797
- margin: unit(30, rpx) unit(-35, rpx) 0 unit(-35, rpx);
799
+ width: 100%;
800
+ margin-top: unit(30, rpx);
801
+ height: unit(80, rpx);
802
+ position: relative;
803
+ &-in {
804
+ position: absolute;
805
+ left: unit(-30, rpx);
806
+ top: unit(0, rpx);
807
+ right: unit(-30, rpx);
808
+ bottom: 0;
809
+ display: flex;
810
+ padding: 0 unit(30, rpx);
811
+ overflow: hidden;
812
+ align-items: center;
813
+ }
798
814
 
799
- padding: unit(22, rpx) unit(35, rpx);
800
- line-height: unit(70, rpx);
801
815
  }
802
816
 
803
817
  &-tab {