dolphin-weex-ui 2.4.22 → 2.4.23
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/CHANGELOG.md +5 -0
- package/dist/index.native.js +44 -4
- package/dist/index.native.js.map +1 -1
- package/dist/index.web.js +44 -7
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
- package/packages/dof-result/index.vue +21 -4
- package/packages/utils/index.js +15 -0
package/CHANGELOG.md
CHANGED
package/dist/index.native.js
CHANGED
|
@@ -497,6 +497,21 @@ var Utils = {
|
|
|
497
497
|
}
|
|
498
498
|
return false;
|
|
499
499
|
},
|
|
500
|
+
toNum: function toNum(a) {
|
|
501
|
+
a = a.toString();
|
|
502
|
+
var c = a.split('.');
|
|
503
|
+
var r = ['0000', '000', '00', '0', ''];
|
|
504
|
+
for (var i = 0; i < c.length; i++) {
|
|
505
|
+
var len = c[i].length;
|
|
506
|
+
c[i] = r[len] + c[i];
|
|
507
|
+
}
|
|
508
|
+
var res = c.join('');
|
|
509
|
+
return res;
|
|
510
|
+
},
|
|
511
|
+
compareVersionNew: function compareVersionNew(a) {
|
|
512
|
+
// 判断当前版本是否大于等于比较的版本
|
|
513
|
+
return this.toNum(weex.config.env.appVersion) >= this.toNum(a);
|
|
514
|
+
},
|
|
500
515
|
|
|
501
516
|
/**
|
|
502
517
|
* 分割数组
|
|
@@ -33464,6 +33479,16 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
33464
33479
|
//
|
|
33465
33480
|
//
|
|
33466
33481
|
//
|
|
33482
|
+
//
|
|
33483
|
+
//
|
|
33484
|
+
//
|
|
33485
|
+
//
|
|
33486
|
+
//
|
|
33487
|
+
//
|
|
33488
|
+
//
|
|
33489
|
+
//
|
|
33490
|
+
//
|
|
33491
|
+
//
|
|
33467
33492
|
|
|
33468
33493
|
var _dofButton = __webpack_require__(18);
|
|
33469
33494
|
|
|
@@ -33481,21 +33506,29 @@ var _diablo = __webpack_require__(1);
|
|
|
33481
33506
|
|
|
33482
33507
|
var _diablo2 = _interopRequireDefault(_diablo);
|
|
33483
33508
|
|
|
33509
|
+
var _index = __webpack_require__(2);
|
|
33510
|
+
|
|
33511
|
+
var _index2 = _interopRequireDefault(_index);
|
|
33512
|
+
|
|
33484
33513
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33485
33514
|
|
|
33515
|
+
var defaultPicBaseUrl = function defaultPicBaseUrl(imageName) {
|
|
33516
|
+
return 'meiju://common/emptyImage?imageName=' + imageName;
|
|
33517
|
+
};
|
|
33518
|
+
var isNewVersion = _index2.default.compareVersionNew('11.4.15');
|
|
33486
33519
|
var Types = {
|
|
33487
33520
|
noNetwork: {
|
|
33488
|
-
pic: _imgs2.default['noNetwork'],
|
|
33521
|
+
pic: isNewVersion ? defaultPicBaseUrl('img_empty_02_disconnection') : _imgs2.default['noNetwork'],
|
|
33489
33522
|
content: '网络异常,请检查您的网络设置'
|
|
33490
33523
|
// button: '刷新'
|
|
33491
33524
|
},
|
|
33492
33525
|
noUpdate: {
|
|
33493
|
-
pic: _imgs2.default['noUpdate'],
|
|
33526
|
+
pic: isNewVersion ? defaultPicBaseUrl('img_empty_03_update') : _imgs2.default['noUpdate'],
|
|
33494
33527
|
content: '当前版本较低',
|
|
33495
33528
|
desc: '请更新到最新版APP'
|
|
33496
33529
|
},
|
|
33497
33530
|
noPage: {
|
|
33498
|
-
pic: _imgs2.default['noPage'],
|
|
33531
|
+
pic: isNewVersion ? defaultPicBaseUrl('img_empty_04_content') : _imgs2.default['noPage'],
|
|
33499
33532
|
content: '找不到页面'
|
|
33500
33533
|
},
|
|
33501
33534
|
colmo: {
|
|
@@ -33539,6 +33572,9 @@ exports.default = {
|
|
|
33539
33572
|
}
|
|
33540
33573
|
},
|
|
33541
33574
|
computed: {
|
|
33575
|
+
isNewVersion: function isNewVersion() {
|
|
33576
|
+
return _index2.default.compareVersionNew('11.4.15');
|
|
33577
|
+
},
|
|
33542
33578
|
type_: function type_() {
|
|
33543
33579
|
if (this.type) return this.type;
|
|
33544
33580
|
return this._isColmo ? 'colmo' : 'noPage';
|
|
@@ -46338,6 +46374,10 @@ module.exports = {
|
|
|
46338
46374
|
"width": "320",
|
|
46339
46375
|
"height": "320"
|
|
46340
46376
|
},
|
|
46377
|
+
"result-image-new": {
|
|
46378
|
+
"width": 460,
|
|
46379
|
+
"height": "384"
|
|
46380
|
+
},
|
|
46341
46381
|
"result-content": {
|
|
46342
46382
|
"marginTop": "0",
|
|
46343
46383
|
"alignItems": "center"
|
|
@@ -52154,7 +52194,7 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
|
|
|
52154
52194
|
backgroundColor: _vm.bgColor_
|
|
52155
52195
|
}
|
|
52156
52196
|
}, [_c('image', {
|
|
52157
|
-
|
|
52197
|
+
class: [_vm.isNewVersion ? 'result-image-new' : 'result-image'],
|
|
52158
52198
|
style: _vm.imgStyle,
|
|
52159
52199
|
attrs: {
|
|
52160
52200
|
"ariaHidden": true,
|