12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802 |
- <template name="momentItem">
- <view class="item">
- <view class="post-left">
- <image class="post_header" :src="item.user.avatar"></image>
- </view>
-
- <view class="post_right">
- <view class="post-username"><rich-text type="text" :nodes="item.user.username_text"></rich-text></view><view v-if="item.user.title" style="margin-left:10rpx">({{item.user.title}})</view>
- <view class="paragraph">{{item.content}}</view>
- <!-- 相册 -->
- <view class="thumbnails" v-if="item.pic.length > 0 && item.pic[0]">
- <view :class="item.pic.length === 1?'my-gallery':'thumbnail'" v-for="(v, k) in item.pic" :key="k">
- <image class="gallery_img" lazy-load mode="aspectFill" :src="v" :data-src="v" @tap="Dever.viewPic(item.pic, v)"></image>
- </view>
- </view>
- <!-- 资料条 -->
- <view class="toolbar">
- <view class="timestamp">{{item.cdate_string}}<text @click="deleteItem" v-if="item.me == 1">[{{item.del}}]</text></view>
- <view class="like" @tap="updateUp()">
- <image :src="item.is_up ? '../../static/moment/like.png' : '../../static/moment/islike.png'" style="width: 30px;"></image>
- </view>
- <view class="comment" @tap="updateComment(item.id)">
- <image src="@/static/moment/comment.png" style="width: 30px;"></image>
- </view>
- </view>
- <!-- 赞/评论区 -->
- <view class="post-footer">
- <view class="footer_content" v-if="item.up_list_total > 0">
- <image class="liked" src="@/static/moment/liked.png"></image>
- <view class="nickname" v-for="(v, k) in item.up_list.user" :key="k"><rich-text type="text" :nodes="v.username_text"></rich-text></view>
- <view class="nickname" v-if="item.up_list.total > 0">还有{{item.up_list.total}}人点赞</view>
- </view>
- <view v-if="item.child.length" class="footer_content" v-for="(v, k) in item.child" :key="k" @tap="updateComment(item.id, v.id, v.uid)">
- <view class="comment-nickname"><rich-text type="text" :nodes="v.user.username_text"></rich-text></view>
- <view class="comment-content"><text class="text-grey" v-if="v.to_uid > 0">回复@<text v-if="v.to_user.author">[{{v.to_user.author}}]</text>{{v.to_user.username}}</text>: {{v.content}}</view>
- </view>
- <view class="text-grey flex solid-bottom padding justify-center more" style="padding: 8rpx;" @click="getMore" v-if="item.child_total > 1">{{more}}</view>
- </view>
- </view>
-
- <view v-if="show">
- <dever-publish :title="title" :is_upload="false" @hideModal="hideModal" @getRefresh="getRefresh" :cate_id="false" :type="type" :type_id="type_id" :to_id="to_id" :to_uid="to_uid" :api="api"></dever-publish>
- </view>
- </view>
- </template>
- <script>
- import deverPublish from '@/lib/dever/components/publish.vue';
- export default {
- name: "momentItem",
- props: {
- item: {
- type: Object
- },
- user: {
- type: Object
- },
- },
- components: {
- deverPublish
- },
- data() {
- return {
- title : '回复动态',
- api : 'app/community/?l=api.addMoment',
- show : false,
- showPop: false,
- type : 30,
- type_id : 0,
- to_id : 0,
- to_uid : 0,
- page : 1,
- num : 5,
- more : '',
- id : 0,
- child : [],
- }
- },
- created() {
- this.more = '展开'+(this.item.child_total-1)+'条回复';
- if (this.item.child_total > 0) {
- this.id = this.item.child[0].id;
- }
- this.child = this.item.child;
- },
- methods: {
- getRefresh : function(cate_id, type, type_id) {
- this.item.num_comment++;
- this.getMore(1, 1);
- },
- getMore : function(page, push) {
- var self = this;
- if (page && typeof(page) != 'object') {
- self.page = page;
- }
-
- if (self.page > 1 && self.more == '收起') {
- // 收起
- self.item.child = self.child;
- self.more = '展开'+(self.item.child_total-1)+'条回复';
- self.page = 1;
- return;
- }
-
- var send = {cate_id:self.cate_id, type:self.type, type_id:self.item.id, pg:self.page, noconcat:true};
- send.code = self.Dever.config.code;
- send.info_id = self.id;
- this.Dever.get(this, 'app/community/?l=api.moment', send, function(t) {
- if (self.page == 1) {
- self.item.child = self.child;
- }
-
- if (t.info && t.info.length > 0) {
- self.item.child = self.item.child.concat(t.info);
- self.page = self.page + 1;
- }
- if (self.Dever.pageData.status == 0) {
- self.more = '收起';
- } else {
- self.more = '展开更多回复';
- }
- self.hideModal();
- });
- },
- deleteItem : function() {
- var self = this;
- if (this.item.me == 2) {
- this.Dever.alert('无法删除');
- return;
- }
- var text = '删除';
- var del = '恢复';
- var del_state = 1;
- if (self.item.del_state == 1) {
- text = '恢复';
- del = '删除';
- del_state = 2;
- }
- this.Dever.confirm('确认'+text+'这条动态?', function() {
- self.Dever.post('app/community/?l=api.delMoment', {code:self.Dever.config.code, moment_id:self.item.id,state:self.item.del_state}, function(t) {
- self.item.del = del;
- self.item.del_state = del_state;
- });
- })
- },
- updateUp : function() {
- var self = this;
- if (this.item.is_oppose) {
- return;
- }
- if (this.item.is_up) {
- this.item.num_up--;
- this.item.is_up = false;
- delete this.item.up_list.user['user_' + this.user.id];
- this.item.up_list_total -= 1;
- } else {
- this.item.num_up++;
- this.item.is_up = true;
- this.item.up_list.user['user_' + this.user.id] = {};
- this.item.up_list.user['user_' + this.user.id]['id'] = this.user.id;
- this.item.up_list.user['user_' + this.user.id]['username'] = this.user.username;
- this.item.up_list.user['user_' + this.user.id]['author'] = this.user.author;
- this.item.up_list.user['user_' + this.user.id]['username_text'] = this.user.username_text;
- this.item.up_list_total += 1;
- }
- self.Dever.post('app/community/?l=api.up', {code:self.Dever.config.code, type_id:this.item.id,type:this.type,noloading:1});
- },
- updateComment : function (type_id, to_id, to_uid) {
- this.type = this.type;
- this.type_id = type_id;
- if (to_id) {
- this.to_id = to_id;
- } else {
- this.to_id = 0;
- }
- if (to_uid) {
- this.to_uid = to_uid;
- } else {
- this.to_uid = 0;
- }
- this.show = true;
- },
- hideModal : function () {
- this.show = false;
- }
- }
- }
- </script>
- <style scoped>
- .item {
- width: 100%;
- position: relative;
- display: flex;
- }
- .liked{
- /* display: inline-block; */
- position: relative;
- margin-right: 10upx;
- width: 34upx;
- height: 34upx;
- }
- .post-username{
- font-size:32upx;
- font-weight: 600;
- color: #36648B;
- }
-
-
- .gallery_img {
- width: 100%;
- height: 100%
- }
- .publish {
- position: absolute;
- top: 20upx;
- right: 20upx;
- /* z-index: 9999; */
- }
- .post_header {
-
- width: 90upx !important;
- height: 90upx !important;
- border-radius: 10upx;
- margin-top: 8upx;
- }
- .post_right {
- font-size: 32upx;
- display: table-cell;
- padding-left: 20upx;
- width: 100%;
- }
- /* .post_right .paragraphExtender {
- margin: 5px auto;
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex
- } */
- .title {
- color: #094dcc
- }
- .thumbnails {
- width: 100%;
- display: flex;
- flex-wrap: wrap;
- /* display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox; */
- /* -webkit-flex-wrap: wrap;
- -ms-flex-wrap: wrap; */
- }
- .thumbnails .thumbnail {
- width: 30%;
- height: 180upx;
- margin: 4upx;
- background: #757575;
- overflow: hidden;
- }
- .my-gallery{
- width: 250upx;
- height: 400upx;
- margin: 4upx;
- background: #757575;
- overflow: hidden
- }
- .toolbar {
- position: relative;
- top: 10upx;
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-align: center;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center
- }
- .toolbar .timestamp {
- color: #757575;
- font-size: 22upx;
- }
- .like {
- width: auto;
- height: auto;
- position: absolute;
- right: 60upx;
- display: flex;
- align-items: center;
- }
- .comment {
- width: auto;
- height: auto;
- position: absolute;
- right: 0upx;
- display: flex;
- align-items: center;
- }
- .toolbar image{
- padding-left: 20upx;
- width: 40upx;
- height: 40upx;
- }
- .post-footer{
- margin-top: 30upx;
- background-color: #f3f3f5;
- width: 100%;
- }
- .footer_content {
- padding-left: 10upx;
- position: relative;
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-align: center;
- -webkit-align-items: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-flex-wrap: wrap;
- -ms-flex-wrap: wrap;
- flex-wrap: wrap
- }
- .footer_content .nickname {
- color: #36648B;
- font-size: 24upx
- }
- .footer_content .comment-nickname {
- color: #36648B;
- font-size: 24upx
- }
- .footer_content .comment-content {
- color: #000000;
- font-size: 24upx
- }
- .foot {
- position: fixed;
- width: 100%;
- height: 90upx;
- min-height: 90upx;
- left: 0upx;
- bottom: 0upx;
- overflow: hidden;
- }
- @font-face {
- font-family: uniicons;
- font-weight: normal;
- font-style: normal;
- src: url('https://img-cdn-qiniu.dcloud.net.cn/fonts/uni.ttf') format('truetype');
- }
- /*通用 */
- view{
- font-size:28upx;
- line-height:1.8;
- }
- progress, checkbox-group{
- width: 100%;
- }
- form {
- width: 100%;
- }
- .uni-flex {
- display: flex;
- flex-direction: row;
- }
- .uni-flex-item {
- flex: 1;
- }
- .uni-row {
- flex-direction: row;
- }
- .uni-column {
- flex-direction: column;
- }
- .uni-link{
- color:#576B95;
- font-size:26upx;
- }
- .uni-center{
- text-align:center;
- }
- .uni-inline-item{
- display: flex;
- flex-direction: row;
- align-items:center;
- }
- .uni-inline-item text{
- margin-right: 20upx;
- }
- .uni-inline-item text:last-child{
- margin-right: 0upx;
- margin-left: 20upx;
- }
- /* page */
- .uni-page-head{
- padding:35upx;
- text-align: center;
- }
- .uni-page-head-title {
- display: inline-block;
- padding: 0 40upx;
- font-size: 30upx;
- height: 88upx;
- line-height: 88upx;
- color: #BEBEBE;
- box-sizing: border-box;
- border-bottom: 2upx solid #D8D8D8;
- }
- .uni-page-body {
- width: 100%;
- flex-grow: 1;
- overflow-x: hidden;
- }
- .uni-padding-wrap{
- width:690upx;
- padding:0 30upx;
- }
- .uni-word {
- text-align: center;
- padding:200upx 100upx;
- }
- .uni-title {
- font-size:30upx;
- font-weight:500;
- padding:20upx 0;
- line-height:1.5;
- }
- .uni-text{
- font-size:28upx;
- }
- .uni-title text{
- font-size:24upx;
- color:#888;
- }
- .uni-text-gray{
- color: #ccc;
- }
- .uni-text-small {
- font-size:24upx;
- }
- .uni-common-mb{
- margin-bottom:30upx;
- }
- .uni-common-pb{
- padding-bottom:30upx;
- }
- .uni-common-pl{
- padding-left:30upx;
- }
- .uni-common-mt{
- margin-top:30upx;
- }
- /* 背景色 */
- .uni-bg-red{
- background:#F76260; color:#FFF;
- }
- .uni-bg-green{
- background:#09BB07; color:#FFF;
- }
- .uni-bg-blue{
- background:#007AFF; color:#FFF;
- }
- /* 标题 */
- .uni-h1 {font-size: 80upx; font-weight:700;}
- .uni-h2 {font-size: 60upx; font-weight:700;}
- .uni-h3 {font-size: 48upx; font-weight:700;}
- .uni-h4 {font-size: 36upx; font-weight:700;}
- .uni-h5 {font-size: 28upx; color: #8f8f94;}
- .uni-h6 {font-size: 24upx; color: #8f8f94;}
- .uni-bold{font-weight:bold;}
- /* 文本溢出隐藏 */
- .uni-ellipsis {overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
- /* 竖向百分百按钮 */
- .uni-btn-v{
- padding:10upx 0;
- }
- .uni-btn-v button{margin:20upx 0;}
- /* 表单 */
- .uni-form-item{
- display:flex;
- width:100%;
- padding:10upx 0;
- }
- .uni-form-item .title{
- padding:10upx 25upx;
- }
- .uni-label {
- width: 210upx;
- word-wrap: break-word;
- word-break: break-all;
- text-indent:20upx;
- }
- .uni-input {
- height: 50upx;
- padding: 15upx 25upx;
- line-height:50upx;
- font-size:28upx;
- background:#FFF;
- flex: 1;
- }
- radio-group, checkbox-group{
- width:100%;
- }
- radio-group label, checkbox-group label{
- padding-right:20upx;
- }
- .uni-form-item .with-fun{
- display:flex;
- flex-wrap:nowrap;
- background:#FFFFFF;
- }
- .uni-form-item .with-fun .uni-icon{
- width:40px;
- height:80upx;
- line-height:80upx;
- flex-shrink:0;
- }
- /* loadmore */
- .uni-loadmore{
- height:80upx;
- line-height:80upx;
- text-align:center;
- padding-bottom:30upx;
- }
- /*数字角标*/
- .uni-badge,
- .uni-badge-default {
- font-family: 'Helvetica Neue', Helvetica, sans-serif;
- font-size: 12px;
- line-height: 1;
- display: inline-block;
- padding: 3px 6px;
- color: #333;
- border-radius: 100px;
- background-color: rgba(0, 0, 0, .15);
- }
- .uni-badge.uni-badge-inverted {
- padding: 0 5px 0 0;
- color: #929292;
- background-color: transparent
- }
- .uni-badge-primary {
- color: #fff;
- background-color: #007aff
- }
- .uni-badge-blue.uni-badge-inverted,
- .uni-badge-primary.uni-badge-inverted {
- color: #007aff;
- background-color: transparent
- }
- .uni-badge-green,
- .uni-badge-success {
- color: #fff;
- background-color: #4cd964;
- }
- .uni-badge-green.uni-badge-inverted,
- .uni-badge-success.uni-badge-inverted {
- color: #4cd964;
- background-color: transparent
- }
- .uni-badge-warning,
- .uni-badge-yellow {
- color: #fff;
- background-color: #f0ad4e
- }
- .uni-badge-warning.uni-badge-inverted,
- .uni-badge-yellow.uni-badge-inverted {
- color: #f0ad4e;
- background-color: transparent
- }
- .uni-badge-danger,
- .uni-badge-red {
- color: #fff;
- background-color: #dd524d
- }
- .uni-badge-danger.uni-badge-inverted,
- .uni-badge-red.uni-badge-inverted {
- color: #dd524d;
- background-color: transparent
- }
- .uni-badge-purple,
- .uni-badge-royal {
- color: #fff;
- background-color: #8a6de9
- }
- .uni-badge-purple.uni-badge-inverted,
- .uni-badge-royal.uni-badge-inverted {
- color: #8a6de9;
- background-color: transparent
- }
- /*折叠面板 */
- .uni-collapse-content {
- height: 0;
- width: 100%;
- overflow: hidden;
- }
- .uni-collapse-content.uni-active {
- height: auto;
- }
- /*卡片视图 */
- .uni-card {
- background: #fff;
- border-radius: 8upx;
- margin:20upx 0;
- position: relative;
- box-shadow: 0 2upx 4upx rgba(0, 0, 0, .3);
- }
- .uni-card-content {
- font-size: 30upx;
- }
- .uni-card-content.image-view{
- width: 100%;
- margin: 0;
- }
- .uni-card-content-inner {
- position: relative;
- padding: 30upx;
- }
- .uni-card-footer,
- .uni-card-header {
- position: relative;
- display: flex;
- min-height: 50upx;
- padding: 20upx 30upx;
- justify-content: space-between;
- align-items: center;
- }
- .uni-card-header {
- font-size: 36upx;
- }
- .uni-card-footer {
- color: #6d6d72;
- }
- .uni-card-footer:before,
- .uni-card-header:after {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- height: 2upx;
- content: '';
- -webkit-transform: scaleY(.5);
- transform: scaleY(.5);
- background-color: #c8c7cc;
- }
- .uni-card-header:after {
- top: auto;
- bottom: 0;
- }
- .uni-card-media {
- justify-content: flex-start;
- }
- .uni-card-media-logo {
- height: 84upx;
- width: 84upx;
- margin-right: 20upx;
- }
- .uni-card-media-body {
- height: 84upx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- align-items: flex-start;
- }
- .uni-card-media-text-top {
- line-height: 36upx;
- font-size: 34upx;
- }
- .uni-card-media-text-bottom {
- line-height: 30upx;
- font-size: 28upx;
- color: #8f8f94;
- }
- .uni-card-link {
- color: #007AFF;
- }
- /* 列表 */
- .uni-list {
- background-color: #FFFFFF;
- position: relative;
- width: 100%;
- display: flex;
- flex-direction: column;
- }
- .uni-list:after {
- position: absolute;
- z-index: 10;
- right: 0;
- bottom: 0;
- left: 0;
- height: 1px;
- content: '';
- -webkit-transform: scaleY(.5);
- transform: scaleY(.5);
- background-color: #c8c7cc;
- }
- .uni-list::before {
- position: absolute;
- z-index: 10;
- right: 0;
- top: 0;
- left: 0;
- height: 1px;
- content: '';
- -webkit-transform: scaleY(.5);
- transform: scaleY(.5);
- background-color: #c8c7cc;
- }
- .uni-list-cell {
- position: relative;
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- }
- .uni-list-cell-hover {
- background-color: #eee;
- }
- .uni-list-cell-pd {
- padding: 22upx 30upx;
- }
- .uni-list-cell-left {
- font-size:28upx;
- padding: 0 30upx;
- }
- .uni-list-cell-db,
- .uni-list-cell-right {
- flex: 1;
- }
- .uni-list-cell::after {
- position: absolute;
- z-index: 3;
- right: 0;
- bottom: 0;
- left: 30upx;
- height: 1px;
- content: '';
- -webkit-transform: scaleY(.5);
- transform: scaleY(.5);
- background-color: #c8c7cc;
- }
- .uni-list .uni-list-cell:last-child::after {
- height: 0upx;
- }
- .uni-list-cell-last.uni-list-cell::after {
- height: 0upx;
- }
- .uni-list-cell-divider {
- position: relative;
- display: flex;
- color: #999;
- background-color: #f7f7f7;
- padding:15upx 20upx;
- }
- .uni-list-cell-divider::before {
- position: absolute;
- right: 0;
- top: 0;
- left: 0;
- height: 1px;
- content: '';
- -webkit-transform: scaleY(.5);
- transform: scaleY(.5);
- background-color: #c8c7cc;
- }
- .uni-list-cell-divider::after {
- position: absolute;
- right: 0;
- bottom: 0;
- left: 0upx;
- height: 1px;
- content: '';
- -webkit-transform: scaleY(.5);
- transform: scaleY(.5);
- background-color: #c8c7cc;
- }
- .uni-list-cell-navigate {
- font-size:30upx;
- padding: 22upx 30upx;
- line-height: 48upx;
- position: relative;
- display: flex;
- box-sizing: border-box;
- width: 100%;
- flex: 1;
- justify-content: space-between;
- align-items: center;
- }
- .uni-list-cell-navigate {
- padding-right: 36upx;
- }
- .uni-navigate-badge {
- padding-right: 50upx;
- }
- .uni-list-cell-navigate.uni-navigate-right:after {
- font-family: uniicons;
- content: '\e583';
- position: absolute;
- right: 24upx;
- top: 50%;
- color: #bbb;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
- }
- .uni-list-cell-navigate.uni-navigate-bottom:after {
- font-family: uniicons;
- content: '\e581';
- position: absolute;
- right: 24upx;
- top: 50%;
- color: #bbb;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
- }
- .uni-list-cell-navigate.uni-navigate-bottom.uni-active::after {
- font-family: uniicons;
- content: '\e580';
- position: absolute;
- right: 24upx;
- top: 50%;
- color: #bbb;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
- }
- .uni-collapse.uni-list-cell {
- flex-direction: column;
- }
- .uni-list-cell-navigate.uni-active {
- background: #eee;
- }
- .uni-list.uni-collapse {
- box-sizing: border-box;
- height: 0;
- overflow: hidden;
- }
- .uni-collapse .uni-list-cell {
- padding-left: 20upx;
- }
- .uni-collapse .uni-list-cell::after {
- left: 52upx;
- }
- .uni-list.uni-active {
- height: auto;
- }
- /* 三行列表 */
- .uni-triplex-row {
- display: flex;
- flex: 1;
- width: 100%;
- box-sizing: border-box;
- flex-direction: row;
- padding: 22upx 30upx;
- }
- .uni-triplex-right,
- .uni-triplex-left {
- display: flex;
- flex-direction: column;
- }
- .uni-triplex-left {
- width: 84%;
- }
- .uni-triplex-left .uni-title{
- padding:8upx 0;
- }
- .uni-triplex-left .uni-text, .uni-triplex-left .uni-text-small{color:#999999;}
- .uni-triplex-right {
- width: 16%;
- text-align: right;
- }
- /* 图文列表 */
- .uni-media-list {
- padding: 22upx 30upx;
- box-sizing: border-box;
- display: flex;
- width: 100%;
- flex-direction: row;
- }
- .uni-navigate-right.uni-media-list {
- padding-right: 74upx;
- }
- .uni-pull-right {
- flex-direction: row-reverse;
- }
- .uni-pull-right>.uni-media-list-logo {
- margin-right: 0upx;
- margin-left: 20upx;
- }
- .uni-media-list-logo {
- height: 84upx;
- width: 84upx;
- margin-right: 20upx;
- }
- .uni-media-list-logo image {
- height: 100%;
- width: 100%;
- }
- .uni-media-list-body {
- height: 84upx;
- display: flex;
- flex: 1;
- flex-direction: column;
- justify-content: space-between;
- align-items: flex-start;
- overflow: hidden;
- }
- .uni-media-list-text-top {
- width: 100%;
- line-height: 36upx;
- font-size: 30upx;
- }
- .uni-media-list-text-bottom {
- width: 100%;
- line-height: 30upx;
- font-size: 26upx;
- color: #8f8f94;
- }
- /* 九宫格 */
- .uni-grid-9 {
- background: #f2f2f2;
- width: 750upx;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- border-top: 2upx solid #eee;
- }
- .uni-grid-9-item {
- width: 250upx;
- height: 200upx;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- border-bottom: 2upx solid;
- border-right: 2upx solid;
- border-color: #eee;
- box-sizing: border-box;
- }
- .no-border-right {
- border-right: none;
- }
- .uni-grid-9-image {
- width: 100upx;
- height: 100upx;
- }
- .uni-grid-9-text {
- width: 250upx;
- line-height: 4upx;
- height: 40upx;
- text-align: center;
- font-size: 30upx;
- }
- .uni-grid-9-item-hover {
- background: rgba(0, 0, 0, 0.1);
- }
- /* 上传 */
- .uni-uploader {
- flex: 1;
- flex-direction: column;
- }
- .uni-uploader-head {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- }
- .uni-uploader-info {
- color: #B2B2B2;
- }
- .uni-uploader-body {
- margin-top: 16upx;
- }
- .uni-uploader__files {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- }
- .uni-uploader__file {
- margin: 10upx;
- width: 210upx;
- height: 210upx;
- }
- .uni-uploader__img {
- display: block;
- width: 210upx;
- height: 210upx;
- }
- .uni-uploader__input-box {
- position: relative;
- margin:10upx;
- width: 208upx;
- height: 208upx;
- border: 2upx solid #D9D9D9;
- }
- .uni-uploader__input-box:before,
- .uni-uploader__input-box:after {
- content: " ";
- position: absolute;
- top: 50%;
- left: 50%;
- -webkit-transform: translate(-50%, -50%);
- transform: translate(-50%, -50%);
- background-color: #D9D9D9;
- }
- .uni-uploader__input-box:before {
- width: 4upx;
- height: 79upx;
- }
- .uni-uploader__input-box:after {
- width: 79upx;
- height: 4upx;
- }
- .uni-uploader__input-box:active {
- border-color: #999999;
- }
- .uni-uploader__input-box:active:before,
- .uni-uploader__input-box:active:after {
- background-color: #999999;
- }
- .uni-uploader__input {
- position: absolute;
- z-index: 1;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- opacity: 0;
- }
- /*问题反馈*/
- .feedback-title {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- padding: 20upx;
- color: #8f8f94;
- font-size: 28upx;
- }
- .feedback-star-view.feedback-title {
- justify-content: flex-start;
- margin: 0;
- }
- .feedback-quick {
- position: relative;
- padding-right: 40upx;
- }
- .feedback-quick:after {
- font-family: uniicons;
- font-size: 40upx;
- content: '\e581';
- position: absolute;
- right: 0;
- top: 50%;
- color: #bbb;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
- }
- .feedback-body {
- background: #fff;
- }
- .feedback-textare {
- height: 200upx;
- font-size: 34upx;
- line-height: 50upx;
- width: 100%;
- box-sizing: border-box;
- padding: 20upx 30upx 0;
- }
- .feedback-input {
- font-size: 34upx;
- height: 50upx;
- min-height: 50upx;
- padding: 15upx 20upx;
- line-height: 50upx;
- }
- .feedback-uploader {
- padding: 22upx 20upx;
- }
- .feedback-star {
- font-family: uniicons;
- font-size: 40upx;
- margin-left: 6upx;
- }
- .feedback-star-view {
- margin-left: 20upx;
- }
- .feedback-star:after {
- content: '\e408';
- }
- .feedback-star.active {
- color: #FFB400;
- }
- .feedback-star.active:after {
- content: '\e438';
- }
- .feedback-submit {
- background: #007AFF;
- color: #FFFFFF;
- margin: 20upx;
- }
- /* input group */
- .uni-input-group {
- position: relative;
- padding: 0;
- border: 0;
- background-color: #fff;
- }
- .uni-input-group:before {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- height: 2upx;
- content: '';
- transform: scaleY(.5);
- background-color: #c8c7cc;
- }
- .uni-input-group:after {
- position: absolute;
- right: 0;
- bottom: 0;
- left: 0;
- height: 2upx;
- content: '';
- transform: scaleY(.5);
- background-color: #c8c7cc;
- }
- .uni-input-row {
- position: relative;
- display: flex;
- flex-direction: row;
- font-size:28upx;
- padding: 22upx 30upx;
- justify-content: space-between;
- }
- .uni-input-group .uni-input-row:after {
- position: absolute;
- right: 0;
- bottom: 0;
- left: 30upx;
- height: 2upx;
- content: '';
- transform: scaleY(.5);
- background-color: #c8c7cc;
- }
- .uni-input-row label {
- line-height: 70upx;
- }
- /* textarea */
- .uni-textarea{
- width:100%;
- background:#FFF;
- }
- .uni-textarea textarea{
- width:96%;
- padding:18upx 2%;
- line-height:1.6;
- font-size:28upx;
- height:150upx;
- }
- /* tab bar */
- .uni-tab-bar {
- display: flex;
- flex: 1;
- flex-direction: column;
- overflow: hidden;
- height: 100%;
- }
- .uni-tab-bar .list {
- width: 750upx;
- height: 100%;
- }
- .uni-swiper-tab {
- width: 100%;
- white-space: nowrap;
- line-height: 100upx;
- height: 100upx;
- border-bottom: 1px solid #c8c7cc;
- }
- .swiper-tab-list {
- font-size: 30upx;
- width: 150upx;
- display: inline-block;
- text-align: center;
- color: #555;
- }
- .uni-tab-bar .active {
- color: #007AFF;
- }
- .uni-tab-bar .swiper-box {
- flex: 1;
- width: 100%;
- height: calc(100% - 100upx);
- }
- .uni-tab-bar-loading{
- padding:20upx 0;
- }
- /* steps */
- .uni-steps{padding:20upx 30upx; flex-grow: 1; display:flex; flex-wrap:wrap;}
- .uni-steps view{display:flex; flex-wrap:wrap; float:none;}
- .uni-steps .step{width:31.3%; margin:0 1%; flex-wrap:nowrap;}
- .uni-steps .step-circle{width:50upx; height:50upx; border-radius:50upx; background:#F1F1F3; justify-content:center; line-height:50upx; flex-shrink:0; margin-right:15upx; color:#666; font-size:28upx;}
- .uni-steps .step-content{width:100%; height:22upx; border-bottom:1px solid #F1F2F3;}
- .uni-steps .step-title{line-height:50upx; height:50upx; background:#FFFFFF; width:auto; overflow:hidden; padding-right:8upx;}
- .uni-steps .current .step-circle{background:#00B26A; color:#FFFFFF;}
- .uni-steps .current .step-content{border-color:#00B26A;}
- .uni-steps .current .step-title{color:#00B26A;}
- /* comment */
- .uni-comment{padding:5rpx 0; display: flex; flex-grow:1; flex-direction: column;}
- .uni-comment-list{flex-wrap:nowrap; padding:10rpx 0; margin:10rpx 0; width:100%; display: flex;}
- .uni-comment-face{width:70upx; height:70upx; border-radius:100%; margin-right:20upx; flex-shrink:0; overflow:hidden;}
- .uni-comment-face image{width:100%; border-radius:100%;}
- .uni-comment-body{width:100%;}
- .uni-comment-top{line-height:1.5em; justify-content:space-between;}
- .uni-comment-top text{color:#0A98D5; font-size:24upx;}
- .uni-comment-date{line-height:38upx; flex-direction:row; justify-content:space-between; display:flex !important; flex-grow:1;}
- .uni-comment-date view{color:#666666; font-size:24upx; line-height:38upx;}
- .uni-comment-content{line-height:1.6em; font-size:28upx; padding:8rpx 0;}
- .uni-comment-replay-btn{background:#FFF; font-size:24upx; line-height:28upx; padding:5rpx 20upx; border-radius:30upx; color:#333 !important; margin:0 10upx;}
- /* swiper msg */
- .uni-swiper-msg{width:100%; padding:12rpx 0; flex-wrap:nowrap; display:flex;}
- .uni-swiper-msg-icon{width:50upx; margin-right:20upx;}
- .uni-swiper-msg-icon image{width:100%; flex-shrink:0;}
- .uni-swiper-msg swiper{width:100%; height:50upx;}
- .uni-swiper-msg swiper-item{line-height:50upx;}
- /* product */
- .uni-product-list {
- display: flex;
- width: 100%;
- flex-wrap: wrap;
- flex-direction: row;
- }
- .uni-product {
- padding: 20upx;
- display: flex;
- flex-direction: column;
- }
- .image-view {
- height: 330upx;
- width: 330upx;
- margin:12upx 0;
- }
- .uni-product-image {
- height: 330upx;
- width: 330upx;
- }
- .uni-product-title {
- width: 300upx;
- word-break: break-all;
- display: -webkit-box;
- overflow: hidden;
- line-height:1.5;
- text-overflow: ellipsis;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- }
- .uni-product-price {
- margin-top:10upx;
- font-size: 28upx;
- line-height:1.5;
- position: relative;
- }
- .uni-product-price-original {
- color: #e80080;
- }
- .uni-product-price-favour {
- color: #888888;
- text-decoration: line-through;
- margin-left: 10upx;
- }
- .uni-product-tip {
- position: absolute;
- right: 10upx;
- background-color: #ff3333;
- color: #ffffff;
- padding: 0 10upx;
- border-radius: 5upx;
- }
- /* timeline */
- .uni-timeline {
- margin: 35upx 0;
- display: flex;
- flex-direction: column;
- position: relative;
- }
- .uni-timeline-item {
- display: flex;
- flex-direction: row;
- position: relative;
- padding-bottom: 20upx;
- box-sizing: border-box;
- overflow: hidden;
- }
- .uni-timeline-item .uni-timeline-item-keynode {
- width: 160upx;
- flex-shrink: 0;
- box-sizing: border-box;
- padding-right: 20upx;
- text-align: right;
- line-height: 65upx;
- }
- .uni-timeline-item .uni-timeline-item-divider {
- flex-shrink: 0;
- position: relative;
- width: 30upx;
- height: 30upx;
- top: 15upx;
- border-radius: 50%;
- background-color: #bbb;
- }
- .uni-timeline-item-divider::before,
- .uni-timeline-item-divider::after {
- position: absolute;
- left: 15upx;
- width: 1upx;
- height: 100vh;
- content: '';
- background: inherit;
- }
- .uni-timeline-item-divider::before {
- bottom: 100%;
- }
- .uni-timeline-item-divider::after {
- top: 100%;
- }
- .uni-timeline-last-item .uni-timeline-item-divider:after {
- display: none;
- }
- .uni-timeline-first-item .uni-timeline-item-divider:before {
- display: none;
- }
- .uni-timeline-item .uni-timeline-item-content {
- padding-left: 20upx;
- }
-
- .uni-timeline-last-item .bottom-border::after{
- display: none;
- }
-
- .uni-timeline-item-content .datetime{
- color: #CCCCCC;
- }
-
- /* 自定义节点颜色 */
- .uni-timeline-last-item .uni-timeline-item-divider{
- background-color: #1AAD19;
- }
-
-
- /* uni-icon */
- .uni-icon {
- font-family: uniicons;
- font-size: 24px;
- font-weight: normal;
- font-style: normal;
- line-height: 1;
- display: inline-block;
- text-decoration: none;
- -webkit-font-smoothing: antialiased;
- }
- .uni-icon.uni-active {
- color: #007aff;
- }
- .uni-icon-contact:before {
- content: '\e100';
- }
- .uni-icon-person:before {
- content: '\e101';
- }
- .uni-icon-personadd:before {
- content: '\e102';
- }
- .uni-icon-contact-filled:before {
- content: '\e130';
- }
- .uni-icon-person-filled:before {
- content: '\e131';
- }
- .uni-icon-personadd-filled:before {
- content: '\e132';
- }
- .uni-icon-phone:before {
- content: '\e200';
- }
- .uni-icon-email:before {
- content: '\e201';
- }
- .uni-icon-chatbubble:before {
- content: '\e202';
- }
- .uni-icon-chatboxes:before {
- content: '\e203';
- }
- .uni-icon-phone-filled:before {
- content: '\e230';
- }
- .uni-icon-email-filled:before {
- content: '\e231';
- }
- .uni-icon-chatbubble-filled:before {
- content: '\e232';
- }
- .uni-icon-chatboxes-filled:before {
- content: '\e233';
- }
- .uni-icon-weibo:before {
- content: '\e260';
- }
- .uni-icon-weixin:before {
- content: '\e261';
- }
- .uni-icon-pengyouquan:before {
- content: '\e262';
- }
- .uni-icon-chat:before {
- content: '\e263';
- }
- .uni-icon-qq:before {
- content: '\e264';
- }
- .uni-icon-videocam:before {
- content: '\e300';
- }
- .uni-icon-camera:before {
- content: '\e301';
- }
- .uni-icon-mic:before {
- content: '\e302';
- }
- .uni-icon-location:before {
- content: '\e303';
- }
- .uni-icon-mic-filled:before,
- .uni-icon-speech:before {
- content: '\e332';
- }
- .uni-icon-location-filled:before {
- content: '\e333';
- }
- .uni-icon-micoff:before {
- content: '\e360';
- }
- .uni-icon-image:before {
- content: '\e363';
- }
- .uni-icon-map:before {
- content: '\e364';
- }
- .uni-icon-compose:before {
- content: '\e400';
- }
- .uni-icon-trash:before {
- content: '\e401';
- }
- .uni-icon-upload:before {
- content: '\e402';
- }
- .uni-icon-download:before {
- content: '\e403';
- }
- .uni-icon-close:before {
- content: '\e404';
- }
- .uni-icon-redo:before {
- content: '\e405';
- }
- .uni-icon-undo:before {
- content: '\e406';
- }
- .uni-icon-refresh:before {
- content: '\e407';
- }
- .uni-icon-star:before {
- content: '\e408';
- }
- .uni-icon-plus:before {
- content: '\e409';
- }
- .uni-icon-minus:before {
- content: '\e410';
- }
- .uni-icon-circle:before,
- .uni-icon-checkbox:before {
- content: '\e411';
- }
- .uni-icon-close-filled:before,
- .uni-icon-clear:before {
- content: '\e434';
- }
- .uni-icon-refresh-filled:before {
- content: '\e437';
- }
- .uni-icon-star-filled:before {
- content: '\e438';
- }
- .uni-icon-plus-filled:before {
- content: '\e439';
- }
- .uni-icon-minus-filled:before {
- content: '\e440';
- }
- .uni-icon-circle-filled:before {
- content: '\e441';
- }
- .uni-icon-checkbox-filled:before {
- content: '\e442';
- }
- .uni-icon-closeempty:before {
- content: '\e460';
- }
- .uni-icon-refreshempty:before {
- content: '\e461';
- }
- .uni-icon-reload:before {
- content: '\e462';
- }
- .uni-icon-starhalf:before {
- content: '\e463';
- }
- .uni-icon-spinner:before {
- content: '\e464';
- }
- .uni-icon-spinner-cycle:before {
- content: '\e465';
- }
- .uni-icon-search:before {
- content: '\e466';
- }
- .uni-icon-plusempty:before {
- content: '\e468';
- }
- .uni-icon-forward:before {
- content: '\e470';
- }
- .uni-icon-back:before,
- .uni-icon-left-nav:before {
- content: '\e471';
- }
- .uni-icon-checkmarkempty:before {
- content: '\e472';
- }
- .uni-icon-home:before {
- content: '\e500';
- }
- .uni-icon-navigate:before {
- content: '\e501';
- }
- .uni-icon-gear:before {
- content: '\e502';
- }
- .uni-icon-paperplane:before {
- content: '\e503';
- }
- .uni-icon-info:before {
- content: '\e504';
- }
- .uni-icon-help:before {
- content: '\e505';
- }
- .uni-icon-locked:before {
- content: '\e506';
- }
- .uni-icon-more:before {
- content: '\e507';
- }
- .uni-icon-flag:before {
- content: '\e508';
- }
- .uni-icon-home-filled:before {
- content: '\e530';
- }
- .uni-icon-gear-filled:before {
- content: '\e532';
- }
- .uni-icon-info-filled:before {
- content: '\e534';
- }
- .uni-icon-help-filled:before {
- content: '\e535';
- }
- .uni-icon-more-filled:before {
- content: '\e537';
- }
- .uni-icon-settings:before {
- content: '\e560';
- }
- .uni-icon-list:before {
- content: '\e562';
- }
- .uni-icon-bars:before {
- content: '\e563';
- }
- .uni-icon-loop:before {
- content: '\e565';
- }
- .uni-icon-paperclip:before {
- content: '\e567';
- }
- .uni-icon-eye:before {
- content: '\e568';
- }
- .uni-icon-arrowup:before {
- content: '\e580';
- }
- .uni-icon-arrowdown:before {
- content: '\e581';
- }
- .uni-icon-arrowleft:before {
- content: '\e582';
- }
- .uni-icon-arrowright:before {
- content: '\e583';
- }
- .uni-icon-arrowthinup:before {
- content: '\e584';
- }
- .uni-icon-arrowthindown:before {
- content: '\e585';
- }
- .uni-icon-arrowthinleft:before {
- content: '\e586';
- }
- .uni-icon-arrowthinright:before {
- content: '\e587';
- }
- .uni-icon-pulldown:before {
- content: '\e588';
- }
- .uni-icon-scan:before {
- content: "\e612";
- }
- </style>
|