jufubao-base 1.0.119-beta2 → 1.0.119-beta20

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 (92) hide show
  1. package/package.json +4 -3
  2. package/src/components/JfbBaseCard/JfbBaseCard.vue +9 -6
  3. package/src/components/JfbBaseCardBind/JfbBaseCardBind.vue +8 -4
  4. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +8 -8
  5. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +9 -4
  6. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +24 -32
  7. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +46 -50
  8. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +13 -5
  9. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +8 -2
  10. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +8 -4
  11. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +3 -0
  12. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +146 -89
  13. package/src/components/JfbBasePay/JfbBasePay.vue +8 -3
  14. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  15. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +233 -223
  16. package/src/components/{JfbBaseConFlashHome → JfbBaseWallet}/Api.js +1 -1
  17. package/src/components/JfbBaseWallet/Attr.js +101 -0
  18. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +306 -0
  19. package/src/components/{JfbBaseSaasHome/JfbBaseSaasHomeLess.less → JfbBaseWallet/JfbBaseWalletLess.less} +2 -2
  20. package/src/components/{JfbBaseSaasHome/JfbBaseSaasHomeMixin.js → JfbBaseWallet/JfbBaseWalletMixin.js} +1 -1
  21. package/src/components/{JfbBaseConFlashHome → JfbBaseWallet}/Mock.js +1 -0
  22. package/src/components/{JfbBaseSaasNewsList → JfbBaseWalletDetail}/Api.js +5 -5
  23. package/src/components/{JfbBaseSaasNewsDetail → JfbBaseWalletDetail}/Attr.js +3 -1
  24. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +175 -0
  25. package/src/components/{JfbBaseConFlashList/JfbBaseConFlashListLess.less → JfbBaseWalletDetail/JfbBaseWalletDetailLess.less} +2 -2
  26. package/src/components/{JfbBaseConFlashHome/JfbBaseConFlashHomeMixin.js → JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js} +1 -1
  27. package/src/components/JfbBaseWalletDetail/Mock.js +6 -0
  28. package/src/components/{JfbBaseSaasNewsDetail → JfbBaseWalletEffective}/Api.js +7 -7
  29. package/src/components/JfbBaseWalletEffective/Attr.js +15 -0
  30. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +176 -0
  31. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +80 -0
  32. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveMixin.js +30 -0
  33. package/src/components/JfbBaseWalletEffective/Mock.js +21 -0
  34. package/src/components/JfbBaseWalletIndex/Api.js +48 -0
  35. package/src/components/JfbBaseWalletIndex/Attr.js +33 -0
  36. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +821 -0
  37. package/src/components/{JfbBaseConFlashHome/JfbBaseConFlashHomeLess.less → JfbBaseWalletIndex/JfbBaseWalletIndexLess.less} +2 -2
  38. package/src/components/{JfbBaseConFlashList/JfbBaseConFlashListMixin.js → JfbBaseWalletIndex/JfbBaseWalletIndexMixin.js} +1 -1
  39. package/src/components/JfbBaseWalletIndex/Mock.js +7 -0
  40. package/src/components/JfbBaseWalletItem/Api.js +37 -0
  41. package/src/components/JfbBaseWalletItem/Attr.js +33 -0
  42. package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +501 -0
  43. package/src/components/{JfbBaseSaasLogin/JfbBaseSaasLoginLess.less → JfbBaseWalletItem/JfbBaseWalletItemLess.less} +2 -2
  44. package/src/components/{JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js → JfbBaseWalletItem/JfbBaseWalletItemMixin.js} +1 -1
  45. package/src/components/JfbBaseWalletItem/Mock.js +7 -0
  46. package/src/components/JfbBaseConFlashHome/Attr.js +0 -129
  47. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +0 -388
  48. package/src/components/JfbBaseConFlashList/Api.js +0 -60
  49. package/src/components/JfbBaseConFlashList/Attr.js +0 -117
  50. package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +0 -656
  51. package/src/components/JfbBaseConFlashList/Mock.js +0 -5
  52. package/src/components/JfbBaseSaasBlessDetail/Api.js +0 -59
  53. package/src/components/JfbBaseSaasBlessDetail/Attr.js +0 -24
  54. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +0 -315
  55. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +0 -80
  56. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +0 -30
  57. package/src/components/JfbBaseSaasBlessDetail/Mock.js +0 -5
  58. package/src/components/JfbBaseSaasBlessDialog/Api.js +0 -25
  59. package/src/components/JfbBaseSaasBlessDialog/Attr.js +0 -50
  60. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +0 -274
  61. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +0 -80
  62. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +0 -30
  63. package/src/components/JfbBaseSaasBlessDialog/Mock.js +0 -5
  64. package/src/components/JfbBaseSaasBlessReceive/Api.js +0 -25
  65. package/src/components/JfbBaseSaasBlessReceive/Attr.js +0 -24
  66. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +0 -183
  67. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +0 -80
  68. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +0 -30
  69. package/src/components/JfbBaseSaasBlessReceive/Mock.js +0 -5
  70. package/src/components/JfbBaseSaasHome/Api.js +0 -48
  71. package/src/components/JfbBaseSaasHome/Attr.js +0 -35
  72. package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +0 -356
  73. package/src/components/JfbBaseSaasHome/Mock.js +0 -5
  74. package/src/components/JfbBaseSaasLogin/Api.js +0 -39
  75. package/src/components/JfbBaseSaasLogin/Attr.js +0 -37
  76. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +0 -410
  77. package/src/components/JfbBaseSaasLogin/Mock.js +0 -5
  78. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +0 -144
  79. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +0 -80
  80. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +0 -30
  81. package/src/components/JfbBaseSaasNewsDetail/Mock.js +0 -5
  82. package/src/components/JfbBaseSaasNewsList/Attr.js +0 -24
  83. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +0 -181
  84. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +0 -80
  85. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +0 -30
  86. package/src/components/JfbBaseSaasNewsList/Mock.js +0 -5
  87. package/src/components/JfbBaseSassPhoneCollect/Api.js +0 -39
  88. package/src/components/JfbBaseSassPhoneCollect/Attr.js +0 -438
  89. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +0 -266
  90. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +0 -80
  91. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +0 -30
  92. package/src/components/JfbBaseSassPhoneCollect/Mock.js +0 -5
@@ -1,181 +0,0 @@
1
- <template>
2
- <view
3
- class="jfb-base-saas-news-list"
4
- @click="handleEditxSelect"
5
- :class="{ editx : isEditx && active }"
6
- >
7
- <!--#ifdef H5-->
8
- <view
9
- class="jfb-base-saas-news-list__edit"
10
- :class="{ editx : isEditx && active }"
11
- v-if="isEditx && active"
12
- >
13
- <view class="jfb-base-saas-news-list__edit-icon" @click="delEdit">删除</view>
14
- </view>
15
- <!-- #endif -->
16
- <view class="jfb-base-saas-news-list__body">
17
- <view class="news_wrap">
18
- <view class="news_group">
19
- <view class="news_item" v-for="(item, i) in newsList" :key="i" @click="toDetail(item)">
20
- <view class="news_cont">
21
- <view class="news_tit">{{ item.title }}</view>
22
- <view class="news_date">{{ item.created_time }}</view>
23
- </view>
24
- <view class="news_img">
25
- <image :src="item.thumb" />
26
- </view>
27
- </view>
28
- </view>
29
- </view>
30
- </view>
31
- </view>
32
- </template>
33
-
34
- <script>
35
- import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
36
- import { jfbRootExec } from "@/utils/xd.event";
37
- import JfbBaseSaasNewsListMixin from "./JfbBaseSaasNewsListMixin";
38
- import { getContainerPropsValue } from "@/utils/xd.base";
39
- import componentsMixins from "@/mixins/componentsMixins";
40
- import extsMixins from "@/mixins/extsMixins";
41
- export default {
42
- name: "JfbBaseSaasNewsList",
43
- components: {
44
- XdFontIcon
45
- },
46
- mixins: [
47
- componentsMixins, extsMixins, JfbBaseSaasNewsListMixin
48
- ],
49
- data() {
50
- return {
51
- newsList: [],
52
-
53
- //面板
54
- newsDetailUrl: "", //新闻详情url
55
- }
56
- },
57
- watch: {
58
- container(value) {
59
- this.init(value)
60
- }
61
- },
62
- created() {
63
- this.init(this.container);
64
-
65
- //todo
66
- },
67
- methods: {
68
- onJfbLoad(options) {
69
- this.p_getNewsList("news")
70
- },
71
- /**
72
- * @description 监听事件变化
73
- * @param container {object} 业务组件对象自己
74
- */
75
- init(container) {
76
-
77
- //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
78
- },
79
- toDetail(item){
80
- this.$xdUniHelper.navigateTo({
81
- url: `${this.newsDetailUrl}?id=${item.id}`,
82
- });
83
- },
84
- p_getNewsList(position_id){
85
- jfbRootExec("getNewsList", {
86
- vm: this,
87
- data: {
88
- position_id: position_id,
89
- scene: "news",
90
- page_size: 10,
91
- page_token: 1
92
- }
93
- }).then(res => {
94
- this.newsList = res.list.map(item => {
95
- item.created_time = this.$xdUniHelper.getDate(
96
- item["created_time"] * 1000
97
- ).fullTime;
98
- return item;
99
- });
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 "./JfbBaseSaasNewsListLess.less";
131
-
132
- .jfb-base-saas-news-list {
133
- &__body{
134
- .news_wrap{
135
- padding: 20rpx;
136
- .news_group{
137
- background-color: #FFFFFF;
138
- border-radius: 16rpx;
139
- margin-bottom: 20rpx;
140
- .news_item{
141
- display: flex;
142
- align-items: center;
143
- padding: 32rpx;
144
- border-bottom: 1px solid #F0F0F0;
145
- .news_cont{
146
- flex: 1;
147
- width: 400rpx;
148
- font-weight: 400;
149
- .news_tit{
150
- font-size: 28rpx;
151
- color: #333333;
152
- height: 96rpx;
153
- line-height: 48rpx;;
154
- overflow: hidden;
155
- text-overflow: ellipsis;
156
- -webkit-line-clamp: 2;
157
- display: -webkit-box;
158
- -webkit-box-orient: vertical;
159
- }
160
- .news_date{
161
- color: #999999;
162
- font-size: 20rpx;
163
- margin-top: 20rpx;
164
- }
165
- }
166
-
167
- .news_img{
168
- width: 190rpx;
169
- height: 120rpx;
170
- margin-left: 60rpx;
171
- image{
172
- width: 100%;
173
- height: 100%;
174
- }
175
- }
176
- }
177
- }
178
- }
179
- }
180
- }
181
- </style>
@@ -1,80 +0,0 @@
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-news-list {
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-news-list {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
79
- }
80
- /**endNotPreview**/
@@ -1,30 +0,0 @@
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-news-list'
20
- }
21
- },
22
- created() {
23
-
24
- //@AttrDataCreated
25
- this.Attr = this.$xdUniHelper.customClone(Attr);
26
- //@EndAttrDataCreated
27
-
28
-
29
- },
30
- }
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
- aaaa: {}
5
- }
@@ -1,39 +0,0 @@
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: 'phoneCollect',
16
- title: "收集手机号",
17
- path: "/passport/v1/user/collect-phone-number",
18
- isRule: false,
19
- data: {
20
- phone_number: ['手机号', 'String', null], //手机号
21
- verification_code: ['手机验证码', 'String', null],
22
- provider_id: ['登录方式id', 'Number', '必选'],
23
- },
24
- isConsole: true,
25
- disable: true,
26
- },
27
- {
28
- mapFnName: 'sendMsg',
29
- title: '发送验证码',
30
- path: '/common/v1/valid_code/sms/send',
31
- isRule: false,
32
- data: {
33
- phone_number: ['手机号', 'String', '必选'],
34
- biz_name: ['业务名称', 'String', '必选']
35
- },
36
- isConsole: true,
37
- disabled: true,
38
- },
39
- ];