jufubao-base 1.0.174-beta1 → 1.0.174-beta2

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.174-beta1",
3
+ "version": "1.0.174-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -635,7 +635,7 @@ export default {
635
635
  label: 'logo样式配置',
636
636
  size: 'small',
637
637
  groupKey: 'style',
638
- hidden: data.previewCurrent !== "auth" || data.showLogo !== "Y",
638
+ hidden: data.showLogo !== "Y",
639
639
  },
640
640
  {
641
641
  label: "logo区域高度:",
@@ -646,7 +646,7 @@ export default {
646
646
  groupKey:'style',
647
647
  placeholder: "请输入logo区域高度",
648
648
  className: 'input60',
649
- hidden: data.previewCurrent !== "auth" || data.showLogo !== "Y",
649
+ hidden: data.showLogo !== "Y",
650
650
  },
651
651
  {
652
652
  label: "logo图片高度:",
@@ -657,7 +657,7 @@ export default {
657
657
  groupKey:'style',
658
658
  placeholder: "请输入logo图片高度",
659
659
  className: 'input60',
660
- hidden: data.previewCurrent !== "auth" || data.showLogo !== "Y",
660
+ hidden: data.showLogo !== "Y",
661
661
  },
662
662
  {
663
663
  label: 'logo圆角设置:',
@@ -677,7 +677,7 @@ export default {
677
677
  console.error(error);
678
678
  });
679
679
  },
680
- hidden: data.previewCurrent !== "auth" || data.showLogo !== "Y",
680
+ hidden: data.showLogo !== "Y",
681
681
  },
682
682
  {
683
683
  ele: "title",
@@ -1123,9 +1123,10 @@ export default {
1123
1123
  .form-group {
1124
1124
  padding: 40rpx 70rpx;
1125
1125
  }
1126
+ // #ifdef H5
1126
1127
  .form-item {
1127
1128
  ::v-deep &.uni-forms-item {
1128
- padding-left: unit(30rpx) !important;
1129
+ // padding-left: unit(30,rpx) !important;
1129
1130
  .uni-input-input{
1130
1131
  font-size: var(--content-font-size);
1131
1132
  color: var(--content-font-color);
@@ -1159,6 +1160,46 @@ export default {
1159
1160
 
1160
1161
  }
1161
1162
  }
1163
+ // #endif
1164
+
1165
+ // #ifdef MP
1166
+ ::v-deep .uni-forms-item {
1167
+ // padding-left: 30rpx !important;
1168
+ .uni-input-input{
1169
+ font-size: var(--content-font-size);
1170
+ color: var(--content-font-color);
1171
+ font-weight: var(--content-font-weight);
1172
+ }
1173
+ .label-text {
1174
+ font-size: var(--label-font-size);
1175
+ color: var(--label-font-color);
1176
+ font-weight: var(--label-font-weight);
1177
+ }
1178
+ .uni-easyinput__placeholder-class{
1179
+ font-size: var(--placeholder-font-size);
1180
+ color: var(--placeholder-font-color);
1181
+ font-weight: var(--placeholder-font-weight);
1182
+ }
1183
+ }
1184
+ .linear{
1185
+ ::v-deep .uni-forms-item--border{
1186
+ border-color: var(--form-border-color) !important;
1187
+ border-width: var(--form-border-width) !important;
1188
+ }
1189
+ }
1190
+ .face{
1191
+ ::v-deep .uni-forms-item__content{
1192
+ background: #F7F7F7;
1193
+ border-radius: 16rpx;
1194
+ }
1195
+ ::v-deep .uni-forms-item--border{
1196
+ border: none;
1197
+ }
1198
+ }
1199
+ // #endif
1200
+
1201
+
1202
+
1162
1203
  .get_code {
1163
1204
  color: @xd-base-color;
1164
1205
  font-size: 24rpx;
@@ -1166,6 +1207,7 @@ export default {
1166
1207
  padding: 10rpx 24rpx;
1167
1208
  border: 1px solid @xd-base-color;
1168
1209
  border-radius: 40rpx;
1210
+ white-space: nowrap;
1169
1211
  }
1170
1212
  .logo-wrap {
1171
1213
  display: flex;
@@ -38,11 +38,11 @@
38
38
  <view class="menu_list">
39
39
  <view class="menu_item" @click="switchShowType('ticket')">
40
40
  <view class="menu_inner" :class="menuShowType"
41
- :style="[menuType == 'ticket' ? menuItemActiveStyle : menuItemStyle, menuItemBoxStyle]">实体券</view>
41
+ :style="menuType == 'ticket' ? menuItemActiveStyle : menuItemStyle">实体券</view>
42
42
  </view>
43
43
  <view class="menu_item" @click="switchShowType('code')">
44
44
  <view class="menu_inner" :class="menuShowType"
45
- :style="[menuType == 'code' ? menuItemActiveStyle : menuItemStyle, menuItemBoxStyle]">电子码</view>
45
+ :style="menuType == 'code' ? menuItemActiveStyle : menuItemStyle">电子码</view>
46
46
  </view>
47
47
  </view>
48
48
  </view>
@@ -67,6 +67,7 @@
67
67
  <xd-form-input
68
68
  v-model="form.card_number"
69
69
  placeholder="请输入票券号"
70
+ style="width: 100%;"
70
71
  />
71
72
  <view @click="doScanCode">
72
73
  <xd-font-icon :icon="scanIcon.icon || 'iconsaoma'"
@@ -102,6 +103,7 @@
102
103
  <xd-form-input
103
104
  v-model="form.valid_code"
104
105
  placeholder="请输入验证码"
106
+ style="width: 100%;"
105
107
  />
106
108
  <view class="form_valid_code" @click="switchValidToken">
107
109
  <image
@@ -178,6 +180,9 @@
178
180
  import extsMixins from "@/mixins/extsMixins";
179
181
  import { mapState } from "vuex";
180
182
  export default {
183
+ // #ifdef MP-WEIXIN
184
+ options: { styleIsolation: 'shared' },
185
+ // #endif
181
186
  name: "JfbBaseTfkCardBind",
182
187
  components: {
183
188
  XdFontIcon,
@@ -332,14 +337,12 @@
332
337
  fontSize: '24rpx',
333
338
  })
334
339
  },
335
- menuItemBoxStyle(){
340
+ menuItemBoxPadding(){
336
341
  let padding = `${this.checkValue(this.menuBtnPadding.top, 20)}rpx`;
337
342
  padding = `${padding} ${this.checkValue(this.menuBtnPadding.right, 20)}rpx`;
338
343
  padding = `${padding} ${this.checkValue(this.menuBtnPadding.bottom, 20)}rpx`;
339
344
  padding = `${padding} ${this.checkValue(this.menuBtnPadding.left, 20)}rpx`;
340
- return this.styleObjectToString({
341
- padding
342
- })
345
+ return padding;
343
346
  },
344
347
  menuItemStyle(){
345
348
  let styleObj = {
@@ -347,6 +350,7 @@
347
350
  background: this.menuTabColor['bgColor'] || '#fff',
348
351
  fontSize: this.menuTabColor['fontSize'] || '30rpx',
349
352
  fontWeight: this.menuTabColor['fontWeight'] || 'normal',
353
+ padding: this.menuItemBoxPadding,
350
354
  }
351
355
 
352
356
  return this.styleObjectToString(styleObj)
@@ -358,6 +362,7 @@
358
362
  background: this.menuTabColor['actBgColor'] || '#fff',
359
363
  fontSize: this.menuTabColor['actFontSize'] || '30rpx',
360
364
  fontWeight: this.menuTabColor['actFontWeight'] || 'normal',
365
+ padding: this.menuItemBoxPadding,
361
366
  }
362
367
  if(this.menuShowType === 'text'){
363
368
  styleActiveObj['borderBottom'] = `${this.menuBorderWidth}px solid ${this.menuTabColor['actColor'] || defaultTextColor}`;
@@ -678,6 +683,7 @@
678
683
 
679
684
  .jfb-base-tfk-card-bind {
680
685
  &__body{
686
+ // #ifdef H5
681
687
  .form-item {
682
688
  ::v-deep &.uni-forms-item {
683
689
  .is-required{
@@ -704,8 +710,6 @@
704
710
  }
705
711
  &.linear{
706
712
  ::v-deep &.uni-forms-item--border{
707
- // border-color: var(--form-border-color) !important;
708
- // border-width: var(--form-border-width) !important;
709
713
  border-top: none !important;
710
714
  border-bottom: var(--form-border-width) solid var(--form-border-color) !important;
711
715
  }
@@ -749,13 +753,83 @@
749
753
  ::v-deep .label-icon{
750
754
  font-size: var(--digital-icon-size) !important;
751
755
  }
752
- ::v-deep .uni-forms-item__inner{
753
- // padding-bottom: 0% !important;
754
- // border: 1px solid var(--digital-border-color);
755
- // border-radius: var(--digital-border-radius);
756
+ }
757
+ }
758
+ // #endif
759
+
760
+ // #ifdef MP
761
+ ::v-deep .uni-forms-item {
762
+ .is-required{
763
+ display: none;
764
+ }
765
+ .uni-input-input{
766
+ font-size: var(--content-font-size);
767
+ color: var(--content-font-color);
768
+ font-weight: var(--content-font-weight);
769
+ }
770
+ .label-text {
771
+ font-size: var(--label-font-size);
772
+ color: var(--label-font-color);
773
+ font-weight: var(--label-font-weight);
774
+ }
775
+ .uni-easyinput__placeholder-class{
776
+ font-size: var(--placeholder-font-size);
777
+ color: var(--placeholder-font-color);
778
+ font-weight: var(--placeholder-font-weight);
779
+ }
780
+ }
781
+ ::v-deep .uni-forms-item--border{
782
+ padding: var(--form-input-padding) 0;
783
+ }
784
+ .linear{
785
+ ::v-deep .uni-forms-item--border{
786
+ border-top: none !important;
787
+ border-bottom: var(--form-border-width) solid var(--form-border-color) !important;
788
+ }
789
+ }
790
+ .face{
791
+ ::v-deep .uni-forms-item__box{
792
+ background: #F7F7F7;
793
+ border-radius: var(--form-border-radius);
794
+ padding-right: 20rpx;
795
+ }
796
+ ::v-deep .uni-forms-item--border{
797
+ border: none;
798
+ }
799
+ }
800
+ .ticket_item{
801
+ ::v-deep .label-icon{
802
+ font-size: var(--ticket-icon-size) !important;
803
+ }
804
+ }
805
+ .password_item{
806
+ ::v-deep .label-icon{
807
+ font-size: var(--password-icon-size) !important;
808
+ }
809
+ }
810
+ .valid_item{
811
+ ::v-deep .label-icon{
812
+ font-size: var(--valid-icon-size) !important;
813
+ }
814
+ }
815
+ .digital_item{
816
+ &.linear{
817
+ ::v-deep .uni-forms-item--border{
818
+ border-color: var(--digital-border-color) !important;
819
+ }
820
+ }
821
+ &.face{
822
+ ::v-deep .uni-forms-item__box{
823
+ border-radius: var(--digital-border-radius);
756
824
  }
757
825
  }
826
+ ::v-deep .label-icon{
827
+ font-size: var(--digital-icon-size) !important;
828
+ }
758
829
  }
830
+ // #endif
831
+
832
+
759
833
  .menu_wrap{
760
834
  .menu_list{
761
835
  display: flex;
@@ -78,7 +78,7 @@
78
78
  </view>
79
79
  </view>
80
80
  <view v-if="curModule === 'rule'">
81
- <view v-if="cardInfo.card_use_rule" v-html="cardInfo.card_use_rule" class="rule_wrap" :style="ruleDetailBoxStyle">
81
+ <view v-if="cardInfo.card_rule_info" v-html="cardInfo.card_rule_info" class="rule_wrap" :style="ruleDetailBoxStyle">
82
82
  </view>
83
83
  <view v-else class="rule_wrap" :style="ruleDetailBoxStyle">
84
84
  使用规则暂无
@@ -23,6 +23,8 @@ module.exports = {
23
23
  is_show_qrcode_logo: "Y",
24
24
  is_can_unbind: "Y",
25
25
  is_can_transfer: "Y",
26
+ card_use_rule: "可凭本票券到电影(勿改)、商城(对应百货)(勿改)、蛋糕(勿改",
27
+ card_rule_info: "<p>购买范围:</p> <ul style='padding-left: 20px;'><li>可凭本票券到xxxxx进行提货</li></ul> <br/> <p>券内额度:</p><ul style='padding-left: 20px;'><li>提货额度为xx点/次</li></ul><br/><p>线下提货:</p><ul style='padding-left: 20px;'><li>1</li><li>2</li></ul>",
26
28
  site_entry_settings: [
27
29
  {
28
30
  id: 63,
@@ -25,11 +25,11 @@
25
25
  @click="changeMenu('card')"
26
26
  >
27
27
  <view class="menu_item_inner"
28
- :style="[menuType === 'card' ? menuItemActiveStyle : menuItemStyle, menuItemBoxStyle]">我的票券包</view>
28
+ :style="menuType === 'card' ? menuItemActiveStyle : menuItemStyle">我的票券包</view>
29
29
  </view>
30
30
  <view class="menu_item" @click="changeMenu('coupon')">
31
31
  <view class="menu_item_inner"
32
- :style="[menuType === 'coupon' ? menuItemActiveStyle : menuItemStyle, menuItemBoxStyle]">我的优惠券</view>
32
+ :style="menuType === 'coupon' ? menuItemActiveStyle : menuItemStyle">我的优惠券</view>
33
33
  </view>
34
34
  </view>
35
35
  <view class="bind_card" :style="bindCardBoxStyle" @click="toBindCard">
@@ -96,13 +96,7 @@
96
96
  <view v-if="item.is_exchange === 'Y'">(可转票券)</view>
97
97
  </view>
98
98
  <view class="bind_btn"
99
- :style="[{
100
- right: cardPadding.right + 'rpx',
101
- bottom: cardPadding.bottom + 'rpx',
102
- borderRadius: cardBtnRadius + 'rpx',
103
- padding: bindCardBtnPadding,
104
- minWidth: cardBtnMinWidth + 'rpx',
105
- }, item.is_login === 'Y' ? bindCardActiveStyle : bindCardBtnStyle]"
99
+ :style="item.is_login === 'Y' ? bindCardActiveStyle : bindCardBtnStyle"
106
100
  @click.stop="doCardLogin(item)"
107
101
  >{{ item.is_login === 'Y' ? '已登录' : '登录'}}</view>
108
102
  </view>
@@ -273,14 +267,12 @@
273
267
  padding: padding,
274
268
  })
275
269
  },
276
- menuItemBoxStyle(){
270
+ menuItemBoxPadding(){
277
271
  let padding = `${this.checkValue(this.menuBtnPadding.top, 20)}rpx`;
278
272
  padding = `${padding} ${this.checkValue(this.menuBtnPadding.right, 20)}rpx`;
279
273
  padding = `${padding} ${this.checkValue(this.menuBtnPadding.bottom, 20)}rpx`;
280
274
  padding = `${padding} ${this.checkValue(this.menuBtnPadding.left, 20)}rpx`;
281
- return this.styleObjectToString({
282
- padding
283
- })
275
+ return padding;
284
276
  },
285
277
  menuItemStyle(){
286
278
  let styleObj = {
@@ -289,6 +281,7 @@
289
281
  fontSize: this.menuTabColor['fontSize'] || '30rpx',
290
282
  fontWeight: this.menuTabColor['fontWeight'] || 'normal',
291
283
  borderWidth: this.menuBorderWidth + 'px',
284
+ padding: this.menuItemBoxPadding,
292
285
  }
293
286
 
294
287
  return this.styleObjectToString(styleObj)
@@ -300,6 +293,7 @@
300
293
  background: this.menuTabColor['actBgColor'] || '#fff',
301
294
  fontSize: this.menuTabColor['actFontSize'] || '30rpx',
302
295
  fontWeight: this.menuTabColor['actFontWeight'] || 'normal',
296
+ padding: this.menuItemBoxPadding,
303
297
  }
304
298
  if(this.menuShowType === 'text'){
305
299
  styleActiveObj.borderBottom = `${this.menuBorderWidth}px solid ${this.menuTabColor['actColor'] || defaultTextColor}`
@@ -316,12 +310,22 @@
316
310
  padding = `${padding} ${this.checkValue(this.cardBtnPadding.left, 20)}rpx`;
317
311
  return padding;
318
312
  },
313
+ bindCardBtnOther(){
314
+ return {
315
+ right: this.cardPadding.right + 'rpx',
316
+ bottom: this.cardPadding.bottom + 'rpx',
317
+ borderRadius: this.cardBtnRadius + 'rpx',
318
+ padding: this.bindCardBtnPadding,
319
+ minWidth: this.cardBtnMinWidth + 'rpx',
320
+ }
321
+ },
319
322
  bindCardBtnStyle(){
320
323
  let styleObj = {
321
324
  color: this.cardBtnTextStyle['color'] || '#333',
322
325
  background: this.cardBtnTextStyle['bgColor'] || '#fff',
323
326
  fontSize: this.cardBtnTextStyle['fontSize'] || '30rpx',
324
327
  fontWeight: this.cardBtnTextStyle['fontWeight'] || 'normal',
328
+ ...this.bindCardBtnOther
325
329
  }
326
330
  return this.styleObjectToString(styleObj)
327
331
  },
@@ -332,6 +336,7 @@
332
336
  background: this.cardBtnTextStyle['actBgColor'] || '#fff',
333
337
  fontSize: this.cardBtnTextStyle['actFontSize'] || '30rpx',
334
338
  fontWeight: this.cardBtnTextStyle['actFontWeight'] || 'normal',
339
+ ...this.bindCardBtnOther
335
340
  }
336
341
  return this.styleObjectToString(styleActiveObj)
337
342
  },
@@ -686,13 +691,18 @@
686
691
  })
687
692
  },
688
693
  apiGetContent(params){
694
+ let _this = this;
695
+ // #ifdef MP-WEIXIN
696
+ _this = this.$parent;
697
+ //#endif
698
+
689
699
  return new Promise((resolve, reject) => {
690
700
  jfbRootExec("getListBaseNewsContent", {
691
701
  vm: this,
692
702
  data: {
693
- page_id: this.pageAttr["page_id"], //页面ID
694
- container_id: this.containerId, //组件ID
695
- page_size: this.noticeNum || 1,
703
+ page_id: _this.pageAttr["page_id"], //页面ID
704
+ container_id: _this.containerId, //组件ID
705
+ page_size: _this.noticeNum || 1,
696
706
  ...params
697
707
  },
698
708
  }).then(res => {
@@ -7,7 +7,7 @@
7
7
  <view v-if="parent.type !== 'product'" class="module_cont">
8
8
  <view v-for="(item, i) in parent.items" :key="item.key"
9
9
  class="module_cont_inner"
10
- :style="moduleItemContStyle"
10
+ :style="[moduleItemContStyle]"
11
11
  >
12
12
  <content-cinema v-if="parent.type === 'cinema'"
13
13
  style="width: 100%; height: 100%"
@@ -157,14 +157,14 @@
157
157
  padding = `${padding} ${this.checkValue(contMargin.right, 20)}rpx`;
158
158
  padding = `${padding} ${this.checkValue(contMargin.bottom, 20)}rpx`;
159
159
  padding = `${padding} ${this.checkValue(contMargin.left, 20)}rpx`;
160
- return this.styleObjectToString({
160
+ return {
161
161
  padding: padding,
162
162
  border: contBorder,
163
163
  borderRadius: contRradius + 'rpx',
164
164
  boxShadow: contShadow,
165
165
  marginBottom: outSpacing + 'rpx',
166
166
  background: contBgColor,
167
- })
167
+ }
168
168
  },
169
169
  moduleMoreStyle(){
170
170
  const { allModuleMoreStyle } = this.allStyle;
@@ -29,13 +29,8 @@
29
29
  @click="handleSwitchMenu(item)"
30
30
  >
31
31
  <view class="menu_inner"
32
- :style="[
33
- menuItemBoxStyle,
34
- item.value === tabId ? menuItemActiveStyle : menuItemStyle,
35
- {
36
- marginRight: i === showMenuList.length - 1 ? '0' : menuItemMargin + 'rpx',
37
- }
38
- ]"
32
+ :style="item.value === tabId ? menuItemActiveStyle : menuItemStyle"
33
+ :class="{isLast: i === showMenuList.length - 1}"
39
34
  >{{ item.label }}</view>
40
35
  </view>
41
36
  </view>
@@ -159,14 +154,12 @@
159
154
  backgroundColor: this.menuBgColor,
160
155
  })
161
156
  },
162
- menuItemBoxStyle(){
157
+ menuItemBoxPadding(){
163
158
  let padding = `${this.checkValue(this.menuItemPadding.top, 20)}rpx`;
164
159
  padding = `${padding} ${this.checkValue(this.menuItemPadding.right, 20)}rpx`;
165
160
  padding = `${padding} ${this.checkValue(this.menuItemPadding.bottom, 20)}rpx`;
166
161
  padding = `${padding} ${this.checkValue(this.menuItemPadding.left, 20)}rpx`;
167
- return this.styleObjectToString({
168
- padding
169
- })
162
+ return padding;
170
163
  },
171
164
  menuItemStyle(){
172
165
  let styleObj = {
@@ -175,6 +168,8 @@
175
168
  fontSize: this.menuTabColor['fontSize'] || '30rpx',
176
169
  fontWeight: this.menuTabColor['fontWeight'] || 'normal',
177
170
  borderWidth: this.menuBorderWidth + 'px',
171
+ padding: this.menuItemBoxPadding,
172
+ marginRight: this.menuItemMargin + 'rpx',
178
173
  }
179
174
 
180
175
  return this.styleObjectToString(styleObj)
@@ -193,7 +188,9 @@
193
188
  background: this.menuTabColor['actBgColor'] || 'transparent',
194
189
  fontSize: this.menuTabColor['actFontSize'] || '30rpx',
195
190
  fontWeight: this.menuTabColor['actFontWeight'] || 'normal',
196
- borderBottom: `${this.menuBorderWidth}px solid ${this.menuTabColor['actColor'] || defaultTextColor}`
191
+ borderBottom: `${this.menuBorderWidth}px solid ${this.menuTabColor['actColor'] || defaultTextColor}`,
192
+ padding: this.menuItemBoxPadding,
193
+ marginRight: this.menuItemMargin + 'rpx',
197
194
  }
198
195
  return this.styleObjectToString(styleActiveObj)
199
196
  },
@@ -359,6 +356,10 @@
359
356
  overflow: auto;
360
357
  .menu_item{
361
358
  white-space: nowrap;
359
+
360
+ .isLast{
361
+ margin-right: 0;
362
+ }
362
363
  }
363
364
  }
364
365
  }