1 |
- (self["webpackChunkuview2_0_cli"]=self["webpackChunkuview2_0_cli"]||[]).push([[9590],{76837:function(t,e,n){var o=n(12732);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.id,o,""]]),o.locals&&(t.exports=o.locals);var i=n(56).Z;i("6c2fd0c8",o,!0,{sourceMap:!1,shadowMode:!1})},86608:function(t,e,n){"use strict";n.d(e,{Z:function(){return f}});var o,i={"u-Text":n(88488).Z,uIcon:n(38275).Z},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-read-more"},[n("v-uni-view",{staticClass:"u-read-more__content",style:{height:t.isLongContent&&"close"===t.status?t.$u.addUnit(t.showHeight):t.$u.addUnit(t.contentHeight),textIndent:t.textIndent}},[n("v-uni-view",{ref:"u-read-more__content__inner",staticClass:"u-read-more__content__inner",class:[t.elId]},[t._t("default")],2)],1),t.isLongContent?n("v-uni-view",{staticClass:"u-read-more__toggle",style:[t.innerShadowStyle]},[t._t("toggle",[n("v-uni-view",{staticClass:"u-read-more__toggle__text",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleReadMore.apply(void 0,arguments)}}},[n("u--text",{attrs:{text:"close"===t.status?t.closeText:t.openText,color:t.color,size:t.fontSize,lineHeight:t.fontSize,margin:"0 5px 0 0"}}),n("v-uni-view",{staticClass:"u-read-more__toggle__icon"},[n("u-icon",{attrs:{color:t.color,size:t.fontSize+2,name:"close"===t.status?"arrow-down":"arrow-up"}})],1)],1)])],2):t._e()],1)},s=[],a=n(66407),u=n(4587),c=(n(41539),n(9653),{props:{showHeight:{type:[String,Number],default:uni.$u.props.readMore.showHeight},toggle:{type:Boolean,default:uni.$u.props.readMore.toggle},closeText:{type:String,default:uni.$u.props.readMore.closeText},openText:{type:String,default:uni.$u.props.readMore.openText},color:{type:String,default:uni.$u.props.readMore.color},fontSize:{type:[String,Number],default:uni.$u.props.readMore.fontSize},shadowStyle:{type:Object,default:function(){return{backgroundImage:"linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, #fff 80%)",paddingTop:"100px",marginTop:"-100px"}}},textIndent:{type:String,default:uni.$u.props.readMore.textIndent},name:{type:[String,Number],default:uni.$u.props.readMore.name}}}),l={name:"u-read-more",mixins:[uni.$u.mpMixin,uni.$u.mixin,c],data:function(){return{isLongContent:!1,status:"close",elId:uni.$u.guid(),contentHeight:100}},computed:{innerShadowStyle:function(){return"open"===this.status?{}:this.shadowStyle}},mounted:function(){this.init()},methods:{init:function(){var t=this;return(0,u.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.getContentHeight().then((function(e){t.contentHeight=e,e>uni.$u.getPx(t.showHeight)&&(t.isLongContent=!0,t.status="close")}));case 1:case"end":return e.stop()}}),e)})))()},getContentHeight:function(){var t=this;return(0,u.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,uni.$u.sleep(30);case 2:return e.abrupt("return",new Promise((function(e){t.$uGetRect("."+t.elId).then((function(t){e(t.height)}))})));case 3:case"end":return e.stop()}}),e)})))()},toggleReadMore:function(){this.status="close"===this.status?"open":"close",0==this.toggle&&(this.isLongContent=!1),this.$emit(this.status,this.name)}}},d=l,p=(n(76837),n(69453)),g=(0,p.Z)(d,r,s,!1,null,"7c1d503a",null,!1,i,o),f=g.exports},17840:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return d}});var o,i={uReadMore:n(86608).Z,uParse:n(1203).Z},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-page"},[n("u-read-more",{ref:"uReadMore",attrs:{showHeight:t.showHeight,toggle:!0},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("u-parse",{attrs:{content:t.content,"tag-style":t.tagStyle},on:{load:function(e){arguments[0]=e=t.$handleEvent(e),t.load.apply(void 0,arguments)}}})],1)],1)},s=[],a={data:function(){return{content:"<p>浔阳江头夜送客,枫叶荻花秋瑟瑟。主人下马客在船,举酒欲饮无管弦。醉不成欢惨将别,别时茫茫江浸月。\n\t\t\t\t忽闻水上琵琶声,主人忘归客不发。寻声暗问弹者谁,琵琶声停欲语迟。移船相近邀相见,添酒回灯重开宴。千呼万唤始出来,犹抱琵琶半遮面。转轴拨弦三两声,未成曲调先有情。弦弦掩抑声声思,似诉平生不得志。低眉信手续续弹,说尽心中无限事。轻拢慢捻抹复挑,初为《霓裳》后《六幺》。大弦嘈嘈如急雨,小弦切切如私语。嘈嘈切切错杂弹,大珠小珠落玉盘。间关莺语花底滑,幽咽泉流冰下难。冰泉冷涩弦凝绝,凝绝不通声暂歇。别有幽愁暗恨生,此时无声胜有声。银瓶乍破水浆迸,铁骑突出刀枪鸣。曲终收拨当心画,四弦一声如裂帛。东船西舫悄无言,唯见江心秋月白。\n\t\t\t\t沉吟放拨插弦中,整顿衣裳起敛容。自言本是京城女,家在虾蟆陵下住。十三学得琵琶成,名属教坊第一部。曲罢曾教善才服,妆成每被秋娘妒。五陵年少争缠头,一曲红绡不知数。钿头银篦击节碎,血色罗裙翻酒污。今年欢笑复明年,秋月春风等闲度。弟走从军阿姨死,暮去朝来颜色故。门前冷落鞍马稀,老大嫁作商人妇。商人重利轻别离,前月浮梁买茶去。去来江口守空船,绕船月明江水寒。夜深忽梦少年事,梦啼妆泪红阑干。\n\t\t\t\t我闻琵琶已叹息,又闻此语重唧唧。同是天涯沦落人,相逢何必曾相识!我从去年辞帝京,谪居卧病浔阳城。浔阳地僻无音乐,终岁不闻丝竹声。住近湓江地低湿,黄芦苦竹绕宅生。其间旦暮闻何物?杜鹃啼血猿哀鸣。春江花朝秋月夜,往往取酒还独倾。岂无山歌与村笛?呕哑嘲哳难为听。今夜闻君琵琶语,如听仙乐耳暂明。莫辞更坐弹一曲,为君翻作《琵琶行》。感我此言良久立,却坐促弦弦转急。凄凄不似向前声,满座重闻皆掩泣。座中泣下谁最多?江州司马青衫湿。</p>",showHeight:200,tagStyle:{p:"color: #606266; line-height: 24px;"}}},methods:{load:function(){this.$refs.uReadMore.init()},open:function(t){console.log("open",t)},close:function(t){console.log("close",t)}}},u=a,c=n(69453),l=(0,c.Z)(u,r,s,!1,null,"08d0173b",null,!1,i,o),d=l.exports},12732:function(t,e,n){"use strict";n.r(e);var o=n(43481),i=n.n(o),r=n(2400),s=n.n(r),a=s()(i());a.push([t.id,'@charset "UTF-8";\n/**\n * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用\n */uni-view[data-v-7c1d503a], uni-scroll-view[data-v-7c1d503a], uni-swiper-item[data-v-7c1d503a]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-read-more__content[data-v-7c1d503a]{overflow:hidden;color:#606266;font-size:15px;text-align:left}.u-read-more__toggle[data-v-7c1d503a]{\ndisplay:flex;\nflex-direction:row;justify-content:center}.u-read-more__toggle__text[data-v-7c1d503a]{\ndisplay:flex;\nflex-direction:row;align-items:center;justify-content:center;margin-top:5px}',""]),e["default"]=a},39567:function(t,e){"use strict";e.Z={props:{lang:String,sessionFrom:String,sendMessageTitle:String,sendMessagePath:String,sendMessageImg:String,showMessageCard:Boolean,appParameter:String,formType:String,openType:String}}},93194:function(t,e){"use strict";e.Z={props:{openType:String},methods:{onGetUserInfo:function(t){this.$emit("getuserinfo",t.detail)},onContact:function(t){this.$emit("contact",t.detail)},onGetPhoneNumber:function(t){this.$emit("getphonenumber",t.detail)},onError:function(t){this.$emit("error",t.detail)},onLaunchApp:function(t){this.$emit("launchapp",t.detail)},onOpenSetting:function(t){this.$emit("opensetting",t.detail)}}}}}]);
|