@xysfe/actui2 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.
Files changed (64) hide show
  1. package/lib/BScroll/index.js +1 -1
  2. package/lib/BScroll/index.mjs +1 -5
  3. package/lib/ClaimsContact/style.css +1 -1
  4. package/lib/Contact/style.css +1 -1
  5. package/lib/ContactBook/style.css +1 -1
  6. package/lib/CouponLayer/index.js +1 -1
  7. package/lib/CouponLayer/index.mjs +2 -2
  8. package/lib/DiseaseListLayer/index.js +1 -1
  9. package/lib/DiseaseListLayer/index.mjs +2 -2
  10. package/lib/GoldBenefitDemo/benefit/slider/index.js +1 -1
  11. package/lib/GoldBenefitDemo/benefit/slider/index.mjs +2 -2
  12. package/lib/GoldBenefitDemo/costTable/index.js +1 -1
  13. package/lib/GoldBenefitDemo/costTable/index.mjs +2 -2
  14. package/lib/GoldCost/costTable/index.js +1 -1
  15. package/lib/GoldCost/costTable/index.mjs +4 -4
  16. package/lib/GoldFinance/benefit/slider/index.js +1 -1
  17. package/lib/GoldFinance/benefit/slider/index.mjs +2 -2
  18. package/lib/GoldFinance/costTable/index.js +1 -1
  19. package/lib/GoldFinance/costTable/index.mjs +2 -2
  20. package/lib/GoldFinanceChart/costTable/index.js +1 -1
  21. package/lib/GoldFinanceChart/costTable/index.mjs +2 -2
  22. package/lib/GoldFinanceChartV3/costTable/index.js +1 -1
  23. package/lib/GoldFinanceChartV3/costTable/index.mjs +4 -4
  24. package/lib/GoldFinanceV2/benefit/slider/index.js +1 -1
  25. package/lib/GoldFinanceV2/benefit/slider/index.mjs +2 -2
  26. package/lib/GoldFinanceV2/costTable/index.js +1 -1
  27. package/lib/GoldFinanceV2/costTable/index.mjs +2 -2
  28. package/lib/GoldMulSelect/mulSelect/index.js +1 -1
  29. package/lib/GoldMulSelect/mulSelect/index.mjs +2 -2
  30. package/lib/GoldPayLimitLayer/index.js +1 -1
  31. package/lib/GoldPayLimitLayer/index.mjs +2 -2
  32. package/lib/GoldPayLimitLayer/signIntroduct/index.js +1 -1
  33. package/lib/GoldPayLimitLayer/signIntroduct/index.mjs +2 -2
  34. package/lib/GoldPayLimitLayer/table/index.js +1 -1
  35. package/lib/GoldPayLimitLayer/table/index.mjs +2 -2
  36. package/lib/GoldProtocol/style.css +1 -1
  37. package/lib/MedicalListLayer/index.js +1 -1
  38. package/lib/MedicalListLayer/index.mjs +2 -2
  39. package/lib/Picker/index.js +1 -1
  40. package/lib/Picker/index.mjs +2 -2
  41. package/lib/PickerLongText/index.js +1 -1
  42. package/lib/PickerLongText/index.mjs +2 -2
  43. package/lib/ProPosterLayer/index.js +1 -1
  44. package/lib/ProPosterLayer/index.mjs +1 -1
  45. package/lib/ProductLayer/productDetailLayer/index.js +1 -1
  46. package/lib/ProductLayer/productDetailLayer/index.mjs +4 -5
  47. package/lib/ProductLayer/productDetailLayer/style.css +1 -1
  48. package/lib/RecordRuleLayer/index.js +1 -1
  49. package/lib/RecordRuleLayer/index.mjs +4 -4
  50. package/lib/Rule/index.js +1 -1
  51. package/lib/Rule/index.mjs +2 -2
  52. package/lib/SlidePoster/index.js +1 -1
  53. package/lib/SlidePoster/index.mjs +1 -1
  54. package/lib/common/scroll/index.js +1 -1
  55. package/lib/common/scroll/index.mjs +2 -2
  56. package/lib/common/scrollZoom/scroll/index.js +1 -1
  57. package/lib/common/scrollZoom/scroll/index.mjs +2 -2
  58. package/lib/index.js +1 -1
  59. package/lib/index.mjs +6 -5
  60. package/lib/utils/vueAwesomeSwiper/index.js +1 -1
  61. package/lib/utils/vueAwesomeSwiper/index.mjs +7 -1
  62. package/package.json +2 -2
  63. package/types/components/BScroll/index.d.ts +1 -1
  64. package/types/utils/vueAwesomeSwiper.d.ts +2 -1
@@ -1 +1 @@
1
- "use strict";require('./style.css');var _Object$keys=require("@babel/runtime-corejs3/core-js/object/keys");var _Object$getOwnPropertySymbols=require("@babel/runtime-corejs3/core-js/object/get-own-property-symbols");var _filterInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/filter");var _Object$getOwnPropertyDescriptor=require("@babel/runtime-corejs3/core-js/object/get-own-property-descriptor");var _forEachInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/for-each");var _Object$getOwnPropertyDescriptors=require("@babel/runtime-corejs3/core-js/object/get-own-property-descriptors");var _Object$defineProperties=require("@babel/runtime-corejs3/core-js/object/define-properties");var _Object$defineProperty=require("@babel/runtime-corejs3/core-js/object/define-property");var _defineProperty=require("@babel/runtime-corejs3/helpers/defineProperty");var _mapInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/map");var _fillInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/fill");var _Promise=require("@babel/runtime-corejs3/core-js/promise");var _includesInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/includes");var _indexOfInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/index-of");var _URL=require("@babel/runtime-corejs3/core-js/url");function ownKeys(e,r){var t=_Object$keys(e);if(_Object$getOwnPropertySymbols){var o=_Object$getOwnPropertySymbols(e);r&&(o=_filterInstanceProperty(o).call(o,function(r2){return _Object$getOwnPropertyDescriptor(e,r2).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var _context3,_context4;var t=null!=arguments[r]?arguments[r]:{};r%2?_forEachInstanceProperty(_context3=ownKeys(Object(t),true)).call(_context3,function(r2){_defineProperty(e,r2,t[r2])}):_Object$getOwnPropertyDescriptors?_Object$defineProperties(e,_Object$getOwnPropertyDescriptors(t)):_forEachInstanceProperty(_context4=ownKeys(Object(t))).call(_context4,function(r2){_Object$defineProperty(e,r2,_Object$getOwnPropertyDescriptor(t,r2))})}return e}var utils_create=require("../utils/create/index.js");var mixins_visible=require("../mixins/visible/index.js");var vueAwesomeSwiper=require("vue-awesome-swiper");var ProPosterLayer_poster=require("./poster/index.js");var utils_helpers=require("../utils/helpers/index.js");var QRCode_qrcode=require("../QRCode/qrcode/index.js");var lodashEs=require("lodash-es");var Toast=require("../Toast/index.js");require("swiper/dist/css/swiper.css");var utils_post=require("../utils/post/index.js");var __$_require_25f54f43__=require("../assets/download.9753.png");var __$_require_7d5cf078__=require("../assets/share.0d0a.png");var common=require("../common/index.js");var qrcode=new QRCode_qrcode.QRCode({render:"canvas",ecLevel:"H",size:50,mode:0,mSize:.25,label:"",fontcolor:"#000",fill:"#000",background:"#ffffff"});var _sfc_main={name:"ActProPosterLayer",mixins:[mixins_visible.visibleMixin],components:{swiper:vueAwesomeSwiper.swiper,swiperSlide:vueAwesomeSwiper.swiperSlide,Poster:ProPosterLayer_poster.Poster,ActToast:Toast.Toast},props:{posterList:{default:function _default(){return[]},type:Array},posterIndex:{default:0,type:Number},agentInfo:{type:Object,default:function _default2(){return{}}},qrcodeUrl:{type:String,default:""},showQrCode:{type:[Boolean,Number],default:false}},mounted:function mounted(){this.initShow()},watch:{isVisible:function isVisible(val){var _this2=this;if(val){this.getAgentInfo().finally(function(){var _context;_this2.posters=lodashEs.cloneDeep(_this2.posterList);_this2.initRender();_this2.posters=_mapInstanceProperty(_context=_this2.posters).call(_context,function(poster){return _objectSpread(_objectSpread({},poster),{},{qrcodeUrl:_this2.qrcodeUrl||poster.qrcodeUrl||"",showPosterQrCode:typeof poster.showQrcode!=="undefined"?poster.showQrcode:_this2.showQrCode})});if(_this2.qrcodeUrl&&_this2.showQrCode){qrcode.makeCode(_this2.qrcodeUrl).then(function(data2){_this2.qrCodeImg=data2;_this2.posters.push({isQrcode:true});_this2.showSwiper=true;_this2.$nextTick(function(){_this2.mySwiper=_this2.$refs.swiper.swiper})})}else{_this2.showSwiper=true;_this2.$nextTick(function(){_this2.mySwiper=_this2.$refs.swiper.swiper})}})}}},data:function data(){return{posters:[],isApp:utils_helpers.ua.isApp,isWx:utils_helpers.ua.isWx,posterImgRedis:[],curActiveIndex:0,qrCodeImg:"",showSwiper:false,mobileShow:1,infoShow:1,mySwiper:null,checkReRender:[],licenseForm:{license:"",mobile:"",jobTitle:"",showname:"",headurl:""}}},computed:{getSwiperOptionPoster:function getSwiperOptionPoster(){var _this=this;return{initialSlide:this.posterIndex,spaceBetween:37,lazyLoading:true,pagination:{el:".poster-swiper-pagination",clickable:true},on:{init:function init(swiper){_this.curActiveIndex=this.activeIndex;if(!_this.checkReRender[this.activeIndex]){_this.drawPoster(this.activeIndex,true)}},slideChangeTransitionEnd:function slideChangeTransitionEnd(swiper){_this.curActiveIndex=this.activeIndex;if(!_this.checkReRender[this.activeIndex]){_this.drawPoster(this.activeIndex,true)}}},onInit:function onInit(swiper){_this.curActiveIndex=swiper.activeIndex;if(!_this.checkReRender[swiper.activeIndex]){_this.drawPoster(swiper.activeIndex,true)}},onSlideChangeEnd:function onSlideChangeEnd(swiper){_this.curActiveIndex=swiper.activeIndex;if(!_this.checkReRender[swiper.activeIndex]){_this.drawPoster(swiper.activeIndex,true)}}}}},methods:{initRender:function initRender(){var _context2;this.checkReRender=_fillInstanceProperty(_context2=Array(this.posters.length)).call(_context2,false)},initShow:function initShow(){var mobileShow=localStorage.getItem("cps_poster_mobile_show");var infoShow=localStorage.getItem("cps_poster_info_show");this.mobileShow=mobileShow===null?1:Number(mobileShow);this.infoShow=infoShow===null?1:Number(infoShow)},preventMove:function preventMove(e){e._prevent=true},hidePoster:function hidePoster(e){this.showSwiper=false;this.hide()},clickPoster:function clickPoster(e){var target=e.target,currentTarget=e.currentTarget;if(target===currentTarget)this.hidePoster()},appSavePoster:function appSavePoster(imgSrc){var _this3=this;window.Crossapi&&window.Crossapi("/image/storage",{src:imgSrc},function(data2){_this3.$refs.toast.show("保存成功")})},drawPoster:function drawPoster(index,isCheckoutBtn){var _this4=this;if(this.posters[index].isQrcode){return}this.checkReRender[index]=true;this.$refs.poster[index].generateImg(isCheckoutBtn).then(function(posterImg){}).catch(function(err){_this4.checkReRender[index]=false})},setPosterImgRedis:function setPosterImgRedis(index,img){this.$set(this.posterImgRedis,index,img)},getScroll:function getScroll(index){return this.$refs.poster[index].getScroll()},changeShowBtn:function changeShowBtn(type){var _this5=this;if(type===1){this.infoShow=Number(this.infoShow)===0?1:0;localStorage.setItem("cps_poster_info_show",this.infoShow)}else if(type===2){this.mobileShow=Number(this.mobileShow)===0?1:0;localStorage.setItem("cps_poster_mobile_show",this.mobileShow)}this.initRender();this.$nextTick(function(){_this5.drawPoster(_this5.curActiveIndex,true)})},imgBtn:function imgBtn(type){var imgSrc="";if(this.posters[this.curActiveIndex]&&this.posters[this.curActiveIndex].isQrcode){imgSrc=this.qrCodeImg}else{imgSrc=this.posterImgRedis[this.curActiveIndex]}if(imgSrc){if(type===1){this.appSavePoster(imgSrc)}else if(type===2){this.shareImg(imgSrc)}}else{this.$refs.toast.show("海报仍未生成,请稍等",2e3)}},shareImg:function shareImg(img){var _this6=this;var shareInfo=[{type:"weixin_friend",img:"https://sslstatic.cxisc.com/img/appShareIcon/wx.7e6d27707956284e.png",txt:"微信好友"},{type:"weixin_timeline",img:"https://sslstatic.cxisc.com/img/appShareIcon/timeline.f4e95c018142f798.png",txt:"微信朋友圈"}];window.kcbJs.invoke({path:"/ui/dialog/showNewShareDialog",data:{shareInfo},success:function success(data2){_this6.share(data2,img)},fail:function fail(data2){}})},share:function share(data2,url){var platform=data2.platform;if(platform==="weixin_friend"){window.kcbJs.invoke({path:"/weixin/share",data:{scene:"friend",type:"image",url},unsupport:function unsupport(){},success:function success(){},fail:function fail(e){if(e.code!==20001){}}})}else if(platform==="weixin_timeline"){window.kcbJs.invoke({path:"/weixin/share",data:{scene:"timeline",type:"image",url},unsupport:function unsupport(){},success:function success(){},fail:function fail(e){if(e.code!==20001){}}})}},show:function show(){this.posterImgRedis=[];this.isVisible=true},slidePoster:function slidePoster(type){if(type===1)this.mySwiper.slidePrev();else this.mySwiper.slideNext()},getAgentInfo:function getAgentInfo(){var _this7=this;return new _Promise(function(resolve,reject){var xysEnv=["https://beta.xinhulu.com","https://www.xiaoyusan.com"];if(_includesInstanceProperty(xysEnv).call(xysEnv,window.origin)){resolve();return}var bdzsEnv=["https://bdzsbeta.cxmuc.com","https://m.baodan100.com","https://baodan100.com"];var url="/agent/getBusiCard";if(_includesInstanceProperty(bdzsEnv).call(bdzsEnv,window.origin)){url="/CpsBdzs/getBusiCard"}utils_post.fetch(url).then(function(res){if(res.data.ret===0){var agent=res.data.data.agent;var headurl=agent.headurl;_this7.licenseForm.headurl=headurl;_this7.licenseForm.jobTitle=agent.jobTitle;_this7.licenseForm.showname=agent.showname;_this7.licenseForm.license=agent.license;_this7.licenseForm.mobile=agent.mobile;if(!window.fetch){resolve();return}if(_indexOfInstanceProperty(headurl).call(headurl,"qlogo")>-1||_indexOfInstanceProperty(headurl).call(headurl,"mmopen")>-1){_this7.wxUrlFetchToBlob(headurl,resolve)}else{resolve()}return}resolve()}).catch(reject)})},wxUrlFetchToBlob:function wxUrlFetchToBlob(url,resolve){var _this8=this;if(!/^https:/.test(url)){url=url.replace("http://","https://")}window.fetch(url).then(function(res){return res.blob()}).then(function(res){_this8.licenseForm.headurl=_URL.createObjectURL(res);resolve&&resolve()}).catch(function(err){resolve&&resolve()})}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _vm.isVisible?_c("div",{attrs:{"act-ProPosterLayer":""}},[_c("div",{ref:"layer_picture",staticClass:"layer",on:{"click":function click($event){if($event.target!==$event.currentTarget)return null;return _vm.hidePoster.apply(null,arguments)}}},[_c("div",{staticClass:"picture",attrs:{"id":"picture"}},[_vm.showSwiper?_c("swiper",{ref:"swiper",attrs:{"options":_vm.getSwiperOptionPoster}},[_vm._l(_vm.posters,function(item,index){return _c("swiper-slide",{key:index,staticClass:"picture_box act-row act-middle",nativeOn:{"click":function click($event){return _vm.clickPoster.apply(null,arguments)}}},[!item.isQrcode?_c("Poster",{ref:"poster",refInFor:true,attrs:{"posterImg":_vm.posters[index].img,"qrcodeUrl":item.qrcodeUrl,"cardPhone":_vm.agentInfo.mobile,"cardName":_vm.agentInfo.truename,"cardImg":_vm.agentInfo.avatar,"infoShow":_vm.infoShow,"mobileShow":_vm.mobileShow,"posterGenerImg":_vm.posterImgRedis[index],"showPosterQrCode":item.showPosterQrCode,"index":index,"licenseForm":_vm.licenseForm},on:{"generateSuccess":_vm.setPosterImgRedis}}):_c("div",{staticClass:"qrCodeContainer act-row act-middle"},[_c("div",{staticClass:"qrCode act-row act-middle"},[_c("img",{attrs:{"src":_vm.qrCodeImg,"alt":"二维码"}})])])],1)}),_c("div",{staticClass:"poster-swiper-pagination",attrs:{"slot":"pagination"},slot:"pagination"})],2):_vm._e(),_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.curActiveIndex!==0,expression:"curActiveIndex !== 0"}],staticClass:"swiper-button-prev",attrs:{"id":"poster_prev"},on:{"click":function click($event){return _vm.slidePoster(1)}}}),_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.curActiveIndex!==_vm.posters.length-1,expression:"curActiveIndex !== posters.length - 1"}],staticClass:"swiper-button-next",attrs:{"id":"poster_next"},on:{"click":function click($event){return _vm.slidePoster(2)}}}),_vm.isWx?_c("div",{staticClass:"long_save"},[_c("span",[_vm._v("长按图片可保存至相册或分享")])]):_vm._e(),_vm.isApp?_c("div",{staticClass:"appBtn"},[_c("div",{staticClass:"saveImg",attrs:{"data-track":"haibao_save"},on:{"click":function click($event){return _vm.imgBtn(1)}}},[_vm._m(0),_vm._m(1)]),_c("div",{staticClass:"shareImg",attrs:{"data-track":"haibao_share"},on:{"click":function click($event){return _vm.imgBtn(2)}}},[_vm._m(2),_vm._m(3)])]):_vm._e(),_vm._m(4)],1)]),_c("act-toast",{ref:"toast",attrs:{"zIndex":9999}})],1):_vm._e()};var _sfc_staticRenderFns=[function(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"cir"},[_c("img",{attrs:{"src":__$_require_25f54f43__,"alt":""}})])},function(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"tit"},[_c("span",[_vm._v("下载图片")])])},function(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"cir"},[_c("img",{attrs:{"src":__$_require_7d5cf078__,"alt":""}})])},function(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"tit"},[_c("span",[_vm._v("分享图片")])])},function(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"tips"},[_c("span",[_vm._v("如需修改名片信息,可前往“我的-个人信息”页面")])])}];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"1b72c429");var ProPosterLayer=__component__.exports;ProPosterLayer.install=function(Vue){Vue.component(ProPosterLayer.name,ProPosterLayer);Vue.prototype["$createProPosterLayer"]=utils_create.create(ProPosterLayer,Vue)};exports.ProPosterLayer=ProPosterLayer;
1
+ "use strict";require('./style.css');var _Object$keys=require("@babel/runtime-corejs3/core-js/object/keys");var _Object$getOwnPropertySymbols=require("@babel/runtime-corejs3/core-js/object/get-own-property-symbols");var _filterInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/filter");var _Object$getOwnPropertyDescriptor=require("@babel/runtime-corejs3/core-js/object/get-own-property-descriptor");var _forEachInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/for-each");var _Object$getOwnPropertyDescriptors=require("@babel/runtime-corejs3/core-js/object/get-own-property-descriptors");var _Object$defineProperties=require("@babel/runtime-corejs3/core-js/object/define-properties");var _Object$defineProperty=require("@babel/runtime-corejs3/core-js/object/define-property");var _defineProperty=require("@babel/runtime-corejs3/helpers/defineProperty");var _mapInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/map");var _fillInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/fill");var _Promise=require("@babel/runtime-corejs3/core-js/promise");var _includesInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/includes");var _indexOfInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/index-of");var _URL=require("@babel/runtime-corejs3/core-js/url");function ownKeys(e,r){var t=_Object$keys(e);if(_Object$getOwnPropertySymbols){var o=_Object$getOwnPropertySymbols(e);r&&(o=_filterInstanceProperty(o).call(o,function(r2){return _Object$getOwnPropertyDescriptor(e,r2).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var _context3,_context4;var t=null!=arguments[r]?arguments[r]:{};r%2?_forEachInstanceProperty(_context3=ownKeys(Object(t),true)).call(_context3,function(r2){_defineProperty(e,r2,t[r2])}):_Object$getOwnPropertyDescriptors?_Object$defineProperties(e,_Object$getOwnPropertyDescriptors(t)):_forEachInstanceProperty(_context4=ownKeys(Object(t))).call(_context4,function(r2){_Object$defineProperty(e,r2,_Object$getOwnPropertyDescriptor(t,r2))})}return e}var utils_create=require("../utils/create/index.js");var mixins_visible=require("../mixins/visible/index.js");var utils_vueAwesomeSwiper=require("../utils/vueAwesomeSwiper/index.js");var ProPosterLayer_poster=require("./poster/index.js");var utils_helpers=require("../utils/helpers/index.js");var QRCode_qrcode=require("../QRCode/qrcode/index.js");var lodashEs=require("lodash-es");var Toast=require("../Toast/index.js");require("swiper/dist/css/swiper.css");var utils_post=require("../utils/post/index.js");var __$_require_25f54f43__=require("../assets/download.9753.png");var __$_require_7d5cf078__=require("../assets/share.0d0a.png");var common=require("../common/index.js");var qrcode=new QRCode_qrcode.QRCode({render:"canvas",ecLevel:"H",size:50,mode:0,mSize:.25,label:"",fontcolor:"#000",fill:"#000",background:"#ffffff"});var _sfc_main={name:"ActProPosterLayer",mixins:[mixins_visible.visibleMixin],components:{swiper:utils_vueAwesomeSwiper.swiper,swiperSlide:utils_vueAwesomeSwiper.swiperSlide,Poster:ProPosterLayer_poster.Poster,ActToast:Toast.Toast},props:{posterList:{default:function _default(){return[]},type:Array},posterIndex:{default:0,type:Number},agentInfo:{type:Object,default:function _default2(){return{}}},qrcodeUrl:{type:String,default:""},showQrCode:{type:[Boolean,Number],default:false}},mounted:function mounted(){this.initShow()},watch:{isVisible:function isVisible(val){var _this2=this;if(val){this.getAgentInfo().finally(function(){var _context;_this2.posters=lodashEs.cloneDeep(_this2.posterList);_this2.initRender();_this2.posters=_mapInstanceProperty(_context=_this2.posters).call(_context,function(poster){return _objectSpread(_objectSpread({},poster),{},{qrcodeUrl:_this2.qrcodeUrl||poster.qrcodeUrl||"",showPosterQrCode:typeof poster.showQrcode!=="undefined"?poster.showQrcode:_this2.showQrCode})});if(_this2.qrcodeUrl&&_this2.showQrCode){qrcode.makeCode(_this2.qrcodeUrl).then(function(data2){_this2.qrCodeImg=data2;_this2.posters.push({isQrcode:true});_this2.showSwiper=true;_this2.$nextTick(function(){_this2.mySwiper=_this2.$refs.swiper.swiper})})}else{_this2.showSwiper=true;_this2.$nextTick(function(){_this2.mySwiper=_this2.$refs.swiper.swiper})}})}}},data:function data(){return{posters:[],isApp:utils_helpers.ua.isApp,isWx:utils_helpers.ua.isWx,posterImgRedis:[],curActiveIndex:0,qrCodeImg:"",showSwiper:false,mobileShow:1,infoShow:1,mySwiper:null,checkReRender:[],licenseForm:{license:"",mobile:"",jobTitle:"",showname:"",headurl:""}}},computed:{getSwiperOptionPoster:function getSwiperOptionPoster(){var _this=this;return{initialSlide:this.posterIndex,spaceBetween:37,lazyLoading:true,pagination:{el:".poster-swiper-pagination",clickable:true},on:{init:function init(swiper){_this.curActiveIndex=this.activeIndex;if(!_this.checkReRender[this.activeIndex]){_this.drawPoster(this.activeIndex,true)}},slideChangeTransitionEnd:function slideChangeTransitionEnd(swiper){_this.curActiveIndex=this.activeIndex;if(!_this.checkReRender[this.activeIndex]){_this.drawPoster(this.activeIndex,true)}}},onInit:function onInit(swiper){_this.curActiveIndex=swiper.activeIndex;if(!_this.checkReRender[swiper.activeIndex]){_this.drawPoster(swiper.activeIndex,true)}},onSlideChangeEnd:function onSlideChangeEnd(swiper){_this.curActiveIndex=swiper.activeIndex;if(!_this.checkReRender[swiper.activeIndex]){_this.drawPoster(swiper.activeIndex,true)}}}}},methods:{initRender:function initRender(){var _context2;this.checkReRender=_fillInstanceProperty(_context2=Array(this.posters.length)).call(_context2,false)},initShow:function initShow(){var mobileShow=localStorage.getItem("cps_poster_mobile_show");var infoShow=localStorage.getItem("cps_poster_info_show");this.mobileShow=mobileShow===null?1:Number(mobileShow);this.infoShow=infoShow===null?1:Number(infoShow)},preventMove:function preventMove(e){e._prevent=true},hidePoster:function hidePoster(e){this.showSwiper=false;this.hide()},clickPoster:function clickPoster(e){var target=e.target,currentTarget=e.currentTarget;if(target===currentTarget)this.hidePoster()},appSavePoster:function appSavePoster(imgSrc){var _this3=this;window.Crossapi&&window.Crossapi("/image/storage",{src:imgSrc},function(data2){_this3.$refs.toast.show("保存成功")})},drawPoster:function drawPoster(index,isCheckoutBtn){var _this4=this;if(this.posters[index].isQrcode){return}this.checkReRender[index]=true;this.$refs.poster[index].generateImg(isCheckoutBtn).then(function(posterImg){}).catch(function(err){_this4.checkReRender[index]=false})},setPosterImgRedis:function setPosterImgRedis(index,img){this.$set(this.posterImgRedis,index,img)},getScroll:function getScroll(index){return this.$refs.poster[index].getScroll()},changeShowBtn:function changeShowBtn(type){var _this5=this;if(type===1){this.infoShow=Number(this.infoShow)===0?1:0;localStorage.setItem("cps_poster_info_show",this.infoShow)}else if(type===2){this.mobileShow=Number(this.mobileShow)===0?1:0;localStorage.setItem("cps_poster_mobile_show",this.mobileShow)}this.initRender();this.$nextTick(function(){_this5.drawPoster(_this5.curActiveIndex,true)})},imgBtn:function imgBtn(type){var imgSrc="";if(this.posters[this.curActiveIndex]&&this.posters[this.curActiveIndex].isQrcode){imgSrc=this.qrCodeImg}else{imgSrc=this.posterImgRedis[this.curActiveIndex]}if(imgSrc){if(type===1){this.appSavePoster(imgSrc)}else if(type===2){this.shareImg(imgSrc)}}else{this.$refs.toast.show("海报仍未生成,请稍等",2e3)}},shareImg:function shareImg(img){var _this6=this;var shareInfo=[{type:"weixin_friend",img:"https://sslstatic.cxisc.com/img/appShareIcon/wx.7e6d27707956284e.png",txt:"微信好友"},{type:"weixin_timeline",img:"https://sslstatic.cxisc.com/img/appShareIcon/timeline.f4e95c018142f798.png",txt:"微信朋友圈"}];window.kcbJs.invoke({path:"/ui/dialog/showNewShareDialog",data:{shareInfo},success:function success(data2){_this6.share(data2,img)},fail:function fail(data2){}})},share:function share(data2,url){var platform=data2.platform;if(platform==="weixin_friend"){window.kcbJs.invoke({path:"/weixin/share",data:{scene:"friend",type:"image",url},unsupport:function unsupport(){},success:function success(){},fail:function fail(e){if(e.code!==20001){}}})}else if(platform==="weixin_timeline"){window.kcbJs.invoke({path:"/weixin/share",data:{scene:"timeline",type:"image",url},unsupport:function unsupport(){},success:function success(){},fail:function fail(e){if(e.code!==20001){}}})}},show:function show(){this.posterImgRedis=[];this.isVisible=true},slidePoster:function slidePoster(type){if(type===1)this.mySwiper.slidePrev();else this.mySwiper.slideNext()},getAgentInfo:function getAgentInfo(){var _this7=this;return new _Promise(function(resolve,reject){var xysEnv=["https://beta.xinhulu.com","https://www.xiaoyusan.com"];if(_includesInstanceProperty(xysEnv).call(xysEnv,window.origin)){resolve();return}var bdzsEnv=["https://bdzsbeta.cxmuc.com","https://m.baodan100.com","https://baodan100.com"];var url="/agent/getBusiCard";if(_includesInstanceProperty(bdzsEnv).call(bdzsEnv,window.origin)){url="/CpsBdzs/getBusiCard"}utils_post.fetch(url).then(function(res){if(res.data.ret===0){var agent=res.data.data.agent;var headurl=agent.headurl;_this7.licenseForm.headurl=headurl;_this7.licenseForm.jobTitle=agent.jobTitle;_this7.licenseForm.showname=agent.showname;_this7.licenseForm.license=agent.license;_this7.licenseForm.mobile=agent.mobile;if(!window.fetch){resolve();return}if(_indexOfInstanceProperty(headurl).call(headurl,"qlogo")>-1||_indexOfInstanceProperty(headurl).call(headurl,"mmopen")>-1){_this7.wxUrlFetchToBlob(headurl,resolve)}else{resolve()}return}resolve()}).catch(reject)})},wxUrlFetchToBlob:function wxUrlFetchToBlob(url,resolve){var _this8=this;if(!/^https:/.test(url)){url=url.replace("http://","https://")}window.fetch(url).then(function(res){return res.blob()}).then(function(res){_this8.licenseForm.headurl=_URL.createObjectURL(res);resolve&&resolve()}).catch(function(err){resolve&&resolve()})}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _vm.isVisible?_c("div",{attrs:{"act-ProPosterLayer":""}},[_c("div",{ref:"layer_picture",staticClass:"layer",on:{"click":function click($event){if($event.target!==$event.currentTarget)return null;return _vm.hidePoster.apply(null,arguments)}}},[_c("div",{staticClass:"picture",attrs:{"id":"picture"}},[_vm.showSwiper?_c("swiper",{ref:"swiper",attrs:{"options":_vm.getSwiperOptionPoster}},[_vm._l(_vm.posters,function(item,index){return _c("swiper-slide",{key:index,staticClass:"picture_box act-row act-middle",nativeOn:{"click":function click($event){return _vm.clickPoster.apply(null,arguments)}}},[!item.isQrcode?_c("Poster",{ref:"poster",refInFor:true,attrs:{"posterImg":_vm.posters[index].img,"qrcodeUrl":item.qrcodeUrl,"cardPhone":_vm.agentInfo.mobile,"cardName":_vm.agentInfo.truename,"cardImg":_vm.agentInfo.avatar,"infoShow":_vm.infoShow,"mobileShow":_vm.mobileShow,"posterGenerImg":_vm.posterImgRedis[index],"showPosterQrCode":item.showPosterQrCode,"index":index,"licenseForm":_vm.licenseForm},on:{"generateSuccess":_vm.setPosterImgRedis}}):_c("div",{staticClass:"qrCodeContainer act-row act-middle"},[_c("div",{staticClass:"qrCode act-row act-middle"},[_c("img",{attrs:{"src":_vm.qrCodeImg,"alt":"二维码"}})])])],1)}),_c("div",{staticClass:"poster-swiper-pagination",attrs:{"slot":"pagination"},slot:"pagination"})],2):_vm._e(),_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.curActiveIndex!==0,expression:"curActiveIndex !== 0"}],staticClass:"swiper-button-prev",attrs:{"id":"poster_prev"},on:{"click":function click($event){return _vm.slidePoster(1)}}}),_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.curActiveIndex!==_vm.posters.length-1,expression:"curActiveIndex !== posters.length - 1"}],staticClass:"swiper-button-next",attrs:{"id":"poster_next"},on:{"click":function click($event){return _vm.slidePoster(2)}}}),_vm.isWx?_c("div",{staticClass:"long_save"},[_c("span",[_vm._v("长按图片可保存至相册或分享")])]):_vm._e(),_vm.isApp?_c("div",{staticClass:"appBtn"},[_c("div",{staticClass:"saveImg",attrs:{"data-track":"haibao_save"},on:{"click":function click($event){return _vm.imgBtn(1)}}},[_vm._m(0),_vm._m(1)]),_c("div",{staticClass:"shareImg",attrs:{"data-track":"haibao_share"},on:{"click":function click($event){return _vm.imgBtn(2)}}},[_vm._m(2),_vm._m(3)])]):_vm._e(),_vm._m(4)],1)]),_c("act-toast",{ref:"toast",attrs:{"zIndex":9999}})],1):_vm._e()};var _sfc_staticRenderFns=[function(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"cir"},[_c("img",{attrs:{"src":__$_require_25f54f43__,"alt":""}})])},function(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"tit"},[_c("span",[_vm._v("下载图片")])])},function(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"cir"},[_c("img",{attrs:{"src":__$_require_7d5cf078__,"alt":""}})])},function(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"tit"},[_c("span",[_vm._v("分享图片")])])},function(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"tips"},[_c("span",[_vm._v("如需修改名片信息,可前往“我的-个人信息”页面")])])}];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"1b72c429");var ProPosterLayer=__component__.exports;ProPosterLayer.install=function(Vue){Vue.component(ProPosterLayer.name,ProPosterLayer);Vue.prototype["$createProPosterLayer"]=utils_create.create(ProPosterLayer,Vue)};exports.ProPosterLayer=ProPosterLayer;
@@ -15,7 +15,7 @@ import _indexOfInstanceProperty from "@babel/runtime-corejs3/core-js/instance/in
15
15
  import _URL from "@babel/runtime-corejs3/core-js/url";
16
16
  import { c as create } from "../utils/create/index.mjs";
17
17
  import { v as visibleMixin } from "../mixins/visible/index.mjs";
18
- import { swiperSlide, swiper } from "vue-awesome-swiper";
18
+ import { s as swiperSlide, a as swiper } from "../utils/vueAwesomeSwiper/index.mjs";
19
19
  import { P as Poster } from "./poster/index.mjs";
20
20
  import { u as ua } from "../utils/helpers/index.mjs";
21
21
  import { Q as QRCode } from "../QRCode/qrcode/index.mjs";
@@ -1 +1 @@
1
- "use strict";require('./style.css');var _defineProperty=require("@babel/runtime-corejs3/helpers/defineProperty");var _Symbol$toStringTag=require("@babel/runtime-corejs3/core-js/symbol/to-string-tag");var _Object$getOwnPropertyDescriptor=require("@babel/runtime-corejs3/core-js/object/get-own-property-descriptor");var _Object$defineProperty=require("@babel/runtime-corejs3/core-js/object/define-property");var _Object$freeze=require("@babel/runtime-corejs3/core-js/object/freeze");var _someInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/some");var _Promise=require("@babel/runtime-corejs3/core-js/promise");var _mapInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/map");var mixins_visible=require("../../mixins/visible/index.js");var BScrollModule=require("better-scroll");var Loading=require("../../Loading/index.js");var utils_helpers=require("../../utils/helpers/index.js");var ProductLayer_js_util=require("../js/util/index.js");var ProductLayer_layer=require("../layer/index.js");var __$_require_5018a7bc__=require("../../assets/arrow2.caf6.png");var __$_require_8fa38bd2__=require("../../assets/play.76ca.png");var common=require("../../common/index.js");function _interopNamespaceDefault(e){var n=Object.create(null,_defineProperty({},_Symbol$toStringTag,{value:"Module"}));if(e){var _loop=function _loop2(k2){if(k2!=="default"){var d=_Object$getOwnPropertyDescriptor(e,k2);_Object$defineProperty(n,k2,d.get?d:{enumerable:true,get:function get(){return e[k2]}})}};for(var k in e){_loop(k)}}n.default=e;return _Object$freeze(n)}var BScrollModule__namespace=_interopNamespaceDefault(BScrollModule);var BScroll=BScrollModule__namespace.default||BScrollModule__namespace.BScroll||BScrollModule__namespace;var _sfc_main={name:"ProductDetailLayer",components:{Loading:Loading.Loading,layer:ProductLayer_layer.layer},mixins:[mixins_visible.visibleMixin],props:{proData:{type:Object,default:function _default(){return{}}},title:{type:String,default:"产品资料"},isKcb:Boolean,showSales:Boolean,isJdt:{type:[Boolean,Number],default:false},loading:{type:Boolean,default:false},agentId:{type:[String,Number],default:""},isSingleH5Module:{type:Boolean,default:false}},computed:{showSalesSection:function showSalesSection(){var _context;return this.proData.sales&&this.proData.sales.length&&_someInstanceProperty(_context=this.proData.sales).call(_context,function(item){return item.saleAddr&&item.saleAddr.length})}},data:function data(){return{posterContainer:null,checkDocDisabled:false,isApp:utils_helpers.ua.isApp,slMap:{"-1":"无需双录","0":"全面双录","1":"部分双录"}}},methods:{checkDetailArea:function checkDetailArea(){this.$emit("showSaleAreaLayer")},initPoster:function initPoster(){var _this=this;this.$nextTick(function(){if(_this.proData.showPoster){_this.posterContainer=new BScroll(_this.$refs.posterContainer,{click:true,scrollX:true});_this.posterContainer.refresh()}})},openFile:function openFile(_ref){var _this2=this;var _ref$items=_ref.items,items=_ref$items===void 0?[]:_ref$items,title=_ref.title;if(!utils_helpers.ua.isApp)return;this.checkDocDisabled=false;this.openFile._timer=setTimeout(function(){_this2.checkDocDisabled=true;_this2.$emit("openFile",{items,title})},500)},clearOpenFile:function clearOpenFile(){if(!utils_helpers.ua.isApp)return;clearTimeout(this.openFile._timer)},showEmailLayer:function showEmailLayer(){this.$emit("showEmailLayer",true)},checkDoc:function checkDoc(doc){var _this3=this;if(this.checkDocDisabled)return;var _doc$url=doc.url,url=_doc$url===void 0?"":_doc$url,_doc$items=doc.items,items=_doc$items===void 0?[]:_doc$items,_doc$title=doc.title,title=_doc$title===void 0?"":_doc$title;if(items&&items.length){if(items.length===1&&ProductLayer_js_util.isExcelFile(items[0].url)){if(utils_helpers.ua.isApp){this.openExcelFile(items[0].url).then(function(){}).catch(function(e){_this3.$createToast({textAlign:"center",toastTxt:e.msg,txt:e.msg,type:"txt"})})}else{if(utils_helpers.ua.isAndroid||utils_helpers.ua.isHarmonyOS){window.open(items[0].url)}else if(utils_helpers.ua.isIOS){this.$emit("openFileActionSheet",items[0].url)}}return}else if(items.length>1){this.$emit("openFileList",{items,title});return}}if(!url){var msg="暂不支持手机端查看,请登录咔嚓保PC下载查看";this.$createToast({textAlign:"center",toastTxt:msg,txt:msg,type:"txt"})}else{this.go(url)}},go:function go(url){if(this.isSingleH5Module){location.href="/app/showWebView?source=".concat(encodeURIComponent(url),"&isFullScreen=1")}else{location.href=url}},openExcelFile:function openExcelFile(url){return new _Promise(function(resolve,reject){var params={path:url};window.kcbJs.invoke({path:"/file/showExcel",data:params,success:function success(){resolve()},fail:function fail(e){reject(e)}})})},goKcbCourse:function goKcbCourse(_ref2){var url=_ref2.url;location.href=url},showPosterLayer:function showPosterLayer(index){this.$emit("showPosterLayer",index)},close:function close(){this.$emit("close")},checkDetail:function checkDetail(){var itemId=this.proData.itemId;if(utils_helpers.ua.isApp&&this.isSingleH5Module){location.href="/app/showWebView?source=".concat(encodeURIComponent(location.protocol+"//"+location.host+"/agent/dye/itemid/"+itemId),"&isFullScreen=1")}else{location.href="/agent/dye/itemid/"+itemId}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("layer",{staticClass:"proLayer",attrs:{"visible":_vm.isVisible,"title":_vm.title,"zIndex":100},on:{"close":_vm.close}},[_vm.loading?[_c("div",{staticClass:"loading-wrap"},[_c("Loading",{directives:[{name:"show",rawName:"v-show",value:_vm.loading,expression:"loading"}],attrs:{"type":"cir2","color":"#f05a4b","size":20}}),_c("p",{staticClass:"loading-txt"},[_vm._v(" 资料加载中... ")])],1)]:[_c("div",{staticClass:"product-layer-content"},[_c("section",{staticClass:"layer-section insurance"},[_c("div",{staticClass:"layer-section-hd act-row act-justify-between act-items-center"},[_c("div",{staticClass:"left act-row act-items-center"},[_c("p",{staticClass:"layer-section-hd-title"},[_vm._v(" 资料包 ")]),_vm.isApp?_c("p",{staticClass:"share-tip"},[_vm._v(" 长按图标,快捷分享 ")]):_vm._e()]),_c("p",{staticClass:"right layer-section-hd-close",attrs:{"data-track":"chanpinziliao_sendemail"},on:{"click":_vm.showEmailLayer}},[_c("span",[_vm._v("发送至邮箱")]),_c("img",{attrs:{"src":__$_require_5018a7bc__,"alt":""}})])]),_c("div",{staticClass:"layer-section-insurance"},_vm._l(_vm.proData.insurance,function(item,index){return _c("div",{key:index,staticClass:"insurance-item column justify-between items-center",attrs:{"data-track":"chanpinziliao_ziliaobao"}},[_c("div",{staticClass:"handleClickSection",on:{"click":function click($event){return _vm.checkDoc(item)},"touchstart":function touchstart($event){return _vm.openFile(item)},"touchend":function touchend($event){return _vm.clearOpenFile()},"touchcancel":function touchcancel($event){return _vm.clearOpenFile()}}}),_c("img",{attrs:{"src":item.img,"alt":""}}),_c("p",[_vm._v(_vm._s(item.title))])])}),0)]),_vm.showSalesSection?_c("section",{staticClass:"layer-section"},[_c("div",{staticClass:"layer-section-hd act-row act-justify-between act-items-center"},[_c("p",{staticClass:"layer-section-hd-title"},[_vm._v(" 销售区域 ")]),_c("p",{staticClass:"right layer-section-hd-close",attrs:{"data-track":"productlist_ziliao_areadetail"},on:{"click":_vm.checkDetailArea}},[_c("span",[_vm._v("查看详细地区及双录规则")]),_c("img",{attrs:{"src":__$_require_5018a7bc__,"alt":""}})])]),_c("div",{staticClass:"layer-section-sales"},_vm._l(_vm.proData.sales,function(saleItem,idx){var _context2;return _c("div",{key:idx},[saleItem.saleAddr&&saleItem.saleAddr.length?[_c("p",{staticStyle:{"font-weight":"bold"}},[_vm._v(_vm._s(_vm.slMap[saleItem.range])+":")]),_c("p",[_vm._v(_vm._s(_mapInstanceProperty(_context2=saleItem.saleAddr).call(_context2,function(item){return item.name}).join("、")))])]:_vm._e()],2)}),0)]):_vm._e(),_vm.proData.tools&&_vm.proData.tools.length?_c("section",{staticClass:"layer-section"},[_c("div",{staticClass:"layer-section-hd act-row act-justify-between act-items-center"},[_c("p",{staticClass:"layer-section-hd-title"},[_vm._v(" 展业工具 ")])]),_c("div",{staticClass:"layer-section-tools"},_vm._l(_vm.proData.tools,function(item,index){return _c("div",{key:index,staticClass:"tools-item",attrs:{"data-track":"chanpinziliao_tools"},on:{"click":function click($event){return _vm.go(item.url)}}},[_c("img",{attrs:{"src":item.img,"alt":"","width":"100%"}})])}),0)]):_vm._e(),_vm.proData.articles&&_vm.proData.articles.length?_c("section",{staticClass:"layer-section"},[_c("div",{staticClass:"layer-section-hd act-row act-justify-between act-items-center"},[_c("p",{staticClass:"layer-section-hd-title"},[_vm._v(" 产品文章 ")])]),_c("div",{staticClass:"layer-section-articles"},_vm._l(_vm.proData.articles,function(item,index){return _c("div",{key:index,staticClass:"article-item act-row act-justify-between",attrs:{"data-track":"chanpinziliao_article"},on:{"click":function click($event){return _vm.go(item.url)}}},[_c("div",{staticClass:"article-item-title"},[_vm._v(" "+_vm._s(item.title)+" ")]),_c("div",{staticClass:"article-item-img"},[_c("img",{attrs:{"src":item.img,"alt":""}})])])}),0)]):_vm._e(),_vm.proData.course&&_vm.proData.course.courseid?_c("section",{staticClass:"layer-section"},[_c("div",{staticClass:"layer-section-hd act-row act-justify-between act-items-center"},[_c("p",{staticClass:"layer-section-hd-title"},[_vm._v(" 产品视频 ")])]),_c("div",{staticClass:"layer-section-courses"},[_c("div",{staticClass:"course-item act-row act-justify-between",attrs:{"data-track":"chanpinziliao_video"},on:{"click":function click($event){return _vm.goKcbCourse(_vm.proData.course)}}},[_c("div",{staticClass:"course-item-title"},[_vm._v(" "+_vm._s(_vm.proData.course.courseName)+" ")]),_c("div",{staticClass:"course-item-img"},[_c("img",{staticClass:"playImg",attrs:{"src":__$_require_8fa38bd2__}}),_c("img",{attrs:{"src":_vm.proData.course.courseListPicture,"alt":""}})])])])]):_vm._e(),_vm.proData.showPoster?_c("section",{staticClass:"layer-section posters"},[_c("div",{staticClass:"layer-section-hd act-row act-justify-between act-items-center"},[_c("p",{staticClass:"layer-section-hd-title"},[_vm._v(" 产品二维码 ")])]),_c("div",{ref:"posterContainer",staticClass:"layer-section-posters"},[_c("div",{staticClass:"poster-wrapper"},_vm._l(_vm.proData.posters,function(item,index){return _c("div",{key:index,staticClass:"poster-item",class:{"isQrCode":_vm.proData.showCode&&index===_vm.proData.posters.length-1},attrs:{"data-track":"chanpinziliao_qrcode"},on:{"click":function click($event){return _vm.showPosterLayer(index)}}},[_c("img",{attrs:{"src":item.big,"alt":""}})])}),0)])]):_vm._e()]),_vm.isKcb?_c("div",{attrs:{"slot":"footer"},slot:"footer"},[_c("div",{staticClass:"product-layer-footer"},[_c("div",{staticClass:"footer-btn",on:{"click":_vm.checkDetail}},[_vm._v(" 查看产品详情 ")])])]):_vm._e()]],2)};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"28c2348c");var productDetailLayer=__component__.exports;exports.productDetailLayer=productDetailLayer;
1
+ "use strict";require('./style.css');var _someInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/some");var _Promise=require("@babel/runtime-corejs3/core-js/promise");var _mapInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/map");var mixins_visible=require("../../mixins/visible/index.js");var BScrollModule=require("better-scroll");var Loading=require("../../Loading/index.js");var utils_helpers=require("../../utils/helpers/index.js");var ProductLayer_js_util=require("../js/util/index.js");var ProductLayer_layer=require("../layer/index.js");var __$_require_5018a7bc__=require("../../assets/arrow2.caf6.png");var __$_require_8fa38bd2__=require("../../assets/play.76ca.png");var common=require("../../common/index.js");var _sfc_main={name:"ProductDetailLayer",components:{Loading:Loading.Loading,layer:ProductLayer_layer.layer},mixins:[mixins_visible.visibleMixin],props:{proData:{type:Object,default:function _default(){return{}}},title:{type:String,default:"产品资料"},isKcb:Boolean,showSales:Boolean,isJdt:{type:[Boolean,Number],default:false},loading:{type:Boolean,default:false},agentId:{type:[String,Number],default:""},isSingleH5Module:{type:Boolean,default:false}},computed:{showSalesSection:function showSalesSection(){var _context;return this.proData.sales&&this.proData.sales.length&&_someInstanceProperty(_context=this.proData.sales).call(_context,function(item){return item.saleAddr&&item.saleAddr.length})}},data:function data(){return{posterContainer:null,checkDocDisabled:false,isApp:utils_helpers.ua.isApp,slMap:{"-1":"无需双录","0":"全面双录","1":"部分双录"}}},methods:{checkDetailArea:function checkDetailArea(){this.$emit("showSaleAreaLayer")},initPoster:function initPoster(){var _this=this;this.$nextTick(function(){if(_this.proData.showPoster){_this.posterContainer=new BScrollModule(_this.$refs.posterContainer,{click:true,scrollX:true});_this.posterContainer.refresh()}})},openFile:function openFile(_ref){var _this2=this;var _ref$items=_ref.items,items=_ref$items===void 0?[]:_ref$items,title=_ref.title;if(!utils_helpers.ua.isApp)return;this.checkDocDisabled=false;this.openFile._timer=setTimeout(function(){_this2.checkDocDisabled=true;_this2.$emit("openFile",{items,title})},500)},clearOpenFile:function clearOpenFile(){if(!utils_helpers.ua.isApp)return;clearTimeout(this.openFile._timer)},showEmailLayer:function showEmailLayer(){this.$emit("showEmailLayer",true)},checkDoc:function checkDoc(doc){var _this3=this;if(this.checkDocDisabled)return;var _doc$url=doc.url,url=_doc$url===void 0?"":_doc$url,_doc$items=doc.items,items=_doc$items===void 0?[]:_doc$items,_doc$title=doc.title,title=_doc$title===void 0?"":_doc$title;if(items&&items.length){if(items.length===1&&ProductLayer_js_util.isExcelFile(items[0].url)){if(utils_helpers.ua.isApp){this.openExcelFile(items[0].url).then(function(){}).catch(function(e){_this3.$createToast({textAlign:"center",toastTxt:e.msg,txt:e.msg,type:"txt"})})}else{if(utils_helpers.ua.isAndroid||utils_helpers.ua.isHarmonyOS){window.open(items[0].url)}else if(utils_helpers.ua.isIOS){this.$emit("openFileActionSheet",items[0].url)}}return}else if(items.length>1){this.$emit("openFileList",{items,title});return}}if(!url){var msg="暂不支持手机端查看,请登录咔嚓保PC下载查看";this.$createToast({textAlign:"center",toastTxt:msg,txt:msg,type:"txt"})}else{this.go(url)}},go:function go(url){if(this.isSingleH5Module){location.href="/app/showWebView?source=".concat(encodeURIComponent(url),"&isFullScreen=1")}else{location.href=url}},openExcelFile:function openExcelFile(url){return new _Promise(function(resolve,reject){var params={path:url};window.kcbJs.invoke({path:"/file/showExcel",data:params,success:function success(){resolve()},fail:function fail(e){reject(e)}})})},goKcbCourse:function goKcbCourse(_ref2){var url=_ref2.url;location.href=url},showPosterLayer:function showPosterLayer(index){this.$emit("showPosterLayer",index)},close:function close(){this.$emit("close")},checkDetail:function checkDetail(){var itemId=this.proData.itemId;if(utils_helpers.ua.isApp&&this.isSingleH5Module){location.href="/app/showWebView?source=".concat(encodeURIComponent(location.protocol+"//"+location.host+"/agent/dye/itemid/"+itemId),"&isFullScreen=1")}else{location.href="/agent/dye/itemid/"+itemId}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("layer",{staticClass:"proLayer",attrs:{"visible":_vm.isVisible,"title":_vm.title,"zIndex":100},on:{"close":_vm.close}},[_vm.loading?[_c("div",{staticClass:"loading-wrap"},[_c("Loading",{directives:[{name:"show",rawName:"v-show",value:_vm.loading,expression:"loading"}],attrs:{"type":"cir2","color":"#f05a4b","size":20}}),_c("p",{staticClass:"loading-txt"},[_vm._v(" 资料加载中... ")])],1)]:[_c("div",{staticClass:"product-layer-content"},[_c("section",{staticClass:"layer-section insurance"},[_c("div",{staticClass:"layer-section-hd act-row act-justify-between act-items-center"},[_c("div",{staticClass:"left act-row act-items-center"},[_c("p",{staticClass:"layer-section-hd-title"},[_vm._v(" 资料包 ")]),_vm.isApp?_c("p",{staticClass:"share-tip"},[_vm._v(" 长按图标,快捷分享 ")]):_vm._e()]),_c("p",{staticClass:"right layer-section-hd-close",attrs:{"data-track":"chanpinziliao_sendemail"},on:{"click":_vm.showEmailLayer}},[_c("span",[_vm._v("发送至邮箱")]),_c("img",{attrs:{"src":__$_require_5018a7bc__,"alt":""}})])]),_c("div",{staticClass:"layer-section-insurance"},_vm._l(_vm.proData.insurance,function(item,index){return _c("div",{key:index,staticClass:"insurance-item column justify-between items-center",attrs:{"data-track":"chanpinziliao_ziliaobao"}},[_c("div",{staticClass:"handleClickSection",on:{"click":function click($event){return _vm.checkDoc(item)},"touchstart":function touchstart($event){return _vm.openFile(item)},"touchend":function touchend($event){return _vm.clearOpenFile()},"touchcancel":function touchcancel($event){return _vm.clearOpenFile()}}}),_c("img",{attrs:{"src":item.img,"alt":""}}),_c("p",[_vm._v(_vm._s(item.title))])])}),0)]),_vm.showSalesSection?_c("section",{staticClass:"layer-section"},[_c("div",{staticClass:"layer-section-hd act-row act-justify-between act-items-center"},[_c("p",{staticClass:"layer-section-hd-title"},[_vm._v(" 销售区域 ")]),_c("p",{staticClass:"right layer-section-hd-close",attrs:{"data-track":"productlist_ziliao_areadetail"},on:{"click":_vm.checkDetailArea}},[_c("span",[_vm._v("查看详细地区及双录规则")]),_c("img",{attrs:{"src":__$_require_5018a7bc__,"alt":""}})])]),_c("div",{staticClass:"layer-section-sales"},_vm._l(_vm.proData.sales,function(saleItem,idx){var _context2;return _c("div",{key:idx},[saleItem.saleAddr&&saleItem.saleAddr.length?[_c("p",{staticStyle:{"font-weight":"bold"}},[_vm._v(_vm._s(_vm.slMap[saleItem.range])+":")]),_c("p",[_vm._v(_vm._s(_mapInstanceProperty(_context2=saleItem.saleAddr).call(_context2,function(item){return item.name}).join("、")))])]:_vm._e()],2)}),0)]):_vm._e(),_vm.proData.tools&&_vm.proData.tools.length?_c("section",{staticClass:"layer-section"},[_c("div",{staticClass:"layer-section-hd act-row act-justify-between act-items-center"},[_c("p",{staticClass:"layer-section-hd-title"},[_vm._v(" 展业工具 ")])]),_c("div",{staticClass:"layer-section-tools"},_vm._l(_vm.proData.tools,function(item,index){return _c("div",{key:index,staticClass:"tools-item",attrs:{"data-track":"chanpinziliao_tools"},on:{"click":function click($event){return _vm.go(item.url)}}},[_c("img",{attrs:{"src":item.img,"alt":"","width":"100%"}})])}),0)]):_vm._e(),_vm.proData.articles&&_vm.proData.articles.length?_c("section",{staticClass:"layer-section"},[_c("div",{staticClass:"layer-section-hd act-row act-justify-between act-items-center"},[_c("p",{staticClass:"layer-section-hd-title"},[_vm._v(" 产品文章 ")])]),_c("div",{staticClass:"layer-section-articles"},_vm._l(_vm.proData.articles,function(item,index){return _c("div",{key:index,staticClass:"article-item act-row act-justify-between",attrs:{"data-track":"chanpinziliao_article"},on:{"click":function click($event){return _vm.go(item.url)}}},[_c("div",{staticClass:"article-item-title"},[_vm._v(" "+_vm._s(item.title)+" ")]),_c("div",{staticClass:"article-item-img"},[_c("img",{attrs:{"src":item.img,"alt":""}})])])}),0)]):_vm._e(),_vm.proData.course&&_vm.proData.course.courseid?_c("section",{staticClass:"layer-section"},[_c("div",{staticClass:"layer-section-hd act-row act-justify-between act-items-center"},[_c("p",{staticClass:"layer-section-hd-title"},[_vm._v(" 产品视频 ")])]),_c("div",{staticClass:"layer-section-courses"},[_c("div",{staticClass:"course-item act-row act-justify-between",attrs:{"data-track":"chanpinziliao_video"},on:{"click":function click($event){return _vm.goKcbCourse(_vm.proData.course)}}},[_c("div",{staticClass:"course-item-title"},[_vm._v(" "+_vm._s(_vm.proData.course.courseName)+" ")]),_c("div",{staticClass:"course-item-img"},[_c("img",{staticClass:"playImg",attrs:{"src":__$_require_8fa38bd2__}}),_c("img",{attrs:{"src":_vm.proData.course.courseListPicture,"alt":""}})])])])]):_vm._e(),_vm.proData.showPoster?_c("section",{staticClass:"layer-section posters"},[_c("div",{staticClass:"layer-section-hd act-row act-justify-between act-items-center"},[_c("p",{staticClass:"layer-section-hd-title"},[_vm._v(" 产品二维码 ")])]),_c("div",{ref:"posterContainer",staticClass:"layer-section-posters"},[_c("div",{staticClass:"poster-wrapper"},_vm._l(_vm.proData.posters,function(item,index){return _c("div",{key:index,staticClass:"poster-item",class:{"isQrCode":_vm.proData.showCode&&index===_vm.proData.posters.length-1},attrs:{"data-track":"chanpinziliao_qrcode"},on:{"click":function click($event){return _vm.showPosterLayer(index)}}},[_c("img",{attrs:{"src":item.big,"alt":""}})])}),0)])]):_vm._e()]),_vm.isKcb?_c("div",{attrs:{"slot":"footer"},slot:"footer"},[_c("div",{staticClass:"product-layer-footer"},[_c("div",{staticClass:"footer-btn",on:{"click":_vm.checkDetail}},[_vm._v(" 查看产品详情 ")])])]):_vm._e()]],2)};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"eeada4c9");var productDetailLayer=__component__.exports;exports.productDetailLayer=productDetailLayer;
@@ -2,7 +2,7 @@ import _someInstanceProperty from "@babel/runtime-corejs3/core-js/instance/some"
2
2
  import _Promise from "@babel/runtime-corejs3/core-js/promise";
3
3
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js/instance/map";
4
4
  import { v as visibleMixin } from "../../mixins/visible/index.mjs";
5
- import * as BScrollModule from "better-scroll";
5
+ import BScrollModule__default from "better-scroll";
6
6
  import { L as Loading } from "../../Loading/index.mjs";
7
7
  import { u as ua } from "../../utils/helpers/index.mjs";
8
8
  import { i as isExcelFile } from "../js/util/index.mjs";
@@ -10,8 +10,7 @@ import { l as layer } from "../layer/index.mjs";
10
10
  import __$_require_5018a7bc__ from "../../assets/arrow2.caf6.png";
11
11
  import __$_require_8fa38bd2__ from "../../assets/play.76ca.png";
12
12
  import { n as normalizeComponent } from "../../common/index.mjs";
13
- import './style.css';var BScroll = BScrollModule.default || BScrollModule.BScroll || BScrollModule;
14
- var _sfc_main = {
13
+ import './style.css';var _sfc_main = {
15
14
  name: "ProductDetailLayer",
16
15
  components: {
17
16
  Loading,
@@ -93,7 +92,7 @@ var _sfc_main = {
93
92
  var _this = this;
94
93
  this.$nextTick(function() {
95
94
  if (_this.proData.showPoster) {
96
- _this.posterContainer = new BScroll(_this.$refs.posterContainer, {
95
+ _this.posterContainer = new BScrollModule__default(_this.$refs.posterContainer, {
97
96
  click: true,
98
97
  scrollX: true
99
98
  // startX: 0,
@@ -463,7 +462,7 @@ var _sfc_render = function render() {
463
462
  }, [_vm._v(" 查看产品详情 ")])])]) : _vm._e()]], 2);
464
463
  };
465
464
  var _sfc_staticRenderFns = [];
466
- var __component__ = /* @__PURE__ */ normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "28c2348c");
465
+ var __component__ = /* @__PURE__ */ normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "eeada4c9");
467
466
  var productDetailLayer = __component__.exports;
468
467
  export {
469
468
  productDetailLayer as p
@@ -1 +1 @@
1
- [data-v-28c2348c] .act-gold-popup-container{background:-webkit-linear-gradient(top,#FFFFFF 0%,#F7F8FC 100%);background:linear-gradient(180deg,#FFFFFF 0%,#F7F8FC 100%)}.product-layer-content[data-v-28c2348c]{padding:0 15px;padding-bottom:30px}.product-layer-content .layer-section[data-v-28c2348c]{margin-bottom:12px;background:#ffffff;border-radius:12px;padding:0px 12px 12px 12px;overflow:hidden}.product-layer-content .layer-section.posters[data-v-28c2348c]{height:250px}.product-layer-content .layer-section.insurance[data-v-28c2348c]{padding:0px 0px 12px}.product-layer-content .layer-section.insurance .layer-section-hd[data-v-28c2348c]{padding:0 12px}.product-layer-content .layer-section-hd[data-v-28c2348c]{height:36px}.product-layer-content .layer-section-hd-title[data-v-28c2348c]{color:#333333;font-size:17px;font-weight:bold}.product-layer-content .layer-section-hd-close[data-v-28c2348c]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.product-layer-content .layer-section-hd-close span[data-v-28c2348c]{font-size:13px;color:#666666;margin-right:5px}.product-layer-content .layer-section-hd-close img[data-v-28c2348c]{width:8px}.product-layer-content .layer-section-insurance[data-v-28c2348c]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;text-align:center}.product-layer-content .layer-section-insurance .insurance-item[data-v-28c2348c]{width:86px;height:71px;padding:12px 0;position:relative}.product-layer-content .layer-section-insurance .insurance-item .handleClickSection[data-v-28c2348c]{width:100%;height:100%;position:absolute;top:0;left:0;z-index:100}.product-layer-content .layer-section-insurance .insurance-item img[data-v-28c2348c]{width:36px;height:36px}.product-layer-content .layer-section-insurance .insurance-item p[data-v-28c2348c]{font-size:13px}.product-layer-content .layer-section-sales[data-v-28c2348c]{min-height:58px;border-radius:12px;padding:12px;background:#FFFFFF;letter-spacing:1px;line-height:21px;color:#666666;font-size:14px}.product-layer-content .layer-section-articles[data-v-28c2348c]{padding:12px;border-radius:12px;background:#FFFFFF}.product-layer-content .layer-section-articles .article-item[data-v-28c2348c]{height:86px}.product-layer-content .layer-section-articles .article-item[data-v-28c2348c]:not(:last-child){padding-bottom:12px;border-bottom:1px solid #F5F5F5}.product-layer-content .layer-section-articles .article-item[data-v-28c2348c]:not(:first-child){padding-top:12px}.product-layer-content .layer-section-articles .article-item-title[data-v-28c2348c]{color:#333333;font-size:15px;line-height:22px;margin-right:12px}.product-layer-content .layer-section-articles .article-item-img[data-v-28c2348c]{-webkit-box-flex:0;-webkit-flex:0 0 72px;flex:0 0 72px;width:72px;height:72px}.product-layer-content .layer-section-articles .article-item-img img[data-v-28c2348c]{width:100%;height:100%}.product-layer-content .layer-section-courses[data-v-28c2348c]{padding:12px;border-radius:12px;background:#FFFFFF}.product-layer-content .layer-section-courses .course-item[data-v-28c2348c]{height:76px}.product-layer-content .layer-section-courses .course-item[data-v-28c2348c]:not(:last-child){padding-bottom:12px;border-bottom:1px solid #F5F5F5}.product-layer-content .layer-section-courses .course-item[data-v-28c2348c]:not(:first-child){padding-top:12px}.product-layer-content .layer-section-courses .course-item-title[data-v-28c2348c]{color:#333333;font-size:15px;height:44px;line-height:22px;margin-right:9px;display:-webkit-box;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-layer-content .layer-section-courses .course-item-img[data-v-28c2348c]{width:133px;height:75px;-webkit-box-flex:0;-webkit-flex:0 0 133px;flex:0 0 133px;border-radius:6px;overflow:hidden;position:relative}.product-layer-content .layer-section-courses .course-item-img[data-v-28c2348c]::after{content:"";display:block;position:absolute;width:13.3rem;height:7.5rem;top:0;left:0;background:#333;opacity:0.1}.product-layer-content .layer-section-courses .course-item-img .playImg[data-v-28c2348c]{position:absolute;width:30px;height:30px;-webkit-transform:translate(-15px,-15px);transform:translate(-15px,-15px);top:50%;left:50%;z-index:10}.product-layer-content .layer-section-courses .course-item-img img[data-v-28c2348c]{width:100%;height:100%}.product-layer-content .layer-section-posters[data-v-28c2348c]{height:180px;position:relative}.product-layer-content .layer-section-posters .poster-wrapper[data-v-28c2348c]{height:100%;display:-webkit-box;display:-webkit-flex;display:flex;width:-webkit-fit-content;width:fit-content}.product-layer-content .layer-section-posters .poster-item[data-v-28c2348c]{width:107px;height:100%;border-radius:6px;overflow:hidden}.product-layer-content .layer-section-posters .poster-item.isQrCode[data-v-28c2348c]{width:107px;height:107px;border-radius:0}.product-layer-content .layer-section-posters .poster-item.isQrCode img[data-v-28c2348c]{width:100%}.product-layer-content .layer-section-posters .poster-item[data-v-28c2348c]:not(:last-child){margin-right:7px}.product-layer-content .layer-section-posters .poster-item img[data-v-28c2348c]{width:100%}.product-layer-footer[data-v-28c2348c]{position:absolute;bottom:0;left:0;background:#ffffff;height:50px;width:100%}.product-layer-footer .footer-btn[data-v-28c2348c]{width:345px;font-size:15px;background:-webkit-linear-gradient(right,#F05A4B 0%,#FC7468 100%);background:linear-gradient(270deg,#F05A4B 0%,#FC7468 100%);color:#ffffff;border-radius:20px;text-align:center;height:40px;line-height:40px;margin:5px auto}.loading-wrap[data-v-28c2348c]{margin-top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.loading-txt[data-v-28c2348c]{text-align:center;font-size:15px;color:#8F93A0;margin-top:20px}.share-tip[data-v-28c2348c]{background:#F7F8FC;border-radius:4px;padding:2px 8px;border-radius:4px;font-size:12px;color:#666666;margin-left:10px}
1
+ [data-v-eeada4c9] .act-gold-popup-container{background:-webkit-linear-gradient(top,#FFFFFF 0%,#F7F8FC 100%);background:linear-gradient(180deg,#FFFFFF 0%,#F7F8FC 100%)}.product-layer-content[data-v-eeada4c9]{padding:0 15px;padding-bottom:30px}.product-layer-content .layer-section[data-v-eeada4c9]{margin-bottom:12px;background:#ffffff;border-radius:12px;padding:0px 12px 12px 12px;overflow:hidden}.product-layer-content .layer-section.posters[data-v-eeada4c9]{height:250px}.product-layer-content .layer-section.insurance[data-v-eeada4c9]{padding:0px 0px 12px}.product-layer-content .layer-section.insurance .layer-section-hd[data-v-eeada4c9]{padding:0 12px}.product-layer-content .layer-section-hd[data-v-eeada4c9]{height:36px}.product-layer-content .layer-section-hd-title[data-v-eeada4c9]{color:#333333;font-size:17px;font-weight:bold}.product-layer-content .layer-section-hd-close[data-v-eeada4c9]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.product-layer-content .layer-section-hd-close span[data-v-eeada4c9]{font-size:13px;color:#666666;margin-right:5px}.product-layer-content .layer-section-hd-close img[data-v-eeada4c9]{width:8px}.product-layer-content .layer-section-insurance[data-v-eeada4c9]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;text-align:center}.product-layer-content .layer-section-insurance .insurance-item[data-v-eeada4c9]{width:86px;height:71px;padding:12px 0;position:relative}.product-layer-content .layer-section-insurance .insurance-item .handleClickSection[data-v-eeada4c9]{width:100%;height:100%;position:absolute;top:0;left:0;z-index:100}.product-layer-content .layer-section-insurance .insurance-item img[data-v-eeada4c9]{width:36px;height:36px}.product-layer-content .layer-section-insurance .insurance-item p[data-v-eeada4c9]{font-size:13px}.product-layer-content .layer-section-sales[data-v-eeada4c9]{min-height:58px;border-radius:12px;padding:12px;background:#FFFFFF;letter-spacing:1px;line-height:21px;color:#666666;font-size:14px}.product-layer-content .layer-section-articles[data-v-eeada4c9]{padding:12px;border-radius:12px;background:#FFFFFF}.product-layer-content .layer-section-articles .article-item[data-v-eeada4c9]{height:86px}.product-layer-content .layer-section-articles .article-item[data-v-eeada4c9]:not(:last-child){padding-bottom:12px;border-bottom:1px solid #F5F5F5}.product-layer-content .layer-section-articles .article-item[data-v-eeada4c9]:not(:first-child){padding-top:12px}.product-layer-content .layer-section-articles .article-item-title[data-v-eeada4c9]{color:#333333;font-size:15px;line-height:22px;margin-right:12px}.product-layer-content .layer-section-articles .article-item-img[data-v-eeada4c9]{-webkit-box-flex:0;-webkit-flex:0 0 72px;flex:0 0 72px;width:72px;height:72px}.product-layer-content .layer-section-articles .article-item-img img[data-v-eeada4c9]{width:100%;height:100%}.product-layer-content .layer-section-courses[data-v-eeada4c9]{padding:12px;border-radius:12px;background:#FFFFFF}.product-layer-content .layer-section-courses .course-item[data-v-eeada4c9]{height:76px}.product-layer-content .layer-section-courses .course-item[data-v-eeada4c9]:not(:last-child){padding-bottom:12px;border-bottom:1px solid #F5F5F5}.product-layer-content .layer-section-courses .course-item[data-v-eeada4c9]:not(:first-child){padding-top:12px}.product-layer-content .layer-section-courses .course-item-title[data-v-eeada4c9]{color:#333333;font-size:15px;height:44px;line-height:22px;margin-right:9px;display:-webkit-box;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-layer-content .layer-section-courses .course-item-img[data-v-eeada4c9]{width:133px;height:75px;-webkit-box-flex:0;-webkit-flex:0 0 133px;flex:0 0 133px;border-radius:6px;overflow:hidden;position:relative}.product-layer-content .layer-section-courses .course-item-img[data-v-eeada4c9]::after{content:"";display:block;position:absolute;width:13.3rem;height:7.5rem;top:0;left:0;background:#333;opacity:0.1}.product-layer-content .layer-section-courses .course-item-img .playImg[data-v-eeada4c9]{position:absolute;width:30px;height:30px;-webkit-transform:translate(-15px,-15px);transform:translate(-15px,-15px);top:50%;left:50%;z-index:10}.product-layer-content .layer-section-courses .course-item-img img[data-v-eeada4c9]{width:100%;height:100%}.product-layer-content .layer-section-posters[data-v-eeada4c9]{height:180px;position:relative}.product-layer-content .layer-section-posters .poster-wrapper[data-v-eeada4c9]{height:100%;display:-webkit-box;display:-webkit-flex;display:flex;width:-webkit-fit-content;width:fit-content}.product-layer-content .layer-section-posters .poster-item[data-v-eeada4c9]{width:107px;height:100%;border-radius:6px;overflow:hidden}.product-layer-content .layer-section-posters .poster-item.isQrCode[data-v-eeada4c9]{width:107px;height:107px;border-radius:0}.product-layer-content .layer-section-posters .poster-item.isQrCode img[data-v-eeada4c9]{width:100%}.product-layer-content .layer-section-posters .poster-item[data-v-eeada4c9]:not(:last-child){margin-right:7px}.product-layer-content .layer-section-posters .poster-item img[data-v-eeada4c9]{width:100%}.product-layer-footer[data-v-eeada4c9]{position:absolute;bottom:0;left:0;background:#ffffff;height:50px;width:100%}.product-layer-footer .footer-btn[data-v-eeada4c9]{width:345px;font-size:15px;background:-webkit-linear-gradient(right,#F05A4B 0%,#FC7468 100%);background:linear-gradient(270deg,#F05A4B 0%,#FC7468 100%);color:#ffffff;border-radius:20px;text-align:center;height:40px;line-height:40px;margin:5px auto}.loading-wrap[data-v-eeada4c9]{margin-top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.loading-txt[data-v-eeada4c9]{text-align:center;font-size:15px;color:#8F93A0;margin-top:20px}.share-tip[data-v-eeada4c9]{background:#F7F8FC;border-radius:4px;padding:2px 8px;border-radius:4px;font-size:12px;color:#666666;margin-left:10px}
@@ -1 +1 @@
1
- "use strict";require('./style.css');var _forEachInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/for-each");var _Object$defineProperty=require("@babel/runtime-corejs3/core-js/object/define-property");var _Array$from=require("@babel/runtime-corejs3/core-js/array/from");var _typeof=require("@babel/runtime-corejs3/helpers/typeof");var utils_create=require("../utils/create/index.js");var common_goldlayer=require("../common/goldlayer/index.js");var common_svgicon=require("../common/svgicon/index.js");var BScroll=require("../BScroll/index.js");var utils_helpers=require("../utils/helpers/index.js");var __$_require_4441fdae__=require("../assets/icon-close2.9490.png");var common=require("../common/index.js");var _sfc_main={name:"ActRecordRuleLayer",props:{ruleData:{type:Object,default:function _default(){return[]}},brandColor:{type:String,default:"#A69DFF"},btnColor:{type:String,default:"#ff5a6e"},title:{type:String,default:"双录规则"}},components:{ActGoldLayer:common_goldlayer.ActGoldLayer,svgIcon:common_svgicon.svgIcon},data:function data(){return{isVisible:false,scroller:null,isFulleScreen:false,content:"",isShowMoreDialog:false,isShowRecordTipDialog:false,recordTips:[],rightTitleScroller:null,tableScroller:null,rightTableScroller:null,isShowRecordCitysDialog:false,recordCitys:[]}},computed:{ruleList:function ruleList(){if(Array.isArray(this.ruleData)){return this.ruleData}if(_typeof(this.ruleData)==="object"){var list=[];for(var key in this.ruleData){list.push({areaName:key,doubleRecordDetailArea:this.ruleData[key].doubleRecordDetailArea})}return list}return[]}},methods:{show:function show(){this.isVisible=true;this.refreshScroll()},hide:function hide(){this.isVisible=false},hideFullLayer:function hideFullLayer(){this.isFulleScreen=false},close:function close(){this.isVisible=false},refreshScroll:function refreshScroll(){var _this=this;if(this.scroller){this.$nextTick(function(){_this.scroller.refresh()})}},scrollSuc:function scrollSuc(scroll){this.scroller=scroll;this.refreshScroll()},showFullScreen:function showFullScreen(){this.isFulleScreen=true},getRuleRows:function getRuleRows(rowData){var _context;var ruleObj={};_forEachInstanceProperty(_context=rowData.doubleRecordDetailArea||[]).call(_context,function(item){if(ruleObj[item.dr_detail_id]){ruleObj[item.dr_detail_id].citys.push(item.city_name)}else{ruleObj[item.dr_detail_id]={dr_detail_id:item.dr_detail_id,citys:[item.city_name],range:item.range,age_limit:item.age_limit,dr_sigle:item.dr_sigle,dr_mix:item.dr_mix,dr_way:item.dr_way,dr_role:item.dr_role,remark:item.remark}}});_Object$defineProperty(ruleObj,"areaName",{value:rowData.areaName,enumerable:false});return ruleObj},handleRemark:function handleRemark(remark){if(remark.length>30){return remark.substring(0,30)}return remark},showMoreDialog:function showMoreDialog(content){this.content=content;this.isShowMoreDialog=true},getRecordTips:function getRecordTips(item){var recordTips=[];if(~~item.age_limit===1){recordTips.push("投保人年龄大于等于60周岁")}if(~~item.dr_sigle===1){recordTips.push("自保件全面双录")}if(~~item.dr_mix===1){recordTips.push("互保件全面双录")}return recordTips},showRecordTipDialog:function showRecordTipDialog(item){this.recordTips=this.getRecordTips(item);this.isShowRecordTipDialog=true},showRecordCitysDialog:function showRecordCitysDialog(item){this.recordCitys=item.citys;this.isShowRecordCitysDialog=true},getRightTableContent:function getRightTableContent(){var _context2,_this2=this;var arr=[];_forEachInstanceProperty(_context2=this.ruleList).call(_context2,function(rule){var ruleObj=_this2.getRuleRows(rule);arr.push(ruleObj)});return arr},calcHeight:function calcHeight(){var bodyItemDom=document.querySelector(".act-gold-record-table").querySelectorAll(".body-item-right");var rightTableDom=document.querySelector(".act-gold-record-table").querySelectorAll(".right-table-body-item");var leftArr=_Array$from(bodyItemDom);var rightArr=_Array$from(rightTableDom);for(var i=0;i<leftArr.length;i++){var cityDom=leftArr[i].querySelectorAll(".right-row-city");var itemDom=rightArr[i].querySelectorAll(".right-row-item");var cityArr=_Array$from(cityDom);var itemArr=_Array$from(itemDom);for(var j=0;j<cityArr.length;j++){var height=Math.max(cityArr[j].clientHeight,itemArr[j].clientHeight);cityArr[j].style.height=height+"px";itemArr[j].style.height=height+"px"}}},initScroll:function initScroll(){var _this3=this;var rightTitle=this.$refs.rightTitle;var tableWrapper=this.$refs.tableWrapper;var rightTable=this.$refs.rightTable;if(rightTitle){this.$nextTick(function(){if(!_this3.rightTitleScroller){_this3.rightTitleScroller=new BScroll.bScroll(rightTitle,{scrollX:true,scrolly:false,bounce:false,probeType:3,momentum:false});_this3.rightTitleScroller.on("scroll",function(_ref){var x=_ref.x,y=_ref.y;utils_helpers.throttle(_this3.rightTableScroller.scrollTo(x,y,0))})}else{_this3.rightTitleScroller.refresh()}})}if(tableWrapper){this.$nextTick(function(){if(!_this3.tableScroller){_this3.tableScroller=new BScroll.bScroll(tableWrapper,{scrollY:true,scrollX:false,bounce:false,click:true})}else{_this3.tableScroller.refresh()}})}if(rightTable){this.$nextTick(function(){if(!_this3.rightTableScroller){_this3.rightTableScroller=new BScroll.bScroll(rightTable,{scrollX:true,bounce:false,probeType:2,momentum:false,click:true});_this3.rightTableScroller.on("scroll",function(_ref2){var x=_ref2.x,y=_ref2.y;_this3.rightTitleScroller.scrollTo(x,y,0)})}else{_this3.rightTableScroller.refresh()}})}}},watch:{isFulleScreen:function isFulleScreen(newVal){if(newVal){this.preOverflowValue=document&&document.body&&document.body.style&&document.body.style.overflow;document.documentElement.style.overflow="hidden"}else{document.documentElement.style.overflow=this.preOverflowValue||"visible"}},isVisible:function isVisible(val){var _this4=this;if(val){this.$nextTick(function(){_this4.calcHeight();_this4.initScroll()})}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",[_c("act-gold-layer",{ref:"recordRuleLayer",attrs:{"title":_vm.title,"center":false,"visible":_vm.isVisible,"zIndex":100},on:{"close":_vm.close}},[_c("div",{staticClass:"gradual-color"}),_c("div",{staticClass:"record-rule-wrapper"},[_c("div",{staticClass:"content"},[_c("p",{staticClass:"description"},[_vm._v(" *实际以双录页面展示的规则为准 ")]),_c("div",{staticClass:"record-rule-content"},[_c("div",{staticClass:"table-title"},[_c("div",{ref:"rightTitle",staticClass:"right-title"},[_c("div",{staticClass:"right-title-wrapper"},[_c("div",{staticClass:"header-item"},[_vm._v(" 双录地区 ")]),_c("div",{staticClass:"header-item"},[_vm._v(" 双录范围 ")]),_c("div",{staticClass:"header-item"},[_vm._v(" 方式 ")]),_c("div",{staticClass:"header-item"},[_vm._v(" 双录角色 ")])])])]),_c("div",{ref:"tableWrapper",staticClass:"table-wrapper"},[_c("div",{staticClass:"record-table act-gold-record-table"},[_c("div",{ref:"rightTable",staticClass:"right-table"},[_c("div",{staticClass:"right-table-wrapper"},_vm._l(_vm.getRightTableContent(),function(r){return _c("div",{key:r.areaName,staticClass:"right-table-body-item"},_vm._l(r,function(item,index){return _c("div",{key:index,ref:"rowitem"+index,refInFor:true,staticClass:"right-row-item"},[_c("div",{staticClass:"right-row-range row-citem"},[_vm._v(" "+_vm._s(r.areaName)+" "),_c("p",[_c("span",[_vm._v(_vm._s(item.citys[0]))]),item.citys.length>1?[_vm._v(" 等地区 "),_c("i",{staticClass:"icon",on:{"click":function click($event){$event.stopPropagation();return _vm.showRecordCitysDialog(item)}}},[_c("svg-icon",{staticClass:"icon-question",style:{color:_vm.btnColor},attrs:{"iconClass":"icon-question"}})],1)]:_vm._e()],2)]),_c("div",{staticClass:"right-row-range row-citem"},[_c("p",{staticClass:"row-citem-content"},[_c("span",[_vm._v(_vm._s(~~item.range===1?"部分双录":"全面双录"))]),~~item.range===1?_c("i",{staticClass:"icon",on:{"click":function click($event){$event.stopPropagation();return _vm.showRecordTipDialog(item)}}},[_c("svg-icon",{staticClass:"icon-question",style:{color:_vm.btnColor},attrs:{"iconClass":"icon-question"}})],1):_vm._e()])]),_c("div",{staticClass:"right-row-way row-citem"},_vm._l(item.dr_way,function(way){return _c("p",{key:way},[_vm._v(" "+_vm._s(way)+" ")])}),0),_c("div",{staticClass:"right-row-role row-citem"},_vm._l(item.dr_role,function(roleItem,cindex){return _c("p",{key:"role_".concat(cindex)},[_vm._v(" "+_vm._s(roleItem.role)+"("+_vm._s(roleItem.limit)+") ")])}),0)])}),0)}),0)])])])])]),_c("div",{staticClass:"iphonex_margin submit-btn"},[_c("div",{staticClass:"full-screen-btn",style:{"background":_vm.btnColor},on:{"click":_vm.showFullScreen}},[_vm._v(" 全屏展示 ")])])])]),_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.isFulleScreen,expression:"isFulleScreen"}],staticClass:"bg-wrap fullScreen",on:{"touchmove":function touchmove($event){$event.stopPropagation();return(function(){}).apply(null,arguments)}}},[_c("div",{staticClass:"full-record-rule-wrapper"},[_c("div",{staticClass:"title"},[_c("span",[_vm._v(_vm._s(_vm.title))]),_c("p",{staticClass:"close"},[_c("img",{attrs:{"src":__$_require_4441fdae__},on:{"click":_vm.hideFullLayer}})])]),_vm._m(0),_c("div",{staticClass:"record-rule-content"},[_vm._m(1),_c("div",{staticClass:"table-body"},_vm._l(_vm.ruleList,function(rowData){return _c("div",{key:rowData.areaName,staticClass:"table-body-item"},[_c("div",{staticClass:"body-item-left"},[_vm._v(" "+_vm._s(rowData.areaName)+" ")]),_c("div",{staticClass:"body-item-right"},_vm._l(_vm.getRuleRows(rowData),function(item,index){return _c("div",{key:index,staticClass:"right-row-item"},[_c("div",{staticClass:"right-row-city row-citem"},_vm._l(item.citys,function(city){return _c("p",{key:city},[_vm._v(" "+_vm._s(city)+" ")])}),0),_c("div",{staticClass:"right-row-range row-citem"},[_c("p",{staticClass:"row-citem-content"},[_c("span",[_vm._v(_vm._s(~~item.range===1?"部分双录":"全面双录"))])]),~~item.range===1?[_c("p",{staticStyle:{"color":"#FF5A6E"}},[_vm._v(" 满足以下任一条件会触发双录 ")]),_vm._l(_vm.getRecordTips(item),function(citem){return _c("p",{key:citem,staticClass:"range-tip"},[_vm._v(" "+_vm._s(citem)+" ")])})]:_vm._e()],2),_c("div",{staticClass:"right-row-way row-citem"},_vm._l(item.dr_way,function(way){return _c("p",{key:way},[_vm._v(" "+_vm._s(way)+" ")])}),0),_c("div",{staticClass:"right-row-role row-citem"},_vm._l(item.dr_role,function(roleItem,cindex){return _c("p",{key:"role_".concat(cindex)},[_vm._v(" "+_vm._s(roleItem.role)+"("+_vm._s(roleItem.limit)+") ")])}),0)])}),0)])}),0)])])]),_vm.isShowMoreDialog?_c("div",{staticClass:"dialog-mask",on:{"click":function click($event){_vm.isShowMoreDialog=false}}},[_c("div",{staticClass:"content"},[_vm._v(" "+_vm._s(_vm.content)+" ")])]):_vm._e(),_vm.isShowRecordTipDialog?_c("div",{staticClass:"dialog-mask",on:{"click":function click($event){_vm.isShowRecordTipDialog=false},"touchmove":function touchmove($event){$event.stopPropagation()}}},[_c("div",{staticClass:"content"},[_c("div",{staticClass:"record-content"},[_c("span",[_vm._v("需双录的情况:")]),_c("div",_vm._l(_vm.recordTips,function(item){return _c("p",{key:item,staticClass:"content-item"},[_vm._v(" "+_vm._s(item)+" ")])}),0)])])]):_vm._e(),_vm.isShowRecordCitysDialog?_c("div",{staticClass:"dialog-mask",on:{"click":function click($event){_vm.isShowRecordCitysDialog=false},"touchmove":function touchmove($event){$event.stopPropagation()}}},[_c("div",{staticClass:"content"},[_c("div",{staticClass:"record-content"},[_c("div",{staticClass:"record-citys"},_vm._l(_vm.recordCitys,function(item){return _c("p",{key:item,staticClass:"content-item"},[_vm._v(" "+_vm._s(item)+" ")])}),0)])])]):_vm._e()],1)};var _sfc_staticRenderFns=[function(){var _vm=this,_c=_vm._self._c;return _c("p",{staticClass:"description"},[_c("span",{staticClass:"special-desc"},[_vm._v(" 特别说明: ")]),_vm._v(" *实际以双录页面展示的规则为准,未展示的投保地区无需双录 ")])},function(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"table-header"},[_c("div",{staticClass:"header-item"},[_vm._v(" 双录地区 ")]),_c("div",{staticClass:"header-item"},[_vm._v(" 双录范围 ")]),_c("div",{staticClass:"header-item"},[_vm._v(" 方式 ")]),_c("div",{staticClass:"header-item"},[_vm._v(" 双录角色 ")])])}];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"1a83cd36");var RecordRuleLayer=__component__.exports;RecordRuleLayer.install=function(Vue){Vue.component(RecordRuleLayer.name,RecordRuleLayer);Vue.prototype["$createRecordRuleLayer"]=utils_create.create(RecordRuleLayer,Vue)};exports.RecordRuleLayer=RecordRuleLayer;
1
+ "use strict";require('./style.css');var _forEachInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/for-each");var _Object$defineProperty=require("@babel/runtime-corejs3/core-js/object/define-property");var _Array$from=require("@babel/runtime-corejs3/core-js/array/from");var _typeof=require("@babel/runtime-corejs3/helpers/typeof");var utils_create=require("../utils/create/index.js");var common_goldlayer=require("../common/goldlayer/index.js");var common_svgicon=require("../common/svgicon/index.js");var BScrollModule=require("better-scroll");var utils_helpers=require("../utils/helpers/index.js");var __$_require_4441fdae__=require("../assets/icon-close2.9490.png");var common=require("../common/index.js");var _sfc_main={name:"ActRecordRuleLayer",props:{ruleData:{type:Object,default:function _default(){return[]}},brandColor:{type:String,default:"#A69DFF"},btnColor:{type:String,default:"#ff5a6e"},title:{type:String,default:"双录规则"}},components:{ActGoldLayer:common_goldlayer.ActGoldLayer,svgIcon:common_svgicon.svgIcon},data:function data(){return{isVisible:false,scroller:null,isFulleScreen:false,content:"",isShowMoreDialog:false,isShowRecordTipDialog:false,recordTips:[],rightTitleScroller:null,tableScroller:null,rightTableScroller:null,isShowRecordCitysDialog:false,recordCitys:[]}},computed:{ruleList:function ruleList(){if(Array.isArray(this.ruleData)){return this.ruleData}if(_typeof(this.ruleData)==="object"){var list=[];for(var key in this.ruleData){list.push({areaName:key,doubleRecordDetailArea:this.ruleData[key].doubleRecordDetailArea})}return list}return[]}},methods:{show:function show(){this.isVisible=true;this.refreshScroll()},hide:function hide(){this.isVisible=false},hideFullLayer:function hideFullLayer(){this.isFulleScreen=false},close:function close(){this.isVisible=false},refreshScroll:function refreshScroll(){var _this=this;if(this.scroller){this.$nextTick(function(){_this.scroller.refresh()})}},scrollSuc:function scrollSuc(scroll){this.scroller=scroll;this.refreshScroll()},showFullScreen:function showFullScreen(){this.isFulleScreen=true},getRuleRows:function getRuleRows(rowData){var _context;var ruleObj={};_forEachInstanceProperty(_context=rowData.doubleRecordDetailArea||[]).call(_context,function(item){if(ruleObj[item.dr_detail_id]){ruleObj[item.dr_detail_id].citys.push(item.city_name)}else{ruleObj[item.dr_detail_id]={dr_detail_id:item.dr_detail_id,citys:[item.city_name],range:item.range,age_limit:item.age_limit,dr_sigle:item.dr_sigle,dr_mix:item.dr_mix,dr_way:item.dr_way,dr_role:item.dr_role,remark:item.remark}}});_Object$defineProperty(ruleObj,"areaName",{value:rowData.areaName,enumerable:false});return ruleObj},handleRemark:function handleRemark(remark){if(remark.length>30){return remark.substring(0,30)}return remark},showMoreDialog:function showMoreDialog(content){this.content=content;this.isShowMoreDialog=true},getRecordTips:function getRecordTips(item){var recordTips=[];if(~~item.age_limit===1){recordTips.push("投保人年龄大于等于60周岁")}if(~~item.dr_sigle===1){recordTips.push("自保件全面双录")}if(~~item.dr_mix===1){recordTips.push("互保件全面双录")}return recordTips},showRecordTipDialog:function showRecordTipDialog(item){this.recordTips=this.getRecordTips(item);this.isShowRecordTipDialog=true},showRecordCitysDialog:function showRecordCitysDialog(item){this.recordCitys=item.citys;this.isShowRecordCitysDialog=true},getRightTableContent:function getRightTableContent(){var _context2,_this2=this;var arr=[];_forEachInstanceProperty(_context2=this.ruleList).call(_context2,function(rule){var ruleObj=_this2.getRuleRows(rule);arr.push(ruleObj)});return arr},calcHeight:function calcHeight(){var bodyItemDom=document.querySelector(".act-gold-record-table").querySelectorAll(".body-item-right");var rightTableDom=document.querySelector(".act-gold-record-table").querySelectorAll(".right-table-body-item");var leftArr=_Array$from(bodyItemDom);var rightArr=_Array$from(rightTableDom);for(var i=0;i<leftArr.length;i++){var cityDom=leftArr[i].querySelectorAll(".right-row-city");var itemDom=rightArr[i].querySelectorAll(".right-row-item");var cityArr=_Array$from(cityDom);var itemArr=_Array$from(itemDom);for(var j=0;j<cityArr.length;j++){var height=Math.max(cityArr[j].clientHeight,itemArr[j].clientHeight);cityArr[j].style.height=height+"px";itemArr[j].style.height=height+"px"}}},initScroll:function initScroll(){var _this3=this;var rightTitle=this.$refs.rightTitle;var tableWrapper=this.$refs.tableWrapper;var rightTable=this.$refs.rightTable;if(rightTitle){this.$nextTick(function(){if(!_this3.rightTitleScroller){_this3.rightTitleScroller=new BScrollModule(rightTitle,{scrollX:true,scrolly:false,bounce:false,probeType:3,momentum:false});_this3.rightTitleScroller.on("scroll",function(_ref){var x=_ref.x,y=_ref.y;utils_helpers.throttle(_this3.rightTableScroller.scrollTo(x,y,0))})}else{_this3.rightTitleScroller.refresh()}})}if(tableWrapper){this.$nextTick(function(){if(!_this3.tableScroller){_this3.tableScroller=new BScrollModule(tableWrapper,{scrollY:true,scrollX:false,bounce:false,click:true})}else{_this3.tableScroller.refresh()}})}if(rightTable){this.$nextTick(function(){if(!_this3.rightTableScroller){_this3.rightTableScroller=new BScrollModule(rightTable,{scrollX:true,bounce:false,probeType:2,momentum:false,click:true});_this3.rightTableScroller.on("scroll",function(_ref2){var x=_ref2.x,y=_ref2.y;_this3.rightTitleScroller.scrollTo(x,y,0)})}else{_this3.rightTableScroller.refresh()}})}}},watch:{isFulleScreen:function isFulleScreen(newVal){if(newVal){this.preOverflowValue=document&&document.body&&document.body.style&&document.body.style.overflow;document.documentElement.style.overflow="hidden"}else{document.documentElement.style.overflow=this.preOverflowValue||"visible"}},isVisible:function isVisible(val){var _this4=this;if(val){this.$nextTick(function(){_this4.calcHeight();_this4.initScroll()})}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",[_c("act-gold-layer",{ref:"recordRuleLayer",attrs:{"title":_vm.title,"center":false,"visible":_vm.isVisible,"zIndex":100},on:{"close":_vm.close}},[_c("div",{staticClass:"gradual-color"}),_c("div",{staticClass:"record-rule-wrapper"},[_c("div",{staticClass:"content"},[_c("p",{staticClass:"description"},[_vm._v(" *实际以双录页面展示的规则为准 ")]),_c("div",{staticClass:"record-rule-content"},[_c("div",{staticClass:"table-title"},[_c("div",{ref:"rightTitle",staticClass:"right-title"},[_c("div",{staticClass:"right-title-wrapper"},[_c("div",{staticClass:"header-item"},[_vm._v(" 双录地区 ")]),_c("div",{staticClass:"header-item"},[_vm._v(" 双录范围 ")]),_c("div",{staticClass:"header-item"},[_vm._v(" 方式 ")]),_c("div",{staticClass:"header-item"},[_vm._v(" 双录角色 ")])])])]),_c("div",{ref:"tableWrapper",staticClass:"table-wrapper"},[_c("div",{staticClass:"record-table act-gold-record-table"},[_c("div",{ref:"rightTable",staticClass:"right-table"},[_c("div",{staticClass:"right-table-wrapper"},_vm._l(_vm.getRightTableContent(),function(r){return _c("div",{key:r.areaName,staticClass:"right-table-body-item"},_vm._l(r,function(item,index){return _c("div",{key:index,ref:"rowitem"+index,refInFor:true,staticClass:"right-row-item"},[_c("div",{staticClass:"right-row-range row-citem"},[_vm._v(" "+_vm._s(r.areaName)+" "),_c("p",[_c("span",[_vm._v(_vm._s(item.citys[0]))]),item.citys.length>1?[_vm._v(" 等地区 "),_c("i",{staticClass:"icon",on:{"click":function click($event){$event.stopPropagation();return _vm.showRecordCitysDialog(item)}}},[_c("svg-icon",{staticClass:"icon-question",style:{color:_vm.btnColor},attrs:{"iconClass":"icon-question"}})],1)]:_vm._e()],2)]),_c("div",{staticClass:"right-row-range row-citem"},[_c("p",{staticClass:"row-citem-content"},[_c("span",[_vm._v(_vm._s(~~item.range===1?"部分双录":"全面双录"))]),~~item.range===1?_c("i",{staticClass:"icon",on:{"click":function click($event){$event.stopPropagation();return _vm.showRecordTipDialog(item)}}},[_c("svg-icon",{staticClass:"icon-question",style:{color:_vm.btnColor},attrs:{"iconClass":"icon-question"}})],1):_vm._e()])]),_c("div",{staticClass:"right-row-way row-citem"},_vm._l(item.dr_way,function(way){return _c("p",{key:way},[_vm._v(" "+_vm._s(way)+" ")])}),0),_c("div",{staticClass:"right-row-role row-citem"},_vm._l(item.dr_role,function(roleItem,cindex){return _c("p",{key:"role_".concat(cindex)},[_vm._v(" "+_vm._s(roleItem.role)+"("+_vm._s(roleItem.limit)+") ")])}),0)])}),0)}),0)])])])])]),_c("div",{staticClass:"iphonex_margin submit-btn"},[_c("div",{staticClass:"full-screen-btn",style:{"background":_vm.btnColor},on:{"click":_vm.showFullScreen}},[_vm._v(" 全屏展示 ")])])])]),_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.isFulleScreen,expression:"isFulleScreen"}],staticClass:"bg-wrap fullScreen",on:{"touchmove":function touchmove($event){$event.stopPropagation();return(function(){}).apply(null,arguments)}}},[_c("div",{staticClass:"full-record-rule-wrapper"},[_c("div",{staticClass:"title"},[_c("span",[_vm._v(_vm._s(_vm.title))]),_c("p",{staticClass:"close"},[_c("img",{attrs:{"src":__$_require_4441fdae__},on:{"click":_vm.hideFullLayer}})])]),_vm._m(0),_c("div",{staticClass:"record-rule-content"},[_vm._m(1),_c("div",{staticClass:"table-body"},_vm._l(_vm.ruleList,function(rowData){return _c("div",{key:rowData.areaName,staticClass:"table-body-item"},[_c("div",{staticClass:"body-item-left"},[_vm._v(" "+_vm._s(rowData.areaName)+" ")]),_c("div",{staticClass:"body-item-right"},_vm._l(_vm.getRuleRows(rowData),function(item,index){return _c("div",{key:index,staticClass:"right-row-item"},[_c("div",{staticClass:"right-row-city row-citem"},_vm._l(item.citys,function(city){return _c("p",{key:city},[_vm._v(" "+_vm._s(city)+" ")])}),0),_c("div",{staticClass:"right-row-range row-citem"},[_c("p",{staticClass:"row-citem-content"},[_c("span",[_vm._v(_vm._s(~~item.range===1?"部分双录":"全面双录"))])]),~~item.range===1?[_c("p",{staticStyle:{"color":"#FF5A6E"}},[_vm._v(" 满足以下任一条件会触发双录 ")]),_vm._l(_vm.getRecordTips(item),function(citem){return _c("p",{key:citem,staticClass:"range-tip"},[_vm._v(" "+_vm._s(citem)+" ")])})]:_vm._e()],2),_c("div",{staticClass:"right-row-way row-citem"},_vm._l(item.dr_way,function(way){return _c("p",{key:way},[_vm._v(" "+_vm._s(way)+" ")])}),0),_c("div",{staticClass:"right-row-role row-citem"},_vm._l(item.dr_role,function(roleItem,cindex){return _c("p",{key:"role_".concat(cindex)},[_vm._v(" "+_vm._s(roleItem.role)+"("+_vm._s(roleItem.limit)+") ")])}),0)])}),0)])}),0)])])]),_vm.isShowMoreDialog?_c("div",{staticClass:"dialog-mask",on:{"click":function click($event){_vm.isShowMoreDialog=false}}},[_c("div",{staticClass:"content"},[_vm._v(" "+_vm._s(_vm.content)+" ")])]):_vm._e(),_vm.isShowRecordTipDialog?_c("div",{staticClass:"dialog-mask",on:{"click":function click($event){_vm.isShowRecordTipDialog=false},"touchmove":function touchmove($event){$event.stopPropagation()}}},[_c("div",{staticClass:"content"},[_c("div",{staticClass:"record-content"},[_c("span",[_vm._v("需双录的情况:")]),_c("div",_vm._l(_vm.recordTips,function(item){return _c("p",{key:item,staticClass:"content-item"},[_vm._v(" "+_vm._s(item)+" ")])}),0)])])]):_vm._e(),_vm.isShowRecordCitysDialog?_c("div",{staticClass:"dialog-mask",on:{"click":function click($event){_vm.isShowRecordCitysDialog=false},"touchmove":function touchmove($event){$event.stopPropagation()}}},[_c("div",{staticClass:"content"},[_c("div",{staticClass:"record-content"},[_c("div",{staticClass:"record-citys"},_vm._l(_vm.recordCitys,function(item){return _c("p",{key:item,staticClass:"content-item"},[_vm._v(" "+_vm._s(item)+" ")])}),0)])])]):_vm._e()],1)};var _sfc_staticRenderFns=[function(){var _vm=this,_c=_vm._self._c;return _c("p",{staticClass:"description"},[_c("span",{staticClass:"special-desc"},[_vm._v(" 特别说明: ")]),_vm._v(" *实际以双录页面展示的规则为准,未展示的投保地区无需双录 ")])},function(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"table-header"},[_c("div",{staticClass:"header-item"},[_vm._v(" 双录地区 ")]),_c("div",{staticClass:"header-item"},[_vm._v(" 双录范围 ")]),_c("div",{staticClass:"header-item"},[_vm._v(" 方式 ")]),_c("div",{staticClass:"header-item"},[_vm._v(" 双录角色 ")])])}];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"1a83cd36");var RecordRuleLayer=__component__.exports;RecordRuleLayer.install=function(Vue){Vue.component(RecordRuleLayer.name,RecordRuleLayer);Vue.prototype["$createRecordRuleLayer"]=utils_create.create(RecordRuleLayer,Vue)};exports.RecordRuleLayer=RecordRuleLayer;
@@ -5,7 +5,7 @@ import _Array$from from "@babel/runtime-corejs3/core-js/array/from";
5
5
  import { c as create } from "../utils/create/index.mjs";
6
6
  import { A as ActGoldLayer } from "../common/goldlayer/index.mjs";
7
7
  import { s as svgIcon } from "../common/svgicon/index.mjs";
8
- import { b as bScroll } from "../BScroll/index.mjs";
8
+ import BScrollModule__default from "better-scroll";
9
9
  import { t as throttle } from "../utils/helpers/index.mjs";
10
10
  import __$_require_4441fdae__ from "../assets/icon-close2.9490.png";
11
11
  import { n as normalizeComponent } from "../common/index.mjs";
@@ -189,7 +189,7 @@ import './style.css';var _sfc_main = {
189
189
  if (rightTitle) {
190
190
  this.$nextTick(function() {
191
191
  if (!_this3.rightTitleScroller) {
192
- _this3.rightTitleScroller = new bScroll(rightTitle, {
192
+ _this3.rightTitleScroller = new BScrollModule__default(rightTitle, {
193
193
  scrollX: true,
194
194
  scrolly: false,
195
195
  bounce: false,
@@ -208,7 +208,7 @@ import './style.css';var _sfc_main = {
208
208
  if (tableWrapper) {
209
209
  this.$nextTick(function() {
210
210
  if (!_this3.tableScroller) {
211
- _this3.tableScroller = new bScroll(tableWrapper, {
211
+ _this3.tableScroller = new BScrollModule__default(tableWrapper, {
212
212
  scrollY: true,
213
213
  scrollX: false,
214
214
  bounce: false,
@@ -222,7 +222,7 @@ import './style.css';var _sfc_main = {
222
222
  if (rightTable) {
223
223
  this.$nextTick(function() {
224
224
  if (!_this3.rightTableScroller) {
225
- _this3.rightTableScroller = new bScroll(rightTable, {
225
+ _this3.rightTableScroller = new BScrollModule__default(rightTable, {
226
226
  // scrollY: true,
227
227
  scrollX: true,
228
228
  bounce: false,
package/lib/Rule/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";require('./style.css');var _parseInt=require("@babel/runtime-corejs3/core-js/parse-int");var _JSON$stringify=require("@babel/runtime-corejs3/core-js/json/stringify");var utils_create=require("../utils/create/index.js");var BScroll=require("../BScroll/index.js");var mixins_visible=require("../mixins/visible/index.js");var mixins_noscroll=require("../mixins/noscroll/index.js");var common_layer=require("../common/layer/index.js");var common_svgicon=require("../common/svgicon/index.js");var utils_helpers=require("../utils/helpers/index.js");var utils_BScroll_constants=require("../utils/BScroll/constants/index.js");var common=require("../common/index.js");var HIDE_RULE_EVENT="hidelayer";var MAX_HEIGHT_DEFAULT=.56;var MAX_HEIGHT_IMG=.46;var _sfc_main={name:"ActRule",mixins:[mixins_visible.visibleMixin,mixins_noscroll.noscrollMixin],data:function data(){return{ruleData:[],containerHeight:0,scrollHeight:0,bScrollIns:null,showMore:false}},watch:{isVisible:function isVisible(val){if(val){this.refresh()}}},computed:{isRuleArray:function isRuleArray(){if(utils_helpers.isArray(this.ruleData)){return true}return false}},mounted:function mounted(){this.ruleData=this.content;this.refresh()},props:{layerType:{type:String,default:"big"},title:{type:String,default:"活动规则"},titleColor:{type:String,default:"#fff"},titleBack:{type:String,default:"#f9443c"},headImg:{type:String,default:""},headImgColor:{type:String,default:"#fff"},content:{type:[Array,String],default:function _default(){return[]}},contColor:{type:String,default:"#646464"},contBgColor:{type:String,default:"#fff"},showClose:{type:Boolean,default:true},bscrollOptions:{type:Object,default:function _default2(){return{}}}},methods:{hideLayer:function hideLayer(e){this.hideRule(e)},_translateContent:function _translateContent(item){if(!item)return"";if(utils_helpers.isString(item)||utils_helpers.isNumber(item)){return item.replace(/\n/g,"<br/>")}else{var content=[];if(utils_helpers.isArray(item)){for(var index in item){var element=item[index];content.push(this._translateContent(element));if(index<item.length-1){content.push("<br/>")}}}else if(utils_helpers.isObject(item)){content.push(item.title.replace(/\n/g,"<br/>"));content.push("<br/>");content.push(this._translateContent(item.content))}return content.join("")}},refresh:function refresh(){var _this=this;if(this.$slots){this.resetScroll()}this.$nextTick(function(){var screenHeight=window.screen.height||window.screen.availHeight;if(window.frameElement){screenHeight=_parseInt(getComputedStyle(window.frameElement).height)}if(!screenHeight){return}if(!_this.containerHeight||_this.bScrollIns===null){var containerH=_this.$refs.container.offsetHeight;if(!containerH)return;var max=MAX_HEIGHT_DEFAULT;if(_this.layerType==="img"){max=MAX_HEIGHT_IMG}if(containerH>screenHeight*max){containerH=_parseInt(screenHeight*max)}_this.$refs.wrap.style.height=containerH+"px";_this.containerHeight=containerH;_this.scrollHeight=_this.$refs.cwrap.offsetHeight;if(_this.scrollHeight>_this.containerHeight){_this.showMore=true}else{_this.showMore=false}_this.$refs.cwrap.style="";var defaultOptions={probeType:2,useTransition:utils_BScroll_constants.USE_TRANSITION};for(var option in _this.bscrollOptions){defaultOptions[option]=_this.bscrollOptions[option]}_this.bScrollIns=new BScroll.bScroll(_this.$refs.container,defaultOptions);_this.bScrollIns.on("scroll",_this.scroll);_this.bScrollIns.on("scrollEnd",_this.scrollEnd)}})},hideRule:function hideRule(e){this.hide();this.$emit(HIDE_RULE_EVENT,e)},scroll:function scroll(obj){this.setMoreBtn(obj)},scrollEnd:function scrollEnd(obj){this.setMoreBtn(obj)},setMoreBtn:function setMoreBtn(obj){if(isNaN(obj.y)||Math.abs(obj.y)>=this.scrollHeight-this.containerHeight){this.showMore=false}else{this.showMore=true}},resetScroll:function resetScroll(){if(this.bScrollIns){this.bScrollIns.off("scroll",this.scroll);this.bScrollIns.off("scrollEnd",this.scrollEnd);this.bScrollIns=null}this.$refs.wrap.style.height="auto"},setContent:function setContent(data2){if(data2){this.ruleData=JSON.parse(_JSON$stringify(data2))}this.resetScroll();this.refresh()}},components:{ActLayer:common_layer.ActLayer,svgIcon:common_svgicon.svgIcon}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("act-layer",{directives:[{name:"show",rawName:"v-show",value:_vm.isVisible,expression:"isVisible"}],attrs:{"hbgColor":_vm.titleBack,"cbgColor":_vm.contBgColor,"type":_vm.layerType,"showClose":_vm.showClose,"headImg":_vm.headImg,"headImgColor":_vm.headImgColor},on:{"hidelayer":_vm.hideLayer},scopedSlots:_vm._u([{key:"header",fn:function fn(){return[_c("div",{staticClass:"act-rule-title",style:{color:_vm.titleColor}},[_c("span",[_vm._v(_vm._s(_vm.title))])])]},proxy:true},{key:"content",fn:function fn(){return[_c("div",{ref:"wrap",staticClass:"act-rule-wrap",style:{color:_vm.contColor}},[_c("div",{ref:"container",staticClass:"act-rule-container"},[_vm.$slots.content?_c("div",{ref:"cwrap"},[_vm._t("content")],2):_vm.isRuleArray?_c("div",{ref:"cwrap"},_vm._l(_vm.ruleData,function(item,i){return _c("div",{key:i},[_c("p",{staticClass:"rule-item",domProps:{"innerHTML":_vm._s(_vm._translateContent(item))}})])}),0):_c("div",{ref:"cwrap",staticClass:"rule-item",domProps:{"innerHTML":_vm._s(_vm.ruleData)}})]),_c("transition",{attrs:{"name":"more"}},[_vm.showMore?_c("div",{staticClass:"act-rule-more",style:{"box-shadow":"0 -1.4em 1.2em -0.5em "+_vm.contBgColor,"backgroundColor":_vm.contBgColor}},[_c("span",[_vm._v("下滑查看更多")]),_c("svg-icon",{attrs:{"iconClass":"double-arrow-down"}})],1):_vm._e()])],1)]},proxy:true}],null,true)})};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"1e9678ea");var Rule=__component__.exports;Rule.install=function(Vue){Vue.component(Rule.name,Rule);Vue.prototype["$createRule"]=utils_create.create(Rule,Vue)};exports.Rule=Rule;
1
+ "use strict";require('./style.css');var _parseInt=require("@babel/runtime-corejs3/core-js/parse-int");var _JSON$stringify=require("@babel/runtime-corejs3/core-js/json/stringify");var utils_create=require("../utils/create/index.js");var BScrollModule=require("better-scroll");var mixins_visible=require("../mixins/visible/index.js");var mixins_noscroll=require("../mixins/noscroll/index.js");var common_layer=require("../common/layer/index.js");var common_svgicon=require("../common/svgicon/index.js");var utils_helpers=require("../utils/helpers/index.js");var utils_BScroll_constants=require("../utils/BScroll/constants/index.js");var common=require("../common/index.js");var HIDE_RULE_EVENT="hidelayer";var MAX_HEIGHT_DEFAULT=.56;var MAX_HEIGHT_IMG=.46;var _sfc_main={name:"ActRule",mixins:[mixins_visible.visibleMixin,mixins_noscroll.noscrollMixin],data:function data(){return{ruleData:[],containerHeight:0,scrollHeight:0,bScrollIns:null,showMore:false}},watch:{isVisible:function isVisible(val){if(val){this.refresh()}}},computed:{isRuleArray:function isRuleArray(){if(utils_helpers.isArray(this.ruleData)){return true}return false}},mounted:function mounted(){this.ruleData=this.content;this.refresh()},props:{layerType:{type:String,default:"big"},title:{type:String,default:"活动规则"},titleColor:{type:String,default:"#fff"},titleBack:{type:String,default:"#f9443c"},headImg:{type:String,default:""},headImgColor:{type:String,default:"#fff"},content:{type:[Array,String],default:function _default(){return[]}},contColor:{type:String,default:"#646464"},contBgColor:{type:String,default:"#fff"},showClose:{type:Boolean,default:true},bscrollOptions:{type:Object,default:function _default2(){return{}}}},methods:{hideLayer:function hideLayer(e){this.hideRule(e)},_translateContent:function _translateContent(item){if(!item)return"";if(utils_helpers.isString(item)||utils_helpers.isNumber(item)){return item.replace(/\n/g,"<br/>")}else{var content=[];if(utils_helpers.isArray(item)){for(var index in item){var element=item[index];content.push(this._translateContent(element));if(index<item.length-1){content.push("<br/>")}}}else if(utils_helpers.isObject(item)){content.push(item.title.replace(/\n/g,"<br/>"));content.push("<br/>");content.push(this._translateContent(item.content))}return content.join("")}},refresh:function refresh(){var _this=this;if(this.$slots){this.resetScroll()}this.$nextTick(function(){var screenHeight=window.screen.height||window.screen.availHeight;if(window.frameElement){screenHeight=_parseInt(getComputedStyle(window.frameElement).height)}if(!screenHeight){return}if(!_this.containerHeight||_this.bScrollIns===null){var containerH=_this.$refs.container.offsetHeight;if(!containerH)return;var max=MAX_HEIGHT_DEFAULT;if(_this.layerType==="img"){max=MAX_HEIGHT_IMG}if(containerH>screenHeight*max){containerH=_parseInt(screenHeight*max)}_this.$refs.wrap.style.height=containerH+"px";_this.containerHeight=containerH;_this.scrollHeight=_this.$refs.cwrap.offsetHeight;if(_this.scrollHeight>_this.containerHeight){_this.showMore=true}else{_this.showMore=false}_this.$refs.cwrap.style="";var defaultOptions={probeType:2,useTransition:utils_BScroll_constants.USE_TRANSITION};for(var option in _this.bscrollOptions){defaultOptions[option]=_this.bscrollOptions[option]}_this.bScrollIns=new BScrollModule(_this.$refs.container,defaultOptions);_this.bScrollIns.on("scroll",_this.scroll);_this.bScrollIns.on("scrollEnd",_this.scrollEnd)}})},hideRule:function hideRule(e){this.hide();this.$emit(HIDE_RULE_EVENT,e)},scroll:function scroll(obj){this.setMoreBtn(obj)},scrollEnd:function scrollEnd(obj){this.setMoreBtn(obj)},setMoreBtn:function setMoreBtn(obj){if(isNaN(obj.y)||Math.abs(obj.y)>=this.scrollHeight-this.containerHeight){this.showMore=false}else{this.showMore=true}},resetScroll:function resetScroll(){if(this.bScrollIns){this.bScrollIns.off("scroll",this.scroll);this.bScrollIns.off("scrollEnd",this.scrollEnd);this.bScrollIns=null}this.$refs.wrap.style.height="auto"},setContent:function setContent(data2){if(data2){this.ruleData=JSON.parse(_JSON$stringify(data2))}this.resetScroll();this.refresh()}},components:{ActLayer:common_layer.ActLayer,svgIcon:common_svgicon.svgIcon}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("act-layer",{directives:[{name:"show",rawName:"v-show",value:_vm.isVisible,expression:"isVisible"}],attrs:{"hbgColor":_vm.titleBack,"cbgColor":_vm.contBgColor,"type":_vm.layerType,"showClose":_vm.showClose,"headImg":_vm.headImg,"headImgColor":_vm.headImgColor},on:{"hidelayer":_vm.hideLayer},scopedSlots:_vm._u([{key:"header",fn:function fn(){return[_c("div",{staticClass:"act-rule-title",style:{color:_vm.titleColor}},[_c("span",[_vm._v(_vm._s(_vm.title))])])]},proxy:true},{key:"content",fn:function fn(){return[_c("div",{ref:"wrap",staticClass:"act-rule-wrap",style:{color:_vm.contColor}},[_c("div",{ref:"container",staticClass:"act-rule-container"},[_vm.$slots.content?_c("div",{ref:"cwrap"},[_vm._t("content")],2):_vm.isRuleArray?_c("div",{ref:"cwrap"},_vm._l(_vm.ruleData,function(item,i){return _c("div",{key:i},[_c("p",{staticClass:"rule-item",domProps:{"innerHTML":_vm._s(_vm._translateContent(item))}})])}),0):_c("div",{ref:"cwrap",staticClass:"rule-item",domProps:{"innerHTML":_vm._s(_vm.ruleData)}})]),_c("transition",{attrs:{"name":"more"}},[_vm.showMore?_c("div",{staticClass:"act-rule-more",style:{"box-shadow":"0 -1.4em 1.2em -0.5em "+_vm.contBgColor,"backgroundColor":_vm.contBgColor}},[_c("span",[_vm._v("下滑查看更多")]),_c("svg-icon",{attrs:{"iconClass":"double-arrow-down"}})],1):_vm._e()])],1)]},proxy:true}],null,true)})};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"1e9678ea");var Rule=__component__.exports;Rule.install=function(Vue){Vue.component(Rule.name,Rule);Vue.prototype["$createRule"]=utils_create.create(Rule,Vue)};exports.Rule=Rule;
@@ -1,7 +1,7 @@
1
1
  import _parseInt from "@babel/runtime-corejs3/core-js/parse-int";
2
2
  import _JSON$stringify from "@babel/runtime-corejs3/core-js/json/stringify";
3
3
  import { c as create } from "../utils/create/index.mjs";
4
- import { b as bScroll } from "../BScroll/index.mjs";
4
+ import BScrollModule__default from "better-scroll";
5
5
  import { v as visibleMixin } from "../mixins/visible/index.mjs";
6
6
  import { n as noscrollMixin } from "../mixins/noscroll/index.mjs";
7
7
  import { A as ActLayer } from "../common/layer/index.mjs";
@@ -158,7 +158,7 @@ var _sfc_main = {
158
158
  for (var option in _this.bscrollOptions) {
159
159
  defaultOptions[option] = _this.bscrollOptions[option];
160
160
  }
161
- _this.bScrollIns = new bScroll(_this.$refs.container, defaultOptions);
161
+ _this.bScrollIns = new BScrollModule__default(_this.$refs.container, defaultOptions);
162
162
  _this.bScrollIns.on("scroll", _this.scroll);
163
163
  _this.bScrollIns.on("scrollEnd", _this.scrollEnd);
164
164
  }
@@ -1 +1 @@
1
- "use strict";require('./style.css');var _Object$keys=require("@babel/runtime-corejs3/core-js/object/keys");var _Object$getOwnPropertySymbols=require("@babel/runtime-corejs3/core-js/object/get-own-property-symbols");var _filterInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/filter");var _Object$getOwnPropertyDescriptor=require("@babel/runtime-corejs3/core-js/object/get-own-property-descriptor");var _forEachInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/for-each");var _Object$getOwnPropertyDescriptors=require("@babel/runtime-corejs3/core-js/object/get-own-property-descriptors");var _Object$defineProperties=require("@babel/runtime-corejs3/core-js/object/define-properties");var _Object$defineProperty=require("@babel/runtime-corejs3/core-js/object/define-property");var _defineProperty=require("@babel/runtime-corejs3/helpers/defineProperty");var _indexOfInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/index-of");function ownKeys(e,r){var t=_Object$keys(e);if(_Object$getOwnPropertySymbols){var o=_Object$getOwnPropertySymbols(e);r&&(o=_filterInstanceProperty(o).call(o,function(r2){return _Object$getOwnPropertyDescriptor(e,r2).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var _context3,_context4;var t=null!=arguments[r]?arguments[r]:{};r%2?_forEachInstanceProperty(_context3=ownKeys(Object(t),true)).call(_context3,function(r2){_defineProperty(e,r2,t[r2])}):_Object$getOwnPropertyDescriptors?_Object$defineProperties(e,_Object$getOwnPropertyDescriptors(t)):_forEachInstanceProperty(_context4=ownKeys(Object(t))).call(_context4,function(r2){_Object$defineProperty(e,r2,_Object$getOwnPropertyDescriptor(t,r2))})}return e}var utils_create=require("../utils/create/index.js");var vueAwesomeSwiper=require("vue-awesome-swiper");var SlidePoster_qrcode=require("./qrcode/index.js");var SlidePoster_poster=require("./poster/index.js");var mixins_fontsize=require("../mixins/fontsize/index.js");var Toast=require("../Toast/index.js");var common=require("../common/index.js");var _sfc_main={name:"SlidePoster",components:{swiper:vueAwesomeSwiper.swiper,swiperSlide:vueAwesomeSwiper.swiperSlide,toast:Toast.Toast},props:{isApp:{type:Boolean,default:function _default(){var u=navigator.userAgent;var xysApp=/mucxiaoyusan/i.test(u);var cpsAPP=/MucKaCaBao/i.test(u);var yXApp=/mucyanxuan/i.test(u);var consultantAPP=/MucConsultant/i.test(u);return xysApp||cpsAPP||yXApp||consultantAPP}},btnBgColor:{type:String,default:"#8c7fee"},wxTipColor:{type:String,default:"#fff"},zIndex:{type:Number,default:100},visible:{type:Boolean,default:false},posterList:{default:function _default2(){return[]},type:Array},posterIndex:{default:0,type:Number}},data:function data(){return{showLoading:true,timeOutEvent:0,toast:null}},mixins:[mixins_fontsize.fontSize],computed:{fontSizeStyle:function fontSizeStyle(){return{"font-size":this._fontSize}},getSwiperOptionPoster:function getSwiperOptionPoster(){var _this2=this;var _this=this;return{initialSlide:this.posterIndex,spaceBetween:37,lazyLoading:true,prevButton:".swiper-button-prev",nextButton:".swiper-button-next",on:{init:function init(){_this.drawCanvas(this.activeIndex,_this.posterList[this.activeIndex])},slideChangeTransitionEnd:function slideChangeTransitionEnd(){_this.drawCanvas(this.activeIndex,_this.posterList[this.activeIndex])}},onInit:function onInit(swiper){_this2.drawCanvas(swiper.activeIndex,_this2.posterList[swiper.activeIndex])},onSlideChangeEnd:function onSlideChangeEnd(swiper){_this2.drawCanvas(swiper.activeIndex,_this2.posterList[swiper.activeIndex])}}},isWx:function isWx(){var _context,_context2;return _indexOfInstanceProperty(_context=navigator.userAgent).call(_context,"MicroMessenger")>-1&&_indexOfInstanceProperty(_context2=navigator.userAgent).call(_context2,"wxwork")===-1}},methods:{touchstart:function touchstart(){this.timeOutEvent=setTimeout(this.longPress,400)},touchmove:function touchmove(){clearTimeout(this.timeOutEvent)},touchend:function touchend(){clearTimeout(this.timeOutEvent)},longPress:function longPress(){this.timeOutEvent=0;this.$emit("longPress")},qrcodeUrl:function qrcodeUrl(index){return this.posterList[index].qrcodeUrl},hidePoster:function hidePoster(){this.$emit("update:visible",false);this.$emit("hide")},appSavePoster:function appSavePoster(index){var that=this;if(!that.$refs.poster[index].src){this.errTips("保存失败");return}if(window.xysJs){window.xysJs.invoke({path:"/image/storage",data:{src:that.$refs.poster[index].src},success:function success(data2){that.errTips(data2.msg)},fail:function fail(e){that.errTips(e.msg)}})}},errTips:function errTips(msg){this.$refs.toast.show(msg)},drawCanvas:function drawCanvas(index,_ref){var _this3=this;var isNeedQcode=_ref.isNeedQcode,qrcodeUrl2=_ref.qrcodeUrl;this.showLoading=true;var posterRes=[];if(!isNeedQcode||!qrcodeUrl2){posterRes=[{src:this.posterList[index].img,x:0,y:0,width:577,height:860}];this.drawPoster(posterRes,index)}else{this.drawQrcode(qrcodeUrl2).then(function(data2){posterRes=[{src:_this3.posterList[index].img,x:0,y:0,width:577,height:860},{src:data2,x:37,y:688,width:126,height:126}];_this3.drawPoster(posterRes,index)}).catch(function(err){})}},drawPoster:function drawPoster(posterRes,index){var _this4=this;var posterCanvas=document.createElement("canvas");posterCanvas.width=576;posterCanvas.height=860;var ctx=posterCanvas.getContext("2d");ctx.fillStyle="#fff";ctx.fillRect(0,0,posterCanvas.width,posterCanvas.height);var drawedCallback=function drawedCallback2(load){var count=load.count;var total=load.total;if(count===total){for(var i=0;i<load.total;i++){ctx.drawImage(load.arr[i][0],load.arr[i][1],load.arr[i][2],load.arr[i][3],load.arr[i][4])}var posterSrc=posterCanvas.toDataURL("image/jpeg");_this4.showLoading=false;_this4.$refs.poster[index].src=posterSrc}};SlidePoster_poster.poster(posterRes,drawedCallback)},drawQrcode:function drawQrcode(url){var qrcode=new SlidePoster_qrcode.QRCode({render:"canvas",ecLevel:"H",size:200,mode:0,mSize:.25,label:"",fontcolor:"#000",fill:"#000",background:"#ffffff"});return qrcode.makeCode(url)},show:function show(){this.visible=true}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"actui-slidePoster"},[_vm.visible?_c("div",{ref:"layer_picture",staticClass:"layer",style:_objectSpread(_objectSpread({},_vm.fontSizeStyle),{},{zIndex:_vm.zIndex}),on:{"click":function click($event){if($event.target!==$event.currentTarget)return null;return _vm.hidePoster.apply(null,arguments)}}},[_c("div",{staticClass:"picture",attrs:{"id":"picture"}},[_c("swiper",{ref:"swiper",attrs:{"options":_vm.getSwiperOptionPoster}},_vm._l(_vm.posterList,function(item,idx){return _c("swiper-slide",{key:idx,staticClass:"picture_box column"},[_c("div",{staticClass:"picture_item"},[_c("div",{staticClass:"picture_hd row middle"},[_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.showLoading,expression:"showLoading"}],staticClass:"swiper-lazy-preloader"}),_c("img",{ref:"poster",refInFor:true,on:{"touchstart":_vm.touchstart,"touchmove":_vm.touchmove,"touchend":_vm.touchend}})])]),_vm.isApp?_c("div",{staticClass:"btn_save",style:{background:_vm.btnBgColor},on:{"click":function click($event){$event.stopPropagation();return _vm.appSavePoster(idx)}}},[_c("span",[_vm._v(" 保存到相册 ")])]):_vm._e()])}),1),_c("div",{staticClass:"swiper-button-prev",attrs:{"id":"btn_prev"}}),_c("div",{staticClass:"swiper-button-next",attrs:{"id":"btn_next"}}),!_vm.isApp?_c("div",{staticClass:"long_save",style:{color:_vm.wxTipColor,borderColor:_vm.wxTipColor}},[_c("span",[_vm._v(" "+_vm._s(_vm.isWx?"长按并保存图片分享到微信群或者朋友圈":"长按保存图片")+" ")])]):_vm._e()],1),_c("toast",{ref:"toast"})],1):_vm._e()])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"2ffcf573");var SlidePoster=__component__.exports;SlidePoster.install=function(Vue){Vue.component(SlidePoster.name,SlidePoster);Vue.prototype["$createSlidePoster"]=utils_create.create(SlidePoster,Vue)};exports.SlidePoster=SlidePoster;
1
+ "use strict";require('./style.css');var _Object$keys=require("@babel/runtime-corejs3/core-js/object/keys");var _Object$getOwnPropertySymbols=require("@babel/runtime-corejs3/core-js/object/get-own-property-symbols");var _filterInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/filter");var _Object$getOwnPropertyDescriptor=require("@babel/runtime-corejs3/core-js/object/get-own-property-descriptor");var _forEachInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/for-each");var _Object$getOwnPropertyDescriptors=require("@babel/runtime-corejs3/core-js/object/get-own-property-descriptors");var _Object$defineProperties=require("@babel/runtime-corejs3/core-js/object/define-properties");var _Object$defineProperty=require("@babel/runtime-corejs3/core-js/object/define-property");var _defineProperty=require("@babel/runtime-corejs3/helpers/defineProperty");var _indexOfInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/index-of");function ownKeys(e,r){var t=_Object$keys(e);if(_Object$getOwnPropertySymbols){var o=_Object$getOwnPropertySymbols(e);r&&(o=_filterInstanceProperty(o).call(o,function(r2){return _Object$getOwnPropertyDescriptor(e,r2).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var _context3,_context4;var t=null!=arguments[r]?arguments[r]:{};r%2?_forEachInstanceProperty(_context3=ownKeys(Object(t),true)).call(_context3,function(r2){_defineProperty(e,r2,t[r2])}):_Object$getOwnPropertyDescriptors?_Object$defineProperties(e,_Object$getOwnPropertyDescriptors(t)):_forEachInstanceProperty(_context4=ownKeys(Object(t))).call(_context4,function(r2){_Object$defineProperty(e,r2,_Object$getOwnPropertyDescriptor(t,r2))})}return e}var utils_create=require("../utils/create/index.js");var utils_vueAwesomeSwiper=require("../utils/vueAwesomeSwiper/index.js");var SlidePoster_qrcode=require("./qrcode/index.js");var SlidePoster_poster=require("./poster/index.js");var mixins_fontsize=require("../mixins/fontsize/index.js");var Toast=require("../Toast/index.js");var common=require("../common/index.js");var _sfc_main={name:"SlidePoster",components:{swiper:utils_vueAwesomeSwiper.swiper,swiperSlide:utils_vueAwesomeSwiper.swiperSlide,toast:Toast.Toast},props:{isApp:{type:Boolean,default:function _default(){var u=navigator.userAgent;var xysApp=/mucxiaoyusan/i.test(u);var cpsAPP=/MucKaCaBao/i.test(u);var yXApp=/mucyanxuan/i.test(u);var consultantAPP=/MucConsultant/i.test(u);return xysApp||cpsAPP||yXApp||consultantAPP}},btnBgColor:{type:String,default:"#8c7fee"},wxTipColor:{type:String,default:"#fff"},zIndex:{type:Number,default:100},visible:{type:Boolean,default:false},posterList:{default:function _default2(){return[]},type:Array},posterIndex:{default:0,type:Number}},data:function data(){return{showLoading:true,timeOutEvent:0,toast:null}},mixins:[mixins_fontsize.fontSize],computed:{fontSizeStyle:function fontSizeStyle(){return{"font-size":this._fontSize}},getSwiperOptionPoster:function getSwiperOptionPoster(){var _this2=this;var _this=this;return{initialSlide:this.posterIndex,spaceBetween:37,lazyLoading:true,prevButton:".swiper-button-prev",nextButton:".swiper-button-next",on:{init:function init(){_this.drawCanvas(this.activeIndex,_this.posterList[this.activeIndex])},slideChangeTransitionEnd:function slideChangeTransitionEnd(){_this.drawCanvas(this.activeIndex,_this.posterList[this.activeIndex])}},onInit:function onInit(swiper){_this2.drawCanvas(swiper.activeIndex,_this2.posterList[swiper.activeIndex])},onSlideChangeEnd:function onSlideChangeEnd(swiper){_this2.drawCanvas(swiper.activeIndex,_this2.posterList[swiper.activeIndex])}}},isWx:function isWx(){var _context,_context2;return _indexOfInstanceProperty(_context=navigator.userAgent).call(_context,"MicroMessenger")>-1&&_indexOfInstanceProperty(_context2=navigator.userAgent).call(_context2,"wxwork")===-1}},methods:{touchstart:function touchstart(){this.timeOutEvent=setTimeout(this.longPress,400)},touchmove:function touchmove(){clearTimeout(this.timeOutEvent)},touchend:function touchend(){clearTimeout(this.timeOutEvent)},longPress:function longPress(){this.timeOutEvent=0;this.$emit("longPress")},qrcodeUrl:function qrcodeUrl(index){return this.posterList[index].qrcodeUrl},hidePoster:function hidePoster(){this.$emit("update:visible",false);this.$emit("hide")},appSavePoster:function appSavePoster(index){var that=this;if(!that.$refs.poster[index].src){this.errTips("保存失败");return}if(window.xysJs){window.xysJs.invoke({path:"/image/storage",data:{src:that.$refs.poster[index].src},success:function success(data2){that.errTips(data2.msg)},fail:function fail(e){that.errTips(e.msg)}})}},errTips:function errTips(msg){this.$refs.toast.show(msg)},drawCanvas:function drawCanvas(index,_ref){var _this3=this;var isNeedQcode=_ref.isNeedQcode,qrcodeUrl2=_ref.qrcodeUrl;this.showLoading=true;var posterRes=[];if(!isNeedQcode||!qrcodeUrl2){posterRes=[{src:this.posterList[index].img,x:0,y:0,width:577,height:860}];this.drawPoster(posterRes,index)}else{this.drawQrcode(qrcodeUrl2).then(function(data2){posterRes=[{src:_this3.posterList[index].img,x:0,y:0,width:577,height:860},{src:data2,x:37,y:688,width:126,height:126}];_this3.drawPoster(posterRes,index)}).catch(function(err){})}},drawPoster:function drawPoster(posterRes,index){var _this4=this;var posterCanvas=document.createElement("canvas");posterCanvas.width=576;posterCanvas.height=860;var ctx=posterCanvas.getContext("2d");ctx.fillStyle="#fff";ctx.fillRect(0,0,posterCanvas.width,posterCanvas.height);var drawedCallback=function drawedCallback2(load){var count=load.count;var total=load.total;if(count===total){for(var i=0;i<load.total;i++){ctx.drawImage(load.arr[i][0],load.arr[i][1],load.arr[i][2],load.arr[i][3],load.arr[i][4])}var posterSrc=posterCanvas.toDataURL("image/jpeg");_this4.showLoading=false;_this4.$refs.poster[index].src=posterSrc}};SlidePoster_poster.poster(posterRes,drawedCallback)},drawQrcode:function drawQrcode(url){var qrcode=new SlidePoster_qrcode.QRCode({render:"canvas",ecLevel:"H",size:200,mode:0,mSize:.25,label:"",fontcolor:"#000",fill:"#000",background:"#ffffff"});return qrcode.makeCode(url)},show:function show(){this.visible=true}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"actui-slidePoster"},[_vm.visible?_c("div",{ref:"layer_picture",staticClass:"layer",style:_objectSpread(_objectSpread({},_vm.fontSizeStyle),{},{zIndex:_vm.zIndex}),on:{"click":function click($event){if($event.target!==$event.currentTarget)return null;return _vm.hidePoster.apply(null,arguments)}}},[_c("div",{staticClass:"picture",attrs:{"id":"picture"}},[_c("swiper",{ref:"swiper",attrs:{"options":_vm.getSwiperOptionPoster}},_vm._l(_vm.posterList,function(item,idx){return _c("swiper-slide",{key:idx,staticClass:"picture_box column"},[_c("div",{staticClass:"picture_item"},[_c("div",{staticClass:"picture_hd row middle"},[_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.showLoading,expression:"showLoading"}],staticClass:"swiper-lazy-preloader"}),_c("img",{ref:"poster",refInFor:true,on:{"touchstart":_vm.touchstart,"touchmove":_vm.touchmove,"touchend":_vm.touchend}})])]),_vm.isApp?_c("div",{staticClass:"btn_save",style:{background:_vm.btnBgColor},on:{"click":function click($event){$event.stopPropagation();return _vm.appSavePoster(idx)}}},[_c("span",[_vm._v(" 保存到相册 ")])]):_vm._e()])}),1),_c("div",{staticClass:"swiper-button-prev",attrs:{"id":"btn_prev"}}),_c("div",{staticClass:"swiper-button-next",attrs:{"id":"btn_next"}}),!_vm.isApp?_c("div",{staticClass:"long_save",style:{color:_vm.wxTipColor,borderColor:_vm.wxTipColor}},[_c("span",[_vm._v(" "+_vm._s(_vm.isWx?"长按并保存图片分享到微信群或者朋友圈":"长按保存图片")+" ")])]):_vm._e()],1),_c("toast",{ref:"toast"})],1):_vm._e()])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"2ffcf573");var SlidePoster=__component__.exports;SlidePoster.install=function(Vue){Vue.component(SlidePoster.name,SlidePoster);Vue.prototype["$createSlidePoster"]=utils_create.create(SlidePoster,Vue)};exports.SlidePoster=SlidePoster;
@@ -9,7 +9,7 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js/object/define
9
9
  import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
10
10
  import _indexOfInstanceProperty from "@babel/runtime-corejs3/core-js/instance/index-of";
11
11
  import { c as create } from "../utils/create/index.mjs";
12
- import { swiperSlide, swiper } from "vue-awesome-swiper";
12
+ import { s as swiperSlide, a as swiper } from "../utils/vueAwesomeSwiper/index.mjs";
13
13
  import { Q as QRCode } from "./qrcode/index.mjs";
14
14
  import { p as poster } from "./poster/index.mjs";
15
15
  import { f as fontSize } from "../mixins/fontsize/index.mjs";
@@ -1 +1 @@
1
- "use strict";require('./style.css');var BScroll=require("../../BScroll/index.js");var utils_BScroll_constants=require("../../utils/BScroll/constants/index.js");var common=require("../index.js");var COMPONENT_NAME="ActScroll";var DIRECTION_H="horizontal";var DIRECTION_V="vertical";var _sfc_main={name:COMPONENT_NAME,props:{probeType:{type:Number,default:2},click:{type:Boolean,default:true},listenScrollInit:{type:Boolean,default:false},listenScroll:{type:Boolean,default:false},listenBeforeScroll:{type:Boolean,default:false},listenScrollEnd:{type:Boolean,default:false},listenZoomEnd:{type:Boolean,default:false},listenPullingUp:{type:Boolean,default:false},direction:{type:String,default:DIRECTION_V},scrollbar:{type:null,default:false},startY:{type:Number,default:0},refreshDelay:{type:Number,default:20},freeScroll:{type:Boolean,default:false},mouseWheel:{type:Boolean,default:false},bounce:{type:[Boolean,Object],default:true},zoom:{type:Boolean,default:false},useTransition:{type:Boolean,default:true}},data:function data(){return{beforePullDown:true,isRebounding:false,pullUpDirty:true,pullDownStyle:"",bubbleY:0,lastTouchStart:null,fingers:0,tapTarget:null,isDouble:false,startXd:0,startYd:0,endXd:0,endYd:0}},mounted:function mounted(){var _this=this;this.$nextTick(function(){_this.initScroll()})},destroyed:function destroyed(){this.scroll&&this.scroll.destroy();this.$emit("destroyed",this.scroll)},methods:{initScroll:function initScroll(){var _this2=this;if(!this.$refs.wrapper){return}var options={probeType:this.probeType,click:this.click,scrollY:this.freeScroll||this.direction===DIRECTION_V,scrollX:this.freeScroll||this.direction===DIRECTION_H,scrollbar:this.scrollbar,startY:this.startY,freeScroll:this.freeScroll,mouseWheel:this.mouseWheel,bounce:this.bounce,zoom:this.zoom,bounceTime:300,useTransition:utils_BScroll_constants.USE_TRANSITION&&this.useTransition,pullUpLoad:{threshold:50}};this.scroll=new BScroll.bScroll(this.$refs.wrapper,options);if(this.listenScroll){this.scroll.on("scroll",function(pos){_this2.$emit("scroll",pos)})}if(this.listenScrollEnd){this.scroll.on("scrollEnd",function(pos){_this2.$emit("scroll-end",pos)})}if(this.listenBeforeScroll){this.scroll.on("beforeScrollStart",function(){_this2.$emit("beforeScrollStart")});this.scroll.on("scrollStart",function(){_this2.$emit("scroll-start")})}if(this.listenZoomEnd){this.scroll.on("zoomEnd",function(){_this2.$emit("zoomEnd",_this2.scroll)})}if(this.zoom){this.isDouble=true}if(this.listenScrollInit){this.$emit("scrollSuc",this.scroll)}if(this.listenPullingUp){this.scroll.on("pullingUp",function(){_this2.$emit("pullingUp")})}},disable:function disable(){this.scroll&&this.scroll.disable()},enable:function enable(){this.scroll&&this.scroll.enable()},refresh:function refresh(){this.scroll&&this.scroll.refresh()},scrollTo:function scrollTo(){this.scroll&&this.scroll.scrollTo.apply(this.scroll,arguments)},scrollToElement:function scrollToElement(){this.scroll&&this.scroll.scrollToElement.apply(this.scroll,arguments)},clickItem:function clickItem(e,item){this.$emit("click",item)},destroy:function destroy(){this.scroll.destroy()},forceUpdate:function forceUpdate(dirty){this.refresh()}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{ref:"wrapper",staticClass:"scroll-wrapper"},[_c("div",{staticClass:"scroll-content"},[_vm._t("default")],2)])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"85e6655d");var Scroll=__component__.exports;exports.Scroll=Scroll;
1
+ "use strict";require('./style.css');var BScrollModule=require("better-scroll");var utils_BScroll_constants=require("../../utils/BScroll/constants/index.js");var common=require("../index.js");var COMPONENT_NAME="ActScroll";var DIRECTION_H="horizontal";var DIRECTION_V="vertical";var _sfc_main={name:COMPONENT_NAME,props:{probeType:{type:Number,default:2},click:{type:Boolean,default:true},listenScrollInit:{type:Boolean,default:false},listenScroll:{type:Boolean,default:false},listenBeforeScroll:{type:Boolean,default:false},listenScrollEnd:{type:Boolean,default:false},listenZoomEnd:{type:Boolean,default:false},listenPullingUp:{type:Boolean,default:false},direction:{type:String,default:DIRECTION_V},scrollbar:{type:null,default:false},startY:{type:Number,default:0},refreshDelay:{type:Number,default:20},freeScroll:{type:Boolean,default:false},mouseWheel:{type:Boolean,default:false},bounce:{type:[Boolean,Object],default:true},zoom:{type:Boolean,default:false},useTransition:{type:Boolean,default:true}},data:function data(){return{beforePullDown:true,isRebounding:false,pullUpDirty:true,pullDownStyle:"",bubbleY:0,lastTouchStart:null,fingers:0,tapTarget:null,isDouble:false,startXd:0,startYd:0,endXd:0,endYd:0}},mounted:function mounted(){var _this=this;this.$nextTick(function(){_this.initScroll()})},destroyed:function destroyed(){this.scroll&&this.scroll.destroy();this.$emit("destroyed",this.scroll)},methods:{initScroll:function initScroll(){var _this2=this;if(!this.$refs.wrapper){return}var options={probeType:this.probeType,click:this.click,scrollY:this.freeScroll||this.direction===DIRECTION_V,scrollX:this.freeScroll||this.direction===DIRECTION_H,scrollbar:this.scrollbar,startY:this.startY,freeScroll:this.freeScroll,mouseWheel:this.mouseWheel,bounce:this.bounce,zoom:this.zoom,bounceTime:300,useTransition:utils_BScroll_constants.USE_TRANSITION&&this.useTransition,pullUpLoad:{threshold:50}};this.scroll=new BScrollModule(this.$refs.wrapper,options);if(this.listenScroll){this.scroll.on("scroll",function(pos){_this2.$emit("scroll",pos)})}if(this.listenScrollEnd){this.scroll.on("scrollEnd",function(pos){_this2.$emit("scroll-end",pos)})}if(this.listenBeforeScroll){this.scroll.on("beforeScrollStart",function(){_this2.$emit("beforeScrollStart")});this.scroll.on("scrollStart",function(){_this2.$emit("scroll-start")})}if(this.listenZoomEnd){this.scroll.on("zoomEnd",function(){_this2.$emit("zoomEnd",_this2.scroll)})}if(this.zoom){this.isDouble=true}if(this.listenScrollInit){this.$emit("scrollSuc",this.scroll)}if(this.listenPullingUp){this.scroll.on("pullingUp",function(){_this2.$emit("pullingUp")})}},disable:function disable(){this.scroll&&this.scroll.disable()},enable:function enable(){this.scroll&&this.scroll.enable()},refresh:function refresh(){this.scroll&&this.scroll.refresh()},scrollTo:function scrollTo(){this.scroll&&this.scroll.scrollTo.apply(this.scroll,arguments)},scrollToElement:function scrollToElement(){this.scroll&&this.scroll.scrollToElement.apply(this.scroll,arguments)},clickItem:function clickItem(e,item){this.$emit("click",item)},destroy:function destroy(){this.scroll.destroy()},forceUpdate:function forceUpdate(dirty){this.refresh()}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{ref:"wrapper",staticClass:"scroll-wrapper"},[_c("div",{staticClass:"scroll-content"},[_vm._t("default")],2)])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"85e6655d");var Scroll=__component__.exports;exports.Scroll=Scroll;
@@ -1,4 +1,4 @@
1
- import { b as bScroll } from "../../BScroll/index.mjs";
1
+ import BScrollModule__default from "better-scroll";
2
2
  import { U as USE_TRANSITION } from "../../utils/BScroll/constants/index.mjs";
3
3
  import { n as normalizeComponent } from "../index.mjs";
4
4
  import './style.css';var COMPONENT_NAME = "ActScroll";
@@ -126,7 +126,7 @@ var _sfc_main = {
126
126
  threshold: 50
127
127
  }
128
128
  };
129
- this.scroll = new bScroll(this.$refs.wrapper, options);
129
+ this.scroll = new BScrollModule__default(this.$refs.wrapper, options);
130
130
  if (this.listenScroll) {
131
131
  this.scroll.on("scroll", function(pos) {
132
132
  _this2.$emit("scroll", pos);
@@ -1 +1 @@
1
- "use strict";require('./style.css');var _mapInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/map");var _sliceInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/slice");var _Promise=require("@babel/runtime-corejs3/core-js/promise");var BScroll=require("../../../BScroll/index.js");var utils_dom=require("../../../utils/dom/index.js");var common_scrollZoom_bubble=require("../bubble/index.js");var utils_BScroll_constants=require("../../../utils/BScroll/constants/index.js");var common=require("../../index.js");var COMPONENT_NAME="scroll";var DIRECTION_H="horizontal";var DIRECTION_V="vertical";var _sfc_main={name:COMPONENT_NAME,props:{probeType:{type:Number,default:2},click:{type:Boolean,default:true},listenScrollInit:{type:Boolean,default:false},listenScroll:{type:Boolean,default:false},listenBeforeScroll:{type:Boolean,default:false},listenScrollEnd:{type:Boolean,default:false},listenZoomEnd:{type:Boolean,default:false},observeDOM:{type:Boolean,default:true},direction:{type:String,default:DIRECTION_V},scrollbar:{type:null,default:false},pullDownRefresh:{type:null,default:false},pullUpLoad:{type:null,default:false},startY:{type:Number,default:0},refreshDelay:{type:Number,default:20},freeScroll:{type:Boolean,default:false},mouseWheel:{type:Boolean,default:false},bounce:{type:[Boolean,Object],default:true},zoom:{type:[Boolean,Object],default:false}},data:function data(){return{beforePullDown:true,isRebounding:false,isPullingDown:false,isPullUpLoad:false,pullUpDirty:true,pullDownStyle:"",bubbleY:0,lastTouchStart:null,fingers:0,tapTarget:null,isDouble:false,startXd:0,startYd:0,endXd:0,endYd:0}},computed:{pullUpTxt:function pullUpTxt(){var moreTxt=this.pullUpLoad&&this.pullUpLoad.txt&&this.pullUpLoad.txt.more||"加载更多";var noMoreTxt=this.pullUpLoad&&this.pullUpLoad.txt&&this.pullUpLoad.txt.noMore||"没有更多数据了";return this.pullUpDirty?moreTxt:noMoreTxt},refreshTxt:function refreshTxt(){return this.pullDownRefresh&&this.pullDownRefresh.txt||"刷新成功"}},created:function created(){this.pullDownInitTop=-50},mounted:function mounted(){var _this=this;setTimeout(function(){_this.initScroll()},20)},destroyed:function destroyed(){this.$refs.scroll&&this.$refs.scroll.destroy()},methods:{initScroll:function initScroll(){var _this2=this;if(!this.$refs.wrapper){return}if(this.$refs.listWrapper&&(this.pullDownRefresh||this.pullUpLoad)){this.$refs.listWrapper.style.minHeight="".concat(utils_dom.getRect(this.$refs.wrapper).height+1,"px")}var options={probeType:this.probeType,click:this.click,scrollY:this.freeScroll||this.direction===DIRECTION_V,scrollX:this.freeScroll||this.direction===DIRECTION_H,scrollbar:this.scrollbar,pullDownRefresh:this.pullDownRefresh,pullUpLoad:this.pullUpLoad,startY:this.startY,freeScroll:this.freeScroll,mouseWheel:this.mouseWheel,bounce:this.bounce,zoom:this.zoom,bounceTime:300,useTransition:utils_BScroll_constants.USE_TRANSITION,observeDOM:this.observeDOM};this.scroll=new BScroll.bScroll(this.$refs.wrapper,options);if(this.listenScroll){this.scroll.on("scroll",function(pos){_this2.$emit("scroll",pos)})}if(this.listenScrollEnd){this.scroll.on("scrollEnd",function(pos){_this2.$emit("scroll-end",pos)})}if(this.listenBeforeScroll){this.scroll.on("beforeScrollStart",function(){_this2.$emit("beforeScrollStart")});this.scroll.on("scrollStart",function(){_this2.$emit("scroll-start")})}if(this.listenZoomEnd){this.scroll.on("zoomEnd",function(){_this2.$emit("zoomEnd",_this2.scroll)})}if(this.pullDownRefresh){this._initPullDownRefresh()}if(this.pullUpLoad){this._initPullUpLoad()}if(this.zoom){this.isDouble=true}if(this.listenScrollInit){this.$emit("scrollSuc",this.scroll)}},disable:function disable(){this.scroll&&this.scroll.disable()},enable:function enable(){this.scroll&&this.scroll.enable()},refresh:function refresh(){this.scroll&&this.scroll.refresh()},scrollTo:function scrollTo(){this.scroll&&this.scroll.scrollTo.apply(this.scroll,arguments)},scrollToElement:function scrollToElement(){this.scroll&&this.scroll.scrollToElement.apply(this.scroll,arguments)},clickItem:function clickItem(e,item){this.$emit("click",item)},destroy:function destroy(){this.scroll.destroy()},forceUpdate:function forceUpdate(dirty){var _this3=this;if(this.pullDownRefresh&&this.isPullingDown){this.isPullingDown=false;this._reboundPullDown().then(function(){_this3._afterPullDown()})}else if(this.pullUpLoad&&this.isPullUpLoad){this.isPullUpLoad=false;this.scroll.finishPullUp();this.pullUpDirty=dirty;this.refresh()}else{this.refresh()}},handleTouchStart:function handleTouchStart(event2){if(!this.isDouble){return}this.fingers=event2.touches.length;this.tapTarget=this.getTouches(event2)[0];this.startXd=this.tapTarget.x;this.startYd=this.tapTarget.y},handleTouchMove:function handleTouchMove(event2){if(!this.isDouble){return}this.endXd=this.getTouches(event2)[0].x;this.endYd=this.getTouches(event2)[0].y},handleTouchEnd:function handleTouchEnd(event2){if(!this.isDouble){return}this.endXd=this.endXd===0?this.startXd:this.endXd;this.endYd=this.endYd===0?this.startYd:this.endYd;var distanceX=this.endXd-this.startXd;var distanceY=this.endYd-this.startYd;if(Math.abs(distanceX)<10&&Math.abs(distanceY)<10){this.detectDoubleTap(event2)}this.startXd=this.startYd=this.endXd=this.endYd=0},cancelEvent:function cancelEvent(event2){event2.stopPropagation();event2.preventDefault()},getTouches:function getTouches(event2){var _context;return _mapInstanceProperty(_context=_sliceInstanceProperty(Array.prototype).call(event2.touches)).call(_context,function(touch){return{x:touch.pageX,y:touch.pageY}})},detectDoubleTap:function detectDoubleTap(){var time=new Date().getTime();if(this.fingers>1){this.lastTouchStart=null}if(time-this.lastTouchStart<300){this.cancelEvent(event);var zoomFactor=this.scroll.scale>1?1:2;this.scroll.zoomTo(zoomFactor,this.tapTarget.x,this.tapTarget.y)}if(this.fingers===1){this.lastTouchStart=time}},_initPullDownRefresh:function _initPullDownRefresh(){var _this4=this;this.scroll.on("pullingDown",function(){_this4.beforePullDown=false;_this4.isPullingDown=true;_this4.$emit("pullingDown")});this.scroll.on("scroll",function(pos){if(!_this4.pullDownRefresh){return}if(_this4.beforePullDown){_this4.bubbleY=Math.max(0,pos.y+_this4.pullDownInitTop);_this4.pullDownStyle="top:".concat(Math.min(pos.y+_this4.pullDownInitTop,10),"px")}else{_this4.bubbleY=0}if(_this4.isRebounding){_this4.pullDownStyle="top:".concat(10-(_this4.pullDownRefresh.stop-pos.y),"px")}})},_initPullUpLoad:function _initPullUpLoad(){var _this5=this;this.scroll.on("pullingUp",function(){_this5.isPullUpLoad=true;_this5.$emit("pullingUp")})},_reboundPullDown:function _reboundPullDown(){var _this6=this;var _this$pullDownRefresh=this.pullDownRefresh.stopTime,stopTime=_this$pullDownRefresh===void 0?600:_this$pullDownRefresh;return new _Promise(function(resolve){setTimeout(function(){_this6.isRebounding=true;_this6.scroll.finishPullDown();resolve()},stopTime)})},_afterPullDown:function _afterPullDown(){var _this7=this;setTimeout(function(){_this7.pullDownStyle="top:".concat(_this7.pullDownInitTop,"px");_this7.beforePullDown=true;_this7.isRebounding=false;_this7.refresh()},this.scroll.options.bounceTime)}},watch:{data:function data2(){var _this8=this;setTimeout(function(){_this8.forceUpdate(true)},this.refreshDelay)}},components:{Bubble:common_scrollZoom_bubble.Bubble}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{ref:"wrapper",staticClass:"scroll-wrapper",on:{"touchstart":_vm.handleTouchStart,"touchmove":_vm.handleTouchMove,"touchend":_vm.handleTouchEnd}},[_c("div",{staticClass:"scroll-content"},[_c("div",{ref:"listWrapper"},[_vm._t("default")],2),_vm.$scopedSlots.pullup?_vm._t("pullup",null,{"pullUpLoad":_vm.pullUpLoad,"isPullUpLoad":_vm.isPullUpLoad}):_vm._e(),_vm.pullUpLoad&&!_vm.$scopedSlots.pullup?_c("div",{staticClass:"pullup-wrapper"},[!_vm.isPullUpLoad?_c("div",{staticClass:"before-trigger"},[_c("span",[_vm._v(_vm._s(_vm.pullUpTxt))])]):_c("div",{staticClass:"after-trigger"},[_c("act-loading",{directives:[{name:"show",rawName:"v-show",value:true,expression:"true"}],attrs:{"type":"cir4","color":_vm.brandColor,"size":20}})],1)]):_vm._e()],2),_vm.$scopedSlots.pulldown?_vm._t("pulldown",null,{"pullDownRefresh":_vm.pullDownRefresh,"pullDownStyle":_vm.pullDownStyle,"beforePullDown":_vm.beforePullDown,"isPullingDown":_vm.isPullingDown,"bubbleY":_vm.bubbleY}):_vm._e(),_vm.pullDownRefresh&&!_vm.$scopedSlots.pulldown?_c("div",{ref:"pulldown",staticClass:"pulldown-wrapper",style:_vm.pullDownStyle},[_vm.beforePullDown?_c("div",{staticClass:"before-trigger"},[_c("bubble",{attrs:{"y":_vm.bubbleY}})],1):_c("div",{staticClass:"after-trigger"},[_vm.isPullingDown?_c("div",{staticClass:"loading"},[_c("act-loading",{directives:[{name:"show",rawName:"v-show",value:true,expression:"true"}],attrs:{"type":"cir4","color":_vm.brandColor,"size":20}})],1):_c("div",[_c("span",[_vm._v(_vm._s(_vm.refreshTxt))])])])]):_vm._e()],2)};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"3bc88b72");var scroll=__component__.exports;exports.scroll=scroll;
1
+ "use strict";require('./style.css');var _mapInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/map");var _sliceInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/slice");var _Promise=require("@babel/runtime-corejs3/core-js/promise");var BScrollModule=require("better-scroll");var utils_dom=require("../../../utils/dom/index.js");var common_scrollZoom_bubble=require("../bubble/index.js");var utils_BScroll_constants=require("../../../utils/BScroll/constants/index.js");var common=require("../../index.js");var COMPONENT_NAME="scroll";var DIRECTION_H="horizontal";var DIRECTION_V="vertical";var _sfc_main={name:COMPONENT_NAME,props:{probeType:{type:Number,default:2},click:{type:Boolean,default:true},listenScrollInit:{type:Boolean,default:false},listenScroll:{type:Boolean,default:false},listenBeforeScroll:{type:Boolean,default:false},listenScrollEnd:{type:Boolean,default:false},listenZoomEnd:{type:Boolean,default:false},observeDOM:{type:Boolean,default:true},direction:{type:String,default:DIRECTION_V},scrollbar:{type:null,default:false},pullDownRefresh:{type:null,default:false},pullUpLoad:{type:null,default:false},startY:{type:Number,default:0},refreshDelay:{type:Number,default:20},freeScroll:{type:Boolean,default:false},mouseWheel:{type:Boolean,default:false},bounce:{type:[Boolean,Object],default:true},zoom:{type:[Boolean,Object],default:false}},data:function data(){return{beforePullDown:true,isRebounding:false,isPullingDown:false,isPullUpLoad:false,pullUpDirty:true,pullDownStyle:"",bubbleY:0,lastTouchStart:null,fingers:0,tapTarget:null,isDouble:false,startXd:0,startYd:0,endXd:0,endYd:0}},computed:{pullUpTxt:function pullUpTxt(){var moreTxt=this.pullUpLoad&&this.pullUpLoad.txt&&this.pullUpLoad.txt.more||"加载更多";var noMoreTxt=this.pullUpLoad&&this.pullUpLoad.txt&&this.pullUpLoad.txt.noMore||"没有更多数据了";return this.pullUpDirty?moreTxt:noMoreTxt},refreshTxt:function refreshTxt(){return this.pullDownRefresh&&this.pullDownRefresh.txt||"刷新成功"}},created:function created(){this.pullDownInitTop=-50},mounted:function mounted(){var _this=this;setTimeout(function(){_this.initScroll()},20)},destroyed:function destroyed(){this.$refs.scroll&&this.$refs.scroll.destroy()},methods:{initScroll:function initScroll(){var _this2=this;if(!this.$refs.wrapper){return}if(this.$refs.listWrapper&&(this.pullDownRefresh||this.pullUpLoad)){this.$refs.listWrapper.style.minHeight="".concat(utils_dom.getRect(this.$refs.wrapper).height+1,"px")}var options={probeType:this.probeType,click:this.click,scrollY:this.freeScroll||this.direction===DIRECTION_V,scrollX:this.freeScroll||this.direction===DIRECTION_H,scrollbar:this.scrollbar,pullDownRefresh:this.pullDownRefresh,pullUpLoad:this.pullUpLoad,startY:this.startY,freeScroll:this.freeScroll,mouseWheel:this.mouseWheel,bounce:this.bounce,zoom:this.zoom,bounceTime:300,useTransition:utils_BScroll_constants.USE_TRANSITION,observeDOM:this.observeDOM};this.scroll=new BScrollModule(this.$refs.wrapper,options);if(this.listenScroll){this.scroll.on("scroll",function(pos){_this2.$emit("scroll",pos)})}if(this.listenScrollEnd){this.scroll.on("scrollEnd",function(pos){_this2.$emit("scroll-end",pos)})}if(this.listenBeforeScroll){this.scroll.on("beforeScrollStart",function(){_this2.$emit("beforeScrollStart")});this.scroll.on("scrollStart",function(){_this2.$emit("scroll-start")})}if(this.listenZoomEnd){this.scroll.on("zoomEnd",function(){_this2.$emit("zoomEnd",_this2.scroll)})}if(this.pullDownRefresh){this._initPullDownRefresh()}if(this.pullUpLoad){this._initPullUpLoad()}if(this.zoom){this.isDouble=true}if(this.listenScrollInit){this.$emit("scrollSuc",this.scroll)}},disable:function disable(){this.scroll&&this.scroll.disable()},enable:function enable(){this.scroll&&this.scroll.enable()},refresh:function refresh(){this.scroll&&this.scroll.refresh()},scrollTo:function scrollTo(){this.scroll&&this.scroll.scrollTo.apply(this.scroll,arguments)},scrollToElement:function scrollToElement(){this.scroll&&this.scroll.scrollToElement.apply(this.scroll,arguments)},clickItem:function clickItem(e,item){this.$emit("click",item)},destroy:function destroy(){this.scroll.destroy()},forceUpdate:function forceUpdate(dirty){var _this3=this;if(this.pullDownRefresh&&this.isPullingDown){this.isPullingDown=false;this._reboundPullDown().then(function(){_this3._afterPullDown()})}else if(this.pullUpLoad&&this.isPullUpLoad){this.isPullUpLoad=false;this.scroll.finishPullUp();this.pullUpDirty=dirty;this.refresh()}else{this.refresh()}},handleTouchStart:function handleTouchStart(event2){if(!this.isDouble){return}this.fingers=event2.touches.length;this.tapTarget=this.getTouches(event2)[0];this.startXd=this.tapTarget.x;this.startYd=this.tapTarget.y},handleTouchMove:function handleTouchMove(event2){if(!this.isDouble){return}this.endXd=this.getTouches(event2)[0].x;this.endYd=this.getTouches(event2)[0].y},handleTouchEnd:function handleTouchEnd(event2){if(!this.isDouble){return}this.endXd=this.endXd===0?this.startXd:this.endXd;this.endYd=this.endYd===0?this.startYd:this.endYd;var distanceX=this.endXd-this.startXd;var distanceY=this.endYd-this.startYd;if(Math.abs(distanceX)<10&&Math.abs(distanceY)<10){this.detectDoubleTap(event2)}this.startXd=this.startYd=this.endXd=this.endYd=0},cancelEvent:function cancelEvent(event2){event2.stopPropagation();event2.preventDefault()},getTouches:function getTouches(event2){var _context;return _mapInstanceProperty(_context=_sliceInstanceProperty(Array.prototype).call(event2.touches)).call(_context,function(touch){return{x:touch.pageX,y:touch.pageY}})},detectDoubleTap:function detectDoubleTap(){var time=new Date().getTime();if(this.fingers>1){this.lastTouchStart=null}if(time-this.lastTouchStart<300){this.cancelEvent(event);var zoomFactor=this.scroll.scale>1?1:2;this.scroll.zoomTo(zoomFactor,this.tapTarget.x,this.tapTarget.y)}if(this.fingers===1){this.lastTouchStart=time}},_initPullDownRefresh:function _initPullDownRefresh(){var _this4=this;this.scroll.on("pullingDown",function(){_this4.beforePullDown=false;_this4.isPullingDown=true;_this4.$emit("pullingDown")});this.scroll.on("scroll",function(pos){if(!_this4.pullDownRefresh){return}if(_this4.beforePullDown){_this4.bubbleY=Math.max(0,pos.y+_this4.pullDownInitTop);_this4.pullDownStyle="top:".concat(Math.min(pos.y+_this4.pullDownInitTop,10),"px")}else{_this4.bubbleY=0}if(_this4.isRebounding){_this4.pullDownStyle="top:".concat(10-(_this4.pullDownRefresh.stop-pos.y),"px")}})},_initPullUpLoad:function _initPullUpLoad(){var _this5=this;this.scroll.on("pullingUp",function(){_this5.isPullUpLoad=true;_this5.$emit("pullingUp")})},_reboundPullDown:function _reboundPullDown(){var _this6=this;var _this$pullDownRefresh=this.pullDownRefresh.stopTime,stopTime=_this$pullDownRefresh===void 0?600:_this$pullDownRefresh;return new _Promise(function(resolve){setTimeout(function(){_this6.isRebounding=true;_this6.scroll.finishPullDown();resolve()},stopTime)})},_afterPullDown:function _afterPullDown(){var _this7=this;setTimeout(function(){_this7.pullDownStyle="top:".concat(_this7.pullDownInitTop,"px");_this7.beforePullDown=true;_this7.isRebounding=false;_this7.refresh()},this.scroll.options.bounceTime)}},watch:{data:function data2(){var _this8=this;setTimeout(function(){_this8.forceUpdate(true)},this.refreshDelay)}},components:{Bubble:common_scrollZoom_bubble.Bubble}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{ref:"wrapper",staticClass:"scroll-wrapper",on:{"touchstart":_vm.handleTouchStart,"touchmove":_vm.handleTouchMove,"touchend":_vm.handleTouchEnd}},[_c("div",{staticClass:"scroll-content"},[_c("div",{ref:"listWrapper"},[_vm._t("default")],2),_vm.$scopedSlots.pullup?_vm._t("pullup",null,{"pullUpLoad":_vm.pullUpLoad,"isPullUpLoad":_vm.isPullUpLoad}):_vm._e(),_vm.pullUpLoad&&!_vm.$scopedSlots.pullup?_c("div",{staticClass:"pullup-wrapper"},[!_vm.isPullUpLoad?_c("div",{staticClass:"before-trigger"},[_c("span",[_vm._v(_vm._s(_vm.pullUpTxt))])]):_c("div",{staticClass:"after-trigger"},[_c("act-loading",{directives:[{name:"show",rawName:"v-show",value:true,expression:"true"}],attrs:{"type":"cir4","color":_vm.brandColor,"size":20}})],1)]):_vm._e()],2),_vm.$scopedSlots.pulldown?_vm._t("pulldown",null,{"pullDownRefresh":_vm.pullDownRefresh,"pullDownStyle":_vm.pullDownStyle,"beforePullDown":_vm.beforePullDown,"isPullingDown":_vm.isPullingDown,"bubbleY":_vm.bubbleY}):_vm._e(),_vm.pullDownRefresh&&!_vm.$scopedSlots.pulldown?_c("div",{ref:"pulldown",staticClass:"pulldown-wrapper",style:_vm.pullDownStyle},[_vm.beforePullDown?_c("div",{staticClass:"before-trigger"},[_c("bubble",{attrs:{"y":_vm.bubbleY}})],1):_c("div",{staticClass:"after-trigger"},[_vm.isPullingDown?_c("div",{staticClass:"loading"},[_c("act-loading",{directives:[{name:"show",rawName:"v-show",value:true,expression:"true"}],attrs:{"type":"cir4","color":_vm.brandColor,"size":20}})],1):_c("div",[_c("span",[_vm._v(_vm._s(_vm.refreshTxt))])])])]):_vm._e()],2)};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"3bc88b72");var scroll=__component__.exports;exports.scroll=scroll;
@@ -1,7 +1,7 @@
1
1
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js/instance/map";
2
2
  import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js/instance/slice";
3
3
  import _Promise from "@babel/runtime-corejs3/core-js/promise";
4
- import { b as bScroll } from "../../../BScroll/index.mjs";
4
+ import BScrollModule__default from "better-scroll";
5
5
  import { g as getRect } from "../../../utils/dom/index.mjs";
6
6
  import { B as Bubble } from "../bubble/index.mjs";
7
7
  import { U as USE_TRANSITION } from "../../../utils/BScroll/constants/index.mjs";
@@ -152,7 +152,7 @@ var _sfc_main = {
152
152
  useTransition: USE_TRANSITION,
153
153
  observeDOM: this.observeDOM
154
154
  };
155
- this.scroll = new bScroll(this.$refs.wrapper, options);
155
+ this.scroll = new BScrollModule__default(this.$refs.wrapper, options);
156
156
  if (this.listenScroll) {
157
157
  this.scroll.on("scroll", function(pos) {
158
158
  _this2.$emit("scroll", pos);