jufubao-base 1.0.56-beta9 → 1.0.61-beta1001

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 +2 -2
  2. package/src/components/JfbBaseCard/JfbBaseCard.vue +6 -3
  3. package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +19 -1
  4. package/src/components/JfbBaseCardDetailEntry/Api.js +58 -0
  5. package/src/components/JfbBaseCardDetailEntry/Attr.js +30 -0
  6. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +812 -0
  7. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +80 -0
  8. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryMixin.js +30 -0
  9. package/src/components/JfbBaseCardDetailEntry/Mock.js +106 -0
  10. package/src/components/JfbBaseCardDetailEntry/XdEditPwd.vue +299 -0
  11. package/src/components/JfbBaseCardDetailEntry/XdPwPay.vue +214 -0
  12. package/src/components/JfbBaseCardDisabledEntry/Api.js +39 -0
  13. package/src/components/JfbBaseCardDisabledEntry/Attr.js +14 -0
  14. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +582 -0
  15. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +80 -0
  16. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryMixin.js +30 -0
  17. package/src/components/JfbBaseCardDisabledEntry/Mock.js +226 -0
  18. package/src/components/JfbBaseCardEntry/Attr.js +11 -11
  19. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +90 -107
  20. package/src/components/JfbBaseCardInfoEntry/Api.js +71 -0
  21. package/src/components/JfbBaseCardInfoEntry/Attr.js +37 -0
  22. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +661 -0
  23. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +80 -0
  24. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryMixin.js +30 -0
  25. package/src/components/JfbBaseCardInfoEntry/Mock.js +122 -0
  26. package/src/components/JfbBaseCardMergeEntry/Api.js +61 -0
  27. package/src/components/JfbBaseCardMergeEntry/Attr.js +237 -0
  28. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +443 -0
  29. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +80 -0
  30. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryMixin.js +30 -0
  31. package/src/components/JfbBaseCardMergeEntry/Mock.js +32 -0
  32. package/src/components/JfbBaseCardShiftEntry/Api.js +51 -0
  33. package/src/components/JfbBaseCardShiftEntry/Attr.js +237 -0
  34. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +476 -0
  35. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +80 -0
  36. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryMixin.js +30 -0
  37. package/src/components/JfbBaseCardShiftEntry/Mock.js +5 -0
  38. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +2 -33
  39. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +80 -51
  40. package/src/components/JfbBaseSuccess/Mock.js +5 -0
  41. package/src/mixins/colorCardMixins.js +60 -0
@@ -0,0 +1,214 @@
1
+ <template>
2
+ <xd-dailog
3
+ :width="width"
4
+ :title="title"
5
+ :show.sync="uiShow"
6
+ :cancel="false"
7
+ :confirm="false"
8
+ :showClose="showClose"
9
+ @close="handleClose"
10
+ >
11
+ <view class="xd-pw-pay">
12
+ <view class="xd-pw-pay__header">
13
+ <view
14
+ v-for="(item,index) in textList"
15
+ :key="index"
16
+ class="xd-pw-pay__header-item">
17
+ {{item.label}}
18
+ <view v-if="item.value" class="xd-pw-pay__header-item-price">
19
+ <xd-unit
20
+ :price="item.value"
21
+ :iocnSize="0.32"
22
+ >
23
+ </xd-unit>
24
+ </view>
25
+ </view>
26
+ </view>
27
+ <view>
28
+ <view class="input-wrap">
29
+ <input
30
+ class="input1"
31
+ type="number"
32
+ v-for="(item, index) in input_len"
33
+ :style="{fontSize: '32rpx'}"
34
+ @tap="onInput"
35
+ :password="password"
36
+ :key="index"
37
+ :value="input_val.length >= index + 1 ? input_val[index] : ''"
38
+ :focus="false"
39
+ />
40
+ </view>
41
+ <!-- 实际监听 -->
42
+ <input class="input2"
43
+ type="number"
44
+ v-if="isFocus"
45
+ @blur="blurInput"
46
+ @input="setInput"
47
+ v-model="input_val"
48
+ :maxlength="input_len"
49
+ :focus="true"
50
+ />
51
+
52
+ <view
53
+ class="forget-pw"
54
+ v-if="forget"
55
+ @click="handleForget"
56
+ >
57
+ 忘记密码
58
+ </view>
59
+ </view>
60
+ </view>
61
+ </xd-dailog>
62
+ </template>
63
+
64
+ <script>
65
+ import XdUnit from "@/components/XdUnit/XdUnit";
66
+ import XdDailog from "@/components/XdDailog/XdDailog";
67
+
68
+ export default {
69
+ name: "XdPwPay",
70
+ components: {XdUnit, XdDailog},
71
+ comments: {
72
+ XdDailog
73
+ },
74
+ props: {
75
+ input_len: {
76
+ type: Number,
77
+ default: 6
78
+ }, //密码长度
79
+ password: {
80
+ type: Boolean,
81
+ default: true
82
+ },
83
+ width: {
84
+ type: Number | String,
85
+ default: '50%',
86
+ },
87
+ title: {
88
+ type: String,
89
+ default: '标题',
90
+ },
91
+ show: {
92
+ type: Boolean,
93
+ default: true,
94
+ },
95
+ textList: {
96
+ type: Array,
97
+ default: []
98
+ },
99
+ forget: {
100
+ type: Boolean,
101
+ default: true
102
+ },
103
+ showClose: {
104
+ type: Boolean,
105
+ default: false
106
+ }
107
+ },
108
+ data() {
109
+ return {
110
+ isFocus: false,
111
+ input_val: '', // 验证码的值
112
+ uiShow: false
113
+ }
114
+ },
115
+ watch: {
116
+ show(newVal) {
117
+ if (newVal === false) {
118
+ this.input_val = ''
119
+ this.isFocus = true
120
+ }
121
+ this.uiShow = newVal;
122
+
123
+ },
124
+
125
+ uiShow(value) {
126
+ this.$emit('update:show', value);
127
+ }
128
+ },
129
+ created() {
130
+ if (this.show) {
131
+ this.input_val = ''
132
+ this.isFocus = true
133
+ this.uiShow = this.show;
134
+ }
135
+ },
136
+ methods: {
137
+ onInput() {
138
+ this.isFocus = true;
139
+ },
140
+ setInput(e) {
141
+
142
+ // this.input_val = e.detail.value;
143
+ if (this.input_val.length == 6) {
144
+ this.$emit('onSubmit', this.input_val)
145
+ }
146
+ },
147
+ blurInput() {
148
+ this.isFocus = false;
149
+ },
150
+ handleForget() {
151
+ this.$emit('onForget')
152
+ },
153
+ handleClose() {
154
+ this.$emit('update:show', this.show);
155
+ this.$emit('onClose')
156
+ },
157
+ clearPwd() {
158
+ this.input_val = ''
159
+ }
160
+ }
161
+ }
162
+ </script>
163
+
164
+ <style scoped lang="less">
165
+ .xd-pw-pay {
166
+ padding: unit(20, rpx);
167
+ font-size: @xd-font-size-lg;
168
+ }
169
+
170
+ .xd-pw-pay__header {
171
+ padding: unit(20, rpx) 0;
172
+
173
+ &-item {
174
+ margin-bottom: unit(20, rpx);
175
+
176
+ &-price {
177
+ display: flex;
178
+ justify-content: center;
179
+ margin-top: unit(20, rpx)
180
+ }
181
+ }
182
+ }
183
+
184
+ .input-wrap {
185
+ display: flex;
186
+ justify-content: space-around;
187
+ align-items: center;
188
+ margin-top: unit(40, rpx);
189
+
190
+ .input1 {
191
+ display: flex;
192
+ width: unit(60, rpx);
193
+ height: unit(60, rpx);
194
+ justify-content: space-around;
195
+ text-align: center;
196
+ border: 1px solid #9b9ba5;
197
+ }
198
+ }
199
+
200
+ .input2 {
201
+ width: unit(10, rpx);
202
+ height: unit(10, rpx);
203
+ position: absolute;
204
+ top: unit(0, rpx);
205
+ left: unit(-750, rpx);
206
+ min-height: 0
207
+ }
208
+
209
+ .forget-pw {
210
+ text-align: right;
211
+ margin-top: unit(20, rpx);
212
+ color: #ccc
213
+ }
214
+ </style>
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description api
5
+ * @type {*[]}
6
+ */
7
+ module.exports = [
8
+ {
9
+ mapFnName: 'disabledCardUnbindEntry',
10
+ isRule: false,
11
+ title: '解绑卡',
12
+ prefix: 'unbind',
13
+ path: '/card/v1/card-bind/unbind-card',
14
+ data: {
15
+ card_number: ['卡号', 'String', '必选'],
16
+ },
17
+ disabled: true,
18
+ },
19
+ {
20
+ mapFnName: 'getDisableCardListEntry',
21
+ isRule: false,
22
+ title: '获得绑定卡',
23
+ prefix: 'list',
24
+ path: '/card/v1/card-bind/list-bind-card',
25
+ params: {},
26
+ disabled: true,
27
+ },
28
+ {
29
+ mapFnName: 'batchDisabledCardUnbindEntry',
30
+ isRule: false,
31
+ title: '批量解绑卡',
32
+ prefix: 'list',
33
+ path: '/card/v1/card-bind/batch-unbind-card',
34
+ data: {
35
+ card_numbers: ['卡号(英文逗号分隔)', 'String', '必选'],
36
+ },
37
+ disabled: true,
38
+ },
39
+ ];
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [
10
+
11
+ ].filter(i => i)
12
+ },
13
+ advanced: [],
14
+ };