gxd-uni-library-editx 1.0.87-beta8 → 1.0.87

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.87-beta8",
3
+ "version": "1.0.87",
4
4
  "private": false,
5
5
  "description": "聚福宝基础插件专用库",
6
6
  "main": "index.js",
@@ -24,7 +24,7 @@
24
24
  <!--返回上一个界元素-->
25
25
  <view class="xd-custom-bar__fixed-content-icon" @click.stop="back" v-if="!isSlotTopBar">
26
26
  <xd-font-icon
27
- v-if="isTopIcon"
27
+ v-if="noPrevToIndex && showBack && isPrev !== null"
28
28
  :icon="isPrev ? 'iconxiangzuo_xian' : 'iconshouye_mian'"
29
29
  :color="uiTextColor"
30
30
  :size="uiIconSize"
@@ -157,7 +157,7 @@
157
157
  // #ifdef H5
158
158
  return isThirdLogin().isICB && !this.isPrev
159
159
  // #endif
160
- // #ifdef MP-WEIXIN
160
+ // #ifndef H5
161
161
  return false
162
162
  // #endif
163
163
  },
@@ -177,18 +177,6 @@
177
177
  return bgc;
178
178
 
179
179
  },
180
- isTopIcon(){
181
- // #ifdef H5
182
- return this.noPrevToIndex && this.showBack && this.isPrev !== null
183
- // #endif
184
- // #ifdef MP-WEIXIN
185
- //自定义导航并且不显示导航设置
186
- if(this.$parent.navigationStyle && !this.showBack) {
187
- return this.noPrevToIndex && this.isPrev !== null
188
- }
189
- return this.noPrevToIndex && this.showBack && this.isPrev !== null
190
- // #endif
191
- }
192
180
  },
193
181
  created(){
194
182
  this.noPrevToIndex = this.$settings['noPrevPageToIndex'] === undefined ? false : this.$settings['noPrevPageToIndex'];
@@ -282,14 +270,6 @@
282
270
  },
283
271
 
284
272
  back(){
285
- // #ifdef MP-WEIXIN
286
- //自定义导航并且不显示导航设置
287
- if(this.$parent.navigationStyle && !this.showBack) {
288
- this.$xdUniHelper.navigateBack();
289
- return;
290
- }
291
- // #endif
292
-
293
273
  if(!this.showBack) return;
294
274
 
295
275
  //临时兼容
@@ -81,34 +81,9 @@
81
81
  // #endif
82
82
 
83
83
  // #ifndef H5
84
- this.vhtml = this.getMpHtml(this.html);
84
+ this.vhtml = this.html;
85
85
  // #endif
86
86
  }
87
- },
88
- methods:{
89
- getMpHtml(html){
90
- html = html.replace(/<img[^>]*>/gi, function(match, capture) {
91
- match = match.replace(/style="[^"]+"/gi, '').replace(/style='[^']+'/gi, '');
92
- match = match.replace(/width="[^"]+"/gi, '').replace(/width='[^']+'/gi, '');
93
- match = match.replace(/height="[^"]+"/gi, '').replace(/height='[^']+'/gi, '');
94
- return match;
95
- });
96
- html = html.replace(/style="[^"]+"/gi, function(match, capture) {
97
- match = match
98
- .replace(/<p>/gi, '<p class="p_class">')
99
- .replace(/width:[^;]+;/gi, 'max-width:100%;')
100
- .replace(/width:[^;]+;/gi, 'max-width:100%;');
101
- return match;
102
- });
103
- html = html.replace(/<br[^>]*\/>/gi, "");
104
- html = html.replace(/<a>/gi, '<a class="a_class "');
105
- html= html.replace(/<li>/gi, '<li class="li_class "');
106
- html = html.replace(/\<p/gi, '<p class="p_class "');
107
- html= html.replace(/\<span/gi, '<span class="span_class "');
108
- html = html.replace(/<div/gi, '<div class="div_class "');
109
- html = html.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block;margin-top:0;margin-bottom:0;"');
110
- return html;
111
- }
112
87
  }
113
88
  }
114
89
  </script>
@@ -288,13 +288,7 @@
288
288
 
289
289
  startAnimation : false, //开始动画效果
290
290
  doneAnimation: false, //完成动画效果
291
- // #ifdef H5
292
- defaultImage: '//img.jufubao.cn/common/empty.png?ver=1',
293
- //#endif
294
- //#ifdef MP-WEIXIN
295
- defaultImage: 'https://img.jufubao.cn/common/empty.png?ver=1',
296
- //#endif
297
-
291
+ defaultImage: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2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NjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PliHXlsAAAAQSURBVHjaYvj//z8DQIABAAj8Av7bok0WAAAAAElFTkSuQmCC',
298
292
  bgImage: '',
299
293
  barBgColor: '', //bar背景颜色
300
294
  systemInfoSyn: null,
@@ -331,13 +325,7 @@
331
325
  //底部是否插槽模式
332
326
  isFooterSolt: true,
333
327
  wiewType: false,
334
-
335
- // #ifdef H5
336
328
  loadingUrl: '//img.jufubao.cn/loading-block.jpg?v=1',
337
- //#endif
338
- //#ifdef MP-WEIXIN
339
- loadingUrl: 'https://img.jufubao.cn/loading-block.jpg?v=1',
340
- //#endif
341
329
 
342
330
  //自定义背景
343
331
  customBg: null,
@@ -41,12 +41,7 @@
41
41
  paddingBottom: 0,
42
42
  uiHeight: 0,
43
43
 
44
- // #ifdef H5
45
- image: '//img.jufubao.cn/common/nodata.png?v=1',
46
- //#endif
47
- //#ifdef MP-WEIXIN
48
- image: 'https://img.jufubao.cn/common/nodata.png?v=1',
49
- //#endif
44
+ image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKwAAACACAMAAAChgXKnAAACB1BMVEUAAACZpbmXo7fr7vbY3+nr7/bZ3+rZ3+ra4Orc4urZ3+rd5OzZ4uvZ3+uZpLja4OvZ4OvZ3+ri4u3Z3+rZ3+rZ3+rZ3+ra3+rZ3+rZ3+vZ3+ra4OuZpbjZ3+va3+vZ3+rX3ena4Ova3+rb3unZ4OjZ3+qZpLjZ3+ra4OvZ4OqZpLnZ3+ra3+rZ3+ra4OrZ4Ora3+vb4OuZpLjZ4OuZpLnZ3ura3+rZ3+ra4Ord4+2YpLri4vHs7/Xa4Ora4OrZ4Ors7vXZ4Ova3+rr7vXZ4OnW3+ibo7jn8/nX1+Hs7/br7vXs7/Xa4evZ3+rs7vbs7/WapLjs7/bs7/aZpLmYpbfb4OqYorXr7/eYo7mgoL7a3+vZ3+u3wNDf5O3r7vXC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Wx+L2C52AtPI51nZWiJ2H/S9tz4W0F+oEWm5Z38K/Zirwvrqu9+tPSUwNpPrAmZUaGyj+Y24+ujAjVpbgIlCI53DIrcBcbFa443wlSrGUSsZmDQ05BL6aUzDEDW9qK2mDOrIAp+daGikvuU7EaaWmj3mGFS/2kcNu9+jcEPt47Wdb3W9mYQxyjTqnA06qOodBkgEVQJK4qaMK2Bx+yvHqEpz1WU7A35SbSgBq2Vq2tRBq67soYxB7WGYoDQK5fihBrlHvgxUV751tVIdb1C1GAKloByszZp6Z5MJWmGSFtfZF1TtqhjQlbkMpeiqo1q9b5D6Y2fdyMxYMLApOx6l6PpEJ6jq9a5j+3BA7byUWDATVpiHMrwZ7f1UXzVMW+vrWn46kWkP2M+nwUrE+iicLs0BtS/BWljRGvwnF+PS12YkJBYUrStOzYrOTgu328PDd6e9yI6JXp+VmlpSfGTdjqLCguSkbQlbM+LXRsVvK9hRkhWTZg9bSSc4BTxyY5KWYtBsWwqiSxdEbIJJu7Bkkr85GrshJWMVclq1dmf2AlAJql0CwYgNT03Ov4TGbEvzk7PsESDK+dUWS2udHJYWnbpu8dao9HlxkXk2zItLj08sTIkOP6OpFFx7CkLb3oVq62oIdX61zyHknf1TexpmAFa7cvr/PA2XjZ7ahTOk1WPRIvD3Gy818fGDvb6HAAAAAElFTkSuQmCC',
50
45
  }
51
46
  },
52
47
 
@@ -37,7 +37,7 @@
37
37
  },
38
38
  width: {
39
39
  type: [Number, String],
40
- default: 180
40
+ default: 210
41
41
  },
42
42
  min: {
43
43
  type: Number | String,
@@ -169,20 +169,17 @@
169
169
  };
170
170
  </script>
171
171
  <style lang="scss" scoped>
172
- $box-height: 50rpx;
172
+ $box-height: 64rpx;
173
173
  /* #ifdef APP-NVUE */
174
174
  $box-line-height: 35px;
175
175
  /* #endif */
176
- $box-line-height: 42rpx;
177
- $box-width: 50rpx;
176
+ $box-line-height: 40rpx;
177
+ $box-width: 70rpx;
178
178
 
179
179
  .uni-numbox {
180
-
181
- /* #ifndef APP-NVUE */
182
180
  display: flex;
183
181
  justify-content: space-between;
184
182
  align-items: center;
185
- /* #endif */
186
183
  flex-direction: row;
187
184
  height: $box-height;
188
185
  line-height: $box-height;
@@ -208,6 +205,7 @@
208
205
  flex: 1;
209
206
  width: 0;
210
207
 
208
+
211
209
  &.disabled {
212
210
  color: #bbb;
213
211
  }
@@ -30,6 +30,7 @@
30
30
  width: width,
31
31
  opacity: disabled ? 0.8: 1
32
32
  }"
33
+
33
34
  @click="bindPickerClick(true)"
34
35
  >
35
36
  <text
@@ -38,7 +39,8 @@
38
39
  'margin': margin,
39
40
  'color': color
40
41
  }"
41
- >{{getSelectName}}</text>
42
+ >{{getSelectName}}
43
+ </text>
42
44
  <view>
43
45
  <slot :status="isUp">
44
46
  <xd-font-icon
@@ -47,6 +49,7 @@
47
49
  :color="color"
48
50
  ></xd-font-icon>
49
51
  </slot>
52
+
50
53
  </view>
51
54
  </view>
52
55
  </view>
@@ -222,11 +225,13 @@
222
225
  list(value) {
223
226
  if (this.mode === 'selector') this.init(value);
224
227
  if (this.mode === 'multiSelector') this.multiInit(value)
225
- },
228
+ }
226
229
  },
227
-
230
+
228
231
  async created() {
229
232
  this.styleMainColor = await getParentsStyle(this.$parent, '$mainColor');
233
+
234
+ console.log('flimTypeList', this.mode)
230
235
  this.uiColor = this.styleMainColor;
231
236
  this.uiFontSize = this.fontSize;
232
237
  if (this.borderColor) this.uiColor = this.borderColor;
package/src/install.js CHANGED
@@ -39,12 +39,6 @@ const install = (Vue, options = {}) => {
39
39
  *
40
40
  */
41
41
  Vue.prototype.$xdConfirm = (obj) => {
42
- //#ifdef MP-WEIXIN
43
- if(obj.$vm !== undefined && helper.checkVarType(obj.$vm) === 'object') {
44
- if(obj.$vm.styles) obj['styles'] = helper.cloneDeep(obj.$vm.styles);
45
- obj.$vm = null;
46
- }
47
- //#endif
48
42
  obj['radius'] = obj['radius'] === undefined ? '10rpx' : obj['radius'];
49
43
  store.commit('setXdInputConfirm', obj);
50
44
  };
@@ -70,12 +64,6 @@ const install = (Vue, options = {}) => {
70
64
  *
71
65
  */
72
66
  Vue.prototype.$xdAlert = (obj) => {
73
- //#ifdef MP-WEIXIN
74
- if(obj.$vm !== undefined && helper.checkVarType(obj.$vm) === 'object') {
75
- if(obj.$vm.styles) obj['styles'] = helper.cloneDeep(obj.$vm.styles);
76
- obj.$vm = null;
77
- }
78
- //#endif
79
67
  obj['radius'] = obj['radius'] === undefined ? '30rpx' : obj['radius'];
80
68
  store.commit('setTips', obj);
81
69
  };
@@ -6,12 +6,13 @@ import getServiceUrl from "@/common/getServiceUrl";
6
6
  export default {
7
7
  data() {
8
8
  return {
9
- colorObj : {},
9
+
10
10
  }
11
11
  },
12
12
 
13
13
  created(){
14
- this.colorObj = this.$colorConfig || getApp().globalData.$colorConfig;
14
+ // console.log(this.$colorConfig)
15
+ // debugger
15
16
  },
16
17
 
17
18
  methods: {
@@ -24,13 +25,13 @@ export default {
24
25
  return result;
25
26
  },
26
27
  getCardThemes(name , disabled='N') {
27
- let colorLen = this.colorObj.cardThemesColor.length;
28
- let imgLen = this.colorObj.cardThemesImage.length;
28
+ let colorLen = this.$colorConfig.cardThemesColor.length;
29
+ let imgLen = this.$colorConfig.cardThemesImage.length;
29
30
  let colorIndex = this.stringToNumber(name) % colorLen;
30
31
  let imgIndex = this.stringToNumber(name) % imgLen;
31
32
  return {
32
- color: disabled === 'N' ? this.colorObj.cardThemesColor[colorIndex]: this.getDisabledColor(),
33
- image: this.colorObj.cardThemesImage[imgIndex],
33
+ color: disabled === 'N' ? this.$colorConfig.cardThemesColor[colorIndex]: this.getDisabledColor(),
34
+ image: this.$colorConfig.cardThemesImage[imgIndex],
34
35
  }
35
36
  },
36
37
  getEntry(codes = [], allEntry = []) {
@@ -57,14 +58,14 @@ export default {
57
58
  return list
58
59
  },
59
60
  getDisabledColor(){
60
- return this.colorObj.disableColor
61
+ return this.$colorConfig.disableColor
61
62
  },
62
63
  getMergBg(disabled = 'Y'){
63
- return disabled === 'Y' ? this.colorObj['mergIcon'][1]
64
- : this.colorObj['mergIcon'][0]
64
+ return disabled === 'Y' ? this.$colorConfig['mergIcon'][1]
65
+ : this.$colorConfig['mergIcon'][0]
65
66
  },
66
67
  getNoData(){
67
- return this.colorObj.nodata
68
+ return this.$colorConfig.nodata
68
69
  }
69
70
  }
70
71
  }
@@ -1,5 +1,4 @@
1
1
  'use strict';
2
-
3
2
  import {Base64} from 'js-base64';
4
3
  import {
5
4
  PLATFORM_PARAM_SETTING
@@ -513,15 +512,14 @@ class Helpers {
513
512
  pathname = url.split('?')[0];
514
513
  search = url.split('?')[1];
515
514
  }
516
- let partReplaceStr = '/$1';
517
- if(/(\/\/|http:\/\/|https:\/\/).+$/.test(url)) partReplaceStr = '$1';
515
+
518
516
  return{
519
517
  source: url,
520
518
  query: search,
521
519
  params: params(search),
522
520
  relative: url,
523
521
  segments: pathname.replace(/^\//, '').split('/'),
524
- path: pathname.replace(/^([^\/])/, partReplaceStr),
522
+ path: pathname.replace(/^([^\/])/, '/$1'),
525
523
  file: (pathname.match(/\/([^\/?#]+)$/i) || [, ''])[1],
526
524
  }
527
525
  //#endif
@@ -814,31 +812,16 @@ class Helpers {
814
812
  }
815
813
 
816
814
  replacePathForDir(url){
817
- let dir = '';
818
- let host = '';
819
- if(store.state.brandInfo) {
820
- dir = store.state.brandInfo.deploy_dir
821
- host = store.state.brandInfo.host;
822
- }
823
-
824
- //#ifdef MP-WEIXIN
825
- //带有应用部署目录处理
826
- if(/@site_domain@\//.test(url)) {
827
- let indexReg = new RegExp(`@site_domain@/${dir}`);
828
- //相同应用处理
829
- if(indexReg.test(url)) {
830
- return url.replace(indexReg,'');
831
- }
832
- //不同应用处理
833
- else{
834
- return `https://${host}${url.replace('@site_domain@','')}`;
835
- }
836
- }
837
- else return url;
815
+ //#ifndef H5
816
+ return url
838
817
  //#endif
839
818
 
840
819
  //#ifdef H5
841
820
  let siteDomain = `${window.location.protocol}//${window.location.host}`;
821
+ let dir = '';
822
+ if(store.state.brandInfo && store.state.brandInfo.deploy_dir) {
823
+ dir = store.state.brandInfo.deploy_dir
824
+ }
842
825
  let reg = new RegExp(`@site_domain@`); //检查是否为站点下其他应用的链接地址
843
826
  let selfReg = new RegExp(`@site_domain@/${dir}`); //检查是否为自己内部链接
844
827
  let relfRedirectReg = new RegExp(`^/${dir}\/.+$`); //检查是否带有内容部署目录地址
@@ -979,7 +962,7 @@ class Helpers {
979
962
  else window.location.href = obj['url'];
980
963
  // #endif
981
964
 
982
- //#ifdef MP-WEIXIN
965
+ //#ifndef H5
983
966
  let fn = 'navigateTo';
984
967
  if (!type) fn = 'redirectTo';
985
968
  console.warn(`webview:/pages/webview/webview?seatUrl=${encodeURIComponent(obj['url'])}`)
@@ -989,16 +972,8 @@ class Helpers {
989
972
  // #endif
990
973
  }
991
974
  else {
992
- console.log(type, obj)
993
- if (type){
994
- //#ifdef H5
995
- console.warn(`${type?'navigateTo.jump': 'redirectTo'}: ${JSON.stringify(obj)}`);
996
- uni.navigateTo(obj);
997
- //#endif
998
- //#ifdef MP-WEIXIN
999
- this.handleWxTo(type, obj)
1000
- //#endif
1001
- }
975
+ console.warn(`${type?'navigateTo.jump': 'redirectTo'}: ${JSON.stringify(obj)}`);
976
+ if (type) uni.navigateTo(obj);
1002
977
  else {
1003
978
  //#ifdef H5
1004
979
  if(notHistory){
@@ -1009,53 +984,16 @@ class Helpers {
1009
984
  }
1010
985
  window.location.replace(`${dir}${obj.url}`);
1011
986
  }
1012
- else{
1013
- console.warn(`${type?'navigateTo.jump': 'redirectTo'}: ${JSON.stringify(obj)}`);
1014
- uni.redirectTo(obj);
1015
- }
987
+ else uni.redirectTo(obj);
1016
988
  // #endif
1017
989
 
1018
- //#ifdef MP-WEIXIN
1019
- this.handleWxTo(type, obj)
990
+ //#ifndef H5
991
+ uni.redirectTo(obj);
1020
992
  // #endif
1021
993
  }
1022
994
  }
1023
995
  }
1024
996
 
1025
- /**
1026
- * @description 微信跳转
1027
- * @param type
1028
- * @param obj {object}
1029
- * @param obj.url {string}
1030
- */
1031
- handleWxTo(type, obj) {
1032
- let fnName = 'navigateTo';
1033
- if (!type) fnName = 'redirectTo';
1034
-
1035
- //带有@site_domain@设置标识
1036
- if(obj.url.indexOf('@site_domain@') === 0) {
1037
- const {host,deploy_dir} = store.state.brandInfo;
1038
- let url = obj.url.replace(/@site_domain@/,'');
1039
- //相同应用
1040
- if(url.indexOf(`/${deploy_dir}/`) === 0){
1041
- obj.url = url.replace(`/${deploy_dir}/`,'/');
1042
- uni[fnName](obj)
1043
- }
1044
- //不同应用
1045
- else {
1046
- url = `https://${host}${url}`;
1047
- console.warn(`webview:/pages/webview/webview?seatUrl=${encodeURIComponent(url)}`)
1048
- uni[fnName]({
1049
- url: `/pages/webview/webview?seatUrl=${Base64.encodeURI(url)}`
1050
- });
1051
- }
1052
-
1053
- }
1054
- else{
1055
- uni[fnName](obj)
1056
- }
1057
- }
1058
-
1059
997
  /**
1060
998
  * @description 返回处理
1061
999
  * @param type {boolean} 跳转类型 true=>navigateTo false=>redirectTo
@@ -1108,7 +1046,7 @@ class Helpers {
1108
1046
  */
1109
1047
  async specialApiTransform(obj, cb){
1110
1048
  let reg = /(-apiuri\/v)/;
1111
- let regHttp = /^(\/\/)|(http:\/\/)|(https:\/\/).+/;
1049
+ let regHttp = /^(\/\/)|(http:\/\/)|(http:\/\/).+/;
1112
1050
  //需要转化的特殊访问地址
1113
1051
  if(reg.test(obj.url)){
1114
1052
  if(!regHttp.test(obj.url)) {
@@ -775,30 +775,6 @@ export function isQrCode($vm,isOpen=true){
775
775
  return false
776
776
  }
777
777
 
778
- /**
779
- * @description 小驼峰,大驼峰 转 数组
780
- * @param str
781
- * @return {*[]}
782
- */
783
- export function spStrToArray(str){
784
- let temp=[]
785
- let reg = /[A-Z]/;
786
- let word = '';
787
- str.split('').map((char, index) => {
788
- if (index === 0) {
789
- word = char.toLocaleLowerCase();
790
- } else {
791
- if (reg.test(char)) {
792
- temp.push(word);
793
- word = char.toLocaleLowerCase();
794
- } else {
795
- word += char;
796
- if (index === (str.length - 1)) temp.push(word);
797
- }
798
- }
799
- });
800
- return temp
801
- }
802
778
 
803
779
 
804
780
 
@@ -66,9 +66,7 @@ class Logs {
66
66
  console.warn(`setConfig:${uid}`)
67
67
  }
68
68
 
69
- setARMSInfo(params, eventName='default'){
70
- console.log('setARMSInfo',eventName, params)
71
- }
69
+
72
70
 
73
71
  checkApiHost() {
74
72
  if (typeof getApp !== 'function') return false;