dolphin-weex-bc 0.0.6 → 0.0.7

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,5 +1,10 @@
1
1
  # 升级日志
2
2
 
3
+ ## 0.0.7
4
+
5
+ - [ ! ] 10.3新增横向进度条
6
+ - [ ! ] date: 2025/07/02
7
+
3
8
  ## 0.0.6
4
9
 
5
10
  - [ ! ] 修复图片显示问题
@@ -42188,6 +42188,30 @@ function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, a
42188
42188
  //
42189
42189
  //
42190
42190
  //
42191
+ //
42192
+ //
42193
+ //
42194
+ //
42195
+ //
42196
+ //
42197
+ //
42198
+ //
42199
+ //
42200
+ //
42201
+ //
42202
+ //
42203
+ //
42204
+ //
42205
+ //
42206
+ //
42207
+ //
42208
+ //
42209
+ //
42210
+ //
42211
+ //
42212
+ //
42213
+ //
42214
+ //
42191
42215
 
42192
42216
  // import base from './base'
42193
42217
  // import nativeService from './settings/nativeService'
@@ -42201,6 +42225,7 @@ var animation = weex.requireModule('animation');
42201
42225
  var routerModule = weex.requireModule('routerModule');
42202
42226
  var md5 = __webpack_require__(187); // 引入md5
42203
42227
  var stream = weex.requireModule('stream');
42228
+ var dom = weex.requireModule('dom');
42204
42229
  exports.default = {
42205
42230
  components: {
42206
42231
  // DofMinibar,
@@ -42222,7 +42247,11 @@ exports.default = {
42222
42247
  },
42223
42248
  deviceId: {
42224
42249
  type: String,
42225
- default: '177021372139629' // 设备id
42250
+ default: '' // 设备id
42251
+ },
42252
+ columnBoxHeight: {
42253
+ type: Number,
42254
+ default: 1200 // 列展示高度
42226
42255
  }
42227
42256
  },
42228
42257
  data: function data() {
@@ -42301,7 +42330,11 @@ exports.default = {
42301
42330
  applianceCode: '',
42302
42331
  deviceInfo: {},
42303
42332
  notSmartList: [],
42304
- arrowIcon: _icon2.default.icon_arrow
42333
+ arrowIcon: _icon2.default.icon_arrow,
42334
+ recommendList: [],
42335
+ recommendSliderWidth: 0,
42336
+ recommendSliderInnerWidth: 0,
42337
+ recommendSliderInnerLeft: 0
42305
42338
  };
42306
42339
  },
42307
42340
 
@@ -42553,7 +42586,7 @@ exports.default = {
42553
42586
  console.log('耗材余量:' + JSON.stringify(res));
42554
42587
 
42555
42588
  if (!(res.code == 0)) {
42556
- _context2.next = 26;
42589
+ _context2.next = 27;
42557
42590
  break;
42558
42591
  }
42559
42592
 
@@ -42676,8 +42709,9 @@ exports.default = {
42676
42709
  } else {
42677
42710
  _this3.getUpkeepShopInfo(codeList);
42678
42711
  }
42712
+ _this3.getInnerWidth();
42679
42713
 
42680
- case 26:
42714
+ case 27:
42681
42715
  case 'end':
42682
42716
  return _context2.stop();
42683
42717
  }
@@ -42844,6 +42878,8 @@ exports.default = {
42844
42878
  } else {
42845
42879
  _this4.getUpkeepShopInfo(codeList);
42846
42880
  }
42881
+
42882
+ _this4.getInnerWidth();
42847
42883
  }
42848
42884
 
42849
42885
  case 3:
@@ -43233,6 +43269,25 @@ exports.default = {
43233
43269
  needNavi: '1'
43234
43270
  }
43235
43271
  });
43272
+ },
43273
+ scrollEvent1: function scrollEvent1(e) {
43274
+ // console.log('scrollEvent===' + JSON.stringify(e))
43275
+ this.recommendSliderInnerLeft = -(32 / this.recommendSliderWidth) * e.contentOffset.x;
43276
+ console.log('recommendSliderInnerLeft===' + this.recommendSliderInnerLeft);
43277
+ },
43278
+ getInnerWidth: function getInnerWidth() {
43279
+ var _this8 = this;
43280
+
43281
+ console.log('进来了获取宽度0000');
43282
+
43283
+ setTimeout(function () {
43284
+ dom.getComponentRect(_this8.$refs.recommendBox, function (data) {
43285
+ _this8.recommendSliderWidth = data.size.width;
43286
+ _this8.recommendSliderInnerWidth = 32;
43287
+ console.log('recommendSliderWidth====' + _this8.recommendSliderWidth);
43288
+ console.log('recommendSliderInnerWidth====' + _this8.recommendSliderInnerWidth);
43289
+ });
43290
+ }, 200);
43236
43291
  }
43237
43292
  }
43238
43293
  };
@@ -44064,7 +44119,8 @@ module.exports = {
44064
44119
  "alignItems": "center",
44065
44120
  "flexGrow": 1,
44066
44121
  "position": "relative",
44067
- "backgroundColor": "#f9f9f9"
44122
+ "backgroundColor": "#f9f9f9",
44123
+ "borderRadius": "32"
44068
44124
  },
44069
44125
  "title-bg1": {
44070
44126
  "position": "fixed",
@@ -44393,9 +44449,9 @@ module.exports = {
44393
44449
  },
44394
44450
  "slider": {
44395
44451
  "width": "686",
44396
- "height": "272",
44452
+ "height": "232",
44397
44453
  "borderRadius": "32",
44398
- "marginBottom": "20"
44454
+ "flexDirection": "row"
44399
44455
  },
44400
44456
  "frame": {
44401
44457
  "width": "700",
@@ -44403,10 +44459,10 @@ module.exports = {
44403
44459
  "position": "relative"
44404
44460
  },
44405
44461
  "consumables-list": {
44406
- "height": "272",
44407
- "paddingTop": "22",
44462
+ "height": "232",
44463
+ "paddingTop": "0",
44408
44464
  "paddingRight": "10",
44409
- "paddingBottom": "22",
44465
+ "paddingBottom": "0",
44410
44466
  "paddingLeft": "10",
44411
44467
  "display": "flex",
44412
44468
  "flexDirection": "row",
@@ -44415,7 +44471,7 @@ module.exports = {
44415
44471
  },
44416
44472
  "material-item2": {
44417
44473
  "width": "100",
44418
- "height": "176",
44474
+ "height": "136",
44419
44475
  "paddingTop": 0,
44420
44476
  "paddingRight": "12",
44421
44477
  "paddingBottom": 0,
@@ -44471,6 +44527,39 @@ module.exports = {
44471
44527
  "itemColor": "rgba(0,164,242,0.5)",
44472
44528
  "itemSelectedColor": "#00A4F2",
44473
44529
  "itemSize": "12"
44530
+ },
44531
+ "middleBox": {
44532
+ "width": "686",
44533
+ "height": "272",
44534
+ "paddingTop": "32",
44535
+ "backgroundColor": "#ffffff",
44536
+ "position": "relative",
44537
+ "borderRadius": "32",
44538
+ "marginBottom": "20"
44539
+ },
44540
+ "recommendBox": {
44541
+ "height": "232",
44542
+ "display": "flex",
44543
+ "flexDirection": "row"
44544
+ },
44545
+ "recommendSlider": {
44546
+ "display": "flex",
44547
+ "flexDirection": "row",
44548
+ "justifyContent": "center",
44549
+ "marginTop": "-32"
44550
+ },
44551
+ "recommendSliderOut": {
44552
+ "width": "48",
44553
+ "height": "8",
44554
+ "background": "#E5E8ED",
44555
+ "borderRadius": "4"
44556
+ },
44557
+ "recommendSliderInner": {
44558
+ "background": "#00a4f2",
44559
+ "borderRadius": "4",
44560
+ "height": "8",
44561
+ "position": "absolute",
44562
+ "top": 0
44474
44563
  }
44475
44564
  }
44476
44565
 
@@ -50170,11 +50259,20 @@ module.exports.render._withStripped = true
50170
50259
  module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
50171
50260
  return _c('div', {
50172
50261
  staticClass: ["material-wrapper"]
50173
- }, [(_vm.layoutMode == 'row') ? _c('slider', {
50262
+ }, [(_vm.layoutMode == 'row') ? _c('div', {
50263
+ ref: "recommend",
50264
+ staticClass: ["middleBox"]
50265
+ }, [_c('scroller', {
50174
50266
  staticClass: ["slider"],
50175
50267
  attrs: {
50176
- "showIndicators": true
50268
+ "scrollDirection": "horizontal"
50269
+ },
50270
+ on: {
50271
+ "scroll": _vm.scrollEvent1
50177
50272
  }
50273
+ }, [_c('div', {
50274
+ ref: "recommendBox",
50275
+ staticClass: ["recommendBox"]
50178
50276
  }, [(_vm.dealDeviceMaterialList[0].consumables && _vm.dealDeviceMaterialList[0].consumables.length > 0) ? [_vm._l((_vm.getSliderList), function(item, index) {
50179
50277
  return _c('div', {
50180
50278
  key: index,
@@ -50210,6 +50308,11 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
50210
50308
  staticClass: ["progresscycle1"],
50211
50309
  attrs: {
50212
50310
  "data": it.chartData
50311
+ },
50312
+ on: {
50313
+ "progresscycleTap": function($event) {
50314
+ _vm.goDetail(it, _vm.dealDeviceMaterialList[0])
50315
+ }
50213
50316
  }
50214
50317
  })], 1)] : [_vm._m(0, true)]] : [_vm._m(1, true)]], 2), _c('div', {
50215
50318
  staticClass: ["item-right2"]
@@ -50220,11 +50323,24 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
50220
50323
  }))
50221
50324
  }), _c('indicator', {
50222
50325
  staticClass: ["indicator"]
50223
- })] : _vm._e()], 2) : _c('scroller', {
50326
+ })] : _vm._e()], 2)]), _c('div', {
50327
+ staticClass: ["recommendSlider"]
50328
+ }, [_c('div', {
50329
+ staticClass: ["recommendSliderOut"]
50330
+ }, [_c('div', {
50331
+ staticClass: ["recommendSliderInner"],
50332
+ style: {
50333
+ width: _vm.recommendSliderInnerWidth + 'px',
50334
+ left: _vm.recommendSliderInnerLeft + 'px'
50335
+ }
50336
+ })])])]) : _c('scroller', {
50224
50337
  staticClass: ["scroll-wrapper"],
50225
50338
  staticStyle: {
50226
50339
  position: "relative"
50227
50340
  },
50341
+ style: {
50342
+ height: _vm.columnBoxHeight + 'px'
50343
+ },
50228
50344
  attrs: {
50229
50345
  "showScrollbar": "false",
50230
50346
  "loadmoreoffset": "50"
@@ -50271,6 +50387,11 @@ module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c
50271
50387
  staticClass: ["progresscycle1"],
50272
50388
  attrs: {
50273
50389
  "data": it.chartData
50390
+ },
50391
+ on: {
50392
+ "click": function($event) {
50393
+ _vm.goDetail(it, item)
50394
+ }
50274
50395
  }
50275
50396
  })], 1)] : [_vm._m(2, true)]] : [_vm._m(3, true)]], 2), _c('div', {
50276
50397
  staticClass: ["item-right"]