gxd-uni-library-editx 1.0.71 → 1.0.73

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gxd-uni-library-editx",
3
- "version": "1.0.71",
3
+ "version": "1.0.73",
4
4
  "private": false,
5
5
  "description": "聚福宝基础插件专用库",
6
6
  "main": "index.js",
@@ -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: "XdCardPay",
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>
@@ -7,10 +7,7 @@
7
7
  :color="mainColor"
8
8
  icon="iconchakan1"
9
9
  ></xd-font-icon>
10
- <view class="cha_kan" :style="{
11
- backgroundColor: '#FFFFFF',
12
- ...lookStyle
13
- }">查看</view>
10
+ <view class="cha_kan" :style="lookStyleUI">查看</view>
14
11
  </view>
15
12
  <view class="item-right">
16
13
  <view class="item_info">
@@ -34,10 +31,7 @@
34
31
  购买其他物品可抵:{{ cardInfo.other_card_point }}
35
32
  </view>
36
33
  </view>
37
- <view class="btn" :style="{
38
- backgroundColor: mainColor,
39
- ...loginStyle
40
- }">
34
+ <view class="btn" :style="loginStyleUI">
41
35
  <view >{{ tabIndex === 1 ? loginName : "转换" }}</view>
42
36
  </view>
43
37
  </view>
@@ -58,7 +52,9 @@ export default {
58
52
  },
59
53
  cardInfo: {
60
54
  type: Object,
61
- default: () => ({})
55
+ default(){
56
+ return {}
57
+ }
62
58
  },
63
59
  tabIndex: {
64
60
  type: Number,
@@ -74,11 +70,29 @@ export default {
74
70
  },
75
71
  loginStyle: {
76
72
  type: Object,
77
- default: () => ({})
73
+ default(){
74
+ return {}
75
+ }
78
76
  },
79
77
  lookStyle: {
80
78
  type: Object,
81
- default: () => ({})
79
+ default(){
80
+ return {}
81
+ }
82
+ }
83
+ },
84
+ computed:{
85
+ lookStyleUI(){
86
+ return {
87
+ backgroundColor:'#FFFFFF',
88
+ ...this.lookStyle,
89
+ }
90
+ },
91
+ loginStyleUI(){
92
+ return {
93
+ backgroundColor:this.mainColor,
94
+ ...this.loginStyle
95
+ }
82
96
  }
83
97
  },
84
98
  data(){
@@ -14,6 +14,12 @@
14
14
  </view>
15
15
  </template>
16
16
 
17
+ <script>
18
+ export default {
19
+ name:'XdCardV2Skeleton'
20
+ }
21
+ </script>
22
+
17
23
  <style lang="less" scoped>
18
24
  .skeleton-card-item {
19
25
  display: flex;
@@ -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;
@@ -58,6 +58,10 @@ class Logs {
58
58
  console.error(error)
59
59
  }
60
60
 
61
+ setARMSCustomError(name, errorObj){
62
+ console.error(JSON.stringify({name,errorObj}))
63
+ }
64
+
61
65
 
62
66
  checkApiHost() {
63
67
  if (typeof getApp !== 'function') return false;