You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
15 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-componentsB-readMore-index"],{"014e":function(t,e,n){var i=n("d442");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("483a3466",i,!0,{sourceMap:!1,shadowMode:!1})},"1a78":function(t,e,n){"use strict";n.r(e);var i=n("30c6"),o=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=o.a},"26ea":function(t,e,n){"use strict";n.r(e);var i=n("5fa0"),o=n("1a78");for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("9e81");var a,s=n("f0c5"),u=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"706d0856",null,!1,i["a"],a);e["default"]=u.exports},"30c6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{content:"浔阳江头夜送客,枫叶荻花秋瑟瑟。主人下马客在船,举酒欲饮无管弦。醉不成欢惨将别,别时茫茫江浸月。\n\t\t\t\t忽闻水上琵琶声,主人忘归客不发。寻声暗问弹者谁,琵琶声停欲语迟。移船相近邀相见,添酒回灯重开宴。千呼万唤始出来,犹抱琵琶半遮面。转轴拨弦三两声,未成曲调先有情。弦弦掩抑声声思,似诉平生不得志。低眉信手续续弹,说尽心中无限事。轻拢慢捻抹复挑,初为《霓裳》后《六幺》。大弦嘈嘈如急雨,小弦切切如私语。嘈嘈切切错杂弹,大珠小珠落玉盘。间关莺语花底滑,幽咽泉流冰下难。冰泉冷涩弦凝绝,凝绝不通声暂歇。别有幽愁暗恨生,此时无声胜有声。银瓶乍破水浆迸,铁骑突出刀枪鸣。曲终收拨当心画,四弦一声如裂帛。东船西舫悄无言,唯见江心秋月白。\n\t\t\t\t沉吟放拨插弦中,整顿衣裳起敛容。自言本是京城女,家在虾蟆陵下住。十三学得琵琶成,名属教坊第一部。曲罢曾教善才服,妆成每被秋娘妒。五陵年少争缠头,一曲红绡不知数。钿头银篦击节碎,血色罗裙翻酒污。今年欢笑复明年,秋月春风等闲度。弟走从军阿姨死,暮去朝来颜色故。门前冷落鞍马稀,老大嫁作商人妇。商人重利轻别离,前月浮梁买茶去。去来江口守空船,绕船月明江水寒。夜深忽梦少年事,梦啼妆泪红阑干。\n\t\t\t\t我闻琵琶已叹息,又闻此语重唧唧。同是天涯沦落人,相逢何必曾相识!我从去年辞帝京,谪居卧病浔阳城。浔阳地僻无音乐,终岁不闻丝竹声。住近湓江地低湿,黄芦苦竹绕宅生。其间旦暮闻何物?杜鹃啼血猿哀鸣。春江花朝秋月夜,往往取酒还独倾。岂无山歌与村笛?呕哑嘲哳难为听。今夜闻君琵琶语,如听仙乐耳暂明。莫辞更坐弹一曲,为君翻作《琵琶行》。感我此言良久立,却坐促弦弦转急。凄凄不似向前声,满座重闻皆掩泣。座中泣下谁最多?江州司马青衫湿。",showHeight:200,toggle:!1}},methods:{showHeightChange:function(t){this.showHeight=0==t?100:1==t?200:400},toggleChange:function(t){this.toggle=0==t},open:function(){},close:function(){}}};e.default=i},"43c1":function(t,e,n){var i=n("d244");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("65d0d17d",i,!0,{sourceMap:!1,shadowMode:!1})},5214:function(t,e,n){var i=n("a2e2");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("63e8d19e",i,!0,{sourceMap:!1,shadowMode:!1})},"5fa0":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var i={uReadMore:n("7fe4").default,uSubsection:n("e97e").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-demo"},[n("v-uni-view",{staticClass:"u-demo-wrap"},[n("v-uni-view",{staticClass:"u-demo-title"},[t._v("演示效果")]),n("v-uni-view",{staticClass:"u-demo-area"},[n("u-read-more",{ref:"uReadMore",attrs:{toggle:t.toggle,"show-height":t.showHeight},on:{open:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)},close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[n("v-uni-rich-text",{attrs:{nodes:t.content}})],1)],1)],1),n("v-uni-view",{staticClass:"u-config-wrap"},[n("v-uni-view",{staticClass:"u-config-title u-border-bottom"},[t._v("参数配置")]),n("v-uni-view",{staticClass:"u-config-item"},[n("v-uni-view",{staticClass:"u-item-title"},[t._v("超出高度隐藏")]),n("u-subsection",{attrs:{current:"1",list:["100","200","400"]},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.showHeightChange.apply(void 0,arguments)}}})],1),n("v-uni-view",{staticClass:"u-config-item"},[n("v-uni-view",{staticClass:"u-item-title"},[t._v("展开后可关闭")]),n("u-subsection",{attrs:{current:"1",list:["是","否"]},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleChange.apply(void 0,arguments)}}})],1)],1)],1)},r=[]},"629f":function(t,e,n){"use strict";var i=n("5214"),o=n.n(i);o.a},"7fe4":function(t,e,n){"use strict";n.r(e);var i=n("8e968"),o=n("f83e");for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("b84e");var a,s=n("f0c5"),u=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"0ee0c5c2",null,!1,i["a"],a);e["default"]=u.exports},"8e968":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var i={uIcon:n("b1e3").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{},[n("v-uni-view",{staticClass:"u-content",class:[t.elId],style:{height:t.isLongContent&&!t.showMore?t.showHeight+"rpx":"auto",textIndent:t.textIndent}},[t._t("default")],2),t.isLongContent?n("v-uni-view",{staticClass:"u-content__showmore-wrap",class:{"u-content__show-more":t.showMore},style:[t.innerShadowStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleReadMore.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"u-content__showmore-wrap__readmore-btn",style:{fontSize:t.fontSize+"rpx",color:t.color}},[t._v(t._s(t.showMore?t.openText:t.closeText))]),n("v-uni-view",{staticClass:"u-content__showmore-wrap__readmore-btn__icon u-flex"},[n("u-icon",{attrs:{color:t.color,size:t.fontSize,name:t.showMore?"arrow-up":"arrow-down"}})],1)],1):t._e()],1)},r=[]},"92a5":function(t,e,n){"use strict";n("99af"),n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"u-read-more",props:{showHeight:{type:[Number,String],default:400},toggle:{type:Boolean,default:!1},closeText:{type:String,default:"展开阅读全文"},openText:{type:String,default:"收起"},color:{type:String,default:"#2979ff"},fontSize:{type:[String,Number],default:28},shadowStyle:{type:Object,default:function(){return{backgroundImage:"linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, #fff 80%)",paddingTop:"300rpx",marginTop:"-300rpx"}}},textIndent:{type:String,default:"2em"},index:{type:[Number,String],default:""}},watch:{paramsChange:function(t){this.init()}},computed:{paramsChange:function(){return"".concat(this.toggle,"-").concat(this.showHeight)},innerShadowStyle:function(){return this.showMore?{}:this.shadowStyle}},data:function(){return{isLongContent:!1,showMore:!1,elId:this.$u.guid()}},mounted:function(){var t=this;this.$nextTick((function(){t.init()}))},methods:{init:function(){var t=this;this.$uGetRect("."+this.elId).then((function(e){e.height>uni.upx2px(t.showHeight)&&(t.isLongContent=!0,t.showMore=!1)}))},toggleReadMore:function(){this.showMore=!this.showMore,0==this.toggle&&(this.isLongContent=!1),this.$emit(this.showMore?"open":"close",this.index)}}};e.default=i},"9e81":function(t,e,n){"use strict";var i=n("43c1"),o=n.n(i);o.a},a2e2:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \n */.u-subsection[data-v-05edd86e]{\ndisplay:flex;flex-direction:row;\nalign-items:center;overflow:hidden;position:relative}.u-item[data-v-05edd86e]{flex:1;text-align:center;font-size:%?26?%;height:100%;\ndisplay:flex;flex-direction:row;\nalign-items:center;justify-content:center;color:#303133;padding:0 %?6?%}.u-item-bg[data-v-05edd86e]{background-color:#2979ff;position:absolute;z-index:-1}.u-none-border-right[data-v-05edd86e]{border-right:none!important}.u-item-first[data-v-05edd86e]{border-top-left-radius:%?8?%;border-bottom-left-radius:%?8?%}.u-item-last[data-v-05edd86e]{border-top-right-radius:%?8?%;border-bottom-right-radius:%?8?%}.u-item-text[data-v-05edd86e]{transition:all .35s;color:#303133;\ndisplay:flex;flex-direction:row;\nalign-items:center;position:relative;z-index:3}',""]),t.exports=e},b84e:function(t,e,n){"use strict";var i=n("014e"),o=n.n(i);o.a},d244:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \n */.wrap[data-v-706d0856] .u-content{color:#666!important}',""]),t.exports=e},d442:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用 \n */.u-content[data-v-0ee0c5c2]{font-size:%?30?%;color:#606266;line-height:1.8;text-align:left;overflow:hidden}.u-content__show-more[data-v-0ee0c5c2]{padding-top:0;background:none;margin-top:%?20?%}.u-content__showmore-wrap[data-v-0ee0c5c2]{position:relative;width:100%;padding-bottom:%?26?%;\ndisplay:flex;flex-direction:row;\nalign-items:center;justify-content:center}.u-content__showmore-wrap__readmore-btn[data-v-0ee0c5c2]{\ndisplay:flex;flex-direction:row;\nalign-items:center;justify-content:center;line-height:1}.u-content__showmore-wrap__readmore-btn__icon[data-v-0ee0c5c2]{margin-left:%?14?%}',""]),t.exports=e},e29c:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-subsection",style:[t.subsectionStyle]},[t._l(t.listInfo,(function(e,i){return n("v-uni-view",{key:i,staticClass:"u-item u-line-1",class:[t.noBorderRight(i),"u-item-"+i],style:[t.itemStyle(i)],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click(i)}}},[n("v-uni-view",{staticClass:"u-item-text u-line-1",style:[t.textStyle(i)]},[t._v(t._s(e.name))])],1)})),n("v-uni-view",{staticClass:"u-item-bg",style:[t.itemBarStyle]})],2)},r=[]},e2aa:function(t,e,n){"use strict";n("99af"),n("d81d"),n("a9e3"),n("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"u-subsection",props:{list:{type:Array,default:function(){return[]}},current:{type:[Number,String],default:0},activeColor:{type:String,default:"#303133"},inactiveColor:{type:String,default:"#606266"},mode:{type:String,default:"button"},fontSize:{type:[Number,String],default:28},animation:{type:Boolean,default:!0},height:{type:[Number,String],default:70},bold:{type:Boolean,default:!0},bgColor:{type:String,default:"#eeeeef"},buttonColor:{type:String,default:"#ffffff"},vibrateShort:{type:Boolean,default:!1}},data:function(){return{listInfo:[],itemBgStyle:{width:0,left:0,backgroundColor:"#ffffff",height:"100%",transition:""},currentIndex:this.current,buttonPadding:3,borderRadius:5,firstTimeVibrateShort:!0}},watch:{current:{immediate:!0,handler:function(t){this.currentIndex=t,this.changeSectionStatus(t)}}},created:function(){this.listInfo=this.list.map((function(t,e){if("object"!=typeof t){var n={width:0,name:t};return n}return t.width=0,t}))},computed:{noBorderRight:function(){var t=this;return function(e){if("subsection"==t.mode){var n="";return e<t.list.length-1&&(n+=" u-none-border-right"),0==e&&(n+=" u-item-first"),e==t.list.length-1&&(n+=" u-item-last"),n}}},textStyle:function(){var t=this;return function(e){var n={};return"subsection"==t.mode?e==t.currentIndex?n.color="#ffffff":n.color=t.activeColor:e==t.currentIndex?n.color=t.activeColor:n.color=t.inactiveColor,e==t.currentIndex&&t.bold&&(n.fontWeight="bold"),n.fontSize=t.fontSize+"rpx",n}},itemStyle:function(){var t=this;return function(e){var n={};return"subsection"==t.mode&&(n.borderColor=t.activeColor,n.borderWidth="1px",n.borderStyle="solid"),n}},subsectionStyle:function(){var t={};return t.height=uni.upx2px(this.height)+"px","button"==this.mode&&(t.backgroundColor=this.bgColor,t.padding="".concat(this.buttonPadding,"px"),t.borderRadius="".concat(this.borderRadius,"px")),t},itemBarStyle:function(){var t={};return t.backgroundColor=this.activeColor,t.zIndex=1,"button"==this.mode&&(t.backgroundColor=this.buttonColor,t.borderRadius="".concat(this.borderRadius,"px"),t.bottom="".concat(this.buttonPadding,"px"),t.height=uni.upx2px(this.height)-2*this.buttonPadding+"px",t.zIndex=0),Object.assign(this.itemBgStyle,t)}},mounted:function(){var t=this;setTimeout((function(){t.getTabsInfo()}),10)},methods:{changeSectionStatus:function(t){var e=this;"subsection"==this.mode&&(t==this.list.length-1&&(this.itemBgStyle.borderRadius="0 ".concat(this.buttonPadding,"px ").concat(this.buttonPadding,"px 0")),0==t&&(this.itemBgStyle.borderRadius="".concat(this.buttonPadding,"px 0 0 ").concat(this.buttonPadding,"px")),t>0&&t<this.list.length-1&&(this.itemBgStyle.borderRadius="0")),setTimeout((function(){e.itemBgLeft()}),10),this.vibrateShort&&this.firstTimeVibrateShort,this.firstTimeVibrateShort=!1},click:function(t){t!=this.currentIndex&&(this.currentIndex=t,this.changeSectionStatus(t),this.$emit("change",Number(t)))},getTabsInfo:function(){for(var t=this,e=uni.createSelectorQuery().in(this),n=0;n<this.list.length;n++)e.select(".u-item-"+n).boundingClientRect();e.exec((function(e){e.length||setTimeout((function(){t.getTabsInfo()}),10),e.map((function(e,n){t.listInfo[n].width=e.width})),("subsection"==t.mode||"button"==t.mode)&&(t.itemBgStyle.width=t.listInfo[0].width+"px"),t.itemBgLeft()}))},itemBgLeft:function(){var t=this;this.animation?this.itemBgStyle.transition="all 0.35s":this.itemBgStyle.transition="all 0s";var e=0;this.listInfo.map((function(n,i){i<t.currentIndex&&(e+=n.width)})),"subsection"==this.mode?this.itemBgStyle.left=e+"px":"button"==this.mode&&(this.itemBgStyle.left=e+this.buttonPadding+"px")}}};e.default=i},e97e:function(t,e,n){"use strict";n.r(e);var i=n("e29c"),o=n("fb96");for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("629f");var a,s=n("f0c5"),u=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"05edd86e",null,!1,i["a"],a);e["default"]=u.exports},f83e:function(t,e,n){"use strict";n.r(e);var i=n("92a5"),o=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=o.a},fb96:function(t,e,n){"use strict";n.r(e);var i=n("e2aa"),o=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=o.a}}]);