jufubao-base 1.0.118 → 1.0.119-beta3

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 (75) hide show
  1. package/package.json +4 -3
  2. package/src/components/JfbBaseCard/Attr.js +380 -287
  3. package/src/components/JfbBaseCard/JfbBaseCard.vue +51 -2
  4. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +0 -4
  5. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +6 -1
  6. package/src/components/JfbBaseConFlashHome/Api.js +60 -0
  7. package/src/components/JfbBaseConFlashHome/Attr.js +129 -0
  8. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +388 -0
  9. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeLess.less +80 -0
  10. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeMixin.js +30 -0
  11. package/src/components/JfbBaseConFlashHome/Mock.js +5 -0
  12. package/src/components/JfbBaseConFlashList/Api.js +60 -0
  13. package/src/components/JfbBaseConFlashList/Attr.js +117 -0
  14. package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +656 -0
  15. package/src/components/JfbBaseConFlashList/JfbBaseConFlashListLess.less +80 -0
  16. package/src/components/JfbBaseConFlashList/JfbBaseConFlashListMixin.js +30 -0
  17. package/src/components/JfbBaseConFlashList/Mock.js +5 -0
  18. package/src/components/JfbBaseConList/JfbBaseConList.vue +4 -2
  19. package/src/components/JfbBaseConPhone/Api.js +70 -0
  20. package/src/components/JfbBaseConPhone/Attr.js +10 -0
  21. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +486 -0
  22. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +80 -0
  23. package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +30 -0
  24. package/src/components/JfbBaseConPhone/Mock.js +26 -0
  25. package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +2 -2
  26. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  27. package/src/components/JfbBaseSaasBlessDetail/Api.js +59 -0
  28. package/src/components/JfbBaseSaasBlessDetail/Attr.js +24 -0
  29. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +341 -0
  30. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +80 -0
  31. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +30 -0
  32. package/src/components/JfbBaseSaasBlessDetail/Mock.js +5 -0
  33. package/src/components/JfbBaseSaasBlessDialog/Api.js +25 -0
  34. package/src/components/JfbBaseSaasBlessDialog/Attr.js +50 -0
  35. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +309 -0
  36. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +80 -0
  37. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +30 -0
  38. package/src/components/JfbBaseSaasBlessDialog/Mock.js +5 -0
  39. package/src/components/JfbBaseSaasBlessReceive/Api.js +25 -0
  40. package/src/components/JfbBaseSaasBlessReceive/Attr.js +24 -0
  41. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +201 -0
  42. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +80 -0
  43. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +30 -0
  44. package/src/components/JfbBaseSaasBlessReceive/Mock.js +5 -0
  45. package/src/components/JfbBaseSaasHome/Api.js +48 -0
  46. package/src/components/JfbBaseSaasHome/Attr.js +35 -0
  47. package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +402 -0
  48. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +80 -0
  49. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +30 -0
  50. package/src/components/JfbBaseSaasHome/Mock.js +5 -0
  51. package/src/components/JfbBaseSaasLogin/Api.js +98 -0
  52. package/src/components/JfbBaseSaasLogin/Attr.js +59 -0
  53. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +700 -0
  54. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +80 -0
  55. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +30 -0
  56. package/src/components/JfbBaseSaasLogin/Mock.js +5 -0
  57. package/src/components/JfbBaseSaasLogin/saaslogin_copy.vue +410 -0
  58. package/src/components/JfbBaseSaasNewsDetail/Api.js +27 -0
  59. package/src/components/JfbBaseSaasNewsDetail/Attr.js +14 -0
  60. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +144 -0
  61. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +80 -0
  62. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +30 -0
  63. package/src/components/JfbBaseSaasNewsDetail/Mock.js +5 -0
  64. package/src/components/JfbBaseSaasNewsList/Api.js +26 -0
  65. package/src/components/JfbBaseSaasNewsList/Attr.js +24 -0
  66. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +182 -0
  67. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +80 -0
  68. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +30 -0
  69. package/src/components/JfbBaseSaasNewsList/Mock.js +5 -0
  70. package/src/components/JfbBaseSassPhoneCollect/Api.js +51 -0
  71. package/src/components/JfbBaseSassPhoneCollect/Attr.js +438 -0
  72. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +266 -0
  73. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +80 -0
  74. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +30 -0
  75. package/src/components/JfbBaseSassPhoneCollect/Mock.js +5 -0
@@ -0,0 +1,59 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description API模型
5
+ * 建议:Ffff=>模块 Xxxx=>自定义名字
6
+ * 获取单记录(getByIdFfffXxxx)
7
+ * 获取列表记录(getByListFfffXxxx)
8
+ * 添加列表记录(addFfffXxxxx)
9
+ * 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
10
+ * 更新列表记录(updateFfffXxxxx)
11
+ * @type {*[]}
12
+ */
13
+ module.exports = [
14
+ {
15
+ mapFnName: 'getBlessDetail',
16
+ title: '祝福 - 详情',
17
+ path: '/saas/v1/bless/item/:bless_id',
18
+ isRule: false,
19
+ params: {
20
+ bless_id: ['bless_id', 'Number', '必选'],
21
+ },
22
+ isConsole: true,
23
+ disabled: true,
24
+ },
25
+ {
26
+ mapFnName: 'doSignBless',
27
+ title: '祝福 - 签收',
28
+ path: '/saas/v1/bless/sign/:bless_id',
29
+ isRule: false,
30
+ data: {
31
+ bless_id: ['bless_id', 'Number', '必选'],
32
+ },
33
+ isConsole: true,
34
+ disabled: true,
35
+ },
36
+ {
37
+ mapFnName: "getOssSign",
38
+ title: "获取上传参数",
39
+ path: "/common-user/v1/h5-oss/sign",
40
+ isRule: false,
41
+ data: {
42
+
43
+ },
44
+ isConsole: true,
45
+ disabled: true,
46
+ },
47
+ {
48
+ mapFnName: "doOssUpload",
49
+ title: "开启oss上传",
50
+ path: "/common-user/v1/h5-oss/upload",
51
+ isRule: false,
52
+ data: {
53
+ file_name: ['file_name', 'String', true],
54
+ file: ['file', 'file', true]
55
+ },
56
+ isConsole: true,
57
+ disabled: true,
58
+ }
59
+ ];
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [
10
+ {
11
+ label: '使用祝福券跳转地址:', //label
12
+ ele: 'xd-select-pages-path', //package 名称
13
+ valueKey: 'useTicketUrl', //form[valueKey]
14
+ placeholder: '请选择使用祝福券跳转地址',
15
+ value: null,
16
+ setting: {
17
+ router: XdBus.getParentApi('getPagesTree'),
18
+ },
19
+ inline: false,
20
+ },
21
+ ].filter(i=>i)
22
+ },
23
+ advanced: [],
24
+ };
@@ -0,0 +1,341 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-saas-bless-detail"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-base-saas-bless-detail__edit"
10
+ :class="{ editx : isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-base-saas-bless-detail__edit-icon" @click="delEdit">删除</view>
14
+ </view>
15
+ <!-- #endif -->
16
+ <view class="jfb-base-saas-bless-detail__body" :style="{
17
+ minHeight: layoutInfo.bodyMinHeightRpx + 'rpx',
18
+ backgroundImage: `url(${blessConfig && blessConfig.material_image.path})`
19
+ }">
20
+ <view class="bless_detail">
21
+ <view class="bless_box" v-if="blessConfig" :style="{
22
+ paddingTop: blessConfig.material_margin.top + 'rpx',
23
+ paddingLeft: blessConfig.material_margin.left + 'rpx',
24
+ paddingRight: blessConfig.material_margin.right + 'rpx',
25
+ paddingBottom: blessConfig.material_margin.bottom + 'rpx',
26
+ color: blessConfig.material_color
27
+ }">
28
+ <view class="dear">{{ blessConfig.material_nickname }}</view>
29
+ <view class="desc">{{ blessConfig.material_content }}</view>
30
+ <view class="salute">{{ blessConfig.material_end }}</view>
31
+ <xd-button class="sign_btn"
32
+ v-if="blessData.receive_status === 'N'"
33
+ style="width: 250rpx;" type="primary"
34
+ @click="showSign"
35
+ >去签收</xd-button>
36
+ </view>
37
+ </view>
38
+ <xd-dailog :show.sync="dialogShow" title="" class="my_dialog">
39
+ <view class="dialog_head">
40
+ <view class="h_main">请签名</view>
41
+ <view class="h_sub">请务必由本人签收,字迹工整</view>
42
+ </view>
43
+ <view class="sign_box">
44
+ <xd-signature ref="signatureRef"></xd-signature>
45
+ </view>
46
+ <view slot="btn" class="btn_wrap">
47
+ <xd-button style="width: 220rpx;" @click="clearSign">重写</xd-button>
48
+ <xd-button style="width: 220rpx;margin-left: 60rpx;" type="primary" @click="submitSign">确定</xd-button>
49
+ </view>
50
+ </xd-dailog>
51
+ <xd-dailog :show.sync="dialogSuccess" title="" class="success_dialog">
52
+ <view class="dialog_main">
53
+ <xd-font-icon icon="iconchenggong" :size="90" :color="mainColor"></xd-font-icon>
54
+ <view class="sign_tit">签收成功</view>
55
+ <view class="sign_cont">{{blessData.bless_type_name}}已经放入您的账户</view>
56
+ <view class="sign_ticket">{{blessData.bless_name}} X{{blessData.bless_card_number}}张</view>
57
+ </view>
58
+ <view slot="btn">
59
+ <xd-button style="width: 280rpx;" type="primary" @click="toUseTicket">去使用</xd-button>
60
+ </view>
61
+ </xd-dailog>
62
+ </view>
63
+ </view>
64
+ </template>
65
+
66
+ <script>
67
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
68
+ import XdButton from "@/components/XdButton/XdButton";
69
+ import XdDailog from "@/components/XdDailog/XdDailog"
70
+ import XdSignature from "@/components/XdSignature/XdSignature"
71
+ import XdUpload from "@/components/XdUpload/XdUpload"
72
+ import { jfbRootExec } from "@/utils/xd.event";
73
+ import JfbBaseSaasBlessDetailMixin from "./JfbBaseSaasBlessDetailMixin";
74
+ import { getContainerPropsValue } from "@/utils/xd.base";
75
+ import componentsMixins from "@/mixins/componentsMixins";
76
+ import extsMixins from "@/mixins/extsMixins";
77
+ export default {
78
+ name: "JfbBaseSaasBlessDetail",
79
+ components: {
80
+ XdFontIcon,
81
+ XdButton,
82
+ XdDailog,
83
+ XdSignature,
84
+ XdUpload
85
+ },
86
+ mixins: [
87
+ componentsMixins, extsMixins, JfbBaseSaasBlessDetailMixin
88
+ ],
89
+ data() {
90
+ return {
91
+ dialogShow: false,
92
+ dialogSuccess: false,
93
+ sign_image_url: "",
94
+ bless_id: "",
95
+ blessData: {},
96
+ blessConfig: null,
97
+
98
+ //面板
99
+ useTicketUrl: "", //使用券跳转地址
100
+ }
101
+ },
102
+ watch: {
103
+ container(value) {
104
+ this.init(value)
105
+ }
106
+ },
107
+ created() {
108
+ this.init(this.container);
109
+
110
+ //todo
111
+ },
112
+ methods: {
113
+ onJfbLoad(options) {
114
+ this.bless_id = options.bless_id;
115
+
116
+ jfbRootExec("getBlessDetail", {
117
+ vm: this,
118
+ data: {
119
+ bless_id: this.bless_id
120
+ }
121
+ }).then(res => {
122
+ try{
123
+ this.blessData = res;
124
+ this.blessConfig = JSON.parse(res.bless_detail_config)
125
+ }catch(err){}
126
+ })
127
+ },
128
+ /**
129
+ * @description 监听事件变化
130
+ * @param container {object} 业务组件对象自己
131
+ */
132
+ init(container) {
133
+
134
+ },
135
+
136
+ showSign(){
137
+ this.dialogShow = true;
138
+ },
139
+ clearSign(){
140
+ this.$refs.signatureRef.clear()
141
+ },
142
+ toUseTicket(){
143
+ this.$xdUniHelper.navigateTo({
144
+ url: `${this.useTicketUrl}`,
145
+ });
146
+ },
147
+ submitSign(){
148
+ this.$refs.signatureRef.canvasToTempFilePath({
149
+ success: async (res) => {
150
+ console.log(res);
151
+ let url = res.tempFilePath
152
+ if(!res.isEmpty){
153
+ //上传签名图片
154
+ await this.doSubmitSign(url);
155
+ //提交签名
156
+ await this.p_doSignBless();
157
+ this.dialogShow = false;
158
+ this.dialogSuccess = true;
159
+ }
160
+ }
161
+ })
162
+ },
163
+ p_doSignBless(){
164
+ return new Promise((resolve, reject) => {
165
+ jfbRootExec("doSignBless", {
166
+ vm: this,
167
+ data: {
168
+ bless_id: this.bless_id,
169
+ sign_image_url: this.sign_image_url
170
+ }
171
+ }).then(res => {
172
+ resolve(res);
173
+ }).catch(err => {
174
+ reject(err);
175
+ })
176
+ })
177
+
178
+ },
179
+ doSubmitSign(url){
180
+ let fileName = "sign.png";
181
+ let file = this.base64ToFile(url,fileName);
182
+
183
+ return new Promise((resolve,reject) => {
184
+ jfbRootExec("getOssSign", {
185
+ vm: this,
186
+ data: { name: fileName }
187
+ }).then(res => {
188
+ console.log(res);
189
+ let OSSAccessKeyId = res['id']
190
+ let cdnUrl = res['cdn_url']
191
+ delete res['id']
192
+ delete res['cdn_url']
193
+
194
+ uni.uploadFile({
195
+ url: res.action,
196
+ file: file,
197
+ name: 'file',
198
+ formData: {
199
+ ...res,
200
+ OSSAccessKeyId: OSSAccessKeyId,
201
+ name: fileName,
202
+ cdnUrl: cdnUrl,
203
+ success_action_status: 200
204
+ },
205
+ success: (res) => {
206
+ this.sign_image_url = cdnUrl;
207
+ resolve(cdnUrl);
208
+ }
209
+ })
210
+ }).catch(err => {
211
+ reject();
212
+ })
213
+ })
214
+
215
+ // this.dialogSuccess = true;
216
+ },
217
+ base64ToFile(base64String, filename){
218
+ var arr = base64String.split(',');
219
+ var mime = arr[0].match(/:(.*?);/)[1];
220
+ var bstr = atob(arr[1]);
221
+ var n = bstr.length;
222
+ var u8arr = new Uint8Array(n);
223
+ while(n--) {
224
+ u8arr[n] = bstr.charCodeAt(n);
225
+ }
226
+ return new File([u8arr], filename, {type:mime});
227
+ },
228
+ onJfbScroll(options) {
229
+
230
+ },
231
+ onJfbReachBottom(options) {
232
+ console.log('event.onJfbReachBottom', options)
233
+ },
234
+ onJfbShow(options) {
235
+ console.log('event.onJfbShow', options)
236
+ },
237
+ onJfbHide(options) {
238
+ console.log('event.onJfbHide', options)
239
+ },
240
+ onJfbBack(options) {
241
+ console.log('event.onJfbBack', options)
242
+ this.$xdUniHelper.navigateBack();
243
+ },
244
+ onJfbUpdate(...data) {
245
+ console.log('event.onJfbUpdate', data)
246
+ },
247
+ onJfbCustomEvent(options) {
248
+ console.log('event.onJfbReachBottom', options)
249
+ },
250
+ }
251
+ }
252
+
253
+ </script>
254
+
255
+ <style scoped lang="less">
256
+ @import "./JfbBaseSaasBlessDetailLess.less";
257
+
258
+ .jfb-base-saas-bless-detail {
259
+ &__body{
260
+ box-sizing: border-box;
261
+ background-size: 100% auto;
262
+ position: relative;
263
+ .bless_detail{
264
+
265
+ .bless_box{
266
+ margin: 0 auto;
267
+ box-sizing: border-box;
268
+ padding: 100rpx 80rpx;
269
+ color: #FA2300;
270
+ font-size: 32rpx;
271
+ font-weight: 400;
272
+ position: absolute;
273
+ top: 0;
274
+ left: 0;
275
+ width: 100%;
276
+ .dear{
277
+ font-weight: 500;
278
+ }
279
+ .desc{
280
+ margin: 50rpx 0;
281
+ }
282
+ .salute{
283
+ text-align: right;
284
+ }
285
+ .sign_btn{
286
+ margin-top: 32rpx;
287
+ }
288
+ }
289
+ }
290
+ .my_dialog{
291
+ /deep/ .xd-dailog__body-content-box{
292
+ padding: 0;
293
+ }
294
+ .dialog_head{
295
+ display: flex;
296
+ align-items: center;
297
+ justify-content: space-between;
298
+ padding: 48rpx 0;
299
+
300
+ .h_main{
301
+ font-size: 36rpx;
302
+ color: #333333;
303
+ font-weight: 500;
304
+ }
305
+ .h_sub{
306
+ font-size: 24rpx;
307
+ color: #808080;
308
+ font-weight: 400;
309
+ }
310
+ }
311
+ .sign_box{
312
+ width: 600rpx;
313
+ height: 460rpx;
314
+ background-color: #F2F2F2;
315
+ }
316
+ .btn_wrap{
317
+ display: flex;
318
+ }
319
+ }
320
+ .success_dialog{
321
+ .dialog_main{
322
+ padding: 140rpx 0 100rpx;
323
+ .sign_tit{
324
+ color: #FE7A63;
325
+ margin-top: 28rpx;
326
+ font-size: 40rpx;
327
+ }
328
+ .sign_cont{
329
+ font-size: 32rpx;
330
+ color: #333333;
331
+ margin-top: 40rpx;
332
+ }
333
+ .sign_ticket{
334
+ font-size: 32rpx;
335
+ color: #FE7A63;
336
+ }
337
+ }
338
+ }
339
+ }
340
+ }
341
+ </style>
@@ -0,0 +1,80 @@
1
+ /**
2
+ * @desc 获取绝对路径完整地址
3
+ * @param @path
4
+ **/
5
+ //例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
6
+ @basePath: 'business/';
7
+ @doMain: '//sandbox-img.jufubao.cn/';
8
+
9
+ .getBusinessImageUrl(@path, @size: 'size8') {
10
+ @url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
11
+ background-image: url(@url);
12
+ }
13
+
14
+ //start
15
+ .jfb-base-saas-bless-detail {
16
+ border: 1px dashed rgba(0, 0, 0, 0);
17
+ box-sizing: border-box;
18
+ min-height: unit(50, rpx);
19
+
20
+ &__body{
21
+ position: relative;
22
+ overflow: hidden;
23
+ z-index: 2
24
+ }
25
+
26
+ &.editx {
27
+ position: relative;
28
+ border: 1px dashed blue;
29
+ box-sizing: border-box;
30
+ z-index: 3
31
+
32
+ }
33
+
34
+ &:hover {
35
+ border: 1px dashed blue;
36
+ }
37
+
38
+ &.noBorder {
39
+ border-color: rgba(0,0,0,0);
40
+ border-width: 0;
41
+ }
42
+
43
+
44
+ &__edit {
45
+ cursor: pointer;
46
+ position: absolute;
47
+ right: unit(0, rpx);
48
+ top: unit(-52, rpx);
49
+ height: unit(50, rpx);
50
+ line-height: unit(50, rpx);
51
+ display: flex;
52
+ justify-content: center;
53
+ align-items: center;
54
+ background: rgba(0, 0, 0, .6);
55
+ border-radius: unit(10, rpx);
56
+ box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
57
+ color: #fff;
58
+ font-size: unit(22, rpx);
59
+
60
+ &-icon{
61
+ padding: 0 unit(20, rpx);
62
+ }
63
+
64
+ &.editx {
65
+ box-sizing: border-box;
66
+
67
+ }
68
+ }
69
+ }
70
+ //end
71
+
72
+
73
+ /**notPreview**/
74
+ .jfb-base-saas-bless-detail {
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
79
+ }
80
+ /**endNotPreview**/
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+
4
+ //@AttrImport
5
+ import Attr from "./Attr";
6
+ //@EndAttrImport
7
+
8
+
9
+ export default {
10
+ data() {
11
+ return {
12
+ //#ifdef H5
13
+
14
+ //@AttrData
15
+ Attr:{}, //对外开发编辑属性
16
+ //@EndAttrData
17
+
18
+ // #endif
19
+ cssRoot: 'jfb-base-saas-bless-detail'
20
+ }
21
+ },
22
+ created() {
23
+
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
28
+
29
+ },
30
+ }
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ aaaa: {}
5
+ }
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description API模型
5
+ * 建议:Ffff=>模块 Xxxx=>自定义名字
6
+ * 获取单记录(getByIdFfffXxxx)
7
+ * 获取列表记录(getByListFfffXxxx)
8
+ * 添加列表记录(addFfffXxxxx)
9
+ * 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
10
+ * 更新列表记录(updateFfffXxxxx)
11
+ * @type {*[]}
12
+ */
13
+ module.exports = [
14
+ {
15
+ mapFnName: 'getBlessList',
16
+ title: '祝福 - 列表:代签收',
17
+ path: '/saas/v1/bless/items-unsigned',
18
+ isRule: false,
19
+ data: {
20
+ last_key: ['当前页', 'Number', '必选'],
21
+ },
22
+ isConsole: true,
23
+ disabled: true,
24
+ },
25
+ ];
@@ -0,0 +1,50 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [
10
+ {
11
+ label: '选取节日祝福详情路径:', //label
12
+ ele: 'xd-select-pages-path', //package 名称
13
+ valueKey: 'blessDetailUrl', //form[valueKey]
14
+ placeholder: '请选择优惠券列表路径',
15
+ value: data['blessDetailUrl'] ||null,
16
+ setting: {
17
+ router: XdBus.getParentApi('getPagesTree'),
18
+ },
19
+ inline: false,
20
+ },
21
+ {
22
+ label: '活动提示方式:',
23
+ ele: 'xd-radio',
24
+ valueKey: 'type',
25
+ value: data['type']||1,
26
+ placeholder: '请选择活动提示方式',
27
+ multiple: false,
28
+ className: 'input80',
29
+ list: [
30
+ { label: '弹框', value: 1 },
31
+ { label: '切换', value: 2 },
32
+ ]
33
+ },
34
+ {
35
+ label: '是否隐藏弹框(仅预览模式生效):',
36
+ ele: 'xd-radio',
37
+ valueKey: 'isHide',
38
+ value: data['isHide']||false,
39
+ placeholder: '请选择是否隐藏弹框',
40
+ multiple: false,
41
+ className: 'input80',
42
+ list: [
43
+ { label: '是', value: true },
44
+ { label: '否', value: false },
45
+ ]
46
+ },
47
+ ].filter(i=>i)
48
+ },
49
+ advanced: [],
50
+ };