dolphin-weex-bc 0.0.12 → 0.0.13

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 CHANGED
@@ -1,6 +1,11 @@
1
1
 
2
2
  # 升级日志
3
3
 
4
+ ## 0.0.13
5
+
6
+ - [ ! ] 耗材业务组件修改暗黑模式样式
7
+ - [ ! ] date: 2025/10/22
8
+
4
9
  ## 0.0.12
5
10
 
6
11
  - [ ! ] 耗材业务组件增加定制化传参
@@ -2806,8 +2806,12 @@ var MaterialEvent = {
2806
2806
 
2807
2807
  deviceMaterialList: [],
2808
2808
 
2809
+ isDiablo: false,
2810
+
2811
+ isCurrentHome: false,
2812
+
2809
2813
  //批量查询耗材的情况
2810
- getAllMaterialList: function getAllMaterialList(params) {
2814
+ getAllMaterialList: function getAllMaterialList(params, options) {
2811
2815
  var _this6 = this;
2812
2816
 
2813
2817
  return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
@@ -2815,6 +2819,7 @@ var MaterialEvent = {
2815
2819
  while (1) {
2816
2820
  switch (_context2.prev = _context2.next) {
2817
2821
  case 0:
2822
+ if (options.isDiablo) _this6.isDiablo = options.isDiablo;
2818
2823
  return _context2.abrupt('return', new Promise(function () {
2819
2824
  var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(resolve, reject) {
2820
2825
  var homeGroupId, deviceList;
@@ -2866,7 +2871,7 @@ var MaterialEvent = {
2866
2871
  };
2867
2872
  }()));
2868
2873
 
2869
- case 1:
2874
+ case 2:
2870
2875
  case 'end':
2871
2876
  return _context2.stop();
2872
2877
  }
@@ -2874,7 +2879,7 @@ var MaterialEvent = {
2874
2879
  }, _callee2, _this6);
2875
2880
  }))();
2876
2881
  },
2877
- getMaterialList: function getMaterialList(params, isCurrentHome) {
2882
+ getMaterialList: function getMaterialList(params, options) {
2878
2883
  var _this7 = this;
2879
2884
 
2880
2885
  return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
@@ -2882,6 +2887,8 @@ var MaterialEvent = {
2882
2887
  while (1) {
2883
2888
  switch (_context4.prev = _context4.next) {
2884
2889
  case 0:
2890
+ if (options.isDiablo) _this7.isDiablo = options.isDiablo;
2891
+ if (options.isCurrentHome) _this7.isCurrentHome = options.isCurrentHome;
2885
2892
  return _context4.abrupt('return', new Promise(function () {
2886
2893
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(resolve, reject) {
2887
2894
  var deviceList, res;
@@ -2894,7 +2901,7 @@ var MaterialEvent = {
2894
2901
  console.log('进来这里啦11' + JSON.stringify(params));
2895
2902
  deviceList = [];
2896
2903
 
2897
- if (!isCurrentHome) {
2904
+ if (!options.isCurrentHome) {
2898
2905
  _context3.next = 10;
2899
2906
  break;
2900
2907
  }
@@ -2947,7 +2954,7 @@ var MaterialEvent = {
2947
2954
  };
2948
2955
  }()));
2949
2956
 
2950
- case 1:
2957
+ case 3:
2951
2958
  case 'end':
2952
2959
  return _context4.stop();
2953
2960
  }
@@ -3156,8 +3163,9 @@ var MaterialEvent = {
3156
3163
  switch (_context8.prev = _context8.next) {
3157
3164
  case 0:
3158
3165
  tmpcodeList = [];
3159
- circleColorList = ['#F56428', '#FFAA10', '#00A4F2'];
3166
+ circleColorList = _this11.isDiablo ? ['#D35936', '#BE8214', '#0490D3'] : ['#F56428', '#FFAA10', '#00A4F2'];
3160
3167
 
3168
+ console.log('颜色集合:' + JSON.stringify(circleColorList));
3161
3169
  _this11.deviceMaterialList.forEach(function (item) {
3162
3170
  var device = deviceList.findIndex(function (it) {
3163
3171
  return item.applianceCode == it.deviceId;
@@ -3180,6 +3188,8 @@ var MaterialEvent = {
3180
3188
  tmpcodeList.push(it.serviceSupport.washingService.productCode);
3181
3189
  }
3182
3190
  var percent = it.percent ? it.percent : Math.ceil(_this11.floatMul(_this11.floatDiv(it.remainingValue, it.total), 100));
3191
+
3192
+ chartData.incompletedColor = _this11.isDiablo ? '#2b2f32' : '#ffffff';
3183
3193
  it.chartData = _extends({}, chartData, {
3184
3194
  progressCounter: percent,
3185
3195
  completedColor: circleColorList[it.remainingStatus],
@@ -3199,7 +3209,7 @@ var MaterialEvent = {
3199
3209
  console.log('codeList9999===1' + JSON.stringify(codeList));
3200
3210
 
3201
3211
  if (codeList.length) {
3202
- _context8.next = 8;
3212
+ _context8.next = 9;
3203
3213
  break;
3204
3214
  }
3205
3215
 
@@ -3207,98 +3217,98 @@ var MaterialEvent = {
3207
3217
  _this11.handleMaterialSeviceType();
3208
3218
  return _context8.abrupt('return');
3209
3219
 
3210
- case 8:
3220
+ case 9:
3211
3221
  skuinfolist = [];
3212
3222
 
3213
3223
  if (!(codeList && codeList.length > 20)) {
3214
- _context8.next = 28;
3224
+ _context8.next = 29;
3215
3225
  break;
3216
3226
  }
3217
3227
 
3218
3228
  groupNum = Math.ceil(codeList.length / 20);
3219
3229
  index = 0;
3220
3230
 
3221
- case 12:
3231
+ case 13:
3222
3232
  if (!(index < groupNum)) {
3223
- _context8.next = 26;
3233
+ _context8.next = 27;
3224
3234
  break;
3225
3235
  }
3226
3236
 
3227
- _context8.prev = 13;
3228
- _context8.next = 16;
3237
+ _context8.prev = 14;
3238
+ _context8.next = 17;
3229
3239
  return _this11.getUpkeepShopInfo(codeList.slice(index * 20, (index + 1) * 20));
3230
3240
 
3231
- case 16:
3241
+ case 17:
3232
3242
  shopList = _context8.sent;
3233
3243
 
3234
3244
  skuinfolist = skuinfolist.concat(shopList);
3235
- _context8.next = 23;
3245
+ _context8.next = 24;
3236
3246
  break;
3237
3247
 
3238
- case 20:
3239
- _context8.prev = 20;
3240
- _context8.t0 = _context8['catch'](13);
3241
- return _context8.abrupt('continue', 23);
3248
+ case 21:
3249
+ _context8.prev = 21;
3250
+ _context8.t0 = _context8['catch'](14);
3251
+ return _context8.abrupt('continue', 24);
3242
3252
 
3243
- case 23:
3253
+ case 24:
3244
3254
  index++;
3245
- _context8.next = 12;
3255
+ _context8.next = 13;
3246
3256
  break;
3247
3257
 
3248
- case 26:
3249
- _context8.next = 36;
3258
+ case 27:
3259
+ _context8.next = 37;
3250
3260
  break;
3251
3261
 
3252
- case 28:
3253
- _context8.prev = 28;
3254
- _context8.next = 31;
3262
+ case 29:
3263
+ _context8.prev = 29;
3264
+ _context8.next = 32;
3255
3265
  return _this11.getUpkeepShopInfo(codeList);
3256
3266
 
3257
- case 31:
3267
+ case 32:
3258
3268
  skuinfolist = _context8.sent;
3259
- _context8.next = 36;
3269
+ _context8.next = 37;
3260
3270
  break;
3261
3271
 
3262
- case 34:
3263
- _context8.prev = 34;
3264
- _context8.t1 = _context8['catch'](28);
3272
+ case 35:
3273
+ _context8.prev = 35;
3274
+ _context8.t1 = _context8['catch'](29);
3265
3275
 
3266
- case 36:
3276
+ case 37:
3267
3277
 
3268
3278
  console.log('获取到的商品信息:' + JSON.stringify(skuinfolist));
3269
3279
 
3270
3280
  if (!(skuinfolist.length > 0)) {
3271
- _context8.next = 48;
3281
+ _context8.next = 49;
3272
3282
  break;
3273
3283
  }
3274
3284
 
3275
- _context8.prev = 38;
3276
- _context8.next = 41;
3285
+ _context8.prev = 39;
3286
+ _context8.next = 42;
3277
3287
  return _this11.handleGoodsInfoNewSkuId(skuinfolist);
3278
3288
 
3279
- case 41:
3280
- _context8.next = 45;
3289
+ case 42:
3290
+ _context8.next = 46;
3281
3291
  break;
3282
3292
 
3283
- case 43:
3284
- _context8.prev = 43;
3285
- _context8.t2 = _context8['catch'](38);
3293
+ case 44:
3294
+ _context8.prev = 44;
3295
+ _context8.t2 = _context8['catch'](39);
3286
3296
 
3287
- case 45:
3297
+ case 46:
3288
3298
  _this11.setMaterialGoodInfo(skuinfolist);
3289
- _context8.next = 49;
3299
+ _context8.next = 50;
3290
3300
  break;
3291
3301
 
3292
- case 48:
3302
+ case 49:
3293
3303
  //此时如果有活动链接就取活动链接
3294
3304
  _this11.handleMaterialSeviceType();
3295
3305
 
3296
- case 49:
3306
+ case 50:
3297
3307
  case 'end':
3298
3308
  return _context8.stop();
3299
3309
  }
3300
3310
  }
3301
- }, _callee8, _this11, [[13, 20], [28, 34], [38, 43]]);
3311
+ }, _callee8, _this11, [[14, 21], [29, 35], [39, 44]]);
3302
3312
  }))();
3303
3313
  },
3304
3314
 
@@ -3544,15 +3554,14 @@ var MaterialEvent = {
3544
3554
  var type = item.remainingStatus;
3545
3555
  var percent = type == 2 ? 0.4 : 0.05;
3546
3556
  var percentTxt = type == 2 ? '充足' : '不足';
3547
- var textColorList = ['#F56428', '#F56428', '#00A4F2'];
3548
- var frontColorList = ['#F56428', '#F56428', '#9fdaf5'];
3549
- var backColorList = ['#fc9791', '#fc9791', '#c7e8f7'];
3550
-
3557
+ var textColorList = this.isDiablo ? ['#D35926', '#D35926', '#0490D3'] : ['#F56428', '#F56428', '#00A4F2'];
3558
+ var frontColorList = this.isDiablo ? ['#D35926', '#D35926', '#ADE0F6'] : ['#F56428', '#F56428', '#9fdaf5'];
3559
+ var backColorList = this.isDiablo ? ['#FCA6A1', '#FCA6A1', '#CFEBF8'] : ['#fc9791', '#fc9791', '#c7e8f7'];
3551
3560
  return {
3552
3561
  frontWaveColor: frontColorList[type], //已完成后的颜色默认#FFFFFF
3553
3562
  backWaveColor: backColorList[type],
3554
3563
  animate: true,
3555
- backgroundColor: '#FFFFFF', //背景色 默认为#000000
3564
+ backgroundColor: this.isDiablo ? '#1E2326' : '#FFFFFF', //背景色 默认为#000000
3556
3565
  progress: percent, // 进度 [0 ... 1]
3557
3566
  textFont: 11, //字体大小,默认为14
3558
3567
  text: percentTxt, //文本 默认为空
@@ -62575,6 +62584,25 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
62575
62584
  //
62576
62585
  //
62577
62586
  //
62587
+ //
62588
+ //
62589
+ //
62590
+ //
62591
+ //
62592
+ //
62593
+ //
62594
+ //
62595
+ //
62596
+ //
62597
+ //
62598
+ //
62599
+ //
62600
+ //
62601
+ //
62602
+ //
62603
+ //
62604
+ //
62605
+ //
62578
62606
 
62579
62607
  var globalEvent = weex.requireModule('globalEvent');
62580
62608
  var animation = weex.requireModule('animation');
@@ -62630,27 +62658,7 @@ exports.default = {
62630
62658
  data: function data() {
62631
62659
  return {
62632
62660
  deviceMaterialList: this.data,
62633
- isIos: weex.config.env.platform == 'iOS' ? true : false,
62634
- chartData: {
62635
- completedColor: '#00a4f2', //环形进度条未完成后的颜色默认#267AFF
62636
- incompletedColor: '#f9f9f9', //环形进度条未完成后的颜色,默认透明
62637
- thickness: 3, //环形进度条宽度,默认4
62638
- cornerRadius: 44, //环形的半径,默认是width/2
62639
- totalCounter: 100, //环形进度条的最大值,默认是360
62640
- progressCounter: 80, //设置进度值,默认是从0-360, 默认为0
62641
- autoProgress: false, //设置是否需要自动执行环形进度,默认false, 如果设置为true,则每秒进度值+1操作
62642
- clockwise: false, //环形自动执行进度的方向,默认是true,即顺时针方向,false为逆时针方向
62643
- startingSlice: 360, //环形进度开始的起始位置,当totalCounter为360的时候,0: 0点钟位置起点,90:3点钟位置起点 180:6点钟位置起点
62644
- pointShow: false, //环形进度中的进度球是否需要显示,默认不显示
62645
- pointRadius: 8, //默认是环形进度宽度的一半
62646
- pointColor: '#FFFFFF', //环形进度中的进度球颜色
62647
- duration: 1000
62648
- },
62649
- arrowIcon: _icon2.default.icon_arrow,
62650
- from: '',
62651
- homegroupId: '',
62652
- applianceCode: '',
62653
- deviceInfo: {}
62661
+ arrowIcon: _icon2.default.icon_arrow
62654
62662
  };
62655
62663
  },
62656
62664
 
@@ -62723,7 +62731,9 @@ exports.default = {
62723
62731
  case 0:
62724
62732
  _context2.prev = 0;
62725
62733
  _context2.next = 3;
62726
- return _index2.default.getAllMaterialList(_this3.materialParams);
62734
+ return _index2.default.getAllMaterialList(_this3.materialParams, {
62735
+ isDiablo: _this3.isDiablo
62736
+ });
62727
62737
 
62728
62738
  case 3:
62729
62739
  _this3.deviceMaterialList = _context2.sent;
@@ -62759,7 +62769,10 @@ exports.default = {
62759
62769
  case 0:
62760
62770
  _context3.prev = 0;
62761
62771
  _context3.next = 3;
62762
- return _index2.default.getMaterialList(_this4.materialParams, _this4.isCurrentHome);
62772
+ return _index2.default.getMaterialList(_this4.materialParams, {
62773
+ isDiablo: _this4.isDiablo,
62774
+ isCurrentHome: _this4.isCurrentHome
62775
+ });
62763
62776
 
62764
62777
  case 3:
62765
62778
  _this4.deviceMaterialList = _context3.sent;
@@ -62786,7 +62799,7 @@ exports.default = {
62786
62799
  }))();
62787
62800
  },
62788
62801
  setWavePercent: function setWavePercent(item) {
62789
- _index2.default.setWavePercent(item);
62802
+ return _index2.default.setWavePercent(item);
62790
62803
  },
62791
62804
 
62792
62805
 
@@ -68096,6 +68109,46 @@ module.exports = {
68096
68109
  "fontSize": "24",
68097
68110
  "color": "#8E969B"
68098
68111
  },
68112
+ "title-txt2-user1": {
68113
+ "fontSize": "22",
68114
+ "color": "#797C7E"
68115
+ },
68116
+ "title-txt2-user1-1": {
68117
+ "fontSize": "22",
68118
+ "color": "#303538"
68119
+ },
68120
+ "title-txt2-user2": {
68121
+ "fontSize": "22",
68122
+ "color": "#8E969B"
68123
+ },
68124
+ "title-txt2-user3": {
68125
+ "fontSize": "24",
68126
+ "color": "#797C7E"
68127
+ },
68128
+ "title-txt2-user3-3": {
68129
+ "fontSize": "24",
68130
+ "color": "#303538"
68131
+ },
68132
+ "title-txt2-user4": {
68133
+ "fontSize": "24",
68134
+ "color": "#8E969B"
68135
+ },
68136
+ "title-txt2-user-n1": {
68137
+ "fontSize": "22",
68138
+ "color": "#D35926"
68139
+ },
68140
+ "title-txt2-user-n2": {
68141
+ "fontSize": "22",
68142
+ "color": "#F56428"
68143
+ },
68144
+ "title-txt2-user-n3": {
68145
+ "fontSize": "24",
68146
+ "color": "#D35926"
68147
+ },
68148
+ "title-txt2-user-n4": {
68149
+ "fontSize": "24",
68150
+ "color": "#F56428"
68151
+ },
68099
68152
  "title-icon-isScale": {
68100
68153
  "width": "81",
68101
68154
  "height": "81"
@@ -68107,9 +68160,7 @@ module.exports = {
68107
68160
  "color": "#CFCFD0"
68108
68161
  },
68109
68162
  "title-txt2-user-isScale": {
68110
- "fontSize": "22",
68111
- "maxWidth": "340",
68112
- "backgroundColor": "#ff0000"
68163
+ "fontSize": "22"
68113
68164
  },
68114
68165
  "title-txt2-user-isDiablo": {
68115
68166
  "color": "#797C7E"
@@ -73965,7 +74016,8 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
73965
74016
  staticClass: ["material-list"],
73966
74017
  style: {
73967
74018
  width: _vm.width + 'px',
73968
- 'background-color': _vm.isDiablo ? '#101315' : _vm.needBackground ? '#fff' : '#F6F7F9'
74019
+ 'background-color': _vm.isDiablo ? '#101315' : _vm.needBackground ? '#fff' : '#F6F7F9',
74020
+ 'margin-bottom': _vm.isScale ? '15px' : '34px'
73969
74021
  }
73970
74022
  }, [(item.consumables && item.consumables.length > 0) ? [_c('div', {
73971
74023
  class: ['material-title', _vm.isDiablo && 'material-title-isDiablo']
@@ -73988,11 +74040,31 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
73988
74040
  staticClass: ["title-txt2-o3"]
73989
74041
  }, [_vm._v(_vm._s(item.deviceInfo.roomName))]) : (!_vm.isScale && !_vm.isDiablo) ? _c('text', {
73990
74042
  staticClass: ["title-txt2-o4"]
73991
- }, [_vm._v(_vm._s(item.deviceInfo.roomName))]) : _vm._e(), _c('text', {
73992
- staticClass: ["title-txt2-user"]
73993
- }, [_vm._v(" | ")]), _c('text', {
73994
- class: ['title-txt2-user', item.deviceInfo.isOnline != 1 && 'title-txt3']
73995
- }, [_vm._v(_vm._s(item.deviceInfo.isOnline == 1 ? '在线' : '离线'))])])])]), _vm._l((item.consumables), function(it) {
74043
+ }, [_vm._v(_vm._s(item.deviceInfo.roomName))]) : _vm._e(), (_vm.isScale && _vm.isDiablo) ? _c('text', {
74044
+ staticClass: ["title-txt2-user1-1"]
74045
+ }, [_vm._v(" | ")]) : (_vm.isScale) ? _c('text', {
74046
+ staticClass: ["title-txt2-user2"]
74047
+ }, [_vm._v(" | ")]) : (_vm.isDiablo) ? _c('text', {
74048
+ staticClass: ["title-txt2-user3-3"]
74049
+ }, [_vm._v(" | ")]) : (!_vm.isScale && !_vm.isDiablo) ? _c('text', {
74050
+ staticClass: ["title-txt2-user4"]
74051
+ }, [_vm._v(" | ")]) : _vm._e(), (item.deviceInfo.isOnline == 1) ? [(_vm.isScale && _vm.isDiablo) ? _c('text', {
74052
+ staticClass: ["title-txt2-user1"]
74053
+ }, [_vm._v("在线")]) : (_vm.isScale) ? _c('text', {
74054
+ staticClass: ["title-txt2-user2"]
74055
+ }, [_vm._v("在线")]) : (_vm.isDiablo) ? _c('text', {
74056
+ staticClass: ["title-txt2-user3"]
74057
+ }, [_vm._v("在线")]) : (!_vm.isScale && !_vm.isDiablo) ? _c('text', {
74058
+ staticClass: ["title-txt2-user4"]
74059
+ }, [_vm._v("在线")]) : _vm._e()] : [(_vm.isScale && _vm.isDiablo) ? _c('text', {
74060
+ staticClass: ["title-txt2-user-n1"]
74061
+ }, [_vm._v("离线")]) : (_vm.isScale) ? _c('text', {
74062
+ staticClass: ["title-txt2-user-n2"]
74063
+ }, [_vm._v("离线")]) : (_vm.isDiablo) ? _c('text', {
74064
+ staticClass: ["title-txt2-user-n3"]
74065
+ }, [_vm._v("离线")]) : (!_vm.isScale && !_vm.isDiablo) ? _c('text', {
74066
+ staticClass: ["title-txt2-user-n4"]
74067
+ }, [_vm._v("离线")]) : _vm._e()]], 2)])]), _vm._l((item.consumables), function(it) {
73996
74068
  return _c('div', {
73997
74069
  key: it.consumablesCode
73998
74070
  }, [