@xysfe/actui2 0.0.5 → 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 (60) hide show
  1. package/lib/BScroll/index.js +1 -1
  2. package/lib/BScroll/index.mjs +1 -5
  3. package/lib/CouponLayer/index.js +1 -1
  4. package/lib/CouponLayer/index.mjs +2 -2
  5. package/lib/DiseaseListLayer/index.js +1 -1
  6. package/lib/DiseaseListLayer/index.mjs +2 -2
  7. package/lib/GoldBenefitDemo/benefit/slider/index.js +1 -1
  8. package/lib/GoldBenefitDemo/benefit/slider/index.mjs +2 -2
  9. package/lib/GoldBenefitDemo/costTable/index.js +1 -1
  10. package/lib/GoldBenefitDemo/costTable/index.mjs +2 -2
  11. package/lib/GoldCost/costTable/index.js +1 -1
  12. package/lib/GoldCost/costTable/index.mjs +4 -4
  13. package/lib/GoldFinance/benefit/slider/index.js +1 -1
  14. package/lib/GoldFinance/benefit/slider/index.mjs +2 -2
  15. package/lib/GoldFinance/costTable/index.js +1 -1
  16. package/lib/GoldFinance/costTable/index.mjs +2 -2
  17. package/lib/GoldFinanceChart/costTable/index.js +1 -1
  18. package/lib/GoldFinanceChart/costTable/index.mjs +2 -2
  19. package/lib/GoldFinanceChartV3/costTable/index.js +1 -1
  20. package/lib/GoldFinanceChartV3/costTable/index.mjs +4 -4
  21. package/lib/GoldFinanceV2/benefit/slider/index.js +1 -1
  22. package/lib/GoldFinanceV2/benefit/slider/index.mjs +2 -2
  23. package/lib/GoldFinanceV2/costTable/index.js +1 -1
  24. package/lib/GoldFinanceV2/costTable/index.mjs +2 -2
  25. package/lib/GoldMulSelect/mulSelect/index.js +1 -1
  26. package/lib/GoldMulSelect/mulSelect/index.mjs +2 -2
  27. package/lib/GoldPayLimitLayer/index.js +1 -1
  28. package/lib/GoldPayLimitLayer/index.mjs +2 -2
  29. package/lib/GoldPayLimitLayer/signIntroduct/index.js +1 -1
  30. package/lib/GoldPayLimitLayer/signIntroduct/index.mjs +2 -2
  31. package/lib/GoldPayLimitLayer/table/index.js +1 -1
  32. package/lib/GoldPayLimitLayer/table/index.mjs +2 -2
  33. package/lib/MedicalListLayer/index.js +1 -1
  34. package/lib/MedicalListLayer/index.mjs +2 -2
  35. package/lib/Picker/index.js +1 -1
  36. package/lib/Picker/index.mjs +2 -2
  37. package/lib/PickerLongText/index.js +1 -1
  38. package/lib/PickerLongText/index.mjs +2 -2
  39. package/lib/ProPosterLayer/index.js +1 -1
  40. package/lib/ProPosterLayer/index.mjs +1 -1
  41. package/lib/ProductLayer/productDetailLayer/index.js +1 -1
  42. package/lib/ProductLayer/productDetailLayer/index.mjs +4 -5
  43. package/lib/ProductLayer/productDetailLayer/style.css +1 -1
  44. package/lib/RecordRuleLayer/index.js +1 -1
  45. package/lib/RecordRuleLayer/index.mjs +4 -4
  46. package/lib/Rule/index.js +1 -1
  47. package/lib/Rule/index.mjs +2 -2
  48. package/lib/SlidePoster/index.js +1 -1
  49. package/lib/SlidePoster/index.mjs +1 -1
  50. package/lib/common/scroll/index.js +1 -1
  51. package/lib/common/scroll/index.mjs +2 -2
  52. package/lib/common/scrollZoom/scroll/index.js +1 -1
  53. package/lib/common/scrollZoom/scroll/index.mjs +2 -2
  54. package/lib/index.js +1 -1
  55. package/lib/index.mjs +6 -5
  56. package/lib/utils/vueAwesomeSwiper/index.js +1 -1
  57. package/lib/utils/vueAwesomeSwiper/index.mjs +7 -1
  58. package/package.json +2 -2
  59. package/types/components/BScroll/index.d.ts +1 -1
  60. package/types/utils/vueAwesomeSwiper.d.ts +2 -1
@@ -1 +1 @@
1
- "use strict";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 BScrollModule=require("better-scroll");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;exports.bScroll=bScroll;
1
+ "use strict";var BScrollModule=require("better-scroll");
@@ -1,5 +1 @@
1
- import * as BScrollModule from "better-scroll";
2
- var bScroll = BScrollModule.default || BScrollModule.BScroll || BScrollModule;
3
- export {
4
- bScroll as b
5
- };
1
+ import BScrollModule__default from "better-scroll";
@@ -1 +1 @@
1
- "use strict";require('./style.css');var utils_create=require("../utils/create/index.js");require("../common/svgicon/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 mixins_formInput=require("../mixins/form-input/index.js");var common_layer=require("../common/layer/index.js");var common_button=require("../common/button/index.js");var utils_helpers=require("../utils/helpers/index.js");var defaultCouponImg=require("../assets/item.e9b2.png");var utils_BScroll_constants=require("../utils/BScroll/constants/index.js");var common=require("../common/index.js");function noop(){}var _sfc_main={name:"ActCouponLayer",mixins:[mixins_visible.visibleMixin,mixins_noscroll.noscrollMixin,mixins_formInput.formInputMixin],components:{ActLayer:common_layer.ActLayer,ActButton:common_button.ActButton},props:{hbgColor:{type:String,default:"#f7debb"},cbgColor:{type:String,default:"#f9443c"},showClose:{type:Boolean,default:true},content:{type:Object,default:function _default(){return{}}},btnClick:{type:Function,default:noop}},data:function data(){return{showMore:false,defaultCouponImg}},watch:{isVisible:function isVisible(newVal){var _this=this;this.$nextTick(function(){if(newVal&&_this.pageData&&_this.pageData.coupon){var coupon=_this.pageData.coupon;if(coupon.length<=3){_this.showMore=false}else{_this.$nextTick(function(){var height=_this.$refs.container.offsetHeight/coupon.length*3;_this.$refs.container.style.height=Math.ceil(height)+"px";_this.showMore=true;var ins=new BScroll.bScroll(_this.$refs.container,{useTransition:utils_BScroll_constants.USE_TRANSITION});var me=_this;ins.on("scroll",utils_helpers.throttle(function(obj){me.setMoreBtn(obj)},800));ins.on("scrollEnd",function(obj){_this.setMoreBtn(obj)})})}}})}},methods:{click:function click(){if(this.btnClick===noop){this.hideLayer()}else{this.btnClick()}},hideLayer:function hideLayer(){this.hide();this.$emit("hidelayer")},setMoreBtn:function setMoreBtn(obj){if(Math.abs(obj.y)>=this.$refs.wrap.scrollHeight-this.$refs.container.offsetHeight){this.showMore=false}else{this.showMore=true}}}};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:{"type":"slim","hbgColor":_vm.hbgColor,"cbgColor":_vm.cbgColor,"showClose":_vm.showClose},on:{"hidelayer":_vm.hideLayer},scopedSlots:_vm._u([{key:"content",fn:function fn(){return[_c("div",{staticClass:"act-quan-con"},[_vm.pageData.title?_c("div",{staticClass:"act-quan-title",style:{color:_vm.pageData.title.color},domProps:{"innerHTML":_vm._s(_vm.pageData.title.txt)}}):_vm._e(),_vm.pageData.desc?_c("div",{staticClass:"act-quan-tit-desc",style:{color:_vm.pageData.desc.color},domProps:{"innerHTML":_vm._s(_vm.pageData.desc.txt)}}):_vm._e(),_c("div",{staticClass:"act-quan-con-form"},[_vm.isVisible?_c("div",{ref:"container",staticClass:"act-quan-box"},[_c("div",{ref:"wrap"},_vm._l(_vm.pageData.coupon,function(item,index){return _c("div",{key:index,staticClass:"act-quan-data"},[_c("div",{staticClass:"act-quan-data-container act-row act-middle",style:{backgroundImage:"url("+(item.bgImg?item.bgImg:_vm.defaultCouponImg)+")"}},[item.label?_c("div",{staticClass:"act-quan-label",style:{borderColor:"transparent transparent "+item.label.bgColor,color:item.label.color}},[_c("span",[_vm._v(_vm._s(item.label.txt))])]):_vm._e(),_c("div",{staticClass:"act-quan-left"},[item.money?_c("div",{style:{color:item.money.color}},[_c("span",{staticClass:"act-quan-money"},[_vm._v(_vm._s(item.money.num))]),_c("span",{staticClass:"act-quan-unit"},[_vm._v(_vm._s(item.money.unit||"元"))])]):_vm._e()]),_c("div",{staticClass:"act-quan-right"},[item.info?_c("div",[item.info.title?_c("div",{staticClass:"act-quan-name",style:{color:item.info.color}},[_vm._v(" "+_vm._s(item.info.title)+" ")]):_vm._e(),item.info.desc?_c("div",{staticClass:"act-quan-desc",style:{color:item.info.color,border:"1px solid "+item.info.color}},[_c("span",[_vm._v(_vm._s(item.info.desc))])]):_vm._e()]):_vm._e()])])])}),0),_c("transition",{attrs:{"name":"more"}},[_vm.showMore?_c("div",{staticClass:"act-coupon-more",style:{color:_vm.pageData.more&&_vm.pageData.more.color,backgroundColor:_vm.cbgColor,boxShadow:"0 0 3em 3em "+_vm.cbgColor}},[_c("span",[_vm._v(" "+_vm._s(_vm.pageData.more&&_vm.pageData.more.txt?_vm.pageData.more.txt:"下滑查看更多")+" ")]),_c("svg-icon",{attrs:{"iconClass":"double-arrow-down"}})],1):_vm._e()])],1):_vm._e(),_vm.pageData.tips?_c("div",{staticClass:"act-quan-tips",style:{color:_vm.pageData.tips.color?_vm.pageData.tips.color:_vm.hbgColor}},[_c("span",{domProps:{"innerHTML":_vm._s(_vm.pageData.tips.txt)}})]):_vm._e(),_vm.pageData.btn?_c("div",{staticClass:"act-quan-con-btn"},[_c("act-button",{attrs:{"round":_vm.pageData.btn.round,"buttondata":{btnbg:_vm.pageData.btn.back?_vm.pageData.btn.back:_vm.hbgColor,btnborder:_vm.pageData.btn.border,btncolor:_vm.pageData.btn.color?_vm.pageData.btn.color:"#b37321"}},on:{"button-click":_vm.click}},[_vm._v(" "+_vm._s(_vm.pageData.btn.txt?_vm.pageData.btn.txt:"我知道了")+" ")])],1):_vm._e()])])]},proxy:true}])})};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"8e885cbc");var CouponLayer=__component__.exports;CouponLayer.install=function(Vue){Vue.component(CouponLayer.name,CouponLayer);Vue.prototype["$createCouponLayer"]=utils_create.create(CouponLayer,Vue)};exports.CouponLayer=CouponLayer;
1
+ "use strict";require('./style.css');var utils_create=require("../utils/create/index.js");require("../common/svgicon/index.js");var BScrollModule=require("better-scroll");var mixins_visible=require("../mixins/visible/index.js");var mixins_noscroll=require("../mixins/noscroll/index.js");var mixins_formInput=require("../mixins/form-input/index.js");var common_layer=require("../common/layer/index.js");var common_button=require("../common/button/index.js");var utils_helpers=require("../utils/helpers/index.js");var defaultCouponImg=require("../assets/item.e9b2.png");var utils_BScroll_constants=require("../utils/BScroll/constants/index.js");var common=require("../common/index.js");function noop(){}var _sfc_main={name:"ActCouponLayer",mixins:[mixins_visible.visibleMixin,mixins_noscroll.noscrollMixin,mixins_formInput.formInputMixin],components:{ActLayer:common_layer.ActLayer,ActButton:common_button.ActButton},props:{hbgColor:{type:String,default:"#f7debb"},cbgColor:{type:String,default:"#f9443c"},showClose:{type:Boolean,default:true},content:{type:Object,default:function _default(){return{}}},btnClick:{type:Function,default:noop}},data:function data(){return{showMore:false,defaultCouponImg}},watch:{isVisible:function isVisible(newVal){var _this=this;this.$nextTick(function(){if(newVal&&_this.pageData&&_this.pageData.coupon){var coupon=_this.pageData.coupon;if(coupon.length<=3){_this.showMore=false}else{_this.$nextTick(function(){var height=_this.$refs.container.offsetHeight/coupon.length*3;_this.$refs.container.style.height=Math.ceil(height)+"px";_this.showMore=true;var ins=new BScrollModule(_this.$refs.container,{useTransition:utils_BScroll_constants.USE_TRANSITION});var me=_this;ins.on("scroll",utils_helpers.throttle(function(obj){me.setMoreBtn(obj)},800));ins.on("scrollEnd",function(obj){_this.setMoreBtn(obj)})})}}})}},methods:{click:function click(){if(this.btnClick===noop){this.hideLayer()}else{this.btnClick()}},hideLayer:function hideLayer(){this.hide();this.$emit("hidelayer")},setMoreBtn:function setMoreBtn(obj){if(Math.abs(obj.y)>=this.$refs.wrap.scrollHeight-this.$refs.container.offsetHeight){this.showMore=false}else{this.showMore=true}}}};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:{"type":"slim","hbgColor":_vm.hbgColor,"cbgColor":_vm.cbgColor,"showClose":_vm.showClose},on:{"hidelayer":_vm.hideLayer},scopedSlots:_vm._u([{key:"content",fn:function fn(){return[_c("div",{staticClass:"act-quan-con"},[_vm.pageData.title?_c("div",{staticClass:"act-quan-title",style:{color:_vm.pageData.title.color},domProps:{"innerHTML":_vm._s(_vm.pageData.title.txt)}}):_vm._e(),_vm.pageData.desc?_c("div",{staticClass:"act-quan-tit-desc",style:{color:_vm.pageData.desc.color},domProps:{"innerHTML":_vm._s(_vm.pageData.desc.txt)}}):_vm._e(),_c("div",{staticClass:"act-quan-con-form"},[_vm.isVisible?_c("div",{ref:"container",staticClass:"act-quan-box"},[_c("div",{ref:"wrap"},_vm._l(_vm.pageData.coupon,function(item,index){return _c("div",{key:index,staticClass:"act-quan-data"},[_c("div",{staticClass:"act-quan-data-container act-row act-middle",style:{backgroundImage:"url("+(item.bgImg?item.bgImg:_vm.defaultCouponImg)+")"}},[item.label?_c("div",{staticClass:"act-quan-label",style:{borderColor:"transparent transparent "+item.label.bgColor,color:item.label.color}},[_c("span",[_vm._v(_vm._s(item.label.txt))])]):_vm._e(),_c("div",{staticClass:"act-quan-left"},[item.money?_c("div",{style:{color:item.money.color}},[_c("span",{staticClass:"act-quan-money"},[_vm._v(_vm._s(item.money.num))]),_c("span",{staticClass:"act-quan-unit"},[_vm._v(_vm._s(item.money.unit||"元"))])]):_vm._e()]),_c("div",{staticClass:"act-quan-right"},[item.info?_c("div",[item.info.title?_c("div",{staticClass:"act-quan-name",style:{color:item.info.color}},[_vm._v(" "+_vm._s(item.info.title)+" ")]):_vm._e(),item.info.desc?_c("div",{staticClass:"act-quan-desc",style:{color:item.info.color,border:"1px solid "+item.info.color}},[_c("span",[_vm._v(_vm._s(item.info.desc))])]):_vm._e()]):_vm._e()])])])}),0),_c("transition",{attrs:{"name":"more"}},[_vm.showMore?_c("div",{staticClass:"act-coupon-more",style:{color:_vm.pageData.more&&_vm.pageData.more.color,backgroundColor:_vm.cbgColor,boxShadow:"0 0 3em 3em "+_vm.cbgColor}},[_c("span",[_vm._v(" "+_vm._s(_vm.pageData.more&&_vm.pageData.more.txt?_vm.pageData.more.txt:"下滑查看更多")+" ")]),_c("svg-icon",{attrs:{"iconClass":"double-arrow-down"}})],1):_vm._e()])],1):_vm._e(),_vm.pageData.tips?_c("div",{staticClass:"act-quan-tips",style:{color:_vm.pageData.tips.color?_vm.pageData.tips.color:_vm.hbgColor}},[_c("span",{domProps:{"innerHTML":_vm._s(_vm.pageData.tips.txt)}})]):_vm._e(),_vm.pageData.btn?_c("div",{staticClass:"act-quan-con-btn"},[_c("act-button",{attrs:{"round":_vm.pageData.btn.round,"buttondata":{btnbg:_vm.pageData.btn.back?_vm.pageData.btn.back:_vm.hbgColor,btnborder:_vm.pageData.btn.border,btncolor:_vm.pageData.btn.color?_vm.pageData.btn.color:"#b37321"}},on:{"button-click":_vm.click}},[_vm._v(" "+_vm._s(_vm.pageData.btn.txt?_vm.pageData.btn.txt:"我知道了")+" ")])],1):_vm._e()])])]},proxy:true}])})};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"8e885cbc");var CouponLayer=__component__.exports;CouponLayer.install=function(Vue){Vue.component(CouponLayer.name,CouponLayer);Vue.prototype["$createCouponLayer"]=utils_create.create(CouponLayer,Vue)};exports.CouponLayer=CouponLayer;
@@ -1,6 +1,6 @@
1
1
  import { c as create } from "../utils/create/index.mjs";
2
2
  import "../common/svgicon/index.mjs";
3
- import { b as bScroll } from "../BScroll/index.mjs";
3
+ import BScrollModule__default from "better-scroll";
4
4
  import { v as visibleMixin } from "../mixins/visible/index.mjs";
5
5
  import { n as noscrollMixin } from "../mixins/noscroll/index.mjs";
6
6
  import { f as formInputMixin } from "../mixins/form-input/index.mjs";
@@ -62,7 +62,7 @@ var _sfc_main = {
62
62
  var height = _this.$refs.container.offsetHeight / coupon.length * 3;
63
63
  _this.$refs.container.style.height = Math.ceil(height) + "px";
64
64
  _this.showMore = true;
65
- var ins = new bScroll(_this.$refs.container, {
65
+ var ins = new BScrollModule__default(_this.$refs.container, {
66
66
  useTransition: USE_TRANSITION
67
67
  });
68
68
  var me = _this;
@@ -1 +1 @@
1
- "use strict";require('./style.css');var _toConsumableArray=require("@babel/runtime-corejs3/helpers/toConsumableArray");var _indexOfInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/index-of");var _filterInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/filter");var _forEachInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/for-each");var _concatInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/concat");var utils_create=require("../utils/create/index.js");var common_goldlayer=require("../common/goldlayer/index.js");var Loading=require("../Loading/index.js");var BScroll=require("../BScroll/index.js");var utils_helpers=require("../utils/helpers/index.js");var __$_require_263bdd0a__=require("../assets/icon-search.3c97.png");var __$_require_e9a2481a__=require("../assets/icon-close.b233.png");var __$_require_450b57d0__=require("../assets/icon-nodata.16b6.png");var __$_require_5419c642__=require("../assets/icon-nodata-cps.192f.png");var common=require("../common/index.js");var _sfc_main={name:"ActDiseaseListLayer",components:{ActGoldLayer:common_goldlayer.ActGoldLayer,ActLoading:Loading.Loading},data:function data(){return{zIndex:999,isVisible:false,diseaseList:[],scroll:null,hasMore:false,loading:false,searchKeyword:"",hasSearched:false,docmHeight:document.documentElement.clientHeight,pickerContentHeight:0,searchHeight:"",isShowActLoading:false}},props:{paramsData:{type:Object,default:function _default(){return{}}},title:{type:String,default:"疾病清单"},isCps:{type:Boolean,default:false},brandColor:{type:String,default:"#8c7fee"},searchEmptyResultTips:{type:String,default:"找不到相关疾病"},searchEmptyResultDesc:{type:String,default:"您可以更换一下疾病名称搜索哦"},placeholder:{type:String,default:"请输入您要查询的疾病名称"}},created:function created(){var _this=this;var u=navigator.userAgent;if(_indexOfInstanceProperty(u).call(u,"Android")>-1||_indexOfInstanceProperty(u).call(u,"Adr")>-1){this.handleResize=function(){if(_this.pickerContentHeight===0){return}var showHeight=document.body.clientHeight;if(_this.docmHeight>showHeight){_this.$refs.pickerContent.style.height=_this.docmHeight-showHeight+"px";_this.searchHeight=_this.pickerContentHeight+showHeight-_this.docmHeight+"px"}else{_this.$refs.pickerContent.style.height=_this.pickerContentHeight+"px";_this.searchHeight="100%"}};window.addEventListener("resize",this.handleResize)}},beforeDestroy:function beforeDestroy(){if(this.handleResize){window.removeEventListener("resize",this.handleResize)}},methods:{maskClick:function maskClick(){this.isVisible=false},show:function show(){this.isVisible=true;if(!this.diseaseList.length){this.initData()}else{this.refreshScroll()}},loadMore:function loadMore(){if(!this.hasMore||this.loading)return;this.currentPage++;this.fetchData()},initData:function initData(){this.currentPage=1;this.diseaseList=[];this.fetchData(true)},fetchData:function fetchData(){var _this2=this;var init=arguments.length>0&&arguments[0]!==void 0?arguments[0]:false;var reset=arguments.length>1&&arguments[1]!==void 0?arguments[1]:false;if(this.loading)return;if(init){this.isShowActLoading=true}this.loading=true;var postData={filter:{},page:this.currentPage,showNum:20};for(var key in this.paramsData){var value=this.paramsData[key];if(value!==""&&value!=null&&value!==void 0){postData[key]=this.paramsData[key]}}if(this.searchKeyword){_filterInstanceProperty(postData).name=this.searchKeyword}this.$fetch("/buy/getDiseaseList",postData).then(function(res){var ret=res.ret,errmsg=res.errmsg,data2=res.data;if(+ret===0){if(reset){_this2.diseaseList=[];_this2.scrollTop()}var newList=data2.list||[];_this2.totalCount=Number(data2.count)||0;_this2.transformDiseaseList(newList);_this2.hasMore=_this2.diseaseList.length<_this2.totalCount;_this2.refreshScroll()}else{_this2.$toast.show(errmsg)}}).catch(function(err){}).finally(function(){_this2.loading=false;_this2.isShowActLoading=false;_this2.hasSearched=true})},transformDiseaseList:function transformDiseaseList(list){var _context;if(this.searchKeyword){var color=this.isCps?"#F05A4B":"#8C7FEE";var reg=new RegExp("(".concat(this.searchKeyword,")"),"g");_forEachInstanceProperty(list).call(list,function(item){item.name=item.name.replace(reg,'<span style="color: '.concat(color,';">$1</span>'))})}this.diseaseList=_concatInstanceProperty(_context=[]).call(_context,_toConsumableArray(this.diseaseList),_toConsumableArray(list))},clear:function clear(){this.searchKeyword="";this.resetSearch()},handleSearch:function handleSearch(){this.resetSearch()},resetSearch:function resetSearch(){this.currentPage=1;this.fetchData(false,true)},refreshScroll:function refreshScroll(){var _this3=this;this.$nextTick(function(){if(!_this3.scroll){_this3.scroll=new BScroll.bScroll(_this3.$refs.tableWrapper,{click:true,damping:.6});_this3.scroll.on("scrollEnd",function(){if(_this3.scroll.y<=_this3.scroll.maxScrollY+50){if(_this3.hasMore&&!_this3.loading){_this3.loadMore()}}})}else{_this3.scroll.refresh()}})},scrollTop:function scrollTop(){this.scroll.scrollTo(0,0,300)}},watch:{isVisible:function isVisible(newVal){var _this4=this;if(!this.pickerContentHeight&&newVal){this.$nextTick(function(){_this4.pickerContentHeight=utils_helpers.outerHeight(_this4.$refs.pickerContent)})}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"act-DiseaseListLayer"},[_c("act-gold-layer",{attrs:{"title":_vm.title,"mask":true,"center":false,"visible":_vm.isVisible,"zIndex":_vm.zIndex},on:{"close":_vm.maskClick}},[_c("div",{ref:"pickerContent",staticClass:"main-content"},[_c("div",{staticClass:"gradual-color"}),_c("div",{staticClass:"header-box"},[_c("form",{staticClass:"search-box",on:{"submit":function submit($event){$event.preventDefault();return _vm.handleSearch.apply(null,arguments)}}},[_c("img",{staticClass:"search-icon",attrs:{"src":__$_require_263bdd0a__,"alt":""}}),_c("input",{directives:[{name:"model",rawName:"v-model",value:_vm.searchKeyword,expression:"searchKeyword"}],attrs:{"type":"text","placeholder":_vm.placeholder},domProps:{"value":_vm.searchKeyword},on:{"keyup":function keyup($event){var _context2;if(!_indexOfInstanceProperty(_context2=$event.type).call(_context2,"key")&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter"))return null;return _vm.handleSearch.apply(null,arguments)},"input":function input($event){if($event.target.composing)return;_vm.searchKeyword=$event.target.value}}}),_vm.searchKeyword?_c("img",{staticClass:"close-icon",attrs:{"src":__$_require_e9a2481a__,"alt":""},on:{"click":_vm.clear}}):_vm._e(),_c("button",{staticStyle:{"display":"none"},attrs:{"type":"submit"}},[_vm._v("搜索")])])]),_c("div",{staticClass:"search-content"},[_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.diseaseList&&_vm.diseaseList.length,expression:"diseaseList && diseaseList.length"}],ref:"content",staticClass:"content"},[_c("div",{staticClass:"table-scroll-bg",style:"height: ".concat(2*_vm.diseaseList.length,"rem")}),_c("div",{staticClass:"content-header"},[_c("div",{staticClass:"table-tr"},[_c("p",{staticClass:"order"},[_vm._v(" 序号 ")]),_c("p",{staticClass:"disease"},[_vm._v(" 疾病名称 ")])])]),_c("div",{ref:"tableWrapper",staticClass:"table-scroll-warppper"},[_c("div",[_c("div",{staticClass:"scroll-content"},[_c("table",{attrs:{"border":"0","cellspacing":"0","cellpadding":"0"}},[_c("tbody",_vm._l(_vm.diseaseList,function(item,index){return _c("tr",{key:index+item.name,staticClass:"table-tr"},[_c("td",{staticClass:"order"},[_c("div",{staticClass:"item-order"},[_vm._v(" "+_vm._s(index+1)+" ")])]),_c("td",{staticClass:"disease disease-desc"},[_c("div",{domProps:{"innerHTML":_vm._s(item.name)}})])])}),0)])]),_c("div",{staticStyle:{"width":"100%","height":"3rem"}})])])]),_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.hasSearched&&_vm.diseaseList.length===0,expression:"hasSearched && diseaseList.length === 0"}],staticClass:"search-empty"},[!_vm.isCps?_c("img",{attrs:{"src":__$_require_450b57d0__}}):_c("img",{attrs:{"src":__$_require_5419c642__}}),_c("h4",{staticClass:"tip"},[_vm._v(_vm._s(_vm.searchEmptyResultTips))]),_c("p",{staticClass:"desc"},[_vm._v(_vm._s(_vm.searchEmptyResultDesc))])]),_vm.isShowActLoading?_c("div",{staticClass:"loading"},[_c("act-loading",{directives:[{name:"show",rawName:"v-show",value:true,expression:"true"}],attrs:{"type":"cir3","color":_vm.brandColor,"size":35}})],1):_vm._e()])])])],1)};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"59c7313c");var DiseaseListLayer=__component__.exports;DiseaseListLayer.install=function(Vue){Vue.component(DiseaseListLayer.name,DiseaseListLayer);Vue.prototype["$createDiseaseListLayer"]=utils_create.create(DiseaseListLayer,Vue)};exports.DiseaseListLayer=DiseaseListLayer;
1
+ "use strict";require('./style.css');var _toConsumableArray=require("@babel/runtime-corejs3/helpers/toConsumableArray");var _indexOfInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/index-of");var _filterInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/filter");var _forEachInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/for-each");var _concatInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/concat");var utils_create=require("../utils/create/index.js");var common_goldlayer=require("../common/goldlayer/index.js");var Loading=require("../Loading/index.js");var BScrollModule=require("better-scroll");var utils_helpers=require("../utils/helpers/index.js");var __$_require_263bdd0a__=require("../assets/icon-search.3c97.png");var __$_require_e9a2481a__=require("../assets/icon-close.b233.png");var __$_require_450b57d0__=require("../assets/icon-nodata.16b6.png");var __$_require_5419c642__=require("../assets/icon-nodata-cps.192f.png");var common=require("../common/index.js");var _sfc_main={name:"ActDiseaseListLayer",components:{ActGoldLayer:common_goldlayer.ActGoldLayer,ActLoading:Loading.Loading},data:function data(){return{zIndex:999,isVisible:false,diseaseList:[],scroll:null,hasMore:false,loading:false,searchKeyword:"",hasSearched:false,docmHeight:document.documentElement.clientHeight,pickerContentHeight:0,searchHeight:"",isShowActLoading:false}},props:{paramsData:{type:Object,default:function _default(){return{}}},title:{type:String,default:"疾病清单"},isCps:{type:Boolean,default:false},brandColor:{type:String,default:"#8c7fee"},searchEmptyResultTips:{type:String,default:"找不到相关疾病"},searchEmptyResultDesc:{type:String,default:"您可以更换一下疾病名称搜索哦"},placeholder:{type:String,default:"请输入您要查询的疾病名称"}},created:function created(){var _this=this;var u=navigator.userAgent;if(_indexOfInstanceProperty(u).call(u,"Android")>-1||_indexOfInstanceProperty(u).call(u,"Adr")>-1){this.handleResize=function(){if(_this.pickerContentHeight===0){return}var showHeight=document.body.clientHeight;if(_this.docmHeight>showHeight){_this.$refs.pickerContent.style.height=_this.docmHeight-showHeight+"px";_this.searchHeight=_this.pickerContentHeight+showHeight-_this.docmHeight+"px"}else{_this.$refs.pickerContent.style.height=_this.pickerContentHeight+"px";_this.searchHeight="100%"}};window.addEventListener("resize",this.handleResize)}},beforeDestroy:function beforeDestroy(){if(this.handleResize){window.removeEventListener("resize",this.handleResize)}},methods:{maskClick:function maskClick(){this.isVisible=false},show:function show(){this.isVisible=true;if(!this.diseaseList.length){this.initData()}else{this.refreshScroll()}},loadMore:function loadMore(){if(!this.hasMore||this.loading)return;this.currentPage++;this.fetchData()},initData:function initData(){this.currentPage=1;this.diseaseList=[];this.fetchData(true)},fetchData:function fetchData(){var _this2=this;var init=arguments.length>0&&arguments[0]!==void 0?arguments[0]:false;var reset=arguments.length>1&&arguments[1]!==void 0?arguments[1]:false;if(this.loading)return;if(init){this.isShowActLoading=true}this.loading=true;var postData={filter:{},page:this.currentPage,showNum:20};for(var key in this.paramsData){var value=this.paramsData[key];if(value!==""&&value!=null&&value!==void 0){postData[key]=this.paramsData[key]}}if(this.searchKeyword){_filterInstanceProperty(postData).name=this.searchKeyword}this.$fetch("/buy/getDiseaseList",postData).then(function(res){var ret=res.ret,errmsg=res.errmsg,data2=res.data;if(+ret===0){if(reset){_this2.diseaseList=[];_this2.scrollTop()}var newList=data2.list||[];_this2.totalCount=Number(data2.count)||0;_this2.transformDiseaseList(newList);_this2.hasMore=_this2.diseaseList.length<_this2.totalCount;_this2.refreshScroll()}else{_this2.$toast.show(errmsg)}}).catch(function(err){}).finally(function(){_this2.loading=false;_this2.isShowActLoading=false;_this2.hasSearched=true})},transformDiseaseList:function transformDiseaseList(list){var _context;if(this.searchKeyword){var color=this.isCps?"#F05A4B":"#8C7FEE";var reg=new RegExp("(".concat(this.searchKeyword,")"),"g");_forEachInstanceProperty(list).call(list,function(item){item.name=item.name.replace(reg,'<span style="color: '.concat(color,';">$1</span>'))})}this.diseaseList=_concatInstanceProperty(_context=[]).call(_context,_toConsumableArray(this.diseaseList),_toConsumableArray(list))},clear:function clear(){this.searchKeyword="";this.resetSearch()},handleSearch:function handleSearch(){this.resetSearch()},resetSearch:function resetSearch(){this.currentPage=1;this.fetchData(false,true)},refreshScroll:function refreshScroll(){var _this3=this;this.$nextTick(function(){if(!_this3.scroll){_this3.scroll=new BScrollModule(_this3.$refs.tableWrapper,{click:true,damping:.6});_this3.scroll.on("scrollEnd",function(){if(_this3.scroll.y<=_this3.scroll.maxScrollY+50){if(_this3.hasMore&&!_this3.loading){_this3.loadMore()}}})}else{_this3.scroll.refresh()}})},scrollTop:function scrollTop(){this.scroll.scrollTo(0,0,300)}},watch:{isVisible:function isVisible(newVal){var _this4=this;if(!this.pickerContentHeight&&newVal){this.$nextTick(function(){_this4.pickerContentHeight=utils_helpers.outerHeight(_this4.$refs.pickerContent)})}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"act-DiseaseListLayer"},[_c("act-gold-layer",{attrs:{"title":_vm.title,"mask":true,"center":false,"visible":_vm.isVisible,"zIndex":_vm.zIndex},on:{"close":_vm.maskClick}},[_c("div",{ref:"pickerContent",staticClass:"main-content"},[_c("div",{staticClass:"gradual-color"}),_c("div",{staticClass:"header-box"},[_c("form",{staticClass:"search-box",on:{"submit":function submit($event){$event.preventDefault();return _vm.handleSearch.apply(null,arguments)}}},[_c("img",{staticClass:"search-icon",attrs:{"src":__$_require_263bdd0a__,"alt":""}}),_c("input",{directives:[{name:"model",rawName:"v-model",value:_vm.searchKeyword,expression:"searchKeyword"}],attrs:{"type":"text","placeholder":_vm.placeholder},domProps:{"value":_vm.searchKeyword},on:{"keyup":function keyup($event){var _context2;if(!_indexOfInstanceProperty(_context2=$event.type).call(_context2,"key")&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter"))return null;return _vm.handleSearch.apply(null,arguments)},"input":function input($event){if($event.target.composing)return;_vm.searchKeyword=$event.target.value}}}),_vm.searchKeyword?_c("img",{staticClass:"close-icon",attrs:{"src":__$_require_e9a2481a__,"alt":""},on:{"click":_vm.clear}}):_vm._e(),_c("button",{staticStyle:{"display":"none"},attrs:{"type":"submit"}},[_vm._v("搜索")])])]),_c("div",{staticClass:"search-content"},[_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.diseaseList&&_vm.diseaseList.length,expression:"diseaseList && diseaseList.length"}],ref:"content",staticClass:"content"},[_c("div",{staticClass:"table-scroll-bg",style:"height: ".concat(2*_vm.diseaseList.length,"rem")}),_c("div",{staticClass:"content-header"},[_c("div",{staticClass:"table-tr"},[_c("p",{staticClass:"order"},[_vm._v(" 序号 ")]),_c("p",{staticClass:"disease"},[_vm._v(" 疾病名称 ")])])]),_c("div",{ref:"tableWrapper",staticClass:"table-scroll-warppper"},[_c("div",[_c("div",{staticClass:"scroll-content"},[_c("table",{attrs:{"border":"0","cellspacing":"0","cellpadding":"0"}},[_c("tbody",_vm._l(_vm.diseaseList,function(item,index){return _c("tr",{key:index+item.name,staticClass:"table-tr"},[_c("td",{staticClass:"order"},[_c("div",{staticClass:"item-order"},[_vm._v(" "+_vm._s(index+1)+" ")])]),_c("td",{staticClass:"disease disease-desc"},[_c("div",{domProps:{"innerHTML":_vm._s(item.name)}})])])}),0)])]),_c("div",{staticStyle:{"width":"100%","height":"3rem"}})])])]),_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.hasSearched&&_vm.diseaseList.length===0,expression:"hasSearched && diseaseList.length === 0"}],staticClass:"search-empty"},[!_vm.isCps?_c("img",{attrs:{"src":__$_require_450b57d0__}}):_c("img",{attrs:{"src":__$_require_5419c642__}}),_c("h4",{staticClass:"tip"},[_vm._v(_vm._s(_vm.searchEmptyResultTips))]),_c("p",{staticClass:"desc"},[_vm._v(_vm._s(_vm.searchEmptyResultDesc))])]),_vm.isShowActLoading?_c("div",{staticClass:"loading"},[_c("act-loading",{directives:[{name:"show",rawName:"v-show",value:true,expression:"true"}],attrs:{"type":"cir3","color":_vm.brandColor,"size":35}})],1):_vm._e()])])])],1)};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"59c7313c");var DiseaseListLayer=__component__.exports;DiseaseListLayer.install=function(Vue){Vue.component(DiseaseListLayer.name,DiseaseListLayer);Vue.prototype["$createDiseaseListLayer"]=utils_create.create(DiseaseListLayer,Vue)};exports.DiseaseListLayer=DiseaseListLayer;
@@ -6,7 +6,7 @@ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js/instance/con
6
6
  import { c as create } from "../utils/create/index.mjs";
7
7
  import { A as ActGoldLayer } from "../common/goldlayer/index.mjs";
8
8
  import { L as Loading } from "../Loading/index.mjs";
9
- import { b as bScroll } from "../BScroll/index.mjs";
9
+ import BScrollModule__default from "better-scroll";
10
10
  import { o as outerHeight } from "../utils/helpers/index.mjs";
11
11
  import __$_require_263bdd0a__ from "../assets/icon-search.3c97.png";
12
12
  import __$_require_e9a2481a__ from "../assets/icon-close.b233.png";
@@ -187,7 +187,7 @@ import './style.css';var _sfc_main = {
187
187
  var _this3 = this;
188
188
  this.$nextTick(function() {
189
189
  if (!_this3.scroll) {
190
- _this3.scroll = new bScroll(_this3.$refs.tableWrapper, {
190
+ _this3.scroll = new BScrollModule__default(_this3.$refs.tableWrapper, {
191
191
  click: true,
192
192
  damping: 0.6
193
193
  // bounce: {
@@ -1 +1 @@
1
- "use strict";require('./style.css');var _filterInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/filter");var _findInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/find");var BScroll=require("../../../BScroll/index.js");var common=require("../../../common/index.js");var _sfc_main={name:"ActGoldBenefitSlider",data:function data(){return{windowX:0,listScroll:null,min:0,max:100,minPolicyTotal:0}},props:{tables:{type:Object,default:function _default(){return{}}},theme:{type:Object,default:function _default2(){return{}}},defaultValue:{type:Number,default:0},healthCfg:{type:Object,default:function _default3(){return{}}}},computed:{step:function step(){return 5},chooseAge:function chooseAge(){var realValue=+this.defaultValue;if(!realValue){realValue=Math.floor((this.min+this.max)/2)}else{if(realValue<this.min){return this.min}else if(realValue>this.max){return this.max}}return realValue},during:function during(){return this.max-this.min+1},width:function width(){return 12*(this.max-this.min)+1},rows:function rows(){return this.tables&&this.tables.rows||[]}},watch:{tables:{deep:true,handler:function handler(v){if(v&&v.rows&&v.rows.length){this.initTableData(v)}}}},methods:{initTableData:function initTableData(v){var rows2=v.rows;var _this$healthCfg=this.healthCfg,policyTotal=_this$healthCfg.policyTotal,insuresAge=_this$healthCfg.insuresAge,cashValue=_this$healthCfg.cashValue,premiumTotal=_this$healthCfg.premiumTotal;var arr=_filterInstanceProperty(rows2).call(rows2,function(item){if(item[cashValue]!==0||item[premiumTotal]!==0){return item}});if(arr&&arr.length){this.min=arr[0][insuresAge];this.max=arr[arr.length-1][insuresAge];this.minPolicyTotal=arr[0][policyTotal];this.initScroll()}},initScroll:function initScroll(){var _this=this;var wrapper=document.querySelector(".wrapper");var startX=(this.min-this.chooseAge)*12;this.$refs.wrappercontent.style.width=~~this.windowX+this.width+"px";this.$nextTick(function(){var that=_this;if(!_this.listScroll){_this.listScroll=new BScroll.bScroll(wrapper,{probeType:3,startX,scrollX:true,scrollY:false});that.listScroll.on("scrollEnd",that.scrollEndCb)}else{if(startX>=0){startX=0}_this.listScroll.refresh();_this.listScroll.scrollTo(startX,0,0);_this.changeFn(_this.chooseAge)}})},scrollEndCb:function scrollEndCb(pos){var that=this;var chooseAge2;if(pos.x>=0){chooseAge2=that.min}else if(Math.abs(pos.x)>=that.width){chooseAge2=that.max}else{chooseAge2=Math.floor(Math.abs(pos.x)/12+1+that.min);var scrollX=-(Math.floor(Math.abs(pos.x)/12+1)*12);that.listScroll.scrollTo(scrollX,0,0)}that.changeFn(chooseAge2)},changeFn:function changeFn(v){var _context;var _this$healthCfg2=this.healthCfg,policyTotal=_this$healthCfg2.policyTotal,insuresAge=_this$healthCfg2.insuresAge,cashValue=_this$healthCfg2.cashValue,premiumTotal=_this$healthCfg2.premiumTotal;var obj={policyTotal:"",insuresAge:v,cashValue:"",premiumTotal:""};var res=_findInstanceProperty(_context=this.rows).call(_context,function(item){return+item[insuresAge]===+v});if(res){obj.policyTotal=res[policyTotal]-this.minPolicyTotal;obj.cashValue=res[cashValue];obj.premiumTotal=res[premiumTotal]}this.$emit("updateAge",obj)}},mounted:function mounted(){var containerWidth=this.$refs.chooseContainer&&this.$refs.chooseContainer.offsetWidth;var curWidth=containerWidth||window.innerWidth||document.body&&document.body.clientWidth;this.windowX=curWidth>750?750:curWidth;this.initScroll()}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"choose-wrapper"},[_c("div",{ref:"chooseContainer",staticClass:"choose"},[_c("div",{staticClass:"choose-container wrapper"},[_c("div",{ref:"wrappercontent",staticClass:"choose-content"},_vm._l(_vm.during,function(number){return _c("div",{key:number,staticClass:"choose-item"},[_c("span",{staticClass:"number-item",class:{"number-part":(number+_vm.min-1)%_vm.step==0}}),(number+_vm.min-1)%_vm.step==0?_c("span",{staticClass:"number-text"},[_vm._v(_vm._s(number+_vm.min-1))]):_vm._e()])}),0)]),_c("div",{staticClass:"choose-value",style:{background:_vm.theme.brandColor}})]),_c("div",{staticClass:"translate-left"}),_c("div",{staticClass:"translate-right"})])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"19861120");var benefitSlider=__component__.exports;exports.benefitSlider=benefitSlider;
1
+ "use strict";require('./style.css');var _filterInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/filter");var _findInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/find");var BScrollModule=require("better-scroll");var common=require("../../../common/index.js");var _sfc_main={name:"ActGoldBenefitSlider",data:function data(){return{windowX:0,listScroll:null,min:0,max:100,minPolicyTotal:0}},props:{tables:{type:Object,default:function _default(){return{}}},theme:{type:Object,default:function _default2(){return{}}},defaultValue:{type:Number,default:0},healthCfg:{type:Object,default:function _default3(){return{}}}},computed:{step:function step(){return 5},chooseAge:function chooseAge(){var realValue=+this.defaultValue;if(!realValue){realValue=Math.floor((this.min+this.max)/2)}else{if(realValue<this.min){return this.min}else if(realValue>this.max){return this.max}}return realValue},during:function during(){return this.max-this.min+1},width:function width(){return 12*(this.max-this.min)+1},rows:function rows(){return this.tables&&this.tables.rows||[]}},watch:{tables:{deep:true,handler:function handler(v){if(v&&v.rows&&v.rows.length){this.initTableData(v)}}}},methods:{initTableData:function initTableData(v){var rows2=v.rows;var _this$healthCfg=this.healthCfg,policyTotal=_this$healthCfg.policyTotal,insuresAge=_this$healthCfg.insuresAge,cashValue=_this$healthCfg.cashValue,premiumTotal=_this$healthCfg.premiumTotal;var arr=_filterInstanceProperty(rows2).call(rows2,function(item){if(item[cashValue]!==0||item[premiumTotal]!==0){return item}});if(arr&&arr.length){this.min=arr[0][insuresAge];this.max=arr[arr.length-1][insuresAge];this.minPolicyTotal=arr[0][policyTotal];this.initScroll()}},initScroll:function initScroll(){var _this=this;var wrapper=document.querySelector(".wrapper");var startX=(this.min-this.chooseAge)*12;this.$refs.wrappercontent.style.width=~~this.windowX+this.width+"px";this.$nextTick(function(){var that=_this;if(!_this.listScroll){_this.listScroll=new BScrollModule(wrapper,{probeType:3,startX,scrollX:true,scrollY:false});that.listScroll.on("scrollEnd",that.scrollEndCb)}else{if(startX>=0){startX=0}_this.listScroll.refresh();_this.listScroll.scrollTo(startX,0,0);_this.changeFn(_this.chooseAge)}})},scrollEndCb:function scrollEndCb(pos){var that=this;var chooseAge2;if(pos.x>=0){chooseAge2=that.min}else if(Math.abs(pos.x)>=that.width){chooseAge2=that.max}else{chooseAge2=Math.floor(Math.abs(pos.x)/12+1+that.min);var scrollX=-(Math.floor(Math.abs(pos.x)/12+1)*12);that.listScroll.scrollTo(scrollX,0,0)}that.changeFn(chooseAge2)},changeFn:function changeFn(v){var _context;var _this$healthCfg2=this.healthCfg,policyTotal=_this$healthCfg2.policyTotal,insuresAge=_this$healthCfg2.insuresAge,cashValue=_this$healthCfg2.cashValue,premiumTotal=_this$healthCfg2.premiumTotal;var obj={policyTotal:"",insuresAge:v,cashValue:"",premiumTotal:""};var res=_findInstanceProperty(_context=this.rows).call(_context,function(item){return+item[insuresAge]===+v});if(res){obj.policyTotal=res[policyTotal]-this.minPolicyTotal;obj.cashValue=res[cashValue];obj.premiumTotal=res[premiumTotal]}this.$emit("updateAge",obj)}},mounted:function mounted(){var containerWidth=this.$refs.chooseContainer&&this.$refs.chooseContainer.offsetWidth;var curWidth=containerWidth||window.innerWidth||document.body&&document.body.clientWidth;this.windowX=curWidth>750?750:curWidth;this.initScroll()}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"choose-wrapper"},[_c("div",{ref:"chooseContainer",staticClass:"choose"},[_c("div",{staticClass:"choose-container wrapper"},[_c("div",{ref:"wrappercontent",staticClass:"choose-content"},_vm._l(_vm.during,function(number){return _c("div",{key:number,staticClass:"choose-item"},[_c("span",{staticClass:"number-item",class:{"number-part":(number+_vm.min-1)%_vm.step==0}}),(number+_vm.min-1)%_vm.step==0?_c("span",{staticClass:"number-text"},[_vm._v(_vm._s(number+_vm.min-1))]):_vm._e()])}),0)]),_c("div",{staticClass:"choose-value",style:{background:_vm.theme.brandColor}})]),_c("div",{staticClass:"translate-left"}),_c("div",{staticClass:"translate-right"})])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"19861120");var benefitSlider=__component__.exports;exports.benefitSlider=benefitSlider;
@@ -1,6 +1,6 @@
1
1
  import _filterInstanceProperty from "@babel/runtime-corejs3/core-js/instance/filter";
2
2
  import _findInstanceProperty from "@babel/runtime-corejs3/core-js/instance/find";
3
- import { b as bScroll } from "../../../BScroll/index.mjs";
3
+ import BScrollModule__default from "better-scroll";
4
4
  import { n as normalizeComponent } from "../../../common/index.mjs";
5
5
  import './style.css';var _sfc_main = {
6
6
  name: "ActGoldBenefitSlider",
@@ -99,7 +99,7 @@ import './style.css';var _sfc_main = {
99
99
  this.$nextTick(function() {
100
100
  var that = _this;
101
101
  if (!_this.listScroll) {
102
- _this.listScroll = new bScroll(wrapper, {
102
+ _this.listScroll = new BScrollModule__default(wrapper, {
103
103
  probeType: 3,
104
104
  startX,
105
105
  scrollX: true,
@@ -1 +1 @@
1
- "use strict";require('./style.css');var BScroll=require("../../BScroll/index.js");var mixins_visible=require("../../mixins/visible/index.js");var common_goldlayer=require("../../common/goldlayer/index.js");var common=require("../../common/index.js");var _sfc_main={name:"ActGoldCostTable",mixins:[mixins_visible.visibleMixin],data:function data(){return{scroller:null}},components:{ActGoldLayer:common_goldlayer.ActGoldLayer},props:{tables:{type:Object,default:function _default(){return{}}},theme:{type:Object,default:function _default2(){return{}}}},computed:{title:function title(){return this.tables.title||"现金价值表"},styleOption:function styleOption(){if(this.theme&&this.theme.brandColor){return{backgroundColor:this.theme.brandColor}}return{}}},methods:{showCol:function showCol(index){var displayArr=this.tables.display||[];if(displayArr[index]!==void 0&&~~displayArr[index]===1){return true}return false},close:function close(){this.hide()}},watch:{isVisible:function isVisible(value){var _this=this;if(value){var tables=document.querySelector(".cost-scroll");if(tables){this.$nextTick(function(){if(!_this.scroller){_this.scroller=new BScroll.bScroll(tables,{})}else{_this.scroller.refresh()}})}}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("act-gold-layer",{attrs:{"visible":_vm.isVisible,"center":false,"title":"保单利益演示表"},on:{"close":_vm.close}},[_c("div",{staticClass:"cost"},[_c("p",{staticClass:"cost-title"},[_vm._v(" "+_vm._s(_vm.title)+" ")]),_c("p",{staticClass:"cost-table-head"},[_vm._v(" 基于用户所选信息的保单利益演示如下: ")]),_vm.tables.cols&&_vm.tables.rows&&_vm.tables.rows.length?[_c("div",[_c("div",{staticClass:"table-tr thead"},[_vm._l(_vm.tables.cols,function(thead,theadIndex){return[_vm.showCol(theadIndex)?_c("span",{key:"head-"+theadIndex,staticClass:"table-item",style:_vm.styleOption},[_vm._v(" "+_vm._s(thead)+" ")]):_vm._e()]})],2),_c("div",{staticClass:"cost-scroll"},[_c("table",{staticClass:"table-body"},[_vm.tables.rows&&_vm.tables.rows.length?_c("tbody",_vm._l(_vm.tables.rows,function(tr,trIndex){return _c("tr",{key:"tr-"+trIndex,staticClass:"table-tr"},[_vm._l(tr,function(td,tdIndex){return[_vm.showCol(tdIndex)?_c("td",{key:"td-"+trIndex+"-"+tdIndex,staticClass:"table-item"},[_vm._v(" "+_vm._s(Math.round(td*100)/100)+" ")]):_vm._e()]})],2)}),0):_vm._e()])])])]:[_c("div",{staticClass:"no-data"},[_vm._v(" 暂时无法展示 ")])]],2)])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"d4495644");var GoldCostTable=__component__.exports;exports.GoldCostTable=GoldCostTable;
1
+ "use strict";require('./style.css');var BScrollModule=require("better-scroll");var mixins_visible=require("../../mixins/visible/index.js");var common_goldlayer=require("../../common/goldlayer/index.js");var common=require("../../common/index.js");var _sfc_main={name:"ActGoldCostTable",mixins:[mixins_visible.visibleMixin],data:function data(){return{scroller:null}},components:{ActGoldLayer:common_goldlayer.ActGoldLayer},props:{tables:{type:Object,default:function _default(){return{}}},theme:{type:Object,default:function _default2(){return{}}}},computed:{title:function title(){return this.tables.title||"现金价值表"},styleOption:function styleOption(){if(this.theme&&this.theme.brandColor){return{backgroundColor:this.theme.brandColor}}return{}}},methods:{showCol:function showCol(index){var displayArr=this.tables.display||[];if(displayArr[index]!==void 0&&~~displayArr[index]===1){return true}return false},close:function close(){this.hide()}},watch:{isVisible:function isVisible(value){var _this=this;if(value){var tables=document.querySelector(".cost-scroll");if(tables){this.$nextTick(function(){if(!_this.scroller){_this.scroller=new BScrollModule(tables,{})}else{_this.scroller.refresh()}})}}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("act-gold-layer",{attrs:{"visible":_vm.isVisible,"center":false,"title":"保单利益演示表"},on:{"close":_vm.close}},[_c("div",{staticClass:"cost"},[_c("p",{staticClass:"cost-title"},[_vm._v(" "+_vm._s(_vm.title)+" ")]),_c("p",{staticClass:"cost-table-head"},[_vm._v(" 基于用户所选信息的保单利益演示如下: ")]),_vm.tables.cols&&_vm.tables.rows&&_vm.tables.rows.length?[_c("div",[_c("div",{staticClass:"table-tr thead"},[_vm._l(_vm.tables.cols,function(thead,theadIndex){return[_vm.showCol(theadIndex)?_c("span",{key:"head-"+theadIndex,staticClass:"table-item",style:_vm.styleOption},[_vm._v(" "+_vm._s(thead)+" ")]):_vm._e()]})],2),_c("div",{staticClass:"cost-scroll"},[_c("table",{staticClass:"table-body"},[_vm.tables.rows&&_vm.tables.rows.length?_c("tbody",_vm._l(_vm.tables.rows,function(tr,trIndex){return _c("tr",{key:"tr-"+trIndex,staticClass:"table-tr"},[_vm._l(tr,function(td,tdIndex){return[_vm.showCol(tdIndex)?_c("td",{key:"td-"+trIndex+"-"+tdIndex,staticClass:"table-item"},[_vm._v(" "+_vm._s(Math.round(td*100)/100)+" ")]):_vm._e()]})],2)}),0):_vm._e()])])])]:[_c("div",{staticClass:"no-data"},[_vm._v(" 暂时无法展示 ")])]],2)])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"d4495644");var GoldCostTable=__component__.exports;exports.GoldCostTable=GoldCostTable;
@@ -1,4 +1,4 @@
1
- import { b as bScroll } from "../../BScroll/index.mjs";
1
+ import BScrollModule__default from "better-scroll";
2
2
  import { v as visibleMixin } from "../../mixins/visible/index.mjs";
3
3
  import { A as ActGoldLayer } from "../../common/goldlayer/index.mjs";
4
4
  import { n as normalizeComponent } from "../../common/index.mjs";
@@ -60,7 +60,7 @@ import './style.css';var _sfc_main = {
60
60
  if (tables) {
61
61
  this.$nextTick(function() {
62
62
  if (!_this.scroller) {
63
- _this.scroller = new bScroll(tables, {});
63
+ _this.scroller = new BScrollModule__default(tables, {});
64
64
  } else {
65
65
  _this.scroller.refresh();
66
66
  }
@@ -1 +1 @@
1
- "use strict";require('./style.css');var _sliceInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/slice");var _forEachInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/for-each");var BScroll=require("../../BScroll/index.js");var utils_helpers=require("../../utils/helpers/index.js");var common=require("../../common/index.js");var _sfc_main={props:{tableData:{type:Object,default:function _default(){}},brandColor:{type:String,default:"#8c7fee"}},data:function data(){return{tableScroller:null,rightTitleScroller:null,rightTableScroller:null,moreToggle:true}},computed:{renderData:function renderData(){return this.tableData},leftTitleArr:function leftTitleArr(){if(this.renderData&&this.renderData.head&&this.renderData.head.length){var _context;return _sliceInstanceProperty(_context=this.renderData.head).call(_context,0,2)}return[]},styleOption:function styleOption(){if(this.brandColor){return{backgroundColor:this.brandColor}}return{}},rightTitleArr:function rightTitleArr(){if(this.renderData&&this.renderData.head&&this.renderData.head.length){var _context2;var length=this.renderData.head.length;return _sliceInstanceProperty(_context2=this.renderData.head).call(_context2,2,length)}return[]},leftTable:function leftTable(){if(this.renderData){var arr=[];if(this.renderData.rows){var _context3;_forEachInstanceProperty(_context3=this.renderData.rows).call(_context3,function(el){var useArar=[];_forEachInstanceProperty(el).call(el,function(item,index){if(index<2){useArar.push(item)}});arr.push(useArar)})}return arr}return[]},rightTable:function rightTable(){if(this.renderData){var arr=[];if(this.renderData.rows){var _context4;_forEachInstanceProperty(_context4=this.renderData.rows).call(_context4,function(el){var useArar=[];_forEachInstanceProperty(el).call(el,function(item,index){if(index>1){useArar.push(item)}});arr.push(useArar)})}return arr}return[[]]}},watch:{renderData:{handler:function handler(newVal){var _this=this;if(newVal&&newVal.rows&&newVal.head){this.$nextTick(function(){var rightTitle=_this.$refs.rightTitle;var tableWrapper=_this.$refs.tableWrapper;var rightTable2=_this.$refs.rightTable;if(rightTitle){_this.$nextTick(function(){if(!_this.rightTitleScroller){_this.rightTitleScroller=new BScroll.bScroll(rightTitle,{scrollX:true,bounce:false,probeType:3,momentum:false});_this.rightTitleScroller.on("scroll",function(_ref){var x=_ref.x,y=_ref.y;utils_helpers.throttle(_this.rightTableScroller.scrollTo(x,y,0))})}else{_this.rightTitleScroller.refresh()}})}if(tableWrapper){_this.$nextTick(function(){if(!_this.tableScroller){_this.tableScroller=new BScroll.bScroll(tableWrapper,{scrollY:true,scrollX:false})}else{_this.tableScroller.refresh()}})}if(rightTable2){_this.$nextTick(function(){if(!_this.rightTableScroller){_this.rightTableScroller=new BScroll.bScroll(rightTable2,{scrollY:true,scrollX:true,bounce:false,probeType:2,momentum:false});_this.rightTableScroller.on("scroll",function(_ref2){var x=_ref2.x,y=_ref2.y;_this.rightTitleScroller.scrollTo(x,y,0)})}else{_this.rightTableScroller.refresh()}})}})}},deep:true}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"act-cost-table"},[_vm.renderData&&_vm.renderData.head&&_vm.renderData.rows&&_vm.renderData.rows.length?[_c("div",{staticClass:"wrapper"},[_c("div",{staticClass:"title-wrapper"},[_c("div",{staticClass:"left-title"},[_vm._l(_vm.leftTitleArr,function(thead,theadIndex){return[_c("span",{key:"head-"+theadIndex,staticClass:"table-item",style:_vm.styleOption},[_vm._v(" "+_vm._s(thead)+" ")])]})],2),_c("div",{ref:"rightTitle",staticClass:"right-title"},[_c("div",{ref:"rightTitleWrapper",staticClass:"right-title-wrapper"},[_vm._l(_vm.rightTitleArr,function(thead,theadIndex){return[_c("span",{key:"head-"+theadIndex,staticClass:"table-item",style:_vm.styleOption},[_vm._v(" "+_vm._s(thead)+" ")])]})],2)])]),_c("div",{ref:"tableWrapper",staticClass:"table-wrapper"},[_c("div",{staticClass:"table"},[_c("div",{staticClass:"left-table"},[_c("table",{staticClass:"table-body",attrs:{"border":"0"}},[_vm.leftTable&&_vm.leftTable.length?_c("tbody",_vm._l(_vm.leftTable,function(tr,trIndex){return _c("tr",{key:"tr-"+trIndex,staticClass:"table-tr"},[_vm._l(tr,function(td,tdIndex){return[_c("td",{key:"td-"+trIndex+"-"+tdIndex,staticClass:"table-item"},[_vm._v(" "+_vm._s(td.value)+" ")])]})],2)}),0):_vm._e()])]),_c("div",{ref:"rightTable",staticClass:"right-table"},[_c("table",{staticClass:"table-body",attrs:{"border":"0"}},[_vm.rightTable&&_vm.rightTable.length?_c("tbody",_vm._l(_vm.rightTable,function(tr,trIndex){return _c("tr",{key:"tr-"+trIndex,staticClass:"table-tr"},[_vm._l(tr,function(td,tdIndex){return[_c("td",{key:"td-"+trIndex+"-"+tdIndex,staticClass:"table-item"},[_vm._v(" "+_vm._s(td.value)+" ")])]})],2)}),0):_vm._e()])])])])])]:[_c("div",{staticClass:"no-data"},[_vm._v(" 暂无相关数据 ")])]],2)};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"1ac74287");var ActCostTableNew=__component__.exports;exports.ActCostTableNew=ActCostTableNew;
1
+ "use strict";require('./style.css');var _sliceInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/slice");var _forEachInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/for-each");var BScrollModule=require("better-scroll");var utils_helpers=require("../../utils/helpers/index.js");var common=require("../../common/index.js");var _sfc_main={props:{tableData:{type:Object,default:function _default(){}},brandColor:{type:String,default:"#8c7fee"}},data:function data(){return{tableScroller:null,rightTitleScroller:null,rightTableScroller:null,moreToggle:true}},computed:{renderData:function renderData(){return this.tableData},leftTitleArr:function leftTitleArr(){if(this.renderData&&this.renderData.head&&this.renderData.head.length){var _context;return _sliceInstanceProperty(_context=this.renderData.head).call(_context,0,2)}return[]},styleOption:function styleOption(){if(this.brandColor){return{backgroundColor:this.brandColor}}return{}},rightTitleArr:function rightTitleArr(){if(this.renderData&&this.renderData.head&&this.renderData.head.length){var _context2;var length=this.renderData.head.length;return _sliceInstanceProperty(_context2=this.renderData.head).call(_context2,2,length)}return[]},leftTable:function leftTable(){if(this.renderData){var arr=[];if(this.renderData.rows){var _context3;_forEachInstanceProperty(_context3=this.renderData.rows).call(_context3,function(el){var useArar=[];_forEachInstanceProperty(el).call(el,function(item,index){if(index<2){useArar.push(item)}});arr.push(useArar)})}return arr}return[]},rightTable:function rightTable(){if(this.renderData){var arr=[];if(this.renderData.rows){var _context4;_forEachInstanceProperty(_context4=this.renderData.rows).call(_context4,function(el){var useArar=[];_forEachInstanceProperty(el).call(el,function(item,index){if(index>1){useArar.push(item)}});arr.push(useArar)})}return arr}return[[]]}},watch:{renderData:{handler:function handler(newVal){var _this=this;if(newVal&&newVal.rows&&newVal.head){this.$nextTick(function(){var rightTitle=_this.$refs.rightTitle;var tableWrapper=_this.$refs.tableWrapper;var rightTable2=_this.$refs.rightTable;if(rightTitle){_this.$nextTick(function(){if(!_this.rightTitleScroller){_this.rightTitleScroller=new BScrollModule(rightTitle,{scrollX:true,bounce:false,probeType:3,momentum:false});_this.rightTitleScroller.on("scroll",function(_ref){var x=_ref.x,y=_ref.y;utils_helpers.throttle(_this.rightTableScroller.scrollTo(x,y,0))})}else{_this.rightTitleScroller.refresh()}})}if(tableWrapper){_this.$nextTick(function(){if(!_this.tableScroller){_this.tableScroller=new BScrollModule(tableWrapper,{scrollY:true,scrollX:false})}else{_this.tableScroller.refresh()}})}if(rightTable2){_this.$nextTick(function(){if(!_this.rightTableScroller){_this.rightTableScroller=new BScrollModule(rightTable2,{scrollY:true,scrollX:true,bounce:false,probeType:2,momentum:false});_this.rightTableScroller.on("scroll",function(_ref2){var x=_ref2.x,y=_ref2.y;_this.rightTitleScroller.scrollTo(x,y,0)})}else{_this.rightTableScroller.refresh()}})}})}},deep:true}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"act-cost-table"},[_vm.renderData&&_vm.renderData.head&&_vm.renderData.rows&&_vm.renderData.rows.length?[_c("div",{staticClass:"wrapper"},[_c("div",{staticClass:"title-wrapper"},[_c("div",{staticClass:"left-title"},[_vm._l(_vm.leftTitleArr,function(thead,theadIndex){return[_c("span",{key:"head-"+theadIndex,staticClass:"table-item",style:_vm.styleOption},[_vm._v(" "+_vm._s(thead)+" ")])]})],2),_c("div",{ref:"rightTitle",staticClass:"right-title"},[_c("div",{ref:"rightTitleWrapper",staticClass:"right-title-wrapper"},[_vm._l(_vm.rightTitleArr,function(thead,theadIndex){return[_c("span",{key:"head-"+theadIndex,staticClass:"table-item",style:_vm.styleOption},[_vm._v(" "+_vm._s(thead)+" ")])]})],2)])]),_c("div",{ref:"tableWrapper",staticClass:"table-wrapper"},[_c("div",{staticClass:"table"},[_c("div",{staticClass:"left-table"},[_c("table",{staticClass:"table-body",attrs:{"border":"0"}},[_vm.leftTable&&_vm.leftTable.length?_c("tbody",_vm._l(_vm.leftTable,function(tr,trIndex){return _c("tr",{key:"tr-"+trIndex,staticClass:"table-tr"},[_vm._l(tr,function(td,tdIndex){return[_c("td",{key:"td-"+trIndex+"-"+tdIndex,staticClass:"table-item"},[_vm._v(" "+_vm._s(td.value)+" ")])]})],2)}),0):_vm._e()])]),_c("div",{ref:"rightTable",staticClass:"right-table"},[_c("table",{staticClass:"table-body",attrs:{"border":"0"}},[_vm.rightTable&&_vm.rightTable.length?_c("tbody",_vm._l(_vm.rightTable,function(tr,trIndex){return _c("tr",{key:"tr-"+trIndex,staticClass:"table-tr"},[_vm._l(tr,function(td,tdIndex){return[_c("td",{key:"td-"+trIndex+"-"+tdIndex,staticClass:"table-item"},[_vm._v(" "+_vm._s(td.value)+" ")])]})],2)}),0):_vm._e()])])])])])]:[_c("div",{staticClass:"no-data"},[_vm._v(" 暂无相关数据 ")])]],2)};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"1ac74287");var ActCostTableNew=__component__.exports;exports.ActCostTableNew=ActCostTableNew;
@@ -1,6 +1,6 @@
1
1
  import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js/instance/slice";
2
2
  import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js/instance/for-each";
3
- import { b as bScroll } from "../../BScroll/index.mjs";
3
+ import BScrollModule__default from "better-scroll";
4
4
  import { t as throttle } from "../../utils/helpers/index.mjs";
5
5
  import { n as normalizeComponent } from "../../common/index.mjs";
6
6
  import './style.css';var _sfc_main = {
@@ -101,7 +101,7 @@ import './style.css';var _sfc_main = {
101
101
  if (rightTitle) {
102
102
  _this.$nextTick(function() {
103
103
  if (!_this.rightTitleScroller) {
104
- _this.rightTitleScroller = new bScroll(rightTitle, {
104
+ _this.rightTitleScroller = new BScrollModule__default(rightTitle, {
105
105
  scrollX: true,
106
106
  bounce: false,
107
107
  probeType: 3,
@@ -119,7 +119,7 @@ import './style.css';var _sfc_main = {
119
119
  if (tableWrapper) {
120
120
  _this.$nextTick(function() {
121
121
  if (!_this.tableScroller) {
122
- _this.tableScroller = new bScroll(tableWrapper, {
122
+ _this.tableScroller = new BScrollModule__default(tableWrapper, {
123
123
  scrollY: true,
124
124
  scrollX: false
125
125
  });
@@ -131,7 +131,7 @@ import './style.css';var _sfc_main = {
131
131
  if (rightTable2) {
132
132
  _this.$nextTick(function() {
133
133
  if (!_this.rightTableScroller) {
134
- _this.rightTableScroller = new bScroll(rightTable2, {
134
+ _this.rightTableScroller = new BScrollModule__default(rightTable2, {
135
135
  scrollY: true,
136
136
  scrollX: true,
137
137
  bounce: false,
@@ -1 +1 @@
1
- "use strict";require('./style.css');var BScroll=require("../../../BScroll/index.js");var common=require("../../../common/index.js");var _sfc_main={name:"ActGoldBenefitSlider",data:function data(){return{windowX:0,listScroll:null,forbidScrollEnd:false}},props:{element:{type:Object,default:function _default(){return{}}}},computed:{unit:function unit(){return~~this.element.range[0].unit||""},step:function step(){return~~(this.element.attr&&this.element.attr.step)||5},min:function min(){return~~this.element.range[0].min||~~(this.element.attr&&this.element.attr.min)||0},max:function max(){return~~this.element.range[0].max||~~(this.element.attr&&this.element.attr.max)||100},chooseAge:function chooseAge(){var realValue=~~this.element.value||80;if(realValue<this.min){return this.min}else if(realValue>this.max){return this.max}return realValue},during:function during(){return this.max-this.min+1},width:function width(){return 12*(this.max-this.min)+1}},methods:{initScroll:function initScroll(){var _this=this;var wrapper=document.querySelector(".wrapper");var startX=(this.min-this.chooseAge)*12;this.$refs.wrappercontent.style.width=~~this.windowX+this.width+"px";this.$nextTick(function(){var that=_this;if(!_this.listScroll){_this.listScroll=new BScroll.bScroll(wrapper,{probeType:3,startX,scrollX:true,scrollY:false});that.listScroll.on("scrollEnd",function(pos){if(that.forbidScrollEnd){that.forbidScrollEnd=false;return}var chooseAge2;if(pos.x>=0){chooseAge2=that.min}else if(Math.abs(pos.x)>=that.width){chooseAge2=that.max}else{chooseAge2=Math.floor(Math.abs(pos.x)/12+1+that.min);var scrollX=-(Math.floor(Math.abs(pos.x)/12+1)*12);that.forbidScrollEnd=true;that.listScroll.scrollTo(scrollX,0,0)}that.$emit("updateAge",chooseAge2)})}else{if(startX>=0){_this.$emit("updateAge",_this.min);startX=0}_this.listScroll.refresh();_this.forbidScrollEnd=true;_this.listScroll.scrollTo(startX,0,0)}})}},mounted:function mounted(){var containerWidth=this.$refs.chooseContainer&&this.$refs.chooseContainer.offsetWidth;this.windowX=containerWidth||window.innerWidth||document.body&&document.body.clientWidth;this.windowX=this.windowX>750?750:this.windowX;this.initScroll()},watch:{min:function min2(){this.initScroll()}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",[_c("div",{ref:"chooseContainer",staticClass:"choose"},[_c("div",{staticClass:"choose-container wrapper"},[_c("div",{ref:"wrappercontent",staticClass:"choose-content"},_vm._l(_vm.during,function(number){return _c("div",{key:number,staticClass:"choose-item"},[_c("span",{staticClass:"number-item",class:{"number-part":(number+_vm.min-1)%_vm.step==0}}),(number+_vm.min-1)%_vm.step==0?_c("span",{staticClass:"number-text"},[_vm._v(_vm._s(number+_vm.min-1)+_vm._s(_vm.unit))]):_vm._e()])}),0)]),_c("div",{staticClass:"choose-value skin-bg"})])])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"b78fe581");var benefitSlider=__component__.exports;exports.benefitSlider=benefitSlider;
1
+ "use strict";require('./style.css');var BScrollModule=require("better-scroll");var common=require("../../../common/index.js");var _sfc_main={name:"ActGoldBenefitSlider",data:function data(){return{windowX:0,listScroll:null,forbidScrollEnd:false}},props:{element:{type:Object,default:function _default(){return{}}}},computed:{unit:function unit(){return~~this.element.range[0].unit||""},step:function step(){return~~(this.element.attr&&this.element.attr.step)||5},min:function min(){return~~this.element.range[0].min||~~(this.element.attr&&this.element.attr.min)||0},max:function max(){return~~this.element.range[0].max||~~(this.element.attr&&this.element.attr.max)||100},chooseAge:function chooseAge(){var realValue=~~this.element.value||80;if(realValue<this.min){return this.min}else if(realValue>this.max){return this.max}return realValue},during:function during(){return this.max-this.min+1},width:function width(){return 12*(this.max-this.min)+1}},methods:{initScroll:function initScroll(){var _this=this;var wrapper=document.querySelector(".wrapper");var startX=(this.min-this.chooseAge)*12;this.$refs.wrappercontent.style.width=~~this.windowX+this.width+"px";this.$nextTick(function(){var that=_this;if(!_this.listScroll){_this.listScroll=new BScrollModule(wrapper,{probeType:3,startX,scrollX:true,scrollY:false});that.listScroll.on("scrollEnd",function(pos){if(that.forbidScrollEnd){that.forbidScrollEnd=false;return}var chooseAge2;if(pos.x>=0){chooseAge2=that.min}else if(Math.abs(pos.x)>=that.width){chooseAge2=that.max}else{chooseAge2=Math.floor(Math.abs(pos.x)/12+1+that.min);var scrollX=-(Math.floor(Math.abs(pos.x)/12+1)*12);that.forbidScrollEnd=true;that.listScroll.scrollTo(scrollX,0,0)}that.$emit("updateAge",chooseAge2)})}else{if(startX>=0){_this.$emit("updateAge",_this.min);startX=0}_this.listScroll.refresh();_this.forbidScrollEnd=true;_this.listScroll.scrollTo(startX,0,0)}})}},mounted:function mounted(){var containerWidth=this.$refs.chooseContainer&&this.$refs.chooseContainer.offsetWidth;this.windowX=containerWidth||window.innerWidth||document.body&&document.body.clientWidth;this.windowX=this.windowX>750?750:this.windowX;this.initScroll()},watch:{min:function min2(){this.initScroll()}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",[_c("div",{ref:"chooseContainer",staticClass:"choose"},[_c("div",{staticClass:"choose-container wrapper"},[_c("div",{ref:"wrappercontent",staticClass:"choose-content"},_vm._l(_vm.during,function(number){return _c("div",{key:number,staticClass:"choose-item"},[_c("span",{staticClass:"number-item",class:{"number-part":(number+_vm.min-1)%_vm.step==0}}),(number+_vm.min-1)%_vm.step==0?_c("span",{staticClass:"number-text"},[_vm._v(_vm._s(number+_vm.min-1)+_vm._s(_vm.unit))]):_vm._e()])}),0)]),_c("div",{staticClass:"choose-value skin-bg"})])])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"b78fe581");var benefitSlider=__component__.exports;exports.benefitSlider=benefitSlider;
@@ -1,4 +1,4 @@
1
- import { b as bScroll } from "../../../BScroll/index.mjs";
1
+ import BScrollModule__default from "better-scroll";
2
2
  import { n as normalizeComponent } from "../../../common/index.mjs";
3
3
  import './style.css';var _sfc_main = {
4
4
  name: "ActGoldBenefitSlider",
@@ -55,7 +55,7 @@ import './style.css';var _sfc_main = {
55
55
  this.$nextTick(function() {
56
56
  var that = _this;
57
57
  if (!_this.listScroll) {
58
- _this.listScroll = new bScroll(wrapper, {
58
+ _this.listScroll = new BScrollModule__default(wrapper, {
59
59
  probeType: 3,
60
60
  startX,
61
61
  scrollX: true,
@@ -1 +1 @@
1
- "use strict";require('./style.css');var BScroll=require("../../BScroll/index.js");var common=require("../../common/index.js");var _sfc_main={name:"ActGoldCostTable",data:function data(){return{scroller:null}},props:{visible:{type:Boolean,default:false},tables:{type:Object,default:function _default(){return{}}},theme:{type:Object,default:function _default2(){return{}}}},computed:{title:function title(){return this.tables.title||"现金价值表"},styleOption:function styleOption(){if(this.theme&&this.theme.brandColor){return{backgroundColor:this.theme.brandColor}}return{}}},methods:{showCol:function showCol(index){var displayArr=this.tables.display||[];if(displayArr[index]!==void 0&&~~displayArr[index]===1){return true}return false},cancel:function cancel(){this.$emit("cancelCost")},preventMove:function preventMove(e){e._prevent=true}},watch:{visible:function visible(value){var _this=this;if(value){var tables=document.querySelector(".cost-scroll");if(tables){this.$nextTick(function(){if(!_this.scroller){_this.scroller=new BScroll.bScroll(tables,{})}else{_this.scroller.refresh()}})}}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.visible,expression:"visible"}],staticClass:"layer-finance",on:{"touchmove":_vm.preventMove}},[_c("div",{staticClass:"layer-finance-mask",on:{"click":function click($event){$event.stopPropagation();return _vm.cancel.apply(null,arguments)}}}),_c("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[_c("span",{staticClass:"layer-close",on:{"click":function click($event){$event.stopPropagation();return _vm.cancel.apply(null,arguments)}}}),_c("p",{staticClass:"main-title"},[_vm._v(" 保单利益演示表 ")]),_c("p",{staticClass:"cost-title"},[_vm._v(" "+_vm._s(_vm.title)+" ")]),_c("p",{staticClass:"cost-table-head"},[_vm._v(" 基于用户所选信息的保单利益演示如下: ")]),_vm.tables.cols&&_vm.tables.rows&&_vm.tables.rows.length?[_c("div",[_c("div",{staticClass:"table-tr thead"},[_vm._l(_vm.tables.cols,function(thead,theadIndex){return[_vm.showCol(theadIndex)?_c("span",{key:"head-"+theadIndex,staticClass:"table-item",style:_vm.styleOption},[_vm._v(" "+_vm._s(thead)+" ")]):_vm._e()]})],2),_c("div",{staticClass:"cost-scroll"},[_c("table",{staticClass:"table-body"},[_vm.tables.rows&&_vm.tables.rows.length?_c("tbody",_vm._l(_vm.tables.rows,function(tr,trIndex){return _c("tr",{key:"tr-"+trIndex,staticClass:"table-tr"},[_vm._l(tr,function(td,tdIndex){return[_vm.showCol(tdIndex)?_c("td",{key:"td-"+trIndex+"-"+tdIndex,staticClass:"table-item"},[_vm._v(" "+_vm._s(Math.round(td*100)/100)+" ")]):_vm._e()]})],2)}),0):_vm._e()])])])]:[_c("div",{staticClass:"no-data"},[_vm._v(" 暂时无法展示 ")])]],2)])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"b0abb029");var GoldCostTable=__component__.exports;exports.GoldCostTable=GoldCostTable;
1
+ "use strict";require('./style.css');var BScrollModule=require("better-scroll");var common=require("../../common/index.js");var _sfc_main={name:"ActGoldCostTable",data:function data(){return{scroller:null}},props:{visible:{type:Boolean,default:false},tables:{type:Object,default:function _default(){return{}}},theme:{type:Object,default:function _default2(){return{}}}},computed:{title:function title(){return this.tables.title||"现金价值表"},styleOption:function styleOption(){if(this.theme&&this.theme.brandColor){return{backgroundColor:this.theme.brandColor}}return{}}},methods:{showCol:function showCol(index){var displayArr=this.tables.display||[];if(displayArr[index]!==void 0&&~~displayArr[index]===1){return true}return false},cancel:function cancel(){this.$emit("cancelCost")},preventMove:function preventMove(e){e._prevent=true}},watch:{visible:function visible(value){var _this=this;if(value){var tables=document.querySelector(".cost-scroll");if(tables){this.$nextTick(function(){if(!_this.scroller){_this.scroller=new BScrollModule(tables,{})}else{_this.scroller.refresh()}})}}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.visible,expression:"visible"}],staticClass:"layer-finance",on:{"touchmove":_vm.preventMove}},[_c("div",{staticClass:"layer-finance-mask",on:{"click":function click($event){$event.stopPropagation();return _vm.cancel.apply(null,arguments)}}}),_c("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[_c("span",{staticClass:"layer-close",on:{"click":function click($event){$event.stopPropagation();return _vm.cancel.apply(null,arguments)}}}),_c("p",{staticClass:"main-title"},[_vm._v(" 保单利益演示表 ")]),_c("p",{staticClass:"cost-title"},[_vm._v(" "+_vm._s(_vm.title)+" ")]),_c("p",{staticClass:"cost-table-head"},[_vm._v(" 基于用户所选信息的保单利益演示如下: ")]),_vm.tables.cols&&_vm.tables.rows&&_vm.tables.rows.length?[_c("div",[_c("div",{staticClass:"table-tr thead"},[_vm._l(_vm.tables.cols,function(thead,theadIndex){return[_vm.showCol(theadIndex)?_c("span",{key:"head-"+theadIndex,staticClass:"table-item",style:_vm.styleOption},[_vm._v(" "+_vm._s(thead)+" ")]):_vm._e()]})],2),_c("div",{staticClass:"cost-scroll"},[_c("table",{staticClass:"table-body"},[_vm.tables.rows&&_vm.tables.rows.length?_c("tbody",_vm._l(_vm.tables.rows,function(tr,trIndex){return _c("tr",{key:"tr-"+trIndex,staticClass:"table-tr"},[_vm._l(tr,function(td,tdIndex){return[_vm.showCol(tdIndex)?_c("td",{key:"td-"+trIndex+"-"+tdIndex,staticClass:"table-item"},[_vm._v(" "+_vm._s(Math.round(td*100)/100)+" ")]):_vm._e()]})],2)}),0):_vm._e()])])])]:[_c("div",{staticClass:"no-data"},[_vm._v(" 暂时无法展示 ")])]],2)])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"b0abb029");var GoldCostTable=__component__.exports;exports.GoldCostTable=GoldCostTable;
@@ -1,4 +1,4 @@
1
- import { b as bScroll } from "../../BScroll/index.mjs";
1
+ import BScrollModule__default from "better-scroll";
2
2
  import { n as normalizeComponent } from "../../common/index.mjs";
3
3
  import './style.css';var _sfc_main = {
4
4
  name: "ActGoldCostTable",
@@ -61,7 +61,7 @@ import './style.css';var _sfc_main = {
61
61
  if (tables) {
62
62
  this.$nextTick(function() {
63
63
  if (!_this.scroller) {
64
- _this.scroller = new bScroll(tables, {});
64
+ _this.scroller = new BScrollModule__default(tables, {});
65
65
  } else {
66
66
  _this.scroller.refresh();
67
67
  }
@@ -1 +1 @@
1
- "use strict";require('./style.css');var BScroll=require("../../BScroll/index.js");var common=require("../../common/index.js");var _sfc_main={name:"ActGoldCostTable",data:function data(){return{scroller:null}},props:{visible:{type:Boolean,default:false},tables:{type:Object,default:function _default(){return{}}},theme:{type:Object,default:function _default2(){return{}}}},computed:{title:function title(){return this.tables.title||"现金价值表"},styleOption:function styleOption(){if(this.theme&&this.theme.brandColor){return{backgroundColor:this.theme.brandColor}}return{}}},methods:{showCol:function showCol(index){var displayArr=this.tables.display||[];if(displayArr[index]!==void 0&&~~displayArr[index]===1){return true}return false},cancel:function cancel(){this.$emit("cancelCost")},preventMove:function preventMove(e){e._prevent=true}},watch:{visible:function visible(value){var _this=this;if(value){var tables=document.querySelector(".cost-scroll");if(tables){this.$nextTick(function(){if(!_this.scroller){_this.scroller=new BScroll.bScroll(tables,{})}else{_this.scroller.refresh()}})}}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.visible,expression:"visible"}],staticClass:"layer-finance",on:{"touchmove":_vm.preventMove}},[_c("div",{staticClass:"layer-finance-mask",on:{"click":function click($event){$event.stopPropagation();return _vm.cancel.apply(null,arguments)}}}),_c("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[_c("span",{staticClass:"layer-close",on:{"click":function click($event){$event.stopPropagation();return _vm.cancel.apply(null,arguments)}}}),_c("p",{staticClass:"main-title"},[_vm._v(" 保单利益演示表 ")]),_c("p",{staticClass:"cost-title"},[_vm._v(" "+_vm._s(_vm.title)+" ")]),_c("p",{staticClass:"cost-table-head"},[_vm._v(" 基于用户所选信息的保单利益演示如下: ")]),_vm.tables.cols&&_vm.tables.rows&&_vm.tables.rows.length?[_c("div",[_c("div",{staticClass:"table-tr thead"},[_vm._l(_vm.tables.cols,function(thead,theadIndex){return[_vm.showCol(theadIndex)?_c("span",{key:"head-"+theadIndex,staticClass:"table-item",style:_vm.styleOption},[_vm._v(" "+_vm._s(thead)+" ")]):_vm._e()]})],2),_c("div",{staticClass:"cost-scroll"},[_c("table",{staticClass:"table-body"},[_vm.tables.rows&&_vm.tables.rows.length?_c("tbody",_vm._l(_vm.tables.rows,function(tr,trIndex){return _c("tr",{key:"tr-"+trIndex,staticClass:"table-tr"},[_vm._l(tr,function(td,tdIndex){return[_vm.showCol(tdIndex)?_c("td",{key:"td-"+trIndex+"-"+tdIndex,staticClass:"table-item"},[_vm._v(" "+_vm._s(Math.round(td*100)/100)+" ")]):_vm._e()]})],2)}),0):_vm._e()])])])]:[_c("div",{staticClass:"no-data"},[_vm._v(" 暂时无法展示 ")])]],2)])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"952b8e43");var GoldCostTable=__component__.exports;exports.GoldCostTable=GoldCostTable;
1
+ "use strict";require('./style.css');var BScrollModule=require("better-scroll");var common=require("../../common/index.js");var _sfc_main={name:"ActGoldCostTable",data:function data(){return{scroller:null}},props:{visible:{type:Boolean,default:false},tables:{type:Object,default:function _default(){return{}}},theme:{type:Object,default:function _default2(){return{}}}},computed:{title:function title(){return this.tables.title||"现金价值表"},styleOption:function styleOption(){if(this.theme&&this.theme.brandColor){return{backgroundColor:this.theme.brandColor}}return{}}},methods:{showCol:function showCol(index){var displayArr=this.tables.display||[];if(displayArr[index]!==void 0&&~~displayArr[index]===1){return true}return false},cancel:function cancel(){this.$emit("cancelCost")},preventMove:function preventMove(e){e._prevent=true}},watch:{visible:function visible(value){var _this=this;if(value){var tables=document.querySelector(".cost-scroll");if(tables){this.$nextTick(function(){if(!_this.scroller){_this.scroller=new BScrollModule(tables,{})}else{_this.scroller.refresh()}})}}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.visible,expression:"visible"}],staticClass:"layer-finance",on:{"touchmove":_vm.preventMove}},[_c("div",{staticClass:"layer-finance-mask",on:{"click":function click($event){$event.stopPropagation();return _vm.cancel.apply(null,arguments)}}}),_c("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[_c("span",{staticClass:"layer-close",on:{"click":function click($event){$event.stopPropagation();return _vm.cancel.apply(null,arguments)}}}),_c("p",{staticClass:"main-title"},[_vm._v(" 保单利益演示表 ")]),_c("p",{staticClass:"cost-title"},[_vm._v(" "+_vm._s(_vm.title)+" ")]),_c("p",{staticClass:"cost-table-head"},[_vm._v(" 基于用户所选信息的保单利益演示如下: ")]),_vm.tables.cols&&_vm.tables.rows&&_vm.tables.rows.length?[_c("div",[_c("div",{staticClass:"table-tr thead"},[_vm._l(_vm.tables.cols,function(thead,theadIndex){return[_vm.showCol(theadIndex)?_c("span",{key:"head-"+theadIndex,staticClass:"table-item",style:_vm.styleOption},[_vm._v(" "+_vm._s(thead)+" ")]):_vm._e()]})],2),_c("div",{staticClass:"cost-scroll"},[_c("table",{staticClass:"table-body"},[_vm.tables.rows&&_vm.tables.rows.length?_c("tbody",_vm._l(_vm.tables.rows,function(tr,trIndex){return _c("tr",{key:"tr-"+trIndex,staticClass:"table-tr"},[_vm._l(tr,function(td,tdIndex){return[_vm.showCol(tdIndex)?_c("td",{key:"td-"+trIndex+"-"+tdIndex,staticClass:"table-item"},[_vm._v(" "+_vm._s(Math.round(td*100)/100)+" ")]):_vm._e()]})],2)}),0):_vm._e()])])])]:[_c("div",{staticClass:"no-data"},[_vm._v(" 暂时无法展示 ")])]],2)])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"952b8e43");var GoldCostTable=__component__.exports;exports.GoldCostTable=GoldCostTable;
@@ -1,4 +1,4 @@
1
- import { b as bScroll } from "../../BScroll/index.mjs";
1
+ import BScrollModule__default from "better-scroll";
2
2
  import { n as normalizeComponent } from "../../common/index.mjs";
3
3
  import './style.css';var _sfc_main = {
4
4
  name: "ActGoldCostTable",
@@ -61,7 +61,7 @@ import './style.css';var _sfc_main = {
61
61
  if (tables) {
62
62
  this.$nextTick(function() {
63
63
  if (!_this.scroller) {
64
- _this.scroller = new bScroll(tables, {});
64
+ _this.scroller = new BScrollModule__default(tables, {});
65
65
  } else {
66
66
  _this.scroller.refresh();
67
67
  }
@@ -1 +1 @@
1
- "use strict";require('./style.css');var _includesInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/includes");var _sliceInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/slice");var _forEachInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/for-each");var _parseFloat=require("@babel/runtime-corejs3/core-js/parse-float");var BScroll=require("../../BScroll/index.js");var utils_helpers=require("../../utils/helpers/index.js");var common=require("../../common/index.js");var _sfc_main={name:"CostTable",props:{visible:{type:Boolean,default:false},tables:{type:Object,default:function _default(){return{}}},theme:{type:Object,default:function _default2(){return{}}},productId:{type:String||Number,default:""},groupId:{type:String||Number,default:""}},data:function data(){return{rightTitleScroller:null,newTable:{},tableScroller:null,rightTableScroller:null,id:1,buttons:[{id:1,name:"全部展示"},{id:2,name:"5周岁倍数"},{id:3,name:"10周岁倍数"}]}},computed:{title:function title(){return this.tables.title||""},mainActive:function mainActive(){var hashColor=this.theme.brandColor;if(hashColor){var rgb=utils_helpers.hexToRgb(hashColor,.1);return{backgroundColor:rgb}}return{}},imgActive:function imgActive(){if(this.theme.brandColor){return{backgroundColor:this.theme.brandColor}}return{}},textActive:function textActive(){var hashColor=this.theme.brandColor;if(hashColor){var rgb=utils_helpers.hexToRgb(hashColor,1);return{color:rgb}}return{}},isSpecialGroup:function isSpecialGroup(){var _context,_context2;return _includesInstanceProperty(_context=["173934"]).call(_context,String(this.groupId))||_includesInstanceProperty(_context2=["342750","342817","342862","343407"]).call(_context2,String(this.productId))},styleOption:function styleOption(){if(this.theme.brandColor){return{backgroundColor:this.theme.brandColor}}return{}},tableHeadDesc:function tableHeadDesc(){var _context3;if(~~this.productId===330247){return"基于您所选择的投保信息,保单利益详情如下:"}if(~~this.productId===343026){return"特殊说明:<br/> 1、本利益供参考,具体以保险合同为准 <br/>2、养老年金的展示金额为保单年度末金额"}if(_includesInstanceProperty(_context3=[343142,343049]).call(_context3,~~this.productId)){return"基于您所选择的投保信息,保单利益详情如下:<br/>演示表仅演示年金主险,不包含附加险(投保人豁免、万能)"}if(~~this.productId===343145){return"基于您所选择的投保信息,保单利益详情如下:<br/>演示表仅演示终身寿主险,不包含附加险(投保人豁免、万能)"}return"基于您所选择的投入信息,保单利益详情如下:"},tableHeadTips:function tableHeadTips(){var _context4,_context5,_context6;if(_includesInstanceProperty(_context4=[342862,342817]).call(_context4,~~this.productId)){return"特别说明:演示不包含万能险;月领金额为保单年度末金额"}if(_includesInstanceProperty(_context5=[342750]).call(_context5,~~this.productId)){return"特别说明:月领展示金额为保单年度末金额"}if(_includesInstanceProperty(_context6=[343388]).call(_context6,~~this.productId)){return"特别说明:利益演示为按年领取金额,仅演示至104周岁"}return""},leftTitleArr:function leftTitleArr(){if(this.newTable){if(this.newTable.cols&&this.newTable.cols.length){var _context7;return _sliceInstanceProperty(_context7=this.newTable.cols).call(_context7,0,2)}}return[]},rightTitleArr:function rightTitleArr(){if(this.newTable){if(this.newTable.cols&&this.newTable.cols.length){var _context8;var length=this.newTable.cols.length;return _sliceInstanceProperty(_context8=this.newTable.cols).call(_context8,2,length)}}return[]},leftDisplayArr:function leftDisplayArr(){if(this.newTable){if(this.newTable.display&&this.newTable.display.length){var _context9;return _sliceInstanceProperty(_context9=this.newTable.display).call(_context9,0,2)}}return[]},rightDisplayArr:function rightDisplayArr(){if(this.newTable){if(this.newTable.display&&this.newTable.display.length){var _context0;var length=this.newTable.display.length;return _sliceInstanceProperty(_context0=this.newTable.display).call(_context0,2,length)}}return[]},leftTable:function leftTable(){if(this.newTable){var arr=[];if(this.newTable.rows){var _context1;_forEachInstanceProperty(_context1=this.newTable.rows).call(_context1,function(el){var useArar=[];_forEachInstanceProperty(el).call(el,function(item,index){if(index<2){useArar.push(item)}});arr.push(useArar)})}return arr}return[]},rightTable:function rightTable(){if(this.newTable){var arr=[];if(this.newTable.rows){var _context10;_forEachInstanceProperty(_context10=this.newTable.rows).call(_context10,function(el){var useArar=[];_forEachInstanceProperty(el).call(el,function(item,index){if(index>1){useArar.push(item)}});arr.push(useArar)})}return arr}return[[]]}},methods:{getTdValue:function getTdValue(td){if(!this.isSpecialGroup){return _parseFloat((Math.round(td*100)/100).toString()).toFixed(2)}return _parseFloat((Math.round(td*100)/100).toString())},showResCol:function showResCol(index,side){var displayArr=side==="left"?this.leftDisplayArr:this.rightDisplayArr;if(displayArr&&displayArr.length){if(displayArr[index]!==void 0&&~~displayArr[index]===1){return true}return false}},initScroll:function initScroll(){this.rightTitleScroller&&this.rightTitleScroller.refresh();this.tableScroller&&this.tableScroller.refresh();this.rightTableScroller&&this.rightTableScroller.refresh();this.tableScroller.scrollTo(0,0,0)},showTable:function showTable(id){this.id=id;if(id===1){this.showAllTable()}else if(id===2){this.showFiveTimes()}else{this.showTenTimes()}},showAllTable:function showAllTable(){this.newTable=utils_helpers.deepCopy(this.tables);this.initScroll()},showFiveTimes:function showFiveTimes(){var rows=this.tables.rows;var arr=[];_forEachInstanceProperty(rows).call(rows,function(el){_forEachInstanceProperty(el).call(el,function(item,index){if(index===1&&item%5===0){arr.push(el)}})});this.newTable.rows=arr;this.initScroll()},showTenTimes:function showTenTimes(){var rows=this.tables.rows;var arr=[];_forEachInstanceProperty(rows).call(rows,function(el){_forEachInstanceProperty(el).call(el,function(item,index){if(index===1&&item%10===0){arr.push(el)}})});this.newTable.rows=arr;this.initScroll()},cancel:function cancel(){this.$emit("cancelCost")},preventMove:function preventMove(e){e._prevent=true}},watch:{visible:function visible(newVal,oldVal){var _this=this;if(newVal){var rightTitle=this.$refs.rightTitle;var tableWrapper=this.$refs.tableWrapper;var rightTable2=this.$refs.rightTable;if(rightTitle){this.$nextTick(function(){if(!_this.rightTitleScroller){_this.rightTitleScroller=new BScroll.bScroll(rightTitle,{scrollX:true,bounce:false,probeType:3,momentum:false});_this.rightTitleScroller.on("scroll",function(_ref){var x=_ref.x,y=_ref.y;utils_helpers.throttle(_this.rightTableScroller.scrollTo(x,y,0))})}else{_this.rightTitleScroller.refresh()}})}if(tableWrapper){this.$nextTick(function(){if(!_this.tableScroller){_this.tableScroller=new BScroll.bScroll(tableWrapper,{scrollY:true,scrollX:false})}else{_this.tableScroller.refresh()}})}if(rightTable2){this.$nextTick(function(){if(!_this.rightTableScroller){_this.rightTableScroller=new BScroll.bScroll(rightTable2,{scrollY:true,scrollX:true,bounce:false,probeType:2,momentum:false});_this.rightTableScroller.on("scroll",function(_ref2){var x=_ref2.x,y=_ref2.y;_this.rightTitleScroller.scrollTo(x,y,0)})}else{_this.rightTableScroller.refresh()}})}}},tables:function tables(newVal,oldVal){if(newVal){this.newTable=utils_helpers.deepCopy(newVal)}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.visible,expression:"visible"}],staticClass:"layer insured_layer",on:{"touchmove":_vm.preventMove,"click":function click($event){$event.stopPropagation();return _vm.cancel.apply(null,arguments)}}},[_c("div",{staticClass:"layer_box insured_box layer_animate iphonex_padding cost"},[_vm._m(0),_c("div",{staticClass:"description"},[_vm.title?[_c("p",{staticClass:"cost-title"},[_vm._v(" "+_vm._s(_vm.title)+" ")])]:[_c("p",{staticClass:"cost-table-head",domProps:{"innerHTML":_vm._s(_vm.tableHeadDesc)}}),_vm.tableHeadTips?_c("p",{staticClass:"cost-table-tips"},[_vm._v(" "+_vm._s(_vm.tableHeadTips)+" ")]):_vm._e()]],2),_vm.tables.cols&&_vm.tables.rows&&_vm.tables.rows.length?[_c("div",{staticClass:"wrapper"},[_c("div",{staticClass:"title-wrapper"},[_c("div",{staticClass:"left-title"},[_vm._l(_vm.leftTitleArr,function(thead,theadIndex){return[_vm.showResCol(theadIndex,"left")?_c("span",{key:"head-"+theadIndex,staticClass:"table-item",style:_vm.styleOption},[_vm._v(" "+_vm._s(thead)+" ")]):_vm._e()]})],2),_c("div",{ref:"rightTitle",staticClass:"right-title"},[_c("div",{ref:"rightTitleWrapper",staticClass:"right-title-wrapper"},[_vm._l(_vm.rightTitleArr,function(thead,theadIndex){return[_vm.showResCol(theadIndex,"right")?_c("span",{key:"head-"+theadIndex,staticClass:"table-item",style:_vm.styleOption},[_vm._v(" "+_vm._s(thead)+" ")]):_vm._e()]})],2)])]),_c("div",{ref:"tableWrapper",staticClass:"table-wrapper"},[_c("div",{staticClass:"table"},[_c("div",{staticClass:"left-table"},[_c("table",{staticClass:"table-body",attrs:{"border":"0"}},[_vm.leftTable&&_vm.leftTable.length?_c("tbody",_vm._l(_vm.leftTable,function(tr,trIndex){return _c("tr",{key:"tr-"+trIndex,staticClass:"table-tr"},[_vm._l(tr,function(td,tdIndex){return[_vm.showResCol(tdIndex,"left")?_c("td",{key:"td-"+trIndex+"-"+tdIndex,staticClass:"table-item"},[_vm._v(" "+_vm._s(td)+" ")]):_vm._e()]})],2)}),0):_vm._e()])]),_c("div",{ref:"rightTable",staticClass:"right-table"},[_c("table",{staticClass:"table-body",attrs:{"border":"0"}},[_vm.rightTable&&_vm.rightTable.length?_c("tbody",_vm._l(_vm.rightTable,function(tr,trIndex){return _c("tr",{key:"tr-"+trIndex,staticClass:"table-tr"},[_vm._l(tr,function(td,tdIndex){return[_vm.showResCol(tdIndex,"right")?_c("td",{key:"td-"+trIndex+"-"+tdIndex,staticClass:"table-item"},[_vm._v(" "+_vm._s(_vm.getTdValue(td))+" ")]):_vm._e()]})],2)}),0):_vm._e()])])])])])]:[_c("div",{staticClass:"no-data"},[_vm._v(" 暂时无法展示 ")])],_vm.tables.cols&&_vm.tables.rows&&_vm.tables.rows.length?_c("div",{staticClass:"costButton"},_vm._l(_vm.buttons,function(item){return _c("div",{key:item.id,staticClass:"button",style:_vm.id===item.id?_vm.mainActive:{},on:{"click":function click($event){$event.stopPropagation();return _vm.showTable(item.id)}}},[_c("span",{staticClass:"check-img",style:_vm.id===item.id?_vm.imgActive:{}}),_c("span",{staticClass:"button-text",style:_vm.id===item.id?_vm.textActive:{}},[_vm._v(" "+_vm._s(item.name)+" ")])])}),0):_vm._e()],2)])};var _sfc_staticRenderFns=[function(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"head-title"},[_c("span",{staticClass:"layer-close"}),_c("p",{staticClass:"main-title"},[_vm._v(" 保单利益演示表 ")])])}];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"f438bfc8");var GoldCostTable=__component__.exports;exports.GoldCostTable=GoldCostTable;
1
+ "use strict";require('./style.css');var _includesInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/includes");var _sliceInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/slice");var _forEachInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/for-each");var _parseFloat=require("@babel/runtime-corejs3/core-js/parse-float");var BScrollModule=require("better-scroll");var utils_helpers=require("../../utils/helpers/index.js");var common=require("../../common/index.js");var _sfc_main={name:"CostTable",props:{visible:{type:Boolean,default:false},tables:{type:Object,default:function _default(){return{}}},theme:{type:Object,default:function _default2(){return{}}},productId:{type:String||Number,default:""},groupId:{type:String||Number,default:""}},data:function data(){return{rightTitleScroller:null,newTable:{},tableScroller:null,rightTableScroller:null,id:1,buttons:[{id:1,name:"全部展示"},{id:2,name:"5周岁倍数"},{id:3,name:"10周岁倍数"}]}},computed:{title:function title(){return this.tables.title||""},mainActive:function mainActive(){var hashColor=this.theme.brandColor;if(hashColor){var rgb=utils_helpers.hexToRgb(hashColor,.1);return{backgroundColor:rgb}}return{}},imgActive:function imgActive(){if(this.theme.brandColor){return{backgroundColor:this.theme.brandColor}}return{}},textActive:function textActive(){var hashColor=this.theme.brandColor;if(hashColor){var rgb=utils_helpers.hexToRgb(hashColor,1);return{color:rgb}}return{}},isSpecialGroup:function isSpecialGroup(){var _context,_context2;return _includesInstanceProperty(_context=["173934"]).call(_context,String(this.groupId))||_includesInstanceProperty(_context2=["342750","342817","342862","343407"]).call(_context2,String(this.productId))},styleOption:function styleOption(){if(this.theme.brandColor){return{backgroundColor:this.theme.brandColor}}return{}},tableHeadDesc:function tableHeadDesc(){var _context3;if(~~this.productId===330247){return"基于您所选择的投保信息,保单利益详情如下:"}if(~~this.productId===343026){return"特殊说明:<br/> 1、本利益供参考,具体以保险合同为准 <br/>2、养老年金的展示金额为保单年度末金额"}if(_includesInstanceProperty(_context3=[343142,343049]).call(_context3,~~this.productId)){return"基于您所选择的投保信息,保单利益详情如下:<br/>演示表仅演示年金主险,不包含附加险(投保人豁免、万能)"}if(~~this.productId===343145){return"基于您所选择的投保信息,保单利益详情如下:<br/>演示表仅演示终身寿主险,不包含附加险(投保人豁免、万能)"}return"基于您所选择的投入信息,保单利益详情如下:"},tableHeadTips:function tableHeadTips(){var _context4,_context5,_context6;if(_includesInstanceProperty(_context4=[342862,342817]).call(_context4,~~this.productId)){return"特别说明:演示不包含万能险;月领金额为保单年度末金额"}if(_includesInstanceProperty(_context5=[342750]).call(_context5,~~this.productId)){return"特别说明:月领展示金额为保单年度末金额"}if(_includesInstanceProperty(_context6=[343388]).call(_context6,~~this.productId)){return"特别说明:利益演示为按年领取金额,仅演示至104周岁"}return""},leftTitleArr:function leftTitleArr(){if(this.newTable){if(this.newTable.cols&&this.newTable.cols.length){var _context7;return _sliceInstanceProperty(_context7=this.newTable.cols).call(_context7,0,2)}}return[]},rightTitleArr:function rightTitleArr(){if(this.newTable){if(this.newTable.cols&&this.newTable.cols.length){var _context8;var length=this.newTable.cols.length;return _sliceInstanceProperty(_context8=this.newTable.cols).call(_context8,2,length)}}return[]},leftDisplayArr:function leftDisplayArr(){if(this.newTable){if(this.newTable.display&&this.newTable.display.length){var _context9;return _sliceInstanceProperty(_context9=this.newTable.display).call(_context9,0,2)}}return[]},rightDisplayArr:function rightDisplayArr(){if(this.newTable){if(this.newTable.display&&this.newTable.display.length){var _context0;var length=this.newTable.display.length;return _sliceInstanceProperty(_context0=this.newTable.display).call(_context0,2,length)}}return[]},leftTable:function leftTable(){if(this.newTable){var arr=[];if(this.newTable.rows){var _context1;_forEachInstanceProperty(_context1=this.newTable.rows).call(_context1,function(el){var useArar=[];_forEachInstanceProperty(el).call(el,function(item,index){if(index<2){useArar.push(item)}});arr.push(useArar)})}return arr}return[]},rightTable:function rightTable(){if(this.newTable){var arr=[];if(this.newTable.rows){var _context10;_forEachInstanceProperty(_context10=this.newTable.rows).call(_context10,function(el){var useArar=[];_forEachInstanceProperty(el).call(el,function(item,index){if(index>1){useArar.push(item)}});arr.push(useArar)})}return arr}return[[]]}},methods:{getTdValue:function getTdValue(td){if(!this.isSpecialGroup){return _parseFloat((Math.round(td*100)/100).toString()).toFixed(2)}return _parseFloat((Math.round(td*100)/100).toString())},showResCol:function showResCol(index,side){var displayArr=side==="left"?this.leftDisplayArr:this.rightDisplayArr;if(displayArr&&displayArr.length){if(displayArr[index]!==void 0&&~~displayArr[index]===1){return true}return false}},initScroll:function initScroll(){this.rightTitleScroller&&this.rightTitleScroller.refresh();this.tableScroller&&this.tableScroller.refresh();this.rightTableScroller&&this.rightTableScroller.refresh();this.tableScroller.scrollTo(0,0,0)},showTable:function showTable(id){this.id=id;if(id===1){this.showAllTable()}else if(id===2){this.showFiveTimes()}else{this.showTenTimes()}},showAllTable:function showAllTable(){this.newTable=utils_helpers.deepCopy(this.tables);this.initScroll()},showFiveTimes:function showFiveTimes(){var rows=this.tables.rows;var arr=[];_forEachInstanceProperty(rows).call(rows,function(el){_forEachInstanceProperty(el).call(el,function(item,index){if(index===1&&item%5===0){arr.push(el)}})});this.newTable.rows=arr;this.initScroll()},showTenTimes:function showTenTimes(){var rows=this.tables.rows;var arr=[];_forEachInstanceProperty(rows).call(rows,function(el){_forEachInstanceProperty(el).call(el,function(item,index){if(index===1&&item%10===0){arr.push(el)}})});this.newTable.rows=arr;this.initScroll()},cancel:function cancel(){this.$emit("cancelCost")},preventMove:function preventMove(e){e._prevent=true}},watch:{visible:function visible(newVal,oldVal){var _this=this;if(newVal){var rightTitle=this.$refs.rightTitle;var tableWrapper=this.$refs.tableWrapper;var rightTable2=this.$refs.rightTable;if(rightTitle){this.$nextTick(function(){if(!_this.rightTitleScroller){_this.rightTitleScroller=new BScrollModule(rightTitle,{scrollX:true,bounce:false,probeType:3,momentum:false});_this.rightTitleScroller.on("scroll",function(_ref){var x=_ref.x,y=_ref.y;utils_helpers.throttle(_this.rightTableScroller.scrollTo(x,y,0))})}else{_this.rightTitleScroller.refresh()}})}if(tableWrapper){this.$nextTick(function(){if(!_this.tableScroller){_this.tableScroller=new BScrollModule(tableWrapper,{scrollY:true,scrollX:false})}else{_this.tableScroller.refresh()}})}if(rightTable2){this.$nextTick(function(){if(!_this.rightTableScroller){_this.rightTableScroller=new BScrollModule(rightTable2,{scrollY:true,scrollX:true,bounce:false,probeType:2,momentum:false});_this.rightTableScroller.on("scroll",function(_ref2){var x=_ref2.x,y=_ref2.y;_this.rightTitleScroller.scrollTo(x,y,0)})}else{_this.rightTableScroller.refresh()}})}}},tables:function tables(newVal,oldVal){if(newVal){this.newTable=utils_helpers.deepCopy(newVal)}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.visible,expression:"visible"}],staticClass:"layer insured_layer",on:{"touchmove":_vm.preventMove,"click":function click($event){$event.stopPropagation();return _vm.cancel.apply(null,arguments)}}},[_c("div",{staticClass:"layer_box insured_box layer_animate iphonex_padding cost"},[_vm._m(0),_c("div",{staticClass:"description"},[_vm.title?[_c("p",{staticClass:"cost-title"},[_vm._v(" "+_vm._s(_vm.title)+" ")])]:[_c("p",{staticClass:"cost-table-head",domProps:{"innerHTML":_vm._s(_vm.tableHeadDesc)}}),_vm.tableHeadTips?_c("p",{staticClass:"cost-table-tips"},[_vm._v(" "+_vm._s(_vm.tableHeadTips)+" ")]):_vm._e()]],2),_vm.tables.cols&&_vm.tables.rows&&_vm.tables.rows.length?[_c("div",{staticClass:"wrapper"},[_c("div",{staticClass:"title-wrapper"},[_c("div",{staticClass:"left-title"},[_vm._l(_vm.leftTitleArr,function(thead,theadIndex){return[_vm.showResCol(theadIndex,"left")?_c("span",{key:"head-"+theadIndex,staticClass:"table-item",style:_vm.styleOption},[_vm._v(" "+_vm._s(thead)+" ")]):_vm._e()]})],2),_c("div",{ref:"rightTitle",staticClass:"right-title"},[_c("div",{ref:"rightTitleWrapper",staticClass:"right-title-wrapper"},[_vm._l(_vm.rightTitleArr,function(thead,theadIndex){return[_vm.showResCol(theadIndex,"right")?_c("span",{key:"head-"+theadIndex,staticClass:"table-item",style:_vm.styleOption},[_vm._v(" "+_vm._s(thead)+" ")]):_vm._e()]})],2)])]),_c("div",{ref:"tableWrapper",staticClass:"table-wrapper"},[_c("div",{staticClass:"table"},[_c("div",{staticClass:"left-table"},[_c("table",{staticClass:"table-body",attrs:{"border":"0"}},[_vm.leftTable&&_vm.leftTable.length?_c("tbody",_vm._l(_vm.leftTable,function(tr,trIndex){return _c("tr",{key:"tr-"+trIndex,staticClass:"table-tr"},[_vm._l(tr,function(td,tdIndex){return[_vm.showResCol(tdIndex,"left")?_c("td",{key:"td-"+trIndex+"-"+tdIndex,staticClass:"table-item"},[_vm._v(" "+_vm._s(td)+" ")]):_vm._e()]})],2)}),0):_vm._e()])]),_c("div",{ref:"rightTable",staticClass:"right-table"},[_c("table",{staticClass:"table-body",attrs:{"border":"0"}},[_vm.rightTable&&_vm.rightTable.length?_c("tbody",_vm._l(_vm.rightTable,function(tr,trIndex){return _c("tr",{key:"tr-"+trIndex,staticClass:"table-tr"},[_vm._l(tr,function(td,tdIndex){return[_vm.showResCol(tdIndex,"right")?_c("td",{key:"td-"+trIndex+"-"+tdIndex,staticClass:"table-item"},[_vm._v(" "+_vm._s(_vm.getTdValue(td))+" ")]):_vm._e()]})],2)}),0):_vm._e()])])])])])]:[_c("div",{staticClass:"no-data"},[_vm._v(" 暂时无法展示 ")])],_vm.tables.cols&&_vm.tables.rows&&_vm.tables.rows.length?_c("div",{staticClass:"costButton"},_vm._l(_vm.buttons,function(item){return _c("div",{key:item.id,staticClass:"button",style:_vm.id===item.id?_vm.mainActive:{},on:{"click":function click($event){$event.stopPropagation();return _vm.showTable(item.id)}}},[_c("span",{staticClass:"check-img",style:_vm.id===item.id?_vm.imgActive:{}}),_c("span",{staticClass:"button-text",style:_vm.id===item.id?_vm.textActive:{}},[_vm._v(" "+_vm._s(item.name)+" ")])])}),0):_vm._e()],2)])};var _sfc_staticRenderFns=[function(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"head-title"},[_c("span",{staticClass:"layer-close"}),_c("p",{staticClass:"main-title"},[_vm._v(" 保单利益演示表 ")])])}];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"f438bfc8");var GoldCostTable=__component__.exports;exports.GoldCostTable=GoldCostTable;
@@ -2,7 +2,7 @@ import _includesInstanceProperty from "@babel/runtime-corejs3/core-js/instance/i
2
2
  import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js/instance/slice";
3
3
  import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js/instance/for-each";
4
4
  import _parseFloat from "@babel/runtime-corejs3/core-js/parse-float";
5
- import { b as bScroll } from "../../BScroll/index.mjs";
5
+ import BScrollModule__default from "better-scroll";
6
6
  import { m as deepCopy, t as throttle, h as hexToRgb } from "../../utils/helpers/index.mjs";
7
7
  import { n as normalizeComponent } from "../../common/index.mjs";
8
8
  import './style.css';var _sfc_main = {
@@ -281,7 +281,7 @@ import './style.css';var _sfc_main = {
281
281
  if (rightTitle) {
282
282
  this.$nextTick(function() {
283
283
  if (!_this.rightTitleScroller) {
284
- _this.rightTitleScroller = new bScroll(rightTitle, {
284
+ _this.rightTitleScroller = new BScrollModule__default(rightTitle, {
285
285
  scrollX: true,
286
286
  bounce: false,
287
287
  probeType: 3,
@@ -299,7 +299,7 @@ import './style.css';var _sfc_main = {
299
299
  if (tableWrapper) {
300
300
  this.$nextTick(function() {
301
301
  if (!_this.tableScroller) {
302
- _this.tableScroller = new bScroll(tableWrapper, {
302
+ _this.tableScroller = new BScrollModule__default(tableWrapper, {
303
303
  scrollY: true,
304
304
  scrollX: false
305
305
  });
@@ -311,7 +311,7 @@ import './style.css';var _sfc_main = {
311
311
  if (rightTable2) {
312
312
  this.$nextTick(function() {
313
313
  if (!_this.rightTableScroller) {
314
- _this.rightTableScroller = new bScroll(rightTable2, {
314
+ _this.rightTableScroller = new BScrollModule__default(rightTable2, {
315
315
  scrollY: true,
316
316
  scrollX: true,
317
317
  bounce: false,
@@ -1 +1 @@
1
- "use strict";require('./style.css');var BScroll=require("../../../BScroll/index.js");var common=require("../../../common/index.js");var _sfc_main={name:"ActGoldBenefitSlider",data:function data(){return{windowX:0,listScroll:null,forbidScrollEnd:false}},props:{element:{type:Object,default:function _default(){return{}}}},computed:{unit:function unit(){return~~this.element.range[0].unit||""},step:function step(){return~~(this.element.attr&&this.element.attr.step)||5},min:function min(){return~~this.element.range[0].min||~~(this.element.attr&&this.element.attr.min)||0},max:function max(){return~~this.element.range[0].max||~~(this.element.attr&&this.element.attr.max)||100},chooseAge:function chooseAge(){var realValue=~~this.element.value||80;if(realValue<this.min){return this.min}else if(realValue>this.max){return this.max}return realValue},during:function during(){return this.max-this.min+1},width:function width(){return 12*(this.max-this.min)+1}},methods:{initScroll:function initScroll(){var _this=this;var wrapper=document.querySelector(".wrapper");var startX=(this.min-this.chooseAge)*12;this.$refs.wrappercontent.style.width=~~this.windowX+this.width+"px";this.$nextTick(function(){var that=_this;if(!_this.listScroll){_this.listScroll=new BScroll.bScroll(wrapper,{probeType:3,startX,scrollX:true,scrollY:false});that.listScroll.on("scrollEnd",function(pos){if(that.forbidScrollEnd){that.forbidScrollEnd=false;return}var chooseAge2;if(pos.x>=0){chooseAge2=that.min}else if(Math.abs(pos.x)>=that.width){chooseAge2=that.max}else{chooseAge2=Math.floor(Math.abs(pos.x)/12+1+that.min);var scrollX=-(Math.floor(Math.abs(pos.x)/12+1)*12);that.forbidScrollEnd=true;that.listScroll.scrollTo(scrollX,0,0)}that.$emit("updateAge",chooseAge2)})}else{if(startX>=0){_this.$emit("updateAge",_this.min);startX=0}_this.listScroll.refresh();_this.forbidScrollEnd=true;_this.listScroll.scrollTo(startX,0,0)}})}},mounted:function mounted(){var containerWidth=this.$refs.chooseContainer&&this.$refs.chooseContainer.offsetWidth;this.windowX=containerWidth||window.innerWidth||document.body&&document.body.clientWidth;this.windowX=this.windowX>750?750:this.windowX;this.initScroll()},watch:{min:function min2(){this.initScroll()}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",[_c("div",{ref:"chooseContainer",staticClass:"choose"},[_c("div",{staticClass:"choose-container wrapper"},[_c("div",{ref:"wrappercontent",staticClass:"choose-content"},_vm._l(_vm.during,function(number){return _c("div",{key:number,staticClass:"choose-item"},[_c("span",{staticClass:"number-item",class:{"number-part":(number+_vm.min-1)%_vm.step==0}}),(number+_vm.min-1)%_vm.step==0?_c("span",{staticClass:"number-text"},[_vm._v(_vm._s(number+_vm.min-1)+_vm._s(_vm.unit))]):_vm._e()])}),0)]),_c("div",{staticClass:"choose-value skin-bg"})])])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"183f8ac6");var benefitSlider=__component__.exports;exports.benefitSlider=benefitSlider;
1
+ "use strict";require('./style.css');var BScrollModule=require("better-scroll");var common=require("../../../common/index.js");var _sfc_main={name:"ActGoldBenefitSlider",data:function data(){return{windowX:0,listScroll:null,forbidScrollEnd:false}},props:{element:{type:Object,default:function _default(){return{}}}},computed:{unit:function unit(){return~~this.element.range[0].unit||""},step:function step(){return~~(this.element.attr&&this.element.attr.step)||5},min:function min(){return~~this.element.range[0].min||~~(this.element.attr&&this.element.attr.min)||0},max:function max(){return~~this.element.range[0].max||~~(this.element.attr&&this.element.attr.max)||100},chooseAge:function chooseAge(){var realValue=~~this.element.value||80;if(realValue<this.min){return this.min}else if(realValue>this.max){return this.max}return realValue},during:function during(){return this.max-this.min+1},width:function width(){return 12*(this.max-this.min)+1}},methods:{initScroll:function initScroll(){var _this=this;var wrapper=document.querySelector(".wrapper");var startX=(this.min-this.chooseAge)*12;this.$refs.wrappercontent.style.width=~~this.windowX+this.width+"px";this.$nextTick(function(){var that=_this;if(!_this.listScroll){_this.listScroll=new BScrollModule(wrapper,{probeType:3,startX,scrollX:true,scrollY:false});that.listScroll.on("scrollEnd",function(pos){if(that.forbidScrollEnd){that.forbidScrollEnd=false;return}var chooseAge2;if(pos.x>=0){chooseAge2=that.min}else if(Math.abs(pos.x)>=that.width){chooseAge2=that.max}else{chooseAge2=Math.floor(Math.abs(pos.x)/12+1+that.min);var scrollX=-(Math.floor(Math.abs(pos.x)/12+1)*12);that.forbidScrollEnd=true;that.listScroll.scrollTo(scrollX,0,0)}that.$emit("updateAge",chooseAge2)})}else{if(startX>=0){_this.$emit("updateAge",_this.min);startX=0}_this.listScroll.refresh();_this.forbidScrollEnd=true;_this.listScroll.scrollTo(startX,0,0)}})}},mounted:function mounted(){var containerWidth=this.$refs.chooseContainer&&this.$refs.chooseContainer.offsetWidth;this.windowX=containerWidth||window.innerWidth||document.body&&document.body.clientWidth;this.windowX=this.windowX>750?750:this.windowX;this.initScroll()},watch:{min:function min2(){this.initScroll()}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",[_c("div",{ref:"chooseContainer",staticClass:"choose"},[_c("div",{staticClass:"choose-container wrapper"},[_c("div",{ref:"wrappercontent",staticClass:"choose-content"},_vm._l(_vm.during,function(number){return _c("div",{key:number,staticClass:"choose-item"},[_c("span",{staticClass:"number-item",class:{"number-part":(number+_vm.min-1)%_vm.step==0}}),(number+_vm.min-1)%_vm.step==0?_c("span",{staticClass:"number-text"},[_vm._v(_vm._s(number+_vm.min-1)+_vm._s(_vm.unit))]):_vm._e()])}),0)]),_c("div",{staticClass:"choose-value skin-bg"})])])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"183f8ac6");var benefitSlider=__component__.exports;exports.benefitSlider=benefitSlider;
@@ -1,4 +1,4 @@
1
- import { b as bScroll } from "../../../BScroll/index.mjs";
1
+ import BScrollModule__default from "better-scroll";
2
2
  import { n as normalizeComponent } from "../../../common/index.mjs";
3
3
  import './style.css';var _sfc_main = {
4
4
  name: "ActGoldBenefitSlider",
@@ -55,7 +55,7 @@ import './style.css';var _sfc_main = {
55
55
  this.$nextTick(function() {
56
56
  var that = _this;
57
57
  if (!_this.listScroll) {
58
- _this.listScroll = new bScroll(wrapper, {
58
+ _this.listScroll = new BScrollModule__default(wrapper, {
59
59
  probeType: 3,
60
60
  startX,
61
61
  scrollX: true,
@@ -1 +1 @@
1
- "use strict";require('./style.css');var BScroll=require("../../BScroll/index.js");var common=require("../../common/index.js");var _sfc_main={name:"ActGoldCostTable",data:function data(){return{scroller:null}},props:{visible:{type:Boolean,default:false},tables:{type:Object,default:function _default(){return{}}},theme:{type:Object,default:function _default2(){return{}}}},computed:{title:function title(){return this.tables.title||"现金价值表"},styleOption:function styleOption(){if(this.theme&&this.theme.brandColor){return{backgroundColor:this.theme.brandColor}}return{}}},methods:{showCol:function showCol(index){var displayArr=this.tables.display||[];if(displayArr[index]!==void 0&&~~displayArr[index]===1){return true}return false},cancel:function cancel(){this.$emit("cancelCost")},preventMove:function preventMove(e){e._prevent=true}},watch:{visible:function visible(value){var _this=this;if(value){var tables=document.querySelector(".cost-scroll");if(tables){this.$nextTick(function(){if(!_this.scroller){_this.scroller=new BScroll.bScroll(tables,{})}else{_this.scroller.refresh()}})}}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.visible,expression:"visible"}],staticClass:"layer-finance",on:{"touchmove":_vm.preventMove}},[_c("div",{staticClass:"layer-finance-mask",on:{"click":function click($event){$event.stopPropagation();return _vm.cancel.apply(null,arguments)}}}),_c("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[_c("span",{staticClass:"layer-close",on:{"click":function click($event){$event.stopPropagation();return _vm.cancel.apply(null,arguments)}}}),_c("p",{staticClass:"main-title"},[_vm._v(" 保单利益演示表 ")]),_c("p",{staticClass:"cost-title"},[_vm._v(" "+_vm._s(_vm.title)+" ")]),_c("p",{staticClass:"cost-table-head"},[_vm._v(" 基于用户所选信息的保单利益演示如下: ")]),_vm.tables.cols&&_vm.tables.rows&&_vm.tables.rows.length?[_c("div",[_c("div",{staticClass:"table-tr thead"},[_vm._l(_vm.tables.cols,function(thead,theadIndex){return[_vm.showCol(theadIndex)?_c("span",{key:"head-"+theadIndex,staticClass:"table-item",style:_vm.styleOption},[_vm._v(" "+_vm._s(thead)+" ")]):_vm._e()]})],2),_c("div",{staticClass:"cost-scroll"},[_c("table",{staticClass:"table-body"},[_vm.tables.rows&&_vm.tables.rows.length?_c("tbody",_vm._l(_vm.tables.rows,function(tr,trIndex){return _c("tr",{key:"tr-"+trIndex,staticClass:"table-tr"},[_vm._l(tr,function(td,tdIndex){return[_vm.showCol(tdIndex)?_c("td",{key:"td-"+trIndex+"-"+tdIndex,staticClass:"table-item"},[_vm._v(" "+_vm._s(Math.round(td*100)/100)+" ")]):_vm._e()]})],2)}),0):_vm._e()])])])]:[_c("div",{staticClass:"no-data"},[_vm._v(" 暂时无法展示 ")])]],2)])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"29d28c6e");var GoldCostTable=__component__.exports;exports.GoldCostTable=GoldCostTable;
1
+ "use strict";require('./style.css');var BScrollModule=require("better-scroll");var common=require("../../common/index.js");var _sfc_main={name:"ActGoldCostTable",data:function data(){return{scroller:null}},props:{visible:{type:Boolean,default:false},tables:{type:Object,default:function _default(){return{}}},theme:{type:Object,default:function _default2(){return{}}}},computed:{title:function title(){return this.tables.title||"现金价值表"},styleOption:function styleOption(){if(this.theme&&this.theme.brandColor){return{backgroundColor:this.theme.brandColor}}return{}}},methods:{showCol:function showCol(index){var displayArr=this.tables.display||[];if(displayArr[index]!==void 0&&~~displayArr[index]===1){return true}return false},cancel:function cancel(){this.$emit("cancelCost")},preventMove:function preventMove(e){e._prevent=true}},watch:{visible:function visible(value){var _this=this;if(value){var tables=document.querySelector(".cost-scroll");if(tables){this.$nextTick(function(){if(!_this.scroller){_this.scroller=new BScrollModule(tables,{})}else{_this.scroller.refresh()}})}}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.visible,expression:"visible"}],staticClass:"layer-finance",on:{"touchmove":_vm.preventMove}},[_c("div",{staticClass:"layer-finance-mask",on:{"click":function click($event){$event.stopPropagation();return _vm.cancel.apply(null,arguments)}}}),_c("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[_c("span",{staticClass:"layer-close",on:{"click":function click($event){$event.stopPropagation();return _vm.cancel.apply(null,arguments)}}}),_c("p",{staticClass:"main-title"},[_vm._v(" 保单利益演示表 ")]),_c("p",{staticClass:"cost-title"},[_vm._v(" "+_vm._s(_vm.title)+" ")]),_c("p",{staticClass:"cost-table-head"},[_vm._v(" 基于用户所选信息的保单利益演示如下: ")]),_vm.tables.cols&&_vm.tables.rows&&_vm.tables.rows.length?[_c("div",[_c("div",{staticClass:"table-tr thead"},[_vm._l(_vm.tables.cols,function(thead,theadIndex){return[_vm.showCol(theadIndex)?_c("span",{key:"head-"+theadIndex,staticClass:"table-item",style:_vm.styleOption},[_vm._v(" "+_vm._s(thead)+" ")]):_vm._e()]})],2),_c("div",{staticClass:"cost-scroll"},[_c("table",{staticClass:"table-body"},[_vm.tables.rows&&_vm.tables.rows.length?_c("tbody",_vm._l(_vm.tables.rows,function(tr,trIndex){return _c("tr",{key:"tr-"+trIndex,staticClass:"table-tr"},[_vm._l(tr,function(td,tdIndex){return[_vm.showCol(tdIndex)?_c("td",{key:"td-"+trIndex+"-"+tdIndex,staticClass:"table-item"},[_vm._v(" "+_vm._s(Math.round(td*100)/100)+" ")]):_vm._e()]})],2)}),0):_vm._e()])])])]:[_c("div",{staticClass:"no-data"},[_vm._v(" 暂时无法展示 ")])]],2)])};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"29d28c6e");var GoldCostTable=__component__.exports;exports.GoldCostTable=GoldCostTable;
@@ -1,4 +1,4 @@
1
- import { b as bScroll } from "../../BScroll/index.mjs";
1
+ import BScrollModule__default from "better-scroll";
2
2
  import { n as normalizeComponent } from "../../common/index.mjs";
3
3
  import './style.css';var _sfc_main = {
4
4
  name: "ActGoldCostTable",
@@ -61,7 +61,7 @@ import './style.css';var _sfc_main = {
61
61
  if (tables) {
62
62
  this.$nextTick(function() {
63
63
  if (!_this.scroller) {
64
- _this.scroller = new bScroll(tables, {});
64
+ _this.scroller = new BScrollModule__default(tables, {});
65
65
  } else {
66
66
  _this.scroller.refresh();
67
67
  }
@@ -1 +1 @@
1
- "use strict";require('./style.css');var _toConsumableArray=require("@babel/runtime-corejs3/helpers/toConsumableArray");var _includesInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/includes");var _indexOfInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/index-of");var _spliceInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/splice");var _concatInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/concat");var common_popup=require("../../common/popup/index.js");var BScroll=require("../../BScroll/index.js");var utils_helpers=require("../../utils/helpers/index.js");var common=require("../../common/index.js");var _sfc_main={data:function data(){return{selectValue:[],isVisible:false,preOverflowValue:null}},components:{ActPopup:common_popup.ActPopup},props:{options:{type:Array,default:function _default(){return[]}},title:{type:String,default:""},value:{type:[Array,String],default:function _default2(){return[]}},brandColor:{type:String,default:"#8c7fee"}},methods:{isDisabled:function isDisabled(option){return Number(option.state)!==1},maskClick:function maskClick(){this.isVisible=false},cancel:function cancel(){this.isVisible=false},confirm:function confirm(){this.$emit("confirm",this.selectValue);this.isVisible=false},show:function show(){var _this=this;this.isVisible=true;this.$nextTick(function(){if(!_this.scroll){_this.scroll=new BScroll.bScroll(_this.$refs.content,{click:true})}else{_this.scroll.refresh()}})},handleItem:function handleItem(item){var _context;if(~~item.state===0){return}if(_includesInstanceProperty(_context=this.selectValue).call(_context,item.value)){var _context2,_context3;var index=_indexOfInstanceProperty(_context2=this.selectValue).call(_context2,item.value);_spliceInstanceProperty(_context3=this.selectValue).call(_context3,index,1)}else{this.selectValue.push(item.value)}},color:function color(value){var _context4,_context5;var color2=_includesInstanceProperty(_context4=this.selectValue).call(_context4,value)?this.brandColor:"";return{backgroundColor:_includesInstanceProperty(_context5=this.selectValue).call(_context5,value)?this.backgroundColor:"",borderColor:color2}}},watch:{isVisible:function isVisible(newVal){if(newVal){this.selectValue=this.value?_toConsumableArray(this.value):[];this.preOverflowValue=document&&document.body&&document.body.style&&document.body.style.overflow;document.documentElement.style.overflow="hidden"}else{document.body.style.overflow=this.preOverflowValue||""}}},computed:{backgroundColor:function backgroundColor(){return utils_helpers.hexToRgb(this.brandColor||"#8c7fee",.08)}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("transition",{attrs:{"name":"act-picker-fade"}},[_c("act-popup",{directives:[{name:"show",rawName:"v-show",value:_vm.isVisible,expression:"isVisible"}],attrs:{"type":"picker","mask":true,"center":false,"topBorderRadius":true,"zIndex":"999"},on:{"touchmove":function touchmove($event){$event.preventDefault()},"mask-click":_vm.maskClick}},[_c("transition",{attrs:{"name":"act-picker-move"}},[_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.isVisible,expression:"isVisible"}],staticClass:"act-picker-panel",on:{"click":function click($event){$event.stopPropagation()}}},[_c("div",{staticClass:"act-picker-choose"},[_c("span",{staticClass:"act-picker-cancel",style:{color:"#999999"},on:{"click":_vm.cancel}},[_vm._v(" 取消 ")]),_c("span",{staticClass:"act-picker-confirm",style:{color:_vm.brandColor?_vm.brandColor:"#FC7468"},on:{"click":_vm.confirm}},[_vm._v("确定")]),_c("div",{staticClass:"act-picker-title-group"},[_c("h1",{staticClass:"act-picker-title"},[_vm._v(" "+_vm._s(_vm.title)+" ")])])]),_c("div",{ref:"content",staticClass:"act-picker-content"},[_vm.options&&_vm.options.length?_c("div",{staticClass:"element-mulselect"},_vm._l(_vm.options,function(item,i){return _c("div",{key:i,staticClass:"element-item"},[_c("h5",[_vm._v(" "+_vm._s(item.text)+" ")]),_c("ul",{staticClass:"element-subitem"},_vm._l(item.subList,function(subItem,j){var _context6,_context7,_context8,_context9;return _c("li",{key:_concatInstanceProperty(_context6=_concatInstanceProperty(_context7="".concat(subItem.value,"_")).call(_context7,i,"_")).call(_context6,j),class:{isSelect:_includesInstanceProperty(_context8=_vm.selectValue).call(_context8,subItem.value)},style:_vm.color(subItem.value),on:{"click":function click($event){$event.stopPropagation();return _vm.handleItem(subItem)}}},[_c("label",{staticClass:"text",class:{disabled:_vm.isDisabled(subItem)},style:{color:_includesInstanceProperty(_context9=_vm.selectValue).call(_context9,subItem.value)?_vm.brandColor:""}},[_vm._v(" "+_vm._s(subItem.text)+" ")])])}),0)])}),0):_vm._e()])])])],1)],1)};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"d722fe02");var MulSelect=__component__.exports;exports.MulSelect=MulSelect;
1
+ "use strict";require('./style.css');var _toConsumableArray=require("@babel/runtime-corejs3/helpers/toConsumableArray");var _includesInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/includes");var _indexOfInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/index-of");var _spliceInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/splice");var _concatInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/concat");var common_popup=require("../../common/popup/index.js");var BScrollModule=require("better-scroll");var utils_helpers=require("../../utils/helpers/index.js");var common=require("../../common/index.js");var _sfc_main={data:function data(){return{selectValue:[],isVisible:false,preOverflowValue:null}},components:{ActPopup:common_popup.ActPopup},props:{options:{type:Array,default:function _default(){return[]}},title:{type:String,default:""},value:{type:[Array,String],default:function _default2(){return[]}},brandColor:{type:String,default:"#8c7fee"}},methods:{isDisabled:function isDisabled(option){return Number(option.state)!==1},maskClick:function maskClick(){this.isVisible=false},cancel:function cancel(){this.isVisible=false},confirm:function confirm(){this.$emit("confirm",this.selectValue);this.isVisible=false},show:function show(){var _this=this;this.isVisible=true;this.$nextTick(function(){if(!_this.scroll){_this.scroll=new BScrollModule(_this.$refs.content,{click:true})}else{_this.scroll.refresh()}})},handleItem:function handleItem(item){var _context;if(~~item.state===0){return}if(_includesInstanceProperty(_context=this.selectValue).call(_context,item.value)){var _context2,_context3;var index=_indexOfInstanceProperty(_context2=this.selectValue).call(_context2,item.value);_spliceInstanceProperty(_context3=this.selectValue).call(_context3,index,1)}else{this.selectValue.push(item.value)}},color:function color(value){var _context4,_context5;var color2=_includesInstanceProperty(_context4=this.selectValue).call(_context4,value)?this.brandColor:"";return{backgroundColor:_includesInstanceProperty(_context5=this.selectValue).call(_context5,value)?this.backgroundColor:"",borderColor:color2}}},watch:{isVisible:function isVisible(newVal){if(newVal){this.selectValue=this.value?_toConsumableArray(this.value):[];this.preOverflowValue=document&&document.body&&document.body.style&&document.body.style.overflow;document.documentElement.style.overflow="hidden"}else{document.body.style.overflow=this.preOverflowValue||""}}},computed:{backgroundColor:function backgroundColor(){return utils_helpers.hexToRgb(this.brandColor||"#8c7fee",.08)}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("transition",{attrs:{"name":"act-picker-fade"}},[_c("act-popup",{directives:[{name:"show",rawName:"v-show",value:_vm.isVisible,expression:"isVisible"}],attrs:{"type":"picker","mask":true,"center":false,"topBorderRadius":true,"zIndex":"999"},on:{"touchmove":function touchmove($event){$event.preventDefault()},"mask-click":_vm.maskClick}},[_c("transition",{attrs:{"name":"act-picker-move"}},[_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.isVisible,expression:"isVisible"}],staticClass:"act-picker-panel",on:{"click":function click($event){$event.stopPropagation()}}},[_c("div",{staticClass:"act-picker-choose"},[_c("span",{staticClass:"act-picker-cancel",style:{color:"#999999"},on:{"click":_vm.cancel}},[_vm._v(" 取消 ")]),_c("span",{staticClass:"act-picker-confirm",style:{color:_vm.brandColor?_vm.brandColor:"#FC7468"},on:{"click":_vm.confirm}},[_vm._v("确定")]),_c("div",{staticClass:"act-picker-title-group"},[_c("h1",{staticClass:"act-picker-title"},[_vm._v(" "+_vm._s(_vm.title)+" ")])])]),_c("div",{ref:"content",staticClass:"act-picker-content"},[_vm.options&&_vm.options.length?_c("div",{staticClass:"element-mulselect"},_vm._l(_vm.options,function(item,i){return _c("div",{key:i,staticClass:"element-item"},[_c("h5",[_vm._v(" "+_vm._s(item.text)+" ")]),_c("ul",{staticClass:"element-subitem"},_vm._l(item.subList,function(subItem,j){var _context6,_context7,_context8,_context9;return _c("li",{key:_concatInstanceProperty(_context6=_concatInstanceProperty(_context7="".concat(subItem.value,"_")).call(_context7,i,"_")).call(_context6,j),class:{isSelect:_includesInstanceProperty(_context8=_vm.selectValue).call(_context8,subItem.value)},style:_vm.color(subItem.value),on:{"click":function click($event){$event.stopPropagation();return _vm.handleItem(subItem)}}},[_c("label",{staticClass:"text",class:{disabled:_vm.isDisabled(subItem)},style:{color:_includesInstanceProperty(_context9=_vm.selectValue).call(_context9,subItem.value)?_vm.brandColor:""}},[_vm._v(" "+_vm._s(subItem.text)+" ")])])}),0)])}),0):_vm._e()])])])],1)],1)};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"d722fe02");var MulSelect=__component__.exports;exports.MulSelect=MulSelect;