gxd-uni-library-editx 1.0.73 → 1.0.75

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.73",
3
+ "version": "1.0.75",
4
4
  "private": false,
5
5
  "description": "聚福宝基础插件专用库",
6
6
  "main": "index.js",
@@ -0,0 +1,80 @@
1
+ <template>
2
+ <view class="skeleton-card-item">
3
+ <view class="item-left">
4
+ <view class="cha_kan"></view>
5
+ </view>
6
+ <view class="item-right">
7
+ <view class="item_info">
8
+ <view class="_title"></view>
9
+ <view class="identify"></view>
10
+ <view class="remain"></view>
11
+ </view>
12
+ <view class="btn"> </view>
13
+ </view>
14
+ </view>
15
+ </template>
16
+
17
+ <script>
18
+ export default {
19
+ name:'XdCardV2Skeleton'
20
+ }
21
+ </script>
22
+
23
+ <style lang="less" scoped>
24
+ .skeleton-card-item {
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: flex-start;
28
+ border: unit(2, rpx) solid #eeeeee;
29
+ border-radius: unit(20, rpx);
30
+ margin-bottom: unit(30, rpx);
31
+ background: #fff;
32
+ .item-left {
33
+ width: unit(140, rpx);
34
+ display: flex;
35
+ flex-direction: column;
36
+ align-items: center;
37
+ justify-content: center;
38
+ .cha_kan{
39
+ .skeleton-item(60rpx, 60rpx);
40
+ }
41
+ }
42
+ .item-right {
43
+ display: flex;
44
+ flex: 1;
45
+ flex-direction: row;
46
+ justify-content: space-between;
47
+ align-items: center;
48
+ padding: unit(24, rpx);
49
+ border-left: 1px solid #eeeeee;
50
+ .item_info {
51
+ display: flex;
52
+ flex-direction: column;
53
+ justify-content: space-between;
54
+ flex: 1;
55
+ padding-right: 50rpx;
56
+
57
+ ._title{
58
+ .skeleton-item(auto, 24rpx);
59
+ }
60
+ .identify{
61
+ .skeleton-item(auto, 84rpx);
62
+ margin-top: unit(24, rpx);
63
+ }
64
+ .remain{
65
+ .skeleton-item(auto, 24rpx);
66
+ margin-top: unit(24, rpx);
67
+ }
68
+ .other{
69
+ .skeleton-item(auto, 24rpx);
70
+ margin-top: unit(8, rpx);
71
+ }
72
+ }
73
+ .btn{
74
+ .skeleton-item(110rpx, 104rpx, 8rpx);
75
+ padding: 0 unit(16, rpx);
76
+ margin-left: unit(10, rpx);
77
+ }
78
+ }
79
+ }
80
+ </style>
@@ -27,14 +27,14 @@
27
27
  <view class="checkbox__inner-icon"></view>
28
28
  </view>
29
29
  <view class="checklist-content" :class="{'list-content':mode === 'list' && icon ==='left'}">
30
- <text class="checklist-text" :style="item.styleIconText">
30
+ <view class="checklist-text" :style="item.styleIconText">
31
31
  <!-- #ifdef h5 -->
32
- <slot :name="'a' +item.value" :text="item.text">{{item}}{{item[map.text]}}</slot>
33
- <!-- #endif -->
32
+ <slot :name="'a' +item.value">{{item[map.text]}}</slot>
33
+ <!-- #endif -->
34
34
  <!-- #ifdef MP-WEIXIN -->
35
- <slot name="a1" :text="item.text">{{item}}{{item[map.text]}}</slot>
35
+ <slot name="a1"></slot>
36
36
  <!-- #endif -->
37
- </text>
37
+ </view>
38
38
  <view
39
39
  v-if="mode === 'list' && icon === 'right'"
40
40
  class="checkobx__list"
@@ -816,8 +816,6 @@ class Helpers {
816
816
  return url
817
817
  //#endif
818
818
 
819
-
820
-
821
819
  //#ifdef H5
822
820
  let siteDomain = `${window.location.protocol}//${window.location.host}`;
823
821
  let dir = '';
@@ -1046,11 +1044,16 @@ class Helpers {
1046
1044
  /**
1047
1045
  * @description 特殊翻译
1048
1046
  */
1049
- async specialApiTranform(obj, cb){
1047
+ async specialApiTransform(obj, cb){
1050
1048
  let reg = /(-apiuri\/v)/;
1049
+ let regHttp = /^(\/\/)|(http:\/\/)|(http:\/\/).+/;
1051
1050
  //需要转化的特殊访问地址
1052
1051
  if(reg.test(obj.url)){
1053
- store.dispatch('getSpecialApiTranform',{url: obj.url})
1052
+ if(!regHttp.test(obj.url)) {
1053
+ obj.url = `${store.state.brandInfo.api_host}${obj.url}`;
1054
+ console.warn(`specialApiTransform:${obj.url}`)
1055
+ }
1056
+ store.dispatch('getSpecialApiTransform',{url: obj.url})
1054
1057
  .then(res=>{
1055
1058
  //链接地址
1056
1059
  if(res.type === 'url' && res.value){
@@ -1072,7 +1075,7 @@ class Helpers {
1072
1075
  * @param redirect 是否添加当前页面地址路径最为回调地址
1073
1076
  */
1074
1077
  navigateTo(obj = {}, redirect) {
1075
- this.specialApiTranform(obj,(res)=>{
1078
+ this.specialApiTransform(obj,(res)=>{
1076
1079
  this.handleTo(res, redirect);
1077
1080
  })
1078
1081
  }
@@ -1130,7 +1133,7 @@ class Helpers {
1130
1133
  * @param notHistory h5使用window.location.replace() H5生效
1131
1134
  */
1132
1135
  redirectTo(obj, redirect, notHistory=false) {
1133
- this.specialApiTranform(obj,(res)=>{
1136
+ this.specialApiTransform(obj,(res)=>{
1134
1137
  this.handleTo(res, redirect,notHistory);
1135
1138
  })
1136
1139
  }
@@ -62,6 +62,11 @@ class Logs {
62
62
  console.error(JSON.stringify({name,errorObj}))
63
63
  }
64
64
 
65
+ setConfig(uid){
66
+ console.warn(`setConfig:${uid}`)
67
+ }
68
+
69
+
65
70
 
66
71
  checkApiHost() {
67
72
  if (typeof getApp !== 'function') return false;