jufubao-base 1.0.181-beta9 → 1.0.182-beta1

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.
Files changed (41) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseAddress/Attr.js +50 -1
  3. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +120 -68
  4. package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
  5. package/src/components/JfbBaseCardDelay/Api.js +30 -19
  6. package/src/components/JfbBaseCardDelay/Attr.js +35 -237
  7. package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +78 -279
  8. package/src/components/JfbBaseCardDetailEntry/Attr.js +0 -12
  9. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +0 -14
  10. package/src/components/JfbBaseCardDetailEntry/Mock.js +1 -1
  11. package/src/components/JfbBaseCardEntry/Attr.js +0 -121
  12. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +29 -206
  13. package/src/components/JfbBaseCardGive/Api.js +34 -18
  14. package/src/components/JfbBaseCardGive/Attr.js +32 -40
  15. package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +79 -502
  16. package/src/components/JfbBaseCardGive/Mock.js +9 -2
  17. package/src/components/JfbBaseCardReceive/Api.js +36 -10
  18. package/src/components/JfbBaseCardReceive/Attr.js +39 -9
  19. package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +80 -403
  20. package/src/components/JfbBaseCardReceive/Mock.js +7 -1
  21. package/src/components/JfbBaseCardReceiveCover/Api.js +43 -5
  22. package/src/components/JfbBaseCardReceiveCover/Attr.js +30 -119
  23. package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +82 -189
  24. package/src/components/JfbBaseCardReceiveCover/Mock.js +9 -1
  25. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +1 -1
  26. package/src/components/JfbBaseOrderDetail/Attr.js +10 -0
  27. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +16 -97
  28. package/src/components/JfbBaseOrderDetail/Mock.js +0 -5
  29. package/src/components/JfbBaseOrderList/Attr.js +23 -0
  30. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +117 -86
  31. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +246 -0
  32. package/src/components/JfbBasePay/Attr.js +0 -12
  33. package/src/components/JfbBasePay/JfbBasePay.vue +12 -18
  34. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +1 -0
  35. package/src/components/JfbBaseRechargeOrder/Api.js +0 -11
  36. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +27 -46
  37. package/src/components/JfbBaseRechargeOrderDetail/Api.js +0 -11
  38. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +13 -142
  39. package/src/components/JfbBaseRechargeSuccess/Api.js +0 -11
  40. package/src/components/JfbBaseRechargeSuccess/Attr.js +1 -1
  41. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +3 -6
@@ -8,138 +8,49 @@ export default {
8
8
  content: (data) => {
9
9
  return [
10
10
  {
11
- label: '可领取背景图:', //label
12
- ele: 'xd-upload', //package 名称
13
- valueKey: 'canReceiveBg', //form[valueKey]
14
- value: data.canReceiveBg || null, //v-model
15
- defaultValue: data.canReceiveBg || null, //默认图片对象
16
- groupKey: "style",
17
- slot: true, //按钮是否使用slot
18
- oneWidth: 375, //单个图片显示宽度
19
- oneHeight: 672, //单个图片显示高度
20
- elinputClassName: 'input40',
21
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
22
- type: ['jpg', 'png', 'jpeg'],
23
- styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
24
- uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
25
- size: 5, //5M
26
- action: 'aliyun',
27
- sort: true, //当上传图片列表时候,是否启用排序
28
- maxlen: 100, //当上传图片列表时候,最大数量数量
29
- rules: [
30
- { required: true, message: '请上传图片', trigger: ['blur', 'change'] },
31
- ]
32
- },
33
- {
34
- label: '可领取背景颜色:',
11
+ label: '背景颜色:',
35
12
  ele: 'xd-color',
36
- valueKey: 'canReceiveBgColor',
37
- value: data['canReceiveBgColor'] || '',
38
- groupKey: "style",
39
- placeholder: '请输入可领取背景颜色',
13
+ valueKey: 'bgcolor',
14
+ value: data.bgcolor || '',
15
+ placeholder: '请输入占位框背景颜色',
40
16
  classNmae: 'input80',
41
- },
42
- {
43
- label: '不可领取背景图:', //label
44
- ele: 'xd-upload', //package 名称
45
- valueKey: 'cannotReceiveBg', //form[valueKey]
46
- value: data.cannotReceiveBg || null, //v-model
47
- defaultValue: data.cannotReceiveBg || null, //默认图片对象
48
- groupKey: "style",
49
- slot: true, //按钮是否使用slot
50
- oneWidth: 375, //单个图片显示宽度
51
- oneHeight: 672, //单个图片显示高度
52
- elinputClassName: 'input40',
53
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
54
- type: ['jpg', 'png', 'jpeg'],
55
- styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
56
- uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
57
- size: 5, //5M
58
- action: 'aliyun',
59
- sort: true, //当上传图片列表时候,是否启用排序
60
- maxlen: 100, //当上传图片列表时候,最大数量数量
61
17
  rules: [
62
- { required: true, message: '请上传图片', trigger: ['blur', 'change'] },
18
+ {
19
+ required: true,
20
+ message: '请输入占位框背景颜色',
21
+ trigger: 'blur'
22
+ },
63
23
  ]
64
24
  },
65
25
  {
66
- label: '不可领取背景颜色:',
67
- ele: 'xd-color',
68
- valueKey: 'cannotReceiveBgColor',
69
- value: data['cannotReceiveBgColor'] || '',
70
- groupKey: "style",
71
- placeholder: '请输入不可领取背景颜色',
72
- classNmae: 'input80',
73
- },
74
- {
75
- label: '按钮背景图:', //label
76
- ele: 'xd-upload', //package 名称
77
- valueKey: 'btnBg', //form[valueKey]
78
- value: data.btnBg || null, //v-model
79
- defaultValue: data.btnBg || null, //默认图片对象
80
- groupKey: "style",
81
- slot: true, //按钮是否使用slot
82
- oneWidth: 163, //单个图片显示宽度
83
- oneHeight: 45, //单个图片显示高度
84
- elinputClassName: 'input40',
85
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
86
- type: ['jpg', 'png', 'jpeg'],
87
- styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
88
- uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
89
- size: 5, //5M
90
- action: 'aliyun',
91
- sort: true, //当上传图片列表时候,是否启用排序
92
- maxlen: 100, //当上传图片列表时候,最大数量数量
93
- rules: [
94
- { required: true, message: '请上传图片', trigger: ['blur', 'change'] },
95
- ]
96
- },
97
- {
98
- label: '内容背景图:', //label
99
- ele: 'xd-upload', //package 名称
100
- valueKey: 'contentBg', //form[valueKey]
101
- value: data.contentBg || null, //v-model
102
- defaultValue: data.contentBg || null, //默认图片对象
103
- groupKey: "style",
104
- slot: true, //按钮是否使用slot
105
- oneWidth: 300, //单个图片显示宽度
106
- oneHeight: 200, //单个图片显示高度
107
- elinputClassName: 'input40',
108
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
109
- type: ['jpg', 'png', 'jpeg'],
110
- styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
111
- uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
112
- size: 5, //5M
113
- action: 'aliyun',
114
- sort: true, //当上传图片列表时候,是否启用排序
115
- maxlen: 100, //当上传图片列表时候,最大数量数量
116
- rules: [
117
- { required: true, message: '请上传图片', trigger: ['blur', 'change'] },
118
- ]
119
- },
120
- {
121
- label: '领取跳转地址:',
26
+ label: '选中路径:',
122
27
  ele: 'xd-select-pages-path',
123
- valueKey: 'receive_get_url',
124
- groupKey:'advanced',
125
- placeholder: '请选择领取跳转地址',
126
- value: data['receive_get_url']||null,
28
+ valueKey: 'select-pages-path',
29
+ value: data['select-pages-path'] || null,
127
30
  setting: {
128
- router: XdBus.getParentApi('getPagesTree'),
31
+ router: XdBus.getParentApi('getPagesTree')
129
32
  },
130
- inline: false,
33
+ },
34
+ data.bgcolor && {
35
+ label: '高度:',
36
+ ele: 'el-input',
37
+ type: 'number',
38
+ valueKey: 'height',
39
+ value: data.height || 100,
40
+ placeholder: '请输入占位框高度,单位像素,默认:10px',
41
+ className: 'input80',
131
42
  rules: [
132
- { required: true, message: '请选择领取地址', trigger: ['blur', 'change'] },
43
+ {
44
+ required: true,
45
+ message: '请输入占位框高度',
46
+ trigger: 'blur'
47
+ },
133
48
  ]
134
49
  },
135
50
  {
136
- label: '按钮文字颜色:',
137
- ele: 'xd-color',
138
- valueKey: 'btnColor',
139
- value: data['btnColor'] || '',
140
- groupKey: "style",
141
- placeholder: '请输入按钮文字颜色',
142
- classNmae: 'input80',
51
+ label: '', //label
52
+ ele: 'slot', //package 名称
53
+ slot: 'is_reference',
143
54
  },
144
55
  ].filter(i=>i)
145
56
  },
@@ -2,217 +2,110 @@
2
2
  <view
3
3
  class="jfb-base-card-receive-cover"
4
4
  @click="handleEditxSelect"
5
- :class="{ editx: isEditx && active }"
5
+ :class="{ editx : isEditx && active }"
6
6
  >
7
7
  <!--#ifdef H5-->
8
8
  <view
9
9
  class="jfb-base-card-receive-cover__edit"
10
- :class="{ editx: isEditx && active }"
10
+ :class="{ editx : isEditx && active }"
11
11
  v-if="isEditx && active"
12
12
  >
13
- <view class="jfb-base-card-receive-cover__edit-icon" @click="delEdit"
14
- >删除</view
15
- >
13
+ <view class="jfb-base-card-receive-cover__edit-icon" @click="delEdit">删除</view>
16
14
  </view>
17
15
  <!-- #endif -->
18
- <view
19
- :style="{
20
- height: layoutInfo.bodyMinHeightRpx + 'rpx',
21
- background: status === 'N' ? canReceiveBgColor : cannotReceiveBgColor,
22
- }"
23
- >
24
- <view class="jfb-base-card-receive-cover__body" :style="[bgStyle]">
25
- <view v-if="status === 'N'" class="content" :style="contentBgStyle">
26
- <view class="content-info">{{ greeting }}</view>
27
- </view>
28
- <view
29
- v-if="status === 'N'"
30
- class="btn"
31
- @click="handleToReceive"
32
- :style="btnBgStyle"
33
- >{{ status === "T" ? "链接已失效" : "立即领取" }}</view
34
- >
35
- </view>
16
+ <view class="jfb-base-card-receive-cover__body">
17
+ <view>测试插件( {{containerId}} )</view>
36
18
  </view>
37
19
  </view>
38
20
  </template>
39
21
 
40
22
  <script>
41
- import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
42
- import XdButton from "@/components/XdButton/XdButton";
43
- import { jfbRootExec } from "@/utils/xd.event";
44
- import JfbBaseCardReceiveCoverMixin from "./JfbBaseCardReceiveCoverMixin";
45
- import { getContainerPropsValue } from "@/utils/xd.base";
46
- import componentsMixins from "@/mixins/componentsMixins";
47
- import extsMixins from "@/mixins/extsMixins";
48
- export default {
49
- name: "JfbBaseCardReceiveCover",
50
- components: {
51
- XdFontIcon,
52
- XdButton,
53
- },
54
- mixins: [componentsMixins, extsMixins, JfbBaseCardReceiveCoverMixin],
55
- data() {
56
- return {
57
- btnBg: "",
58
- contentBg: "",
59
- greeting: "",
60
- receive_get_url: "",
61
- btnColor: "",
62
- transfer_auth_code: null,
63
- status: "N",
64
- cannotReceiveBg: "",
65
- canReceiveBg: "",
66
- cannotReceiveBgColor: "",
67
- canReceiveBgColor: "",
68
- };
69
- },
70
- computed: {
71
- bgStyle() {
72
- let status = this.status;
73
- return {
74
- height: this.layoutInfo.bodyMinHeightRpx + "rpx",
75
- backgroundImage:
76
- status === "N"
77
- ? `url(${this.canReceiveBg})`
78
- : `url(${this.cannotReceiveBg})`,
79
- backgroundSize: "100% 100%",
80
- };
81
- },
82
- btnBgStyle() {
83
- return this.styleObjectToString({
84
- backgroundImage: "url(" + this.btnBg + ")",
85
- backgroundRepeat: "no-repeat",
86
- backgroundSize: "cover",
87
- width: "326rpx",
88
- height: "90rpx",
89
- display: "flex",
90
- justifyContent: "center",
91
- alignItems: "center",
92
- color: this.btnColor,
93
- border: "none",
94
- });
95
- },
96
- contentBgStyle() {
97
- return [this.styleObjectToString({
98
- backgroundImage: "url(" + this.contentBg + ")",
99
- backgroundRepeat: "no-repeat",
100
- backgroundSize: "100% 100%",
101
- color: this.mainColor,
102
- })];
103
- },
104
- },
105
- watch: {
106
- container(value, oldValue) {
107
- if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
108
- if (this.$configProject["isPreview"]) this.init(value);
23
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
24
+ import { jfbRootExec } from "@/utils/xd.event";
25
+ import JfbBaseCardReceiveCoverMixin from "./JfbBaseCardReceiveCoverMixin";
26
+ import { getContainerPropsValue } from "@/utils/xd.base";
27
+ import componentsMixins from "@/mixins/componentsMixins";
28
+ import extsMixins from "@/mixins/extsMixins";
29
+ export default {
30
+ name: "JfbBaseCardReceiveCover",
31
+ components: {
32
+ XdFontIcon
109
33
  },
110
- },
111
- created() {
112
- this.init(this.container);
34
+ mixins: [
35
+ componentsMixins, extsMixins, JfbBaseCardReceiveCoverMixin
36
+ ],
37
+ data() {
38
+ return {
113
39
 
114
- //todo
115
- },
116
- methods: {
117
- onJfbLoad(options) {
118
- this.transfer_auth_code = options.transfer_auth_code;
119
- jfbRootExec("getReceiveGreetingCard", {
120
- vm: this,
121
- data: {
122
- transfer_auth_code: this.transfer_auth_code,
123
- },
124
- })
125
- .then((res) => {
126
- this.greeting = res.transfer_record.greeting;
127
- this.status = res.transfer_record.status;
128
- })
129
- .catch((err) => {
130
- console.log(err, "err");
131
- });
40
+ //todo
41
+ }
132
42
  },
133
- init(container) {
134
- this.btnBg = getContainerPropsValue(container, "content.btnBg", {
135
- path: "",
136
- }).path;
137
- this.contentBg = getContainerPropsValue(container, "content.contentBg", {
138
- path: "",
139
- }).path;
140
- this.canReceiveBg = getContainerPropsValue(
141
- container,
142
- "content.canReceiveBg",
143
- {
144
- path: "",
145
- }
146
- ).path;
147
- this.canReceiveBgColor = getContainerPropsValue(
148
- container,
149
- "content.canReceiveBgColor",
150
- "#000"
151
- );
152
- this.cannotReceiveBg = getContainerPropsValue(
153
- container,
154
- "content.cannotReceiveBg",
155
- {
156
- path: "",
157
- }
158
- ).path;
159
- this.cannotReceiveBgColor = getContainerPropsValue(
160
- container,
161
- "content.cannotReceiveBgColor",
162
- "#000"
163
- );
164
- this.receive_get_url = getContainerPropsValue(
165
- container,
166
- "content.receive_get_url",
167
- {
168
- value: "",
169
- }
170
- ).value;
171
- this.btnColor = getContainerPropsValue(
172
- container,
173
- "content.btnColor",
174
- "#000"
175
- );
43
+ watch: {
44
+ container(value, oldValue) {
45
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
46
+ if (this.$configProject['isPreview']) this.init(value)
47
+ },
176
48
  },
177
- handleToReceive() {
178
- if (this.status === "T") return;
179
- this.$xdUniHelper.navigateTo({
180
- url: `${this.receive_get_url}?transfer_auth_code=${this.transfer_auth_code}`,
181
- });
49
+ created() {
50
+ this.init(this.container);
51
+
52
+ //todo
182
53
  },
183
- },
184
- };
54
+ methods: {
55
+ onJfbLoad(options) {
56
+
57
+ // jfbRootExec('baiduUserLogin', {
58
+
59
+ // vm: this,// data: {
60
+
61
+ // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
62
+
63
+ // }
64
+
65
+ // }).then().catch()
66
+ },
67
+ /**
68
+ * @description 监听事件变化
69
+ * @param container {object} 业务组件对象自己
70
+ */
71
+ init(container) {
72
+
73
+ //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
74
+
75
+ //this.height = getContainerPropsValue(container, 'content.height', 10);
76
+ },
77
+ onJfbScroll(options) {
78
+ console.log('event.onJfbScroll', options)
79
+ },
80
+ onJfbReachBottom(options) {
81
+ console.log('event.onJfbReachBottom', options)
82
+ },
83
+ onJfbShow(options) {
84
+ console.log('event.onJfbShow', options)
85
+ },
86
+ onJfbHide(options) {
87
+ console.log('event.onJfbHide', options)
88
+ },
89
+ onJfbBack(options) {
90
+ console.log('event.onJfbBack', options)
91
+ },
92
+ onJfbUpdate(...data) {
93
+ console.log('event.onJfbUpdate', data)
94
+ },
95
+ onJfbCustomEvent(options) {
96
+ console.log('event.onJfbReachBottom', options)
97
+ },
98
+ }
99
+ }
100
+
185
101
  </script>
186
102
 
187
103
  <style scoped lang="less">
188
- @import "./JfbBaseCardReceiveCoverLess.less";
104
+ @import "./JfbBaseCardReceiveCoverLess.less";
105
+
106
+ .jfb-base-card-receive-cover {
107
+ &__body{
189
108
 
190
- .jfb-base-card-receive-cover {
191
- &__body {
192
- display: flex;
193
- flex-direction: column;
194
- align-items: center;
195
- justify-content: flex-end;
196
- .content {
197
- position: relative;
198
- min-height: 400rpx;
199
- min-width: 600rpx;
200
- display: flex;
201
- justify-content: center;
202
- font-size: 40rpx;
203
- font-weight: 500;
204
- &-info {
205
- padding-top: 70rpx;
206
- width: 300rpx;
207
- text-align: center;
208
- }
209
- }
210
- .btn {
211
- margin-top: 50rpx;
212
- margin-bottom: 100rpx;
213
- font-size: 36rpx;
214
- text-align: center;
215
109
  }
216
110
  }
217
- }
218
111
  </style>
@@ -1,5 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- getReceiveGreetingCard:{"card_number":"101001000008098","card_point":99028,"card_type_name":"多余额福卡","end_time":"2025-07-31","card_status":"Y","card_status_name":"开启","unit":"点","main_business_code_name":"蛋糕(勿改)、网络视听(勿改)、体检(勿改)","other_card_point":79222,"is_exchange":"N","exchange_card_type_name":"","exchange_card_point":0,"card_point_type":2,"is_can_unbind":"","business_codes":["movie","market","cake"],"site_entry_settings":[],"transfer_record":{"transfer_auth_code":"aa6ljeQETINBUAJ-9l486","status":"N","status_name":"待领取","transfer_time":"2024-09-09 11:32:11","user_id":5000223,"user_nickname":"金L爽","user_phone_number":"188****4566","greeting":"送给你了"},"request_id":"2646fc69fab35413"},
4
+
5
+ getCardByIdFilmSquate:{},
6
+
7
+ updateCardFilmPaiqiDate:{},
8
+
9
+ removeCardFilmAddress:{},
10
+
11
+ addCardFilmcart:{},
12
+
5
13
  }
@@ -157,7 +157,7 @@
157
157
  handleClick(item){
158
158
  if(item.path && item.path.value) {
159
159
  this.$xdUniHelper.navigateTo({
160
- url : `${item.path.value}`
160
+ url : item.path.value
161
161
  })
162
162
  }
163
163
  },
@@ -331,6 +331,16 @@ export default {
331
331
  inline: false,
332
332
  notice: '间距设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
333
333
  },
334
+ {
335
+ label: "主体信息行间距:",
336
+ ele: 'el-input',
337
+ type: 'number',
338
+ valueKey: 'lineHeight',
339
+ groupKey:'style',
340
+ value: data['lineHeight'] || 20,
341
+ placeholder: '请输入主体信息行间距',
342
+ className: 'input80',
343
+ },
334
344
  {
335
345
  ele: 'title',
336
346
  label: '投影设置',