dolphin-weex-bc 0.0.42 → 0.0.44

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": "dolphin-weex-bc",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -534,16 +534,16 @@ export default {
534
534
  let type = item.remainingStatus
535
535
  let percentTxt = item.percent
536
536
  let textColorList = ['#F56428', '#FFAA10', '#ffffff']
537
- let frontColorList = ['#fd895c', '#ffd262', '#49c4fc']
538
- let backColorList = ['#f56b35', '#ffb823', '#4baeff']
537
+ let frontColorList = ['#f78353', '#ffbb40', '#33b6f5']
538
+ let backColorList = ['#fbc1a9', '#ffdd9f', '#99dbfa']
539
539
 
540
540
  // 判断显示类型
541
541
  if( item.remainingValueType == 4 ) {
542
542
  percent = item.remainingStatus == 2 ? 0.6 : 0.1
543
543
  percentTxt = type == 2 ? '充足' : '不足'
544
544
  textColorList = ['#FF6A4C', '#FF6A4C', '#ffffff']
545
- frontColorList = ['#fd895c', '#fd895c', '#49c4fc']
546
- backColorList = ['#f56b35', '#f56b35', '#4baeff']
545
+ frontColorList = ['#f78353', '#f78353', '#33b6f5']
546
+ backColorList = ['#fbc1a9', '#fbc1a9', '#99dbfa']
547
547
  }
548
548
 
549
549
  // if( percent > 0.2 && percent <= 0.5 ){
@@ -557,6 +557,7 @@ export default {
557
557
  backgroundColor: '#00000000', //背景色 默认为#000000
558
558
  progress: percent < 0.01 && percent != 0 ? 0.01 : percent, //s 进度 [0 ... 1]
559
559
  showWaveCover: true,
560
+ waveCoverType: 0,
560
561
  textFont: 12, //字体大小,默认为14
561
562
  text: percentTxt, //文本 默认为空
562
563
  textColor: textColorList[type], //文本颜色,默认#FFFFFF
@@ -569,9 +570,9 @@ export default {
569
570
 
570
571
  }else {
571
572
  return {
572
- backgroundColor: '#e9f1ff', //背景色 默认为#000000
573
573
  frontWaveColor: '#e9f1ff', //已完成后的颜色默认#FFFFFF
574
574
  backWaveColor: '#e9f1ff',
575
+ backgroundColor: '#00000000', //背景色 默认为#000000
575
576
  progress: 0,
576
577
  animate: false,
577
578
  text: '', //文本 默认为空
@@ -579,6 +580,18 @@ export default {
579
580
  }
580
581
  },
581
582
 
583
+ showBgco(it){
584
+ let bgcoArr = [this.bgcoOne,this.bgcoTwo,this.bgcoThree]
585
+ if(this.dealDeviceMaterialList[0].deviceInfo.isOnline == 1){
586
+ if(it.remainingValueType == 4){
587
+ bgcoArr = [this.bgcoOne,this.bgcoOne,this.bgcoThree]
588
+ }
589
+ return bgcoArr[it.remainingStatus]
590
+ }else{
591
+ return bgcoArr[2]
592
+ }
593
+ },
594
+
582
595
  showGoodsList() {
583
596
  this.showAddCartPopup = true
584
597
  let trackParam = {
@@ -795,11 +808,6 @@ export default {
795
808
  this.$bridge.trackEvent(trackParam)
796
809
  },
797
810
 
798
- showBgco(item){
799
- const bgcoArr = [this.bgcoOne,this.bgcoTwo,this.bgcoThree]
800
- return bgcoArr[item.remainingStatus]
801
- },
802
-
803
811
  scrollEvent1(e) {
804
812
  // console.log('scrollEvent===' + JSON.stringify(e))
805
813
  console.log('偏移量'+ (this.recommendSliderWidth - (686 + -e.contentOffset.x)))
@@ -2,7 +2,7 @@
2
2
  <dof-popup
3
3
  :show="showAddCartInsidePopup"
4
4
  @dofPopupOverlayClicked="handleAddCartClose"
5
- :height="980"
5
+ :height="880"
6
6
  pos="bottom"
7
7
  :popupColor="isDiablo ? '#1e2326' : ''"
8
8
  >
@@ -1200,6 +1200,11 @@ const MaterialEvent = {
1200
1200
  let textColorList = isDiablo ? ['#D35926', '#D35926', '#0490D3'] : ['#F56428', '#F56428', '#00A4F2']
1201
1201
  let frontColorList = isDiablo ? ['#D35926', '#D35926', '#ADE0F6'] : ['#F56428', '#F56428', '#9fdaf5']
1202
1202
  let backColorList = isDiablo ? ['#FCA6A1', '#FCA6A1', '#CFEBF8'] : ['#fc9791', '#fc9791', '#c7e8f7']
1203
+ let waveCoverType = 0
1204
+ let showWaveCoverTypeArr = [3, 3, 2]
1205
+ if(isDiablo){
1206
+ waveCoverType = showWaveCoverTypeArr[type]
1207
+ }
1203
1208
  return {
1204
1209
  frontWaveColor: frontColorList[type], //已完成后的颜色默认#FFFFFF
1205
1210
  backWaveColor: backColorList[type],
@@ -1207,6 +1212,7 @@ const MaterialEvent = {
1207
1212
  backgroundColor: isDiablo ? '#1E2326' : needBackground ? '#F6F7F9' : '#FFFFFF', //背景色 默认为#000000
1208
1213
  progress: percent, // 进度 [0 ... 1]
1209
1214
  showWaveCover: true,
1215
+ waveCoverType: waveCoverType,
1210
1216
  textFont: this.isScale ? 11 : 12, //字体大小,默认为14
1211
1217
  text: percentTxt, //文本 默认为空
1212
1218
  textColor: textColorList[type], //文本颜色,默认#FFFFFF