jufubao-base 1.0.117 → 1.0.119-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.
Files changed (89) hide show
  1. package/package.json +1 -1
  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 +95 -18
  5. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +1 -1
  6. package/src/components/JfbBaseCardInfo/Attr.js +21 -0
  7. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +40 -4
  8. package/src/components/JfbBaseCardInfoEntry/Attr.js +11 -0
  9. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +33 -4
  10. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +10 -9
  11. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +10 -10
  12. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +6 -1
  13. package/src/components/JfbBaseConFlashHome/Api.js +60 -0
  14. package/src/components/JfbBaseConFlashHome/Attr.js +129 -0
  15. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +388 -0
  16. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeLess.less +80 -0
  17. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeMixin.js +30 -0
  18. package/src/components/JfbBaseConFlashHome/Mock.js +5 -0
  19. package/src/components/JfbBaseConFlashList/Api.js +60 -0
  20. package/src/components/JfbBaseConFlashList/Attr.js +117 -0
  21. package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +656 -0
  22. package/src/components/JfbBaseConFlashList/JfbBaseConFlashListLess.less +80 -0
  23. package/src/components/JfbBaseConFlashList/JfbBaseConFlashListMixin.js +30 -0
  24. package/src/components/JfbBaseConFlashList/Mock.js +5 -0
  25. package/src/components/JfbBaseConList/JfbBaseConList.vue +4 -2
  26. package/src/components/JfbBaseConPhone/Api.js +70 -0
  27. package/src/components/JfbBaseConPhone/Attr.js +10 -0
  28. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +486 -0
  29. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +80 -0
  30. package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +30 -0
  31. package/src/components/JfbBaseConPhone/Mock.js +26 -0
  32. package/src/components/JfbBaseMySetting/Api.js +43 -0
  33. package/src/components/JfbBaseMySetting/Attr.js +23 -0
  34. package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +236 -0
  35. package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +80 -0
  36. package/src/components/JfbBaseMySetting/JfbBaseMySettingMixin.js +30 -0
  37. package/src/components/JfbBaseMySetting/Mock.js +5 -0
  38. package/src/components/JfbBaseMySetting/XdListItem.vue +135 -0
  39. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +33 -8
  40. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  41. package/src/components/JfbBaseSaasBlessDetail/Api.js +59 -0
  42. package/src/components/JfbBaseSaasBlessDetail/Attr.js +24 -0
  43. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +315 -0
  44. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +80 -0
  45. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +30 -0
  46. package/src/components/JfbBaseSaasBlessDetail/Mock.js +5 -0
  47. package/src/components/JfbBaseSaasBlessDialog/Api.js +25 -0
  48. package/src/components/JfbBaseSaasBlessDialog/Attr.js +50 -0
  49. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +274 -0
  50. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +80 -0
  51. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +30 -0
  52. package/src/components/JfbBaseSaasBlessDialog/Mock.js +5 -0
  53. package/src/components/JfbBaseSaasBlessReceive/Api.js +25 -0
  54. package/src/components/JfbBaseSaasBlessReceive/Attr.js +24 -0
  55. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +183 -0
  56. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +80 -0
  57. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +30 -0
  58. package/src/components/JfbBaseSaasBlessReceive/Mock.js +5 -0
  59. package/src/components/JfbBaseSaasHome/Api.js +48 -0
  60. package/src/components/JfbBaseSaasHome/Attr.js +35 -0
  61. package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +356 -0
  62. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +80 -0
  63. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +30 -0
  64. package/src/components/JfbBaseSaasHome/Mock.js +5 -0
  65. package/src/components/JfbBaseSaasLogin/Api.js +39 -0
  66. package/src/components/JfbBaseSaasLogin/Attr.js +37 -0
  67. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +410 -0
  68. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +80 -0
  69. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +30 -0
  70. package/src/components/JfbBaseSaasLogin/Mock.js +5 -0
  71. package/src/components/JfbBaseSaasNewsDetail/Api.js +27 -0
  72. package/src/components/JfbBaseSaasNewsDetail/Attr.js +14 -0
  73. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +144 -0
  74. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +80 -0
  75. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +30 -0
  76. package/src/components/JfbBaseSaasNewsDetail/Mock.js +5 -0
  77. package/src/components/JfbBaseSaasNewsList/Api.js +26 -0
  78. package/src/components/JfbBaseSaasNewsList/Attr.js +24 -0
  79. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +181 -0
  80. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +80 -0
  81. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +30 -0
  82. package/src/components/JfbBaseSaasNewsList/Mock.js +5 -0
  83. package/src/components/JfbBaseSassPhoneCollect/Api.js +39 -0
  84. package/src/components/JfbBaseSassPhoneCollect/Attr.js +438 -0
  85. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +266 -0
  86. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +80 -0
  87. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +30 -0
  88. package/src/components/JfbBaseSassPhoneCollect/Mock.js +5 -0
  89. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +34 -8
@@ -0,0 +1,274 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-saas-bless-dialog"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-base-saas-bless-dialog__edit"
10
+ :class="{ editx : isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-base-saas-bless-dialog__edit-icon" @click="delEdit">删除</view>
14
+ </view>
15
+ <!-- #endif -->
16
+ <view class="jfb-base-saas-bless-dialog__body">
17
+ <view class="dialog_wrap" v-if="isShow">
18
+ <view class="dialog_mask"></view>
19
+ <view class="dialog_content">
20
+ <view class="dialog_num">
21
+ <text>1/4</text>
22
+ </view>
23
+ <view class="dialog_main">
24
+ <view class="_left" @click="handleChange('left')">
25
+ <xd-font-icon icon="iconxiangzuo_xian"></xd-font-icon>
26
+ </view>
27
+ <view class="_cont">
28
+ <image class="dialog_image" :src="currentImage"></image>
29
+ <view class="pop_tip">聚福宝节日祝福券 1张</view>
30
+ <view class="bless_wrap">
31
+ <view class="bless_name">亲爱的张珊珊:</view>
32
+ <view class="bless_cont">您收到了一份为您定制的专属祝福,快去查看并使用吧!</view>
33
+ </view>
34
+ <xd-button class="btn_image" type="primary" @click="handleToDetail">去看看</xd-button>
35
+ </view>
36
+ <view class="_right" @click="handleChange('right')">
37
+ <xd-font-icon icon="iconxiangyou_xian"></xd-font-icon>
38
+ </view>
39
+ </view>
40
+ <xd-font-icon
41
+ @click="handleClose"
42
+ class="dialog_close"
43
+ icon="iconguanbi_xian"
44
+ color="#fff"
45
+ size="64"
46
+ ></xd-font-icon>
47
+
48
+ </view>
49
+ </view>
50
+ <view
51
+ v-if="isPreview"
52
+ :style="{ background: backgroundColor, color: warningColor }"
53
+ class="jfb-base-con-dialog__body-pop"
54
+ >弹框方便编辑(占位),在线上此模块不显</view>
55
+ </view>
56
+ </view>
57
+ </template>
58
+
59
+ <script>
60
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
61
+ import XdButton from "@/components/XdButton/XdButton"
62
+ import { jfbRootExec } from "@/utils/xd.event";
63
+ import JfbBaseSaasBlessDialogMixin from "./JfbBaseSaasBlessDialogMixin";
64
+ import { getContainerPropsValue } from "@/utils/xd.base";
65
+ import componentsMixins from "@/mixins/componentsMixins";
66
+ import extsMixins from "@/mixins/extsMixins";
67
+ export default {
68
+ name: "JfbBaseSaasBlessDialog",
69
+ components: {
70
+ XdFontIcon,
71
+ XdButton
72
+ },
73
+ mixins: [
74
+ componentsMixins, extsMixins, JfbBaseSaasBlessDialogMixin
75
+ ],
76
+ data() {
77
+ return {
78
+ isPreview: false, //是否预览
79
+ isShow: true,
80
+ currentImage: "",
81
+ currentIndex: 0,
82
+ list: [],
83
+
84
+ blessDetailUrl: "", //祝福详情url
85
+ type: "",
86
+ isHide: false,
87
+ }
88
+ },
89
+ watch: {
90
+ container(value) {
91
+ this.init(value)
92
+ }
93
+ },
94
+ created() {
95
+ this.isPreview = this.$configProject.isPreview;
96
+ this.init(this.container);
97
+ },
98
+ methods: {
99
+ onJfbLoad(options) {
100
+ jfbRootExec("getBlessList", {
101
+ vm: this,
102
+ data: {
103
+ page_size: 10,
104
+ page_token: '1'
105
+ }
106
+ }).then(res => {
107
+ this.list = res.list;
108
+ })
109
+ },
110
+ /**
111
+ * @description 监听事件变化
112
+ * @param container {object} 业务组件对象自己
113
+ */
114
+ init(container) {
115
+ this.type = getContainerPropsValue(container, "content.type", 1);
116
+ this.isHide = getContainerPropsValue(container, "content.isHide", false);
117
+ if (this.isPreview) {
118
+ this.isShow = !this.isHide;
119
+ }
120
+ },
121
+ handleToDetail(){
122
+ this.$xdUniHelper.navigateTo({
123
+ url: `${this.blessDetailUrl}?bless_id=${1}`,
124
+ });
125
+ },
126
+ handleClose(){
127
+ if (this.currentIndex == this.list.length - 1 || this.type == 2) {
128
+ this.isShow = false;
129
+ return;
130
+ }
131
+ this.currentIndex = this.currentIndex + 1;
132
+ this.isShow = false;
133
+ },
134
+ handleChange(type){
135
+ this.currentIndex = type === "left" ? this.currentIndex - 1 : this.currentIndex + 1;
136
+ this.currentIndex = Math.max(0, Math.min(this.currentIndex, this.list.length - 1));
137
+ },
138
+ onJfbScroll(options) {
139
+ console.log('event.onJfbScroll', options)
140
+ },
141
+ onJfbReachBottom(options) {
142
+ console.log('event.onJfbReachBottom', options)
143
+ },
144
+ onJfbShow(options) {
145
+ this.isShow=false
146
+ this.onJfbLoad(options);
147
+ },
148
+ onJfbHide(options) {
149
+ console.log('event.onJfbHide', options)
150
+ },
151
+ onJfbBack(options) {
152
+ console.log('event.onJfbBack', options)
153
+ },
154
+ onJfbUpdate(...data) {
155
+ console.log('event.onJfbUpdate', data)
156
+ },
157
+ onJfbCustomEvent(options) {
158
+ console.log('event.onJfbReachBottom', options)
159
+ },
160
+ }
161
+ }
162
+
163
+ </script>
164
+
165
+ <style scoped lang="less">
166
+ @import "./JfbBaseSaasBlessDialogLess.less";
167
+
168
+ .jfb-base-saas-bless-dialog {
169
+ &__body{
170
+ .dialog_wrap{
171
+ position: fixed;
172
+ top: 0;
173
+ bottom: 0;
174
+ left: 0;
175
+ right: 0;
176
+ z-index: 3000;
177
+
178
+ .dialog_mask{
179
+ position: absolute;
180
+ top: 0;
181
+ bottom: 0;
182
+ left: 0;
183
+ right: 0;
184
+ background: rgba(0, 0, 0, 0.5);
185
+ }
186
+ .dialog_content{
187
+ max-height: unit(1000, rpx);
188
+ overflow-y: auto;
189
+ overflow-x: hidden;
190
+ position: absolute;
191
+ top: 50%;
192
+ left: 50%;
193
+ transform: translate(-50%, -50%);
194
+ display: flex;
195
+ flex-direction: column;
196
+
197
+ .dialog_num{
198
+ margin: 0 auto;
199
+ background: rgba(255, 255, 255, 0.5);
200
+ border-radius: unit(40, rpx);
201
+ padding: unit(8, rpx) unit(24, rpx);
202
+ color: #fff;
203
+ font-size: unit(40, rpx);
204
+ }
205
+ .dialog_close{
206
+ margin: 0 auto;
207
+ }
208
+ .dialog_main{
209
+ display: flex;
210
+ align-items: center;
211
+
212
+ ._left{
213
+ background: rgba(255, 255, 255, 0.1);
214
+ padding: unit(40, rpx) unit(10, rpx);
215
+ color: #fff;
216
+ border-radius: unit(40, rpx);
217
+ }
218
+ ._right{
219
+ background: rgba(255, 255, 255, 0.1);
220
+ padding: unit(40, rpx) unit(10, rpx);
221
+ color: #fff;
222
+ border-radius: unit(40, rpx);
223
+ }
224
+ ._cont{
225
+ min-width: unit(600, rpx);
226
+ min-height: unit(800, rpx);
227
+ height: unit(800, rpx);
228
+ display: flex;
229
+ align-items: center;
230
+ flex-direction: column;
231
+ margin: 20rpx;
232
+ position: relative;
233
+ background-color: #FFFFFF;
234
+ border-radius: 16rpx;
235
+
236
+ .dialog_image {
237
+ width: 100%;
238
+ height: 328rpx;
239
+ background: red;
240
+ }
241
+ .pop_tip{
242
+ width: 100%;
243
+ padding: 20rpx 32rpx;
244
+ background-color: #FFF2CD;
245
+ box-sizing: border-box;
246
+ color: #FA2300;
247
+ font-size: 28rpx;
248
+ font-weight: 400;
249
+ }
250
+ .bless_wrap{
251
+ padding: 48rpx 32rpx;
252
+ .bless_name{
253
+ font-size: 36rpx;
254
+ color: #333333;
255
+ font-weight: 500;
256
+ }
257
+ .bless_cont{
258
+ font-size: 32rpx;
259
+ color: #999999;
260
+ font-weight: 400;
261
+ margin-top: 32rpx;
262
+ }
263
+ }
264
+ .btn_image{
265
+ width: unit(448, rpx);
266
+ height: unit(70, rpx);
267
+ }
268
+ }
269
+ }
270
+ }
271
+ }
272
+ }
273
+ }
274
+ </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-dialog {
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-dialog {
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-dialog'
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: 'getBlessAll',
16
+ title: '祝福 - 列表:所有',
17
+ path: '/saas/v1/bless/items-all',
18
+ isRule: false,
19
+ data: {
20
+ last_key: ['当前页', 'Number', '必选'],
21
+ },
22
+ isConsole: true,
23
+ disabled: true,
24
+ },
25
+ ];
@@ -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: 'blessSignUrl', //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,183 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-saas-bless-receive"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-base-saas-bless-receive__edit"
10
+ :class="{ editx : isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-base-saas-bless-receive__edit-icon" @click="delEdit">删除</view>
14
+ </view>
15
+ <!-- #endif -->
16
+ <view class="jfb-base-saas-bless-receive__body">
17
+ <view class="receive_list">
18
+ <view class="receive_item" v-for="(item, i) in blessData" :key="i">
19
+ <view class="head">{{item.bless_type_name}}</view>
20
+ <view class="card"></view>
21
+ <view class="receive_cont">
22
+ <view class="card_name">{{ item.bless_name }}</view>
23
+ <view class="card_num">× 1张</view>
24
+ </view>
25
+ <view class="receive_time">
26
+ <view class="_time">2022.10.01 23:45</view>
27
+ <view>
28
+ <xd-button v-if="item.receive_status === 'N'" size="small" type="primary" @click="toSignUrl(item)">立即签收</xd-button>
29
+ <xd-button v-else size="small" type="default" @click="toSignUrl(item)">再次查看</xd-button>
30
+ </view>
31
+ </view>
32
+ </view>
33
+ </view>
34
+ </view>
35
+ </view>
36
+ </template>
37
+
38
+ <script>
39
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
40
+ import XdButton from "@/components/XdButton/XdButton"
41
+ import { jfbRootExec } from "@/utils/xd.event";
42
+ import JfbBaseSaasBlessReceiveMixin from "./JfbBaseSaasBlessReceiveMixin";
43
+ import { getContainerPropsValue } from "@/utils/xd.base";
44
+ import componentsMixins from "@/mixins/componentsMixins";
45
+ import extsMixins from "@/mixins/extsMixins";
46
+ export default {
47
+ name: "JfbBaseSaasBlessReceive",
48
+ components: {
49
+ XdFontIcon,
50
+ XdButton
51
+ },
52
+ mixins: [
53
+ componentsMixins, extsMixins, JfbBaseSaasBlessReceiveMixin
54
+ ],
55
+ data() {
56
+ return {
57
+ blessData: [],
58
+
59
+ //面板
60
+ blessSignUrl: "", //签收跳转地址
61
+ }
62
+ },
63
+ watch: {
64
+ container(value) {
65
+ this.init(value)
66
+ }
67
+ },
68
+ created() {
69
+ this.init(this.container);
70
+
71
+ //todo
72
+ },
73
+ methods: {
74
+ onJfbLoad(options) {
75
+
76
+ this.p_getBlessAll();
77
+ },
78
+ /**
79
+ * @description 监听事件变化
80
+ * @param container {object} 业务组件对象自己
81
+ */
82
+ init(container) {
83
+ this.blessSignUrl = getContainerPropsValue(container, 'content.blessSignUrl', {value: ""}).value;
84
+ },
85
+ toSignUrl(item){
86
+ this.$xdUniHelper.navigateTo({
87
+ url: `${this.blessSignUrl}?bless_id=${item.bless_id}`,
88
+ });
89
+ },
90
+ p_getBlessAll(){
91
+ this.$xdShowLoading({});
92
+ jfbRootExec("getBlessAll", {
93
+ vm: this,
94
+ data: {
95
+
96
+ }
97
+ }).then(res => {
98
+ this.$xdHideLoading();
99
+ this.blessData = res.list;
100
+ })
101
+ },
102
+ onJfbScroll(options) {
103
+
104
+ },
105
+ onJfbReachBottom(options) {
106
+ console.log('event.onJfbReachBottom', options)
107
+ },
108
+ onJfbShow(options) {
109
+ console.log('event.onJfbShow', options)
110
+ },
111
+ onJfbHide(options) {
112
+ console.log('event.onJfbHide', options)
113
+ },
114
+ onJfbBack(options) {
115
+ console.log('event.onJfbBack', options)
116
+ this.$xdUniHelper.navigateBack();
117
+ },
118
+ onJfbUpdate(...data) {
119
+ console.log('event.onJfbUpdate', data)
120
+ },
121
+ onJfbCustomEvent(options) {
122
+ console.log('event.onJfbReachBottom', options)
123
+ },
124
+ }
125
+ }
126
+
127
+ </script>
128
+
129
+ <style scoped lang="less">
130
+ @import "./JfbBaseSaasBlessReceiveLess.less";
131
+
132
+ .jfb-base-saas-bless-receive {
133
+ &__body{
134
+ background: #F5F9FA;
135
+ .receive_list{
136
+ padding: 20rpx;
137
+ .receive_item{
138
+ background: #FFFFFF;
139
+ border-radius: 20rpx;
140
+ padding: 32rpx 35rpx;
141
+ .head{
142
+ padding-bottom: 24rpx;
143
+ font-size: 28rpx;
144
+ color: #333333;
145
+ font-weight: 500;
146
+ border-bottom: 1px solid #F2F2F2;
147
+ }
148
+ .card{
149
+ height: 300rpx;
150
+ border-radius: 16rpx;
151
+ background-color: red;
152
+ margin-top: 24rpx;
153
+ }
154
+ .receive_cont{
155
+ display: flex;
156
+ align-items: center;
157
+ justify-content: space-between;
158
+ margin: 32rpx 0;
159
+ .card_name{
160
+ font-size: 32rpx;
161
+ color: #333333;
162
+ font-weight: 400;
163
+ }
164
+ .card_num{
165
+ font-size: 32rpx;
166
+ color: #999999;
167
+ font-weight: 400;
168
+ }
169
+ }
170
+ .receive_time{
171
+ display: flex;
172
+ align-items: center;
173
+ justify-content: space-between;
174
+ ._time{
175
+ font-size: 24rpx;
176
+ color: #999999;
177
+ }
178
+ }
179
+ }
180
+ }
181
+ }
182
+ }
183
+ </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-receive {
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-receive {
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
79
+ }
80
+ /**endNotPreview**/