jufubao-base 1.0.401 → 1.0.403-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.
- package/get.package.path.js +2 -2
- package/package.json +1 -1
- package/src/components/JfbBaseCard/JfbBaseCard.vue +64 -6
- package/src/components/JfbBaseCard/Mock.js +2916 -5
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +102 -7
- package/src/components/JfbBaseCardEntry/Mock.js +335 -222
- package/src/components/JfbBaseCardEntry/XdCardNew.vue +62 -18
- package/src/components/JfbBaseCardV2/Api.js +2 -2
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +59 -4
- package/src/components/JfbBaseCardV2/Mock.js +2917 -6
- package/src/components/JfbBaseCardV3/Api.js +2 -2
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +8 -2
- package/src/components/JfbBaseCardV3/Mock.js +2917 -1
- package/src/components/JfbBasePosterType/FourScreen.vue +2 -4
- package/src/mixins/colorCardMixins.js +0 -1
package/get.package.path.js
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
|
|
10
10
|
if(packname === 'gxd-commands-bussiness') {
|
|
11
|
-
return `/Users/shiyonggao/
|
|
11
|
+
return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
if (packname === 'gxd-uni-library-editx') {
|
|
15
|
-
return `/Users/shiyonggao/
|
|
15
|
+
return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
};
|
package/package.json
CHANGED
|
@@ -145,10 +145,8 @@
|
|
|
145
145
|
:key="index"
|
|
146
146
|
@click="handleBindLogin(item)"
|
|
147
147
|
class="jfb-base-card__body-card-item"
|
|
148
|
-
:
|
|
149
|
-
|
|
150
|
-
border:`1px solid ${item['is_login'] === 'Y'? mainSubBorderColor:'#eeeeee'}`
|
|
151
|
-
}"
|
|
148
|
+
:class="{error_status: item['card_status'] && item['card_status'] !== 'Y'}"
|
|
149
|
+
:style="[itemStyleCom(item)]"
|
|
152
150
|
>
|
|
153
151
|
<view class="jfb-base-card__body-card-item-left" v-if="showLoginBtn">
|
|
154
152
|
<xd-font-icon
|
|
@@ -184,6 +182,7 @@
|
|
|
184
182
|
:color="mainColor"
|
|
185
183
|
></xd-font-icon>
|
|
186
184
|
<view class="card_name_text">{{ item.card_type_name }}</view>
|
|
185
|
+
<view class="card_status_error" v-if="item['card_status'] && item['card_status'] !== 'Y'">{{item.card_status_name}}</view>
|
|
187
186
|
</view>
|
|
188
187
|
<view>
|
|
189
188
|
<view>{{ item.card_number }}{{showIndex?(':' + index):''}}</view>
|
|
@@ -446,6 +445,26 @@ export default {
|
|
|
446
445
|
|
|
447
446
|
},
|
|
448
447
|
methods: {
|
|
448
|
+
itemStyleCom(item){
|
|
449
|
+
let def = {
|
|
450
|
+
backgroundColor:(item['is_login'] === 'Y'? this.mainBorderColor : '#fff'),
|
|
451
|
+
border:`1px solid ${item['is_login'] === 'Y'? this.mainSubBorderColor:'#eeeeee'}`
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
//有票券状态节点
|
|
455
|
+
if(item.card_status){
|
|
456
|
+
if(item.card_status !== 'Y') return {
|
|
457
|
+
WebkitFilter: 'grayscale(100%)',
|
|
458
|
+
filter: 'grayscale(100%)',
|
|
459
|
+
cursor: 'not-allowed',
|
|
460
|
+
opacity: 0.5,
|
|
461
|
+
...def,
|
|
462
|
+
}
|
|
463
|
+
else return def
|
|
464
|
+
}
|
|
465
|
+
//兼容老数据
|
|
466
|
+
return def
|
|
467
|
+
},
|
|
449
468
|
init(container){
|
|
450
469
|
//设置
|
|
451
470
|
this.cardLayout = getContainerPropsValue(container,"content.cardLayout","1");
|
|
@@ -570,6 +589,12 @@ export default {
|
|
|
570
589
|
handleBindLogin(item) {
|
|
571
590
|
if(this.$configProject.isPreview) return;
|
|
572
591
|
if(!this.showLoginBtn) return;
|
|
592
|
+
|
|
593
|
+
//已设置票券状态
|
|
594
|
+
if(item.card_status) {
|
|
595
|
+
if(item.card_status !== 'Y') return;
|
|
596
|
+
}
|
|
597
|
+
|
|
573
598
|
//普通卡
|
|
574
599
|
if (this.tabIndex === 1) {
|
|
575
600
|
//无效卡
|
|
@@ -627,6 +652,14 @@ export default {
|
|
|
627
652
|
},
|
|
628
653
|
|
|
629
654
|
toDetail(item) {
|
|
655
|
+
if(this.$configProject.isPreview) return;
|
|
656
|
+
|
|
657
|
+
//已设置票券状态
|
|
658
|
+
if(item.card_status) {
|
|
659
|
+
if(item.card_status !== 'Y') return;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
|
|
630
663
|
this.$xdUniHelper.navigateTo(
|
|
631
664
|
{
|
|
632
665
|
url: `${this.detailUrl}?card_number=${item["card_number"]}`,
|
|
@@ -863,8 +896,6 @@ export default {
|
|
|
863
896
|
}
|
|
864
897
|
}
|
|
865
898
|
|
|
866
|
-
|
|
867
|
-
|
|
868
899
|
&-dialog {
|
|
869
900
|
position: fixed;
|
|
870
901
|
top: 0;
|
|
@@ -1006,6 +1037,20 @@ export default {
|
|
|
1006
1037
|
border-radius: unit(20, rpx);
|
|
1007
1038
|
margin-bottom: unit(30, rpx);
|
|
1008
1039
|
background: #fff;
|
|
1040
|
+
&.error_status {
|
|
1041
|
+
position: relative;
|
|
1042
|
+
overflow: hidden;
|
|
1043
|
+
&::after {
|
|
1044
|
+
content: "";
|
|
1045
|
+
position: absolute;
|
|
1046
|
+
opacity: 1;
|
|
1047
|
+
top: 0;
|
|
1048
|
+
left: 0;
|
|
1049
|
+
right: 0;
|
|
1050
|
+
bottom: 0;
|
|
1051
|
+
background-color: rgba(0,0,0,.2);
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1009
1054
|
|
|
1010
1055
|
&-left {
|
|
1011
1056
|
width: unit(200, rpx);
|
|
@@ -1028,6 +1073,19 @@ export default {
|
|
|
1028
1073
|
&-top {
|
|
1029
1074
|
border-bottom: unit(2, rpx) solid #eeeeee;
|
|
1030
1075
|
padding: unit(30, rpx) unit(20, rpx);
|
|
1076
|
+
position:relative;
|
|
1077
|
+
|
|
1078
|
+
.card_status_error {
|
|
1079
|
+
background: #888;
|
|
1080
|
+
border-radius: 0 0 0 8rpx;
|
|
1081
|
+
font-size: 28rpx;
|
|
1082
|
+
line-height: 64rpx;
|
|
1083
|
+
color: #fff;
|
|
1084
|
+
position: absolute;
|
|
1085
|
+
top: 0;
|
|
1086
|
+
right: 0;
|
|
1087
|
+
padding: 0 48rpx;
|
|
1088
|
+
}
|
|
1031
1089
|
|
|
1032
1090
|
& > view:nth-child(1) {
|
|
1033
1091
|
display: flex;
|