dolphin-weex-bc 0.0.49 → 0.0.50

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
@@ -27870,7 +27870,7 @@ exports = module.exports = __webpack_require__(0)(true);
27870
27870
 
27871
27871
 
27872
27872
  // 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":""}]);
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 15>","/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-lightbox/<input css 14>","/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-lightbox/<input css 13>"],"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
27874
 
27875
27875
  // exports
27876
27876
 
@@ -28164,7 +28164,7 @@ exports = module.exports = __webpack_require__(0)(true);
28164
28164
 
28165
28165
 
28166
28166
  // 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":""}]);
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 17>","/Users/wuhm45/Desktop/code/dolphin-weex-bc/node_modules/dolphin-weex-ui/packages/dof-swiper/<input css 16>"],"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
28168
 
28169
28169
  // exports
28170
28170
 
@@ -28836,7 +28836,7 @@ exports = module.exports = __webpack_require__(0)(true);
28836
28836
 
28837
28837
 
28838
28838
  // 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":""}]);
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?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
28840
 
28841
28841
  // exports
28842
28842
 
@@ -63770,7 +63770,7 @@ exports.default = {
63770
63770
  },
63771
63771
  _avatarSrc: function _avatarSrc() {
63772
63772
  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';
63773
+ 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
63774
  }
63775
63775
  },
63776
63776
  created: function created() {