gxd-uni-library-editx 1.0.71 → 1.0.72
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/XdCardPayChose/XdCardPayChose.vue +13 -13
- package/src/components/XdCardV2/XdCardV2Skeleton.vue +6 -0
- package/src/components/XdConfirm/XdConfirm.vue +1 -4
- package/src/components/XdFormCheckbox/XdFormCheckbox.vue +7 -2
- package/src/components/XdLayout/XdLayout.vue +9 -2
- package/src/utils/xdWxLog.js +4 -0
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
></xd-unit>
|
|
36
36
|
</view>
|
|
37
37
|
</view>
|
|
38
|
-
|
|
38
|
+
|
|
39
39
|
</view>
|
|
40
40
|
<view
|
|
41
41
|
class="ticket_list"
|
|
@@ -212,7 +212,7 @@ import {
|
|
|
212
212
|
} from '@/utils/xd.base';
|
|
213
213
|
|
|
214
214
|
export default {
|
|
215
|
-
name: "
|
|
215
|
+
name: "XdCardPayChose",
|
|
216
216
|
components: {
|
|
217
217
|
XdDownDrawer,
|
|
218
218
|
XdButton,
|
|
@@ -278,7 +278,7 @@ export default {
|
|
|
278
278
|
}
|
|
279
279
|
this.$emit('update:show', n);
|
|
280
280
|
this.$emit("onAlert");
|
|
281
|
-
|
|
281
|
+
|
|
282
282
|
},
|
|
283
283
|
orderTotalPrice: {
|
|
284
284
|
handler(n){
|
|
@@ -346,7 +346,7 @@ export default {
|
|
|
346
346
|
alert_bottom(){
|
|
347
347
|
return this.fixedStyle({paddingBottom: 24, zIndex: 110})
|
|
348
348
|
},
|
|
349
|
-
|
|
349
|
+
|
|
350
350
|
},
|
|
351
351
|
async created(){
|
|
352
352
|
this.switchValidToken();
|
|
@@ -442,7 +442,7 @@ export default {
|
|
|
442
442
|
});
|
|
443
443
|
})
|
|
444
444
|
},
|
|
445
|
-
|
|
445
|
+
|
|
446
446
|
//选择卡券
|
|
447
447
|
handlerTicketSelect(flat, ticket, options){
|
|
448
448
|
if(flat){ //选择卡券,重新调用接口获取 selectedCardList, neePayPrice
|
|
@@ -513,7 +513,7 @@ export default {
|
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
},
|
|
516
|
-
|
|
516
|
+
|
|
517
517
|
filterMGinfo(list){
|
|
518
518
|
//深拷贝
|
|
519
519
|
if(this.$xdUniHelper.checkVarType(list) === 'object'
|
|
@@ -528,7 +528,7 @@ export default {
|
|
|
528
528
|
if (list.card_password) list.card_password = list.card_password.substr(0, 2) + '********' + list.card_password.substr(-3);
|
|
529
529
|
return list;
|
|
530
530
|
}
|
|
531
|
-
|
|
531
|
+
|
|
532
532
|
//array
|
|
533
533
|
return list.map(item => {
|
|
534
534
|
if(item.card_use_certificate) item.card_use_certificate = item.card_use_certificate.substr(0, 2) + '********' + item.card_use_certificate.substr(-3);
|
|
@@ -537,7 +537,7 @@ export default {
|
|
|
537
537
|
return item
|
|
538
538
|
});
|
|
539
539
|
},
|
|
540
|
-
|
|
540
|
+
|
|
541
541
|
//添加新卡券
|
|
542
542
|
addNewCard(options={}){
|
|
543
543
|
const { cardForm, total_price, submitCardList } = this;
|
|
@@ -576,10 +576,10 @@ export default {
|
|
|
576
576
|
res: resOptions
|
|
577
577
|
},'add_card');
|
|
578
578
|
this.$xdHideLoading();
|
|
579
|
-
|
|
579
|
+
|
|
580
580
|
//成功回调
|
|
581
581
|
let {selected_card_list=[], need_pay_price, is_need_pop, card_total_use_price} = res;
|
|
582
|
-
|
|
582
|
+
|
|
583
583
|
if(is_need_pop){
|
|
584
584
|
this.useCardPop(res).then((select_content) => {
|
|
585
585
|
if(select_content) this.addNewCard({select_content});
|
|
@@ -594,7 +594,7 @@ export default {
|
|
|
594
594
|
let filterCard = selected_card_list.filter(item => !r_cards.includes(item.card_number));
|
|
595
595
|
//重合的卡券列表
|
|
596
596
|
let repeatCardList = selected_card_list.filter(item => r_cards.includes(item.card_number));
|
|
597
|
-
|
|
597
|
+
|
|
598
598
|
if(repeatCardList.length > 0){
|
|
599
599
|
for(let i = 0; i < repeatCardList.length; i++){
|
|
600
600
|
let repeatCard = repeatCardList[i];
|
|
@@ -833,7 +833,7 @@ export default {
|
|
|
833
833
|
box-sizing: border-box;
|
|
834
834
|
margin: 30rpx auto;
|
|
835
835
|
font-size: 28rpx;
|
|
836
|
-
|
|
836
|
+
|
|
837
837
|
.icon{
|
|
838
838
|
width: 64rpx;
|
|
839
839
|
height: 64rpx;
|
|
@@ -858,4 +858,4 @@ export default {
|
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
}
|
|
861
|
-
</style>
|
|
861
|
+
</style>
|
|
@@ -169,10 +169,7 @@
|
|
|
169
169
|
this.show = false;
|
|
170
170
|
this.confirm = {}
|
|
171
171
|
} else {
|
|
172
|
-
this.$currentStyle = value.styles
|
|
173
|
-
|| (this.styleCommon && this.styleCommon.styles)
|
|
174
|
-
|| this.currentStyle ||
|
|
175
|
-
(value.$vm && value.$vm.styles) || {};
|
|
172
|
+
this.$currentStyle = value.styles || this.styleCommon || this.currentStyle || (value.$vm && value.$vm.styles) || {};
|
|
176
173
|
this.confirm = Object.assign({},
|
|
177
174
|
this.$xdUniHelper.cloneDeep(this.defaultConfirm),
|
|
178
175
|
value,
|
|
@@ -28,7 +28,12 @@
|
|
|
28
28
|
</view>
|
|
29
29
|
<view class="checklist-content" :class="{'list-content':mode === 'list' && icon ==='left'}">
|
|
30
30
|
<text class="checklist-text" :style="item.styleIconText">
|
|
31
|
+
<!-- #ifdef h5 -->
|
|
31
32
|
<slot :name="'a' +item.value" :text="item.text">{{item}}{{item[map.text]}}</slot>
|
|
33
|
+
<!-- #endif -->
|
|
34
|
+
<!-- #ifdef MP-WEIXIN -->
|
|
35
|
+
<slot name="a1" :text="item.text">{{item}}{{item[map.text]}}</slot>
|
|
36
|
+
<!-- #endif -->
|
|
32
37
|
</text>
|
|
33
38
|
<view
|
|
34
39
|
v-if="mode === 'list' && icon === 'right'"
|
|
@@ -97,7 +102,7 @@
|
|
|
97
102
|
* @value right 右侧显示
|
|
98
103
|
* @event {Function} change 选中发生变化触发
|
|
99
104
|
*/
|
|
100
|
-
|
|
105
|
+
|
|
101
106
|
import {
|
|
102
107
|
getParentsStyle,
|
|
103
108
|
} from '@/utils/xd.base';
|
|
@@ -217,7 +222,7 @@
|
|
|
217
222
|
isLocal:true,
|
|
218
223
|
styles: null,
|
|
219
224
|
isTop:0,
|
|
220
|
-
|
|
225
|
+
|
|
221
226
|
styleMainColor: '', //选中颜色
|
|
222
227
|
};
|
|
223
228
|
},
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
<!--tabbar-->
|
|
115
115
|
<view class="xd-Layout__footer-height" :style="{height: (bottomHeight + (isFooterSolt ? footerHeight: 110)) + 'rpx' }"></view>
|
|
116
116
|
</view>
|
|
117
|
-
<view v-if="websiteStatus === false" class="website-disable">
|
|
117
|
+
<view v-if="websiteStatus === false && this.mpSiteLoading" class="website-disable">
|
|
118
118
|
<image src="//img.jufubao.cn/component/disabel_phone.png" mode="widthFix"></image>
|
|
119
119
|
</view>
|
|
120
120
|
<xd-confirm v-if="getLayoutInfo" :get-layout-info="getLayoutInfo"></xd-confirm>
|
|
@@ -267,7 +267,8 @@
|
|
|
267
267
|
default(){
|
|
268
268
|
return {}
|
|
269
269
|
},
|
|
270
|
-
}
|
|
270
|
+
},
|
|
271
|
+
|
|
271
272
|
},
|
|
272
273
|
data() {
|
|
273
274
|
return {
|
|
@@ -276,6 +277,7 @@
|
|
|
276
277
|
layoutLoading: false,
|
|
277
278
|
startTime: new Date().getTime(),
|
|
278
279
|
websiteStatus: null,
|
|
280
|
+
mpSiteLoading: true,
|
|
279
281
|
|
|
280
282
|
startAnimation : false, //开始动画效果
|
|
281
283
|
doneAnimation: false, //完成动画效果
|
|
@@ -510,9 +512,13 @@
|
|
|
510
512
|
},
|
|
511
513
|
|
|
512
514
|
created() {
|
|
515
|
+
|
|
513
516
|
this.wiewType = this.$configProject.isPreview;
|
|
514
517
|
this.systemInfoSyn = uni.getSystemInfoSync();
|
|
515
518
|
this.gWindowHeight = uni.getSystemInfoSync().windowHeight;
|
|
519
|
+
// #ifdef MP-WEIXIN
|
|
520
|
+
this.mpSiteLoading = false;
|
|
521
|
+
// #endif
|
|
516
522
|
|
|
517
523
|
//判断是否禁用
|
|
518
524
|
if(this.wiewType) {
|
|
@@ -525,6 +531,7 @@
|
|
|
525
531
|
if(!uni.getStorageSync('xd-max-window-height')) {
|
|
526
532
|
uni.setStorageSync('xd-max-window-height', uni.getSystemInfoSync().windowHeight);
|
|
527
533
|
}
|
|
534
|
+
|
|
528
535
|
this.isConsole = !!this.$xdUniHelper.getParmater('is-console')
|
|
529
536
|
uni.onWindowResize(()=>{
|
|
530
537
|
this.gWindowHeight = uni.getSystemInfoSync().windowHeight;
|