dolphin-weex-bc 0.0.49 → 0.0.51

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/dist/index.web.js CHANGED
@@ -4019,7 +4019,7 @@ var MaterialEvent = {
4019
4019
  var _this16 = this;
4020
4020
 
4021
4021
  return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {
4022
- var codeList, skuinfolist, groupNum, index, resSuccessMap, _resSuccessMap, tmpskuIdlist, params, allGoodInfo;
4022
+ var codeList, skuinfolist, groupNum, index, resSuccessMap, _resSuccessMap, tmpskuIdlist, params, allGoodInfo, paramsNum, _index, _allGoodInfo, resAllGoodInfo;
4023
4023
 
4024
4024
  return regeneratorRuntime.wrap(function _callee14$(_context14) {
4025
4025
  while (1) {
@@ -4111,43 +4111,91 @@ var MaterialEvent = {
4111
4111
  _context14.prev = 39;
4112
4112
 
4113
4113
  if (!(params.length > 0)) {
4114
- _context14.next = 45;
4114
+ _context14.next = 69;
4115
4115
  break;
4116
4116
  }
4117
4117
 
4118
- _context14.next = 43;
4118
+ if (!(params && params.length > 40)) {
4119
+ _context14.next = 60;
4120
+ break;
4121
+ }
4122
+
4123
+ paramsNum = Math.ceil(params.length / 40);
4124
+ _index = 0;
4125
+
4126
+ case 44:
4127
+ if (!(_index < paramsNum)) {
4128
+ _context14.next = 58;
4129
+ break;
4130
+ }
4131
+
4132
+ _context14.prev = 45;
4133
+ _context14.next = 48;
4134
+ return _this16.handleSkuDetailListInfo(params.slice(_index * 40, (_index + 1) * 40));
4135
+
4136
+ case 48:
4137
+ resAllGoodInfo = _context14.sent;
4138
+
4139
+ (_allGoodInfo = allGoodInfo).push.apply(_allGoodInfo, _toConsumableArray(resAllGoodInfo));
4140
+ _context14.next = 55;
4141
+ break;
4142
+
4143
+ case 52:
4144
+ _context14.prev = 52;
4145
+ _context14.t2 = _context14['catch'](45);
4146
+ return _context14.abrupt('continue', 55);
4147
+
4148
+ case 55:
4149
+ _index++;
4150
+ _context14.next = 44;
4151
+ break;
4152
+
4153
+ case 58:
4154
+ _context14.next = 68;
4155
+ break;
4156
+
4157
+ case 60:
4158
+ _context14.prev = 60;
4159
+ _context14.next = 63;
4119
4160
  return _this16.handleSkuDetailListInfo(params);
4120
4161
 
4121
- case 43:
4162
+ case 63:
4122
4163
  allGoodInfo = _context14.sent;
4164
+ _context14.next = 68;
4165
+ break;
4166
+
4167
+ case 66:
4168
+ _context14.prev = 66;
4169
+ _context14.t3 = _context14['catch'](60);
4123
4170
 
4171
+ case 68:
4124
4172
  console.log('获取到的全部商品信息1:' + JSON.stringify(allGoodInfo));
4125
4173
 
4126
- case 45:
4127
- _context14.next = 49;
4174
+ case 69:
4175
+ _context14.next = 73;
4128
4176
  break;
4129
4177
 
4130
- case 47:
4131
- _context14.prev = 47;
4132
- _context14.t2 = _context14['catch'](39);
4178
+ case 71:
4179
+ _context14.prev = 71;
4180
+ _context14.t4 = _context14['catch'](39);
4133
4181
 
4134
- case 49:
4182
+ case 73:
4135
4183
  if (!(allGoodInfo.length > 0)) {
4136
- _context14.next = 53;
4184
+ _context14.next = 77;
4137
4185
  break;
4138
4186
  }
4139
4187
 
4140
4188
  return _context14.abrupt('return', _this16.setMaterialGoodInfo(allGoodInfo));
4141
4189
 
4142
- case 53:
4190
+ case 77:
4143
4191
  return _context14.abrupt('return', _this16.handleMaterialSeviceType());
4144
4192
 
4145
- case 54:
4193
+ case 78:
4146
4194
  case 'end':
4147
4195
  return _context14.stop();
4148
4196
  }
4149
4197
  }
4150
- }, _callee14, _this16, [[9, 16], [24, 31], [39, 47]]);
4198
+ }, _callee14, _this16, [[9, 16], [24, 31], [39, 71], [45, 52], [60, 66]]);
4151
4199
  }))();
4152
4200
  },
4153
4201
 
@@ -4377,6 +4425,7 @@ var MaterialEvent = {
4377
4425
  _context20.next = 7;
4378
4426
  return _this20.sendMideaCloundSaleRequest(serviceList.queryBySkuIdList, {
4379
4427
  headParams: {
4428
+ originSystem: "WXApp-meiju",
4380
4429
  userKey: ucAccessToken
4381
4430
  },
4382
4431
  restParams: {
@@ -27870,7 +27919,7 @@ exports = module.exports = __webpack_require__(0)(true);
27870
27919
 
27871
27920
 
27872
27921
  // module
27873
- exports.push([module.i, "\n.indicator[data-v-44f02630] {\n position: absolute;\n item-color: rgba(255, 195, 0, .5);\n item-selected-color: #ffc300;\n item-size: 0.26667rem;\n height: 0.26667rem;\n bottom: 0.32rem;\n}\n.indicator .weex-indicator-item[data-v-44f02630] {\n width: 0.26667rem;\n height: 0.26667rem;\n}\n.indicator .weex-indicator-item.weex-indicator-item-active[data-v-44f02630] {\n background-color: #ffc300;\n}\n.indicator .weex-indicator-item[data-v-44f02630] {\n background-color: rgba(255, 195, 0, .5);\n}\n", "", {"version":3,"sources":["/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-lightbox/index.vue?25abe080","/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-lightbox/<input css 23>","/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-lightbox/<input css 22>","/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-lightbox/<input css 21>"],"names":[],"mappings":";AA6BA;EACA,mBAAA;EACA,kCAAA;EACA,6BAAA;EACA,sBAAA;EACA,mBAAA;EACA,gBAAA;CACA;ACnCA;EACE,kBAAY;EACZ,mBAAa;CACd;ACHD;EACE,0BAA0B;CAC3B;ACFD;EACE,wCAAwC;CACzC","file":"index.vue","sourcesContent":["<template>\n <dof-mask :width=\"width\"\n :height=\"height\"\n aria-hidden=\"true\"\n mask-bg-color=\"transparent\"\n overlay-opacity=\"0.8\"\n :show=\"show\"\n :opacity='opacity'\n :show-close=\"false\"\n @dofMaskSetHidden=\"maskOverlayClick\">\n <slider auto-play=\"false\"\n v-if=\"show\"\n :index=\"index\"\n :interval=\"interval\"\n :style=\"{ height: height + 'px'}\">\n <div v-for=\"(v,index) in imageList\"\n :style=\"{ height: height + 'px'}\"\n :key=\"index\">\n <image resize=\"cover\"\n :src=\"v.src\"\n :style=\"{ height: height + 'px', width: width + 'px'}\"></image>\n </div>\n <indicator class=\"indicator\"\n :style=\"indicatorStyle\"></indicator>\n </slider>\n </dof-mask>\n</template>\n\n<style scoped>\n .indicator {\n position: absolute;\n item-color: rgba(255, 195, 0, .5);\n item-selected-color: #ffc300;\n item-size: 20px;\n height: 20px;\n bottom: 24px;\n }\n</style>\n\n<script>\n import DofMask from '../dof-mask';\n\n export default {\n components: {\n DofMask\n },\n props: {\n width: {\n type: [Number, String],\n default: 750\n },\n height: {\n type: [Number, String],\n default: 750\n },\n show: {\n type: Boolean,\n default: false\n },\n imageList: Array,\n indicatorColor: {\n type: Object,\n default: () => ({\n 'item-color': 'rgba(255, 195, 0, .5)',\n 'item-selected-color': '#ffc300',\n 'item-size': '20px'\n })\n },\n index: {\n type: [Number, String],\n default: 0\n },\n interval: {\n type: [Number, String],\n default: 3000\n },\n opacity: {\n type: [Number, String],\n default: 0.6\n }\n },\n computed: {\n indicatorStyle () {\n return {\n width: this.width + 'px',\n ...this.indicatorColor\n };\n }\n },\n methods: {\n maskOverlayClick () {\n this.$emit('dofLightboxOverlayClicked', {});\n }\n }\n };\n</script>\n","\n.indicator .weex-indicator-item {\n width: 20px;\n height: 20px;\n}","\n.indicator .weex-indicator-item.weex-indicator-item-active {\n background-color: #ffc300;\n}","\n.indicator .weex-indicator-item {\n background-color: rgba(255, 195, 0, .5);\n}"],"sourceRoot":""}]);
27922
+ exports.push([module.i, "\n.indicator[data-v-44f02630] {\n position: absolute;\n item-color: rgba(255, 195, 0, .5);\n item-selected-color: #ffc300;\n item-size: 0.26667rem;\n height: 0.26667rem;\n bottom: 0.32rem;\n}\n.indicator .weex-indicator-item[data-v-44f02630] {\n width: 0.26667rem;\n height: 0.26667rem;\n}\n.indicator .weex-indicator-item.weex-indicator-item-active[data-v-44f02630] {\n background-color: #ffc300;\n}\n.indicator .weex-indicator-item[data-v-44f02630] {\n background-color: rgba(255, 195, 0, .5);\n}\n", "", {"version":3,"sources":["/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-lightbox/index.vue?25abe080","/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-lightbox/<input css 20>","/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-lightbox/<input css 19>","/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-lightbox/<input css 18>"],"names":[],"mappings":";AA6BA;EACA,mBAAA;EACA,kCAAA;EACA,6BAAA;EACA,sBAAA;EACA,mBAAA;EACA,gBAAA;CACA;ACnCA;EACE,kBAAY;EACZ,mBAAa;CACd;ACHD;EACE,0BAA0B;CAC3B;ACFD;EACE,wCAAwC;CACzC","file":"index.vue","sourcesContent":["<template>\n <dof-mask :width=\"width\"\n :height=\"height\"\n aria-hidden=\"true\"\n mask-bg-color=\"transparent\"\n overlay-opacity=\"0.8\"\n :show=\"show\"\n :opacity='opacity'\n :show-close=\"false\"\n @dofMaskSetHidden=\"maskOverlayClick\">\n <slider auto-play=\"false\"\n v-if=\"show\"\n :index=\"index\"\n :interval=\"interval\"\n :style=\"{ height: height + 'px'}\">\n <div v-for=\"(v,index) in imageList\"\n :style=\"{ height: height + 'px'}\"\n :key=\"index\">\n <image resize=\"cover\"\n :src=\"v.src\"\n :style=\"{ height: height + 'px', width: width + 'px'}\"></image>\n </div>\n <indicator class=\"indicator\"\n :style=\"indicatorStyle\"></indicator>\n </slider>\n </dof-mask>\n</template>\n\n<style scoped>\n .indicator {\n position: absolute;\n item-color: rgba(255, 195, 0, .5);\n item-selected-color: #ffc300;\n item-size: 20px;\n height: 20px;\n bottom: 24px;\n }\n</style>\n\n<script>\n import DofMask from '../dof-mask';\n\n export default {\n components: {\n DofMask\n },\n props: {\n width: {\n type: [Number, String],\n default: 750\n },\n height: {\n type: [Number, String],\n default: 750\n },\n show: {\n type: Boolean,\n default: false\n },\n imageList: Array,\n indicatorColor: {\n type: Object,\n default: () => ({\n 'item-color': 'rgba(255, 195, 0, .5)',\n 'item-selected-color': '#ffc300',\n 'item-size': '20px'\n })\n },\n index: {\n type: [Number, String],\n default: 0\n },\n interval: {\n type: [Number, String],\n default: 3000\n },\n opacity: {\n type: [Number, String],\n default: 0.6\n }\n },\n computed: {\n indicatorStyle () {\n return {\n width: this.width + 'px',\n ...this.indicatorColor\n };\n }\n },\n methods: {\n maskOverlayClick () {\n this.$emit('dofLightboxOverlayClicked', {});\n }\n }\n };\n</script>\n","\n.indicator .weex-indicator-item {\n width: 20px;\n height: 20px;\n}","\n.indicator .weex-indicator-item.weex-indicator-item-active {\n background-color: #ffc300;\n}","\n.indicator .weex-indicator-item {\n background-color: rgba(255, 195, 0, .5);\n}"],"sourceRoot":""}]);
27874
27923
 
27875
27924
  // exports
27876
27925
 
@@ -28164,7 +28213,7 @@ exports = module.exports = __webpack_require__(0)(true);
28164
28213
 
28165
28214
 
28166
28215
  // module
28167
- exports.push([module.i, "\n.indicator {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 0.66667rem;\n item-color: rgba(255, 255, 255, 0.5);\n item-selectedcolor: rgba(255, 255, 255, 1);\n item-size: 0.18667rem;\n}\n.indicator .weex-indicator-item {\n width: 0.18667rem;\n height: 0.18667rem;\n}\n.indicator .weex-indicator-item {\n background-color: rgba(255, 255, 255, 0.5);\n}\n.slider {\n /* background-color: #f2f2f2; */\n /* margin-left: 32px; */\n border-radius: 0.21333rem;\n}\n.image {\n border-radius: 0.21333rem;\n /* background-color: #f2f2f2; */\n}\n.div_out {\n border-radius: 0.21333rem;\n position: relative;\n}\n", "", {"version":3,"sources":["/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-swiper/index.vue?3b03a1f1","/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-swiper/<input css 16>","/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-swiper/<input css 15>"],"names":[],"mappings":";AAiCA;EACA,mBAAA;EACA,UAAA;EACA,QAAA;EACA,SAAA;EACA,mBAAA;EACA,qCAAA;EACA,2CAAA;EACA,sBAAA;CACA;ACzCA;EACE,kBAAY;EACZ,mBAAa;CACd;ACHD;EACE,2CAA2C;CAC5C;AFwCD;EACA,gCAAA;EACA,wBAAA;EACA,0BAAA;CACA;AACA;EACA,0BAAA;EACA,gCAAA;CACA;AACA;EACA,0BAAA;EACA,mBAAA;CACA","file":"index.vue","sourcesContent":["<template>\n <div :style=\"{ marginLeft: divLeft, width: imgWidth }\" class=\"div_out\">\n <slider\n class=\"slider\"\n :style=\"sliderStyle\"\n :interval=\"interval\"\n @change=\"change\"\n :auto-play=\"autoplay\"\n :infinite=\"infinite\"\n >\n <div v-for=\"(item, index) in slItems\" :key=\"index\" @click=\"imgClicked(item, index)\">\n <image\n :resize=\"imgResize\"\n :style=\"{ width: imgWidth, height: imgHeight, backgroundColor: imageBgColor }\"\n :src=\"item.url\"\n :placeholder=\"phImgUrl\"\n class=\"image\"\n >\n </image>\n </div>\n <indicator class=\"indicator\" :style=\"indicatorStyle\" v-if=\"showIndicator && !_isColmo\"></indicator>\n </slider>\n <div class=\"indicator-box\" v-if=\"showIndicator && _isColmo\">\n <div\n :class=\"['indicator-item', i === slItems.length - 1 && 'isLast', i == active && 'active']\"\n v-for=\"(item, i) in slItems\"\n :key=\"i\"\n ></div>\n </div>\n </div>\n</template>\n\n<style>\n.indicator {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 50px;\n item-color: rgba(255, 255, 255, 0.5);\n item-selectedcolor: rgba(255, 255, 255, 1);\n item-size: 14px;\n}\n.slider {\n /* background-color: #f2f2f2; */\n /* margin-left: 32px; */\n border-radius: 16px;\n}\n.image {\n border-radius: 16px;\n /* background-color: #f2f2f2; */\n}\n.div_out {\n border-radius: 16px;\n position: relative;\n}\n</style>\n<style scoped src=\"./colmo.css\"></style>\n\n<script>\nconst icon = require('../setting/icon.base64')\nvar PLACEHOLDERIMAGE = icon['ic_img_null@2x']\nconst modal = weex.requireModule('modal')\nimport ColmoMixin from '../../mixins/colmo'\n\nexport default {\n mixins: [ColmoMixin],\n props: {\n sliderStyle: {\n type: Object,\n default: () => ({\n width: '686px',\n height: '280px',\n position: 'relative'\n })\n },\n indicatorStyle: {\n type: Object,\n default: () => ({})\n },\n items: {\n type: Array,\n default: () => []\n },\n interval: {\n type: Number,\n default: 3000\n },\n autoplay: {\n type: Boolean,\n default: true\n },\n infinite: {\n type: Boolean,\n default: true\n },\n imgResize: {\n type: String,\n default: 'cover'\n },\n imgWidth: {\n type: String,\n default: '686px'\n },\n divLeft: {\n type: String,\n default: '32px'\n },\n imgHeight: {\n type: String,\n default: '280px'\n },\n showIndicator: {\n type: Boolean,\n default: true\n },\n phImgUrl: {\n type: String,\n default: PLACEHOLDERIMAGE\n },\n imageBgColor: {\n type: String,\n default: '#f2f2f2'\n }\n },\n data: function() {\n return {\n slItems: [],\n active: 0\n }\n },\n created() {\n if (this.items.length > 10) {\n this.slItems.splice(0)\n this.slItems = this.items.slice(0, 10)\n } else if (this.items.length <= 10) {\n this.slItems.splice(0)\n this.slItems = this.items.slice(0)\n }\n },\n methods: {\n imgClicked(target, index) {\n this.$emit('dofSwiperClicked', { target, index })\n },\n change(val) {\n this.active = val.index\n }\n }\n}\n</script>\n","\n.indicator .weex-indicator-item {\n width: 14px;\n height: 14px;\n}","\n.indicator .weex-indicator-item {\n background-color: rgba(255, 255, 255, 0.5);\n}"],"sourceRoot":""}]);
28216
+ exports.push([module.i, "\n.indicator {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 0.66667rem;\n item-color: rgba(255, 255, 255, 0.5);\n item-selectedcolor: rgba(255, 255, 255, 1);\n item-size: 0.18667rem;\n}\n.indicator .weex-indicator-item {\n width: 0.18667rem;\n height: 0.18667rem;\n}\n.indicator .weex-indicator-item {\n background-color: rgba(255, 255, 255, 0.5);\n}\n.slider {\n /* background-color: #f2f2f2; */\n /* margin-left: 32px; */\n border-radius: 0.21333rem;\n}\n.image {\n border-radius: 0.21333rem;\n /* background-color: #f2f2f2; */\n}\n.div_out {\n border-radius: 0.21333rem;\n position: relative;\n}\n", "", {"version":3,"sources":["/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-swiper/index.vue?3b03a1f1","/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-swiper/<input css 22>","/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-swiper/<input css 21>"],"names":[],"mappings":";AAiCA;EACA,mBAAA;EACA,UAAA;EACA,QAAA;EACA,SAAA;EACA,mBAAA;EACA,qCAAA;EACA,2CAAA;EACA,sBAAA;CACA;ACzCA;EACE,kBAAY;EACZ,mBAAa;CACd;ACHD;EACE,2CAA2C;CAC5C;AFwCD;EACA,gCAAA;EACA,wBAAA;EACA,0BAAA;CACA;AACA;EACA,0BAAA;EACA,gCAAA;CACA;AACA;EACA,0BAAA;EACA,mBAAA;CACA","file":"index.vue","sourcesContent":["<template>\n <div :style=\"{ marginLeft: divLeft, width: imgWidth }\" class=\"div_out\">\n <slider\n class=\"slider\"\n :style=\"sliderStyle\"\n :interval=\"interval\"\n @change=\"change\"\n :auto-play=\"autoplay\"\n :infinite=\"infinite\"\n >\n <div v-for=\"(item, index) in slItems\" :key=\"index\" @click=\"imgClicked(item, index)\">\n <image\n :resize=\"imgResize\"\n :style=\"{ width: imgWidth, height: imgHeight, backgroundColor: imageBgColor }\"\n :src=\"item.url\"\n :placeholder=\"phImgUrl\"\n class=\"image\"\n >\n </image>\n </div>\n <indicator class=\"indicator\" :style=\"indicatorStyle\" v-if=\"showIndicator && !_isColmo\"></indicator>\n </slider>\n <div class=\"indicator-box\" v-if=\"showIndicator && _isColmo\">\n <div\n :class=\"['indicator-item', i === slItems.length - 1 && 'isLast', i == active && 'active']\"\n v-for=\"(item, i) in slItems\"\n :key=\"i\"\n ></div>\n </div>\n </div>\n</template>\n\n<style>\n.indicator {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 50px;\n item-color: rgba(255, 255, 255, 0.5);\n item-selectedcolor: rgba(255, 255, 255, 1);\n item-size: 14px;\n}\n.slider {\n /* background-color: #f2f2f2; */\n /* margin-left: 32px; */\n border-radius: 16px;\n}\n.image {\n border-radius: 16px;\n /* background-color: #f2f2f2; */\n}\n.div_out {\n border-radius: 16px;\n position: relative;\n}\n</style>\n<style scoped src=\"./colmo.css\"></style>\n\n<script>\nconst icon = require('../setting/icon.base64')\nvar PLACEHOLDERIMAGE = icon['ic_img_null@2x']\nconst modal = weex.requireModule('modal')\nimport ColmoMixin from '../../mixins/colmo'\n\nexport default {\n mixins: [ColmoMixin],\n props: {\n sliderStyle: {\n type: Object,\n default: () => ({\n width: '686px',\n height: '280px',\n position: 'relative'\n })\n },\n indicatorStyle: {\n type: Object,\n default: () => ({})\n },\n items: {\n type: Array,\n default: () => []\n },\n interval: {\n type: Number,\n default: 3000\n },\n autoplay: {\n type: Boolean,\n default: true\n },\n infinite: {\n type: Boolean,\n default: true\n },\n imgResize: {\n type: String,\n default: 'cover'\n },\n imgWidth: {\n type: String,\n default: '686px'\n },\n divLeft: {\n type: String,\n default: '32px'\n },\n imgHeight: {\n type: String,\n default: '280px'\n },\n showIndicator: {\n type: Boolean,\n default: true\n },\n phImgUrl: {\n type: String,\n default: PLACEHOLDERIMAGE\n },\n imageBgColor: {\n type: String,\n default: '#f2f2f2'\n }\n },\n data: function() {\n return {\n slItems: [],\n active: 0\n }\n },\n created() {\n if (this.items.length > 10) {\n this.slItems.splice(0)\n this.slItems = this.items.slice(0, 10)\n } else if (this.items.length <= 10) {\n this.slItems.splice(0)\n this.slItems = this.items.slice(0)\n }\n },\n methods: {\n imgClicked(target, index) {\n this.$emit('dofSwiperClicked', { target, index })\n },\n change(val) {\n this.active = val.index\n }\n }\n}\n</script>\n","\n.indicator .weex-indicator-item {\n width: 14px;\n height: 14px;\n}","\n.indicator .weex-indicator-item {\n background-color: rgba(255, 255, 255, 0.5);\n}"],"sourceRoot":""}]);
28168
28217
 
28169
28218
  // exports
28170
28219
 
@@ -28836,7 +28885,7 @@ exports = module.exports = __webpack_require__(0)(true);
28836
28885
 
28837
28886
 
28838
28887
  // module
28839
- exports.push([module.i, "\n.wrapper[data-v-b386355a] {\n padding: 0.16rem 0.29333rem 0.16rem 0.16rem;\n box-shadow: 0 0.02667rem 0.26667rem 0 rgba(0, 0, 0, 0.04);\n /* border-radius: 52px; */\n display: -webkit-flex;\n display: flex;\n -webkit-flex-direction: row;\n flex-direction: row;\n -webkit-align-items: center;\n align-items: center;\n overflow: hidden;\n}\n.apng-view[data-v-b386355a] {\n width: 1.06667rem;\n height: 1.06667rem;\n}\n.msg[data-v-b386355a] {\n -webkit-flex: 1;\n flex: 1;\n padding-left: 0.32rem;\n padding-right: 0.32rem;\n lines: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n font-family: PingFangSC-Regular;\n font-size: 0.37333rem;\n /* color: #616c73; */\n font-weight: 400;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 1;\n}\n.cell-arrow-icon[data-v-b386355a] {\n width: 0.53333rem;\n height: 0.53333rem;\n}\n", "", {"version":3,"sources":["/Users/wuhm45/Desktop/code/dolphin-weex-bc/packages/dof-xiaomei-card/index.vue?17dae983","/Users/wuhm45/Desktop/code/dolphin-weex-bc/packages/dof-xiaomei-card/<no source>"],"names":[],"mappings":";AASA;EACA,4CAAA;EACA,0DAAA;EACA,0BAAA;EACA,sBAAA;EAAA,cAAA;EACA,4BAAA;UAAA,oBAAA;EACA,4BAAA;UAAA,oBAAA;EACA,iBAAA;CACA;AACA;EACA,kBAAA;EACA,mBAAA;CACA;AACA;EACA,gBAAA;UAAA,QAAA;EACA,sBAAA;EACA,uBAAA;EACA,SAAA;EACA,wBAAA;EACA,iBAAA;EACA,gCAAA;EACA,sBAAA;EACA,qBAAA;EACA,iBAAA;EChCA,iBAAA;EAAA,wBAAA;EAAA,sBAAA;CDiCA;AACA;EACA,kBAAA;EACA,mBAAA;CACA","file":"index.vue","sourcesContent":["<template>\n <div class=\"wrapper\" ref=\"wrapper\" :style=\"wrapperStyle\" @click=\"handleClick\">\n <midea-apng-view :src=\"_avatarSrc\" :loop=\"true\" :auto=\"true\" class=\"apng-view\"></midea-apng-view>\n <text class=\"msg\" :style=\"{ opacity: textOpacity, color: _textColor }\">{{ currentMsg }}</text>\n <image :src=\"_arrowIcon\" class=\"cell-arrow-icon\" :style=\"{ opacity: textOpacity }\"></image>\n </div>\n</template>\n\n<style scoped>\n.wrapper {\n padding: 12px 22px 12px 12px;\n box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.04);\n /* border-radius: 52px; */\n display: flex;\n flex-direction: row;\n align-items: center;\n overflow: hidden;\n}\n.apng-view {\n width: 80px;\n height: 80px;\n}\n.msg {\n flex: 1;\n padding-left: 24px;\n padding-right: 24px;\n lines: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n font-family: PingFangSC-Regular;\n font-size: 28px;\n /* color: #616c73; */\n font-weight: 400;\n}\n.cell-arrow-icon {\n width: 40px;\n height: 40px;\n}\n</style>\n\n<script>\nimport { Bridge } from 'dolphin-native-bridge'\nimport { Core } from 'dolphin-weex-ui'\nVue.prototype.$alert = Core.alert\nVue.prototype.$toast = Core.toast\n\nconst animation = weex.requireModule('animation')\nconst dom = weex.requireModule('dom')\nconst icon = require('./assets/icon.base64')\n\nexport default {\n props: {\n // 自定义头像\n avatarSrc: {\n type: String,\n default: ''\n },\n // 自定义消息内容,数组大于一项会轮播展示\n xiaomeiMsg: {\n type: Array,\n default: () => ['Hi~我是小美,你的家庭AI助手~']\n },\n // 自定义背景颜色\n backgroundColor: {\n type: String,\n default: ''\n },\n // 自定义圆角\n borderRadius: {\n type: String,\n default: '52px'\n },\n // 自定义箭头图标\n arrowIcon: {\n type: String,\n default: ''\n },\n // 自定义文字颜色\n textColor: {\n type: String,\n default: ''\n },\n // 是否默认跳转\n isJumpDefault: {\n type: Boolean,\n default: true\n },\n // 是否为暗黑模式\n isDiablo: {\n type: Boolean,\n default: false\n },\n // 自定义包装层样式\n customWrapperStyle: {\n type: Object,\n default: () => ({})\n },\n // 自定义宽度变化动画时长\n widthChangeDuration: {\n type: Number,\n default: 400\n },\n // 自定义短宽度的展示时长\n shortShowDuration: {\n type: Number,\n default: 1000\n },\n // 自定义消息内容轮播切换时长\n msgChangeDuration: {\n type: Number,\n default: 4000\n }\n },\n data: () => ({\n currentMsgIndex: 0,\n originWidth: 104,\n opacity: 0,\n textOpacity: 0,\n deviceInfo: {},\n reInitTimes: 0\n }),\n computed: {\n wrapperStyle() {\n return {\n opacity: this.opacity,\n backgroundColor: this._backgroundColor,\n borderRadius: this.borderRadius,\n ...this.customWrapperStyle\n }\n },\n currentMsg() {\n return this.xiaomeiMsg[this.currentMsgIndex]\n },\n _backgroundColor() {\n if (this.backgroundColor) return this.backgroundColor\n return this.isDiablo ? '#171c1f' : '#fff'\n },\n _textColor() {\n if (this.textColor) return this.textColor\n return this.isDiablo ? '#cfcfd0' : '#616c73'\n },\n _arrowIcon() {\n if (this.arrowIcon) return this.arrowIcon\n return this.isDiablo ? icon.arrowIconNew_diablo : icon.arrowIconNew\n },\n _avatarSrc() {\n if (this.avatarSrc) return this.avatarSrc\n return this.isDiablo ? 'https://dolphin-weex-dev.msmartlife.cn/img/avatar_diablo.png' : 'https://dolphin-weex-dev.msmartlife.cn/img/avatar.png'\n }\n },\n created() {\n Bridge\n .getDeviceInfo()\n .then(res => {\n this.deviceInfo = res.result || {}\n })\n },\n mounted() {\n this.$nextTick(() => this.init())\n // this.startAnimation()\n },\n methods: {\n init() {\n const wrapperRef = this.$refs.wrapper\n dom.getComponentRect(wrapperRef, res => {\n this.originWidth = res.size.width\n if (!this.originWidth) {\n this.reInitTimes++\n if (this.reInitTimes < 3) {\n setTimeout(() => this.init(), 20)\n }\n return\n }\n this.refAnimation('104px', 0, () => (this.opacity = 1))\n setTimeout(() => this.refAnimation(this.originWidth + 'px', this.widthChangeDuration, \n () => {\n this.textOpacity = 1\n if (this.xiaomeiMsg.length > 1) {\n this.startAnimation()\n }\n }\n ), 100)\n\n })\n },\n refAnimation(width, duration, cb = () => {}) {\n const wrapperRef = this.$refs.wrapper\n animation.transition(\n wrapperRef,\n {\n styles: {\n width\n },\n duration, //ms\n timingFunction: 'ease',\n needLayout: false,\n delay: 0 //ms\n },\n cb\n )\n },\n startAnimation() {\n setTimeout(() => {\n this.textOpacity = 0\n this.refAnimation(104 + 'px', this.widthChangeDuration)\n this.currentMsgIndex = (this.currentMsgIndex + 1) % this.xiaomeiMsg.length\n setTimeout(() => {\n this.refAnimation(this.originWidth + 'px', this.widthChangeDuration, () => (this.textOpacity = 1))\n this.startAnimation()\n }, this.shortShowDuration)\n }, this.msgChangeDuration)\n },\n handleClick() {\n this.$emit('clickXiaomei')\n if (this.isJumpDefault) {\n Bridge\n .goToPage({\n url: `meiju://com.midea.meiju/main?type=jumpWeex&pageName=xiaomeiAgent&event=chat&input=0&from=plugin&plugInDeviceId=${this.deviceInfo.deviceId}&deviceType=${this.deviceInfo.deviceType}`\n })\n .then(res => {\n // this.$alert(res)\n })\n .catch(err => {\n this.$toast(err.errorMessage || err.errorMsg || '跳转失败')\n })\n }\n }\n }\n}\n</script>\n",null],"sourceRoot":""}]);
28888
+ exports.push([module.i, "\n.wrapper[data-v-b386355a] {\n padding: 0.16rem 0.29333rem 0.16rem 0.16rem;\n box-shadow: 0 0.02667rem 0.26667rem 0 rgba(0, 0, 0, 0.04);\n /* border-radius: 52px; */\n display: -webkit-flex;\n display: flex;\n -webkit-flex-direction: row;\n flex-direction: row;\n -webkit-align-items: center;\n align-items: center;\n overflow: hidden;\n}\n.apng-view[data-v-b386355a] {\n width: 1.06667rem;\n height: 1.06667rem;\n}\n.msg[data-v-b386355a] {\n -webkit-flex: 1;\n flex: 1;\n padding-left: 0.32rem;\n padding-right: 0.32rem;\n lines: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n font-family: PingFangSC-Regular;\n font-size: 0.37333rem;\n /* color: #616c73; */\n font-weight: 400;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 1;\n}\n.cell-arrow-icon[data-v-b386355a] {\n width: 0.53333rem;\n height: 0.53333rem;\n}\n", "", {"version":3,"sources":["/Users/wuhm45/Desktop/code/dolphin-weex-bc/packages/dof-xiaomei-card/index.vue?203c1b65","/Users/wuhm45/Desktop/code/dolphin-weex-bc/packages/dof-xiaomei-card/<no source>"],"names":[],"mappings":";AASA;EACA,4CAAA;EACA,0DAAA;EACA,0BAAA;EACA,sBAAA;EAAA,cAAA;EACA,4BAAA;UAAA,oBAAA;EACA,4BAAA;UAAA,oBAAA;EACA,iBAAA;CACA;AACA;EACA,kBAAA;EACA,mBAAA;CACA;AACA;EACA,gBAAA;UAAA,QAAA;EACA,sBAAA;EACA,uBAAA;EACA,SAAA;EACA,wBAAA;EACA,iBAAA;EACA,gCAAA;EACA,sBAAA;EACA,qBAAA;EACA,iBAAA;EChCA,iBAAA;EAAA,wBAAA;EAAA,sBAAA;CDiCA;AACA;EACA,kBAAA;EACA,mBAAA;CACA","file":"index.vue","sourcesContent":["<template>\n <div class=\"wrapper\" ref=\"wrapper\" :style=\"wrapperStyle\" @click=\"handleClick\">\n <midea-apng-view :src=\"_avatarSrc\" :loop=\"true\" :auto=\"true\" class=\"apng-view\"></midea-apng-view>\n <text class=\"msg\" :style=\"{ opacity: textOpacity, color: _textColor }\">{{ currentMsg }}</text>\n <image :src=\"_arrowIcon\" class=\"cell-arrow-icon\" :style=\"{ opacity: textOpacity }\"></image>\n </div>\n</template>\n\n<style scoped>\n.wrapper {\n padding: 12px 22px 12px 12px;\n box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.04);\n /* border-radius: 52px; */\n display: flex;\n flex-direction: row;\n align-items: center;\n overflow: hidden;\n}\n.apng-view {\n width: 80px;\n height: 80px;\n}\n.msg {\n flex: 1;\n padding-left: 24px;\n padding-right: 24px;\n lines: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n font-family: PingFangSC-Regular;\n font-size: 28px;\n /* color: #616c73; */\n font-weight: 400;\n}\n.cell-arrow-icon {\n width: 40px;\n height: 40px;\n}\n</style>\n\n<script>\nimport { Bridge } from 'dolphin-native-bridge'\nimport { Core } from 'dolphin-weex-ui'\nVue.prototype.$alert = Core.alert\nVue.prototype.$toast = Core.toast\n\nconst animation = weex.requireModule('animation')\nconst dom = weex.requireModule('dom')\nconst icon = require('./assets/icon.base64')\n\nexport default {\n props: {\n // 自定义头像\n avatarSrc: {\n type: String,\n default: ''\n },\n // 自定义消息内容,数组大于一项会轮播展示\n xiaomeiMsg: {\n type: Array,\n default: () => ['Hi~我是小美,你的家庭AI助手~']\n },\n // 自定义背景颜色\n backgroundColor: {\n type: String,\n default: ''\n },\n // 自定义圆角\n borderRadius: {\n type: String,\n default: '52px'\n },\n // 自定义箭头图标\n arrowIcon: {\n type: String,\n default: ''\n },\n // 自定义文字颜色\n textColor: {\n type: String,\n default: ''\n },\n // 是否默认跳转\n isJumpDefault: {\n type: Boolean,\n default: true\n },\n // 是否为暗黑模式\n isDiablo: {\n type: Boolean,\n default: false\n },\n // 自定义包装层样式\n customWrapperStyle: {\n type: Object,\n default: () => ({})\n },\n // 自定义宽度变化动画时长\n widthChangeDuration: {\n type: Number,\n default: 400\n },\n // 自定义短宽度的展示时长\n shortShowDuration: {\n type: Number,\n default: 1000\n },\n // 自定义消息内容轮播切换时长\n msgChangeDuration: {\n type: Number,\n default: 4000\n }\n },\n data: () => ({\n currentMsgIndex: 0,\n originWidth: 104,\n opacity: 0,\n textOpacity: 0,\n deviceInfo: {},\n reInitTimes: 0\n }),\n computed: {\n wrapperStyle() {\n return {\n opacity: this.opacity,\n backgroundColor: this._backgroundColor,\n borderRadius: this.borderRadius,\n ...this.customWrapperStyle\n }\n },\n currentMsg() {\n return this.xiaomeiMsg[this.currentMsgIndex]\n },\n _backgroundColor() {\n if (this.backgroundColor) return this.backgroundColor\n return this.isDiablo ? '#171c1f' : '#fff'\n },\n _textColor() {\n if (this.textColor) return this.textColor\n return this.isDiablo ? '#cfcfd0' : '#616c73'\n },\n _arrowIcon() {\n if (this.arrowIcon) return this.arrowIcon\n return this.isDiablo ? icon.arrowIconNew_diablo : icon.arrowIconNew\n },\n _avatarSrc() {\n if (this.avatarSrc) return this.avatarSrc\n return this.isDiablo ? 'https://www.smartmidea.net/projects/xiaomei-agent-assets/avatar/avatar_diablo.png' : 'https://www.smartmidea.net/projects/xiaomei-agent-assets/avatar/avatar.png'\n }\n },\n created() {\n Bridge\n .getDeviceInfo()\n .then(res => {\n this.deviceInfo = res.result || {}\n })\n },\n mounted() {\n this.$nextTick(() => this.init())\n // this.startAnimation()\n },\n methods: {\n init() {\n const wrapperRef = this.$refs.wrapper\n dom.getComponentRect(wrapperRef, res => {\n this.originWidth = res.size.width\n if (!this.originWidth) {\n this.reInitTimes++\n if (this.reInitTimes < 3) {\n setTimeout(() => this.init(), 20)\n }\n return\n }\n this.refAnimation('104px', 0, () => (this.opacity = 1))\n setTimeout(() => this.refAnimation(this.originWidth + 'px', this.widthChangeDuration, \n () => {\n this.textOpacity = 1\n if (this.xiaomeiMsg.length > 1) {\n this.startAnimation()\n }\n }\n ), 100)\n\n })\n },\n refAnimation(width, duration, cb = () => {}) {\n const wrapperRef = this.$refs.wrapper\n animation.transition(\n wrapperRef,\n {\n styles: {\n width\n },\n duration, //ms\n timingFunction: 'ease',\n needLayout: false,\n delay: 0 //ms\n },\n cb\n )\n },\n startAnimation() {\n setTimeout(() => {\n this.textOpacity = 0\n this.refAnimation(104 + 'px', this.widthChangeDuration)\n this.currentMsgIndex = (this.currentMsgIndex + 1) % this.xiaomeiMsg.length\n setTimeout(() => {\n this.refAnimation(this.originWidth + 'px', this.widthChangeDuration, () => (this.textOpacity = 1))\n this.startAnimation()\n }, this.shortShowDuration)\n }, this.msgChangeDuration)\n },\n handleClick() {\n this.$emit('clickXiaomei')\n if (this.isJumpDefault) {\n Bridge\n .goToPage({\n url: `meiju://com.midea.meiju/main?type=jumpWeex&pageName=xiaomeiAgent&event=chat&input=0&from=plugin&plugInDeviceId=${this.deviceInfo.deviceId}&deviceType=${this.deviceInfo.deviceType}`\n })\n .then(res => {\n // this.$alert(res)\n })\n .catch(err => {\n this.$toast(err.errorMessage || err.errorMsg || '跳转失败')\n })\n }\n }\n }\n}\n</script>\n",null],"sourceRoot":""}]);
28840
28889
 
28841
28890
  // exports
28842
28891
 
@@ -63770,7 +63819,7 @@ exports.default = {
63770
63819
  },
63771
63820
  _avatarSrc: function _avatarSrc() {
63772
63821
  if (this.avatarSrc) return this.avatarSrc;
63773
- return this.isDiablo ? 'https://dolphin-weex-dev.msmartlife.cn/img/avatar_diablo.png' : 'https://dolphin-weex-dev.msmartlife.cn/img/avatar.png';
63822
+ return this.isDiablo ? 'https://www.smartmidea.net/projects/xiaomei-agent-assets/avatar/avatar_diablo.png' : 'https://www.smartmidea.net/projects/xiaomei-agent-assets/avatar/avatar.png';
63774
63823
  }
63775
63824
  },
63776
63825
  created: function created() {