jufubao-base 1.0.174-beta1 → 1.0.174-beta10

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-beta10",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -53,6 +53,7 @@
53
53
  v-if="useSearch==='Y'"
54
54
  :placeholder="placeholder"
55
55
  class="search_input"
56
+ :value="keyword"
56
57
  @input="handleInput"
57
58
  @click="toSearch"
58
59
  :placeholder-style="'color:' + inputTextColor"
@@ -100,6 +101,8 @@
100
101
  timer: null,
101
102
  saveKey: 'xd_user_current_access_city', //用户选中城市存储key
102
103
  loaded: false,
104
+ keyword: "",
105
+
103
106
  //面板
104
107
  showLocation: "",
105
108
  showLocationKey: 'showLocationKey',
@@ -204,6 +207,7 @@
204
207
 
205
208
  },
206
209
  handleInput(e){
210
+ this.keyword = e.detail.value;
207
211
  if(this.timer) clearTimeout(this.timer);
208
212
  this.timer = setTimeout(() => {
209
213
  jfbRootFnExec(this, 'onCustomEvent')("baseHeader@search", e.detail.value);
@@ -242,6 +246,11 @@
242
246
  }
243
247
  this.$xdUniHelper.navigateBack();
244
248
  },
249
+ onJfbCustomEvent({action, data}){
250
+ if(action === 'baseTfkSearch@keyword'){
251
+ this.keyword = data;
252
+ }
253
+ }
245
254
  }
246
255
  }
247
256
 
@@ -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",
@@ -699,6 +699,7 @@ export default {
699
699
  setting: {
700
700
  type: 'margin',
701
701
  },
702
+ groupKey:'style',
702
703
  placeholder: '请设置边距',
703
704
  inline: false,
704
705
  notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
@@ -174,7 +174,7 @@
174
174
  </xd-form-item>
175
175
  <xd-form-item
176
176
  v-if="accountLoginType === 'pwd'"
177
- class="form-item"
177
+ class="form-item password-form-item"
178
178
  :class="[inputStyle]"
179
179
  label="密码"
180
180
  :leftIcon="passwordIcon"
@@ -190,6 +190,23 @@
190
190
  </xd-form>
191
191
  </view>
192
192
 
193
+ <view class="form-group" :style="btnWrapStyle">
194
+ <xd-button
195
+ style="flex: 1"
196
+ type="primary"
197
+ :radius="btnRadius + 'rpx'"
198
+ :bg-color="btnColor"
199
+ :disabled="!panelTwoIsChecked"
200
+ @click="doLoginForm"
201
+ >
202
+ <xd-font-icon v-if="phoneLoginBtnIcon"
203
+ style="display: inline-flex;margin-right: 12rpx;"
204
+ :icon="phoneLoginBtnIcon"
205
+ ></xd-font-icon>
206
+ {{ phoneLoginBtnText }}
207
+ </xd-button
208
+ >
209
+ </view>
193
210
  <view class="form-group" :style="agreementBoxStyle">
194
211
  <xd-form-checkbox
195
212
  class="xd-form-checkbox"
@@ -213,23 +230,6 @@
213
230
  </template>
214
231
  </xd-form-checkbox>
215
232
  </view>
216
- <view class="form-group" :style="btnWrapStyle">
217
- <xd-button
218
- style="flex: 1"
219
- type="primary"
220
- :radius="btnRadius + 'rpx'"
221
- :bg-color="btnColor"
222
- :disabled="!panelTwoIsChecked"
223
- @click="doLoginForm"
224
- >
225
- <xd-font-icon v-if="phoneLoginBtnIcon"
226
- style="display: inline-flex;margin-right: 12rpx;"
227
- :icon="phoneLoginBtnIcon"
228
- ></xd-font-icon>
229
- {{ phoneLoginBtnText }}
230
- </xd-button
231
- >
232
- </view>
233
233
  <view
234
234
  v-if="accountLoginType === 'pwd'"
235
235
  class="forget_password"
@@ -1098,6 +1098,7 @@ export default {
1098
1098
  box-sizing: border-box;
1099
1099
 
1100
1100
  &__body {
1101
+ padding-bottom: 160rpx;
1101
1102
  .xd-form-checkbox {
1102
1103
  ::v-deep .checklist-content .checklist-text {
1103
1104
  font-size: 26rpx !important;
@@ -1123,9 +1124,10 @@ export default {
1123
1124
  .form-group {
1124
1125
  padding: 40rpx 70rpx;
1125
1126
  }
1127
+ // #ifdef H5
1126
1128
  .form-item {
1127
1129
  ::v-deep &.uni-forms-item {
1128
- padding-left: unit(30rpx) !important;
1130
+ // padding-left: unit(30,rpx) !important;
1129
1131
  .uni-input-input{
1130
1132
  font-size: var(--content-font-size);
1131
1133
  color: var(--content-font-color);
@@ -1159,6 +1161,44 @@ export default {
1159
1161
 
1160
1162
  }
1161
1163
  }
1164
+ // #endif
1165
+
1166
+ // #ifdef MP
1167
+ ::v-deep .uni-forms-item {
1168
+ // padding-left: 30rpx !important;
1169
+ .uni-input-input{
1170
+ font-size: var(--content-font-size);
1171
+ color: var(--content-font-color);
1172
+ font-weight: var(--content-font-weight);
1173
+ }
1174
+ .label-text {
1175
+ font-size: var(--label-font-size);
1176
+ color: var(--label-font-color);
1177
+ font-weight: var(--label-font-weight);
1178
+ }
1179
+ .uni-easyinput__placeholder-class{
1180
+ font-size: var(--placeholder-font-size);
1181
+ color: var(--placeholder-font-color);
1182
+ font-weight: var(--placeholder-font-weight);
1183
+ }
1184
+ }
1185
+ .linear{
1186
+ ::v-deep .uni-forms-item--border{
1187
+ border-top: none !important;
1188
+ border-bottom: var(--form-border-width) solid var(--form-border-color) !important;
1189
+ }
1190
+ }
1191
+ .face{
1192
+ ::v-deep .uni-forms-item__content{
1193
+ background: #F7F7F7;
1194
+ border-radius: 16rpx;
1195
+ }
1196
+ ::v-deep .uni-forms-item--border{
1197
+ border: none;
1198
+ }
1199
+ }
1200
+ // #endif
1201
+
1162
1202
  .get_code {
1163
1203
  color: @xd-base-color;
1164
1204
  font-size: 24rpx;
@@ -1166,6 +1206,7 @@ export default {
1166
1206
  padding: 10rpx 24rpx;
1167
1207
  border: 1px solid @xd-base-color;
1168
1208
  border-radius: 40rpx;
1209
+ white-space: nowrap;
1169
1210
  }
1170
1211
  .logo-wrap {
1171
1212
  display: flex;
@@ -1175,11 +1216,11 @@ export default {
1175
1216
  image {
1176
1217
  width: 180rpx;
1177
1218
  height: 180rpx;
1178
- margin-bottom: unit(12,rpx);
1179
1219
  }
1180
1220
  & > view {
1181
1221
  font-size: unit(36,rpx);
1182
1222
  font-weight: 600;
1223
+ margin-top: 12rpx;
1183
1224
  }
1184
1225
  }
1185
1226
  .panel-login-auth {
@@ -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,8 +67,9 @@
67
67
  <xd-form-input
68
68
  v-model="form.card_number"
69
69
  placeholder="请输入票券号"
70
+ style="width: 100%;"
70
71
  />
71
- <view @click="doScanCode">
72
+ <view @click.stop="doScanCode" style="margin-left: 20rpx;">
72
73
  <xd-font-icon :icon="scanIcon.icon || 'iconsaoma'"
73
74
  :color="scanIcon.color"
74
75
  :style="{fontSize: scanIcon.fontSize}"
@@ -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
  使用规则暂无
@@ -675,7 +675,11 @@
675
675
  }
676
676
  }
677
677
  }
678
-
678
+ .rule_wrap{
679
+ font-size: 32rpx;
680
+ line-height: 1.7;
681
+ font-weight: 400;
682
+ }
679
683
  .code_wrap{
680
684
  display: flex;
681
685
  flex-direction: column;
@@ -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 => {