jufubao-base 1.0.56-beta2014 → 1.0.56-beta2016
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.
- package/package.json +1 -1
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +1 -1
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +39 -5
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +37 -1
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +2 -2
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +4 -3
package/package.json
CHANGED
|
@@ -65,8 +65,16 @@
|
|
|
65
65
|
</view>
|
|
66
66
|
</view>
|
|
67
67
|
</view>
|
|
68
|
+
<view v-else>
|
|
69
|
+
<view class="jfb-base-card-disabled-entry__body-empty">
|
|
70
|
+
<view class="jfb-base-card-disabled-entry__body-empty-wrap">
|
|
71
|
+
<image :src="emptyBg"></image>
|
|
72
|
+
暂无票券
|
|
73
|
+
</view>
|
|
74
|
+
</view>
|
|
75
|
+
</view>
|
|
68
76
|
<view class="bottom_btn-mask"></view>
|
|
69
|
-
<view class="bottom_btn" :style="prod_bottom">
|
|
77
|
+
<view v-if="disableList&&disableList.length>0" class="bottom_btn" :style="prod_bottom">
|
|
70
78
|
<xd-button
|
|
71
79
|
width="680rpx"
|
|
72
80
|
radius="50rpx"
|
|
@@ -105,6 +113,9 @@ export default {
|
|
|
105
113
|
prod_bottom() {
|
|
106
114
|
return this.fixedStyle({height: 0, zIndex: 111});
|
|
107
115
|
},
|
|
116
|
+
emptyBg() {
|
|
117
|
+
return this.getNoData();
|
|
118
|
+
},
|
|
108
119
|
},
|
|
109
120
|
watch: {
|
|
110
121
|
container(value) {
|
|
@@ -112,8 +123,8 @@ export default {
|
|
|
112
123
|
},
|
|
113
124
|
},
|
|
114
125
|
created() {
|
|
126
|
+
console.log(this.getNoData(),'this.getNoData()this.getNoData()');
|
|
115
127
|
this.init(this.container);
|
|
116
|
-
|
|
117
128
|
},
|
|
118
129
|
methods: {
|
|
119
130
|
onJfbLoad(options) {
|
|
@@ -160,10 +171,10 @@ export default {
|
|
|
160
171
|
let cardIds = this.disableList.map(item=>{
|
|
161
172
|
return item.card_number + ''
|
|
162
173
|
});
|
|
163
|
-
jfbRootExec("
|
|
174
|
+
jfbRootExec("batchDisabledCardUnbindEntry", {vm: this, data: {card_numbers: cardIds.join(','),},})
|
|
164
175
|
.then((res) => {
|
|
165
176
|
this.$xdAlert({
|
|
166
|
-
content: "
|
|
177
|
+
content: "全部失效票券已解绑",
|
|
167
178
|
close: () => {
|
|
168
179
|
this.getCardList();
|
|
169
180
|
},
|
|
@@ -197,7 +208,7 @@ export default {
|
|
|
197
208
|
})
|
|
198
209
|
.then((res) => {
|
|
199
210
|
this.$xdAlert({
|
|
200
|
-
content: "
|
|
211
|
+
content: "票券已解绑",
|
|
201
212
|
close: () => {
|
|
202
213
|
this.getCardList();
|
|
203
214
|
},
|
|
@@ -311,6 +322,29 @@ export default {
|
|
|
311
322
|
}
|
|
312
323
|
}
|
|
313
324
|
|
|
325
|
+
&-empty {
|
|
326
|
+
color: #888;
|
|
327
|
+
font-size: unit(24,rpx);
|
|
328
|
+
height: 60vh;
|
|
329
|
+
display: flex;
|
|
330
|
+
align-items: center;
|
|
331
|
+
justify-content: center;
|
|
332
|
+
|
|
333
|
+
&-wrap {
|
|
334
|
+
display: flex;
|
|
335
|
+
flex-direction: column;
|
|
336
|
+
|
|
337
|
+
& > image {
|
|
338
|
+
width: unit(460,rpx);
|
|
339
|
+
height: unit(400,rpx);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
& > view {
|
|
344
|
+
text-align: center;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
314
348
|
&-disabled {
|
|
315
349
|
font-size: unit(28, rpx);
|
|
316
350
|
color: #b8b7be;
|
|
@@ -120,7 +120,8 @@
|
|
|
120
120
|
:style="{ color: warningColor }"
|
|
121
121
|
v-if="tabIndex === 2"
|
|
122
122
|
>* 目前仅支持电影票兑换券进行转换</view>
|
|
123
|
-
<view
|
|
123
|
+
<view v-if="showList.length>0">
|
|
124
|
+
<view
|
|
124
125
|
v-if="tabIndex === 2 || tabIndex === 1"
|
|
125
126
|
class="jfb-base-card-entry__body-card"
|
|
126
127
|
>
|
|
@@ -204,6 +205,15 @@
|
|
|
204
205
|
</view>
|
|
205
206
|
</view>
|
|
206
207
|
</view>
|
|
208
|
+
</view>
|
|
209
|
+
<view v-else>
|
|
210
|
+
<view class="jfb-base-card-entry__body-empty">
|
|
211
|
+
<view class="jfb-base-card-entry__body-empty-wrap">
|
|
212
|
+
<image :src="emptyBg"></image>
|
|
213
|
+
暂无票券
|
|
214
|
+
</view>
|
|
215
|
+
</view>
|
|
216
|
+
</view>
|
|
207
217
|
<view
|
|
208
218
|
v-if="showDisabled==='Y'"
|
|
209
219
|
@click="handleToDisabled"
|
|
@@ -263,6 +273,9 @@ export default {
|
|
|
263
273
|
showList(){
|
|
264
274
|
return this.tabIndex === 1 ? this.cardList: this.changeList
|
|
265
275
|
},
|
|
276
|
+
emptyBg() {
|
|
277
|
+
return this.getNoData();
|
|
278
|
+
},
|
|
266
279
|
},
|
|
267
280
|
filters:{
|
|
268
281
|
cutstr(val){
|
|
@@ -605,6 +618,29 @@ export default {
|
|
|
605
618
|
padding: unit(30, rpx) unit(26, rpx);
|
|
606
619
|
color: #333;
|
|
607
620
|
|
|
621
|
+
&-empty {
|
|
622
|
+
color: #888;
|
|
623
|
+
font-size: unit(24,rpx);
|
|
624
|
+
height: 60vh;
|
|
625
|
+
display: flex;
|
|
626
|
+
align-items: center;
|
|
627
|
+
justify-content: center;
|
|
628
|
+
|
|
629
|
+
&-wrap {
|
|
630
|
+
display: flex;
|
|
631
|
+
flex-direction: column;
|
|
632
|
+
|
|
633
|
+
& > image {
|
|
634
|
+
width: unit(460,rpx);
|
|
635
|
+
height: unit(400,rpx);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
& > view {
|
|
640
|
+
text-align: center;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
|
|
608
644
|
&-dialog {
|
|
609
645
|
position: fixed;
|
|
610
646
|
top: 0;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
</view>
|
|
41
41
|
</view>
|
|
42
42
|
<view class="merge-item" :style="{background: themeInStyle['color']}">
|
|
43
|
-
<view class="merge-item-box" :style="{backgroundImage:
|
|
43
|
+
<view class="merge-item-box" :style="{backgroundImage: `url(${themeInStyle})`}">
|
|
44
44
|
<view class="merge-item-title">
|
|
45
45
|
<xd-font-icon icon="iconzhuanru"></xd-font-icon>
|
|
46
46
|
<view>转入的票券</view>
|
|
@@ -167,7 +167,7 @@ export default {
|
|
|
167
167
|
},
|
|
168
168
|
themeInStyle() {
|
|
169
169
|
if (this.toSelect === null) {
|
|
170
|
-
return this.
|
|
170
|
+
return this.getMergBg();
|
|
171
171
|
} else {
|
|
172
172
|
return this.getCardThemes(this.toSelect.name);
|
|
173
173
|
}
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
icon="iconzhuanhuanshitu"
|
|
43
43
|
style="margin-right:10rpx"
|
|
44
44
|
></xd-font-icon>
|
|
45
|
-
|
|
45
|
+
转换的票券
|
|
46
46
|
</view>
|
|
47
47
|
</view>
|
|
48
48
|
<view style="padding-top:40rpx" class="jfb-base-card-shift-entry__body-header-item">
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
<view> {{ item.label }}: </view>
|
|
108
108
|
<view :style="{color:mainColor,fontWeight:500}" v-if="item.type === 'price'">
|
|
109
109
|
{{ info[item.key] }}
|
|
110
|
-
<text
|
|
110
|
+
<text>点</text>
|
|
111
111
|
</view>
|
|
112
112
|
<view style="color: #333; font-weight: 500" v-else>
|
|
113
113
|
{{ info[item.key] }}
|
|
@@ -297,7 +297,7 @@ export default {
|
|
|
297
297
|
this.valueKey.splice(1,1);
|
|
298
298
|
this.changeValueKey.splice(1,1)
|
|
299
299
|
}
|
|
300
|
-
this.headerBg = this.getCardThemes(res);
|
|
300
|
+
this.headerBg = this.getCardThemes(res.card_type_name);
|
|
301
301
|
this.info = temp;
|
|
302
302
|
})
|
|
303
303
|
.catch((err) => {});
|
|
@@ -339,6 +339,7 @@ export default {
|
|
|
339
339
|
|
|
340
340
|
|
|
341
341
|
& > view {
|
|
342
|
+
padding: 0 unit(80, rpx);
|
|
342
343
|
font-size: unit(24, rpx);
|
|
343
344
|
line-height: unit(56, rpx);
|
|
344
345
|
background: rgba(102, 102, 102, 0.4);
|