moment.vue 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947
  1. <template name="moment">
  2. <view id="moments">
  3. <view class="home-pic" :style="style">
  4. <view class="home-pic-base">
  5. <view class="top-pic">
  6. <image class="header" :src="item.logo" @tap="test"></image>
  7. </view>
  8. <view class="top-name">{{item.name}}</view>
  9. </view>
  10. </view>
  11. <view style="padding-bottom: 140rpx;">
  12. <view class="moments__post" v-for="(v,k) in fetch.info" :key="k" :id="'post-'+k">
  13. <view class="post-left">
  14. <image class="post_header" :src="v.user.avatar"></image>
  15. </view>
  16. <view class="post_right">
  17. <text class="post-username">{{v.user.username}}</text>
  18. <view class="paragraph">{{v.content}}</view>
  19. <!-- 相册 -->
  20. <view class="thumbnails" v-if="v.pic.length > 0 && v.pic[0]">
  21. <view :class="v.pic.length === 1?'my-gallery':'thumbnail'" v-for="(v1, k1) in v.pic" :key="k1">
  22. <image class="gallery_img" lazy-load mode="aspectFill" :src="v1" :data-src="v1" @tap="Dever.viewPic(v.pic, v1)"></image>
  23. </view>
  24. </view>
  25. <!-- 资料条 -->
  26. <view class="toolbar">
  27. <view class="timestamp">{{v.cdate_string}}</view>
  28. <view class="like" @tap="like(k)">
  29. <image src="@/static/moment/islike.png" style="width: 30px;"></image>
  30. </view>
  31. <view class="comment" @tap="updateComment(v.id)">
  32. <image src="@/static/moment/comment.png" style="width: 30px;"></image>
  33. </view>
  34. </view>
  35. <!-- 赞/评论区 -->
  36. <view class="post-footer">
  37. <view class="footer_content">
  38. <image class="liked" src="@/static/moment/liked.png"></image>
  39. <!--<text class="nickname" v-for="(user,index_like) in post.like" :key="index_like">{{user.username}}</text>-->
  40. </view>
  41. <view v-if="v.child.length" class="footer_content" v-for="(v2, k2) in v.child" :key="k2" @tap="reply(k,k2)">
  42. <text class="comment-nickname">{{v2.user.username}}: </text>
  43. <text class="comment-content">{{v2.content}}</text>
  44. </view>
  45. <view class="text-grey flex solid-bottom padding justify-center more" @click="getMore" v-if="v.child_total > 1" style="padding:8rpx;">{{v.more}}</view>
  46. </view>
  47. </view>
  48. <!-- 结束 post -->
  49. </view>
  50. </view>
  51. <view class="foot" >
  52. </view>
  53. <view class="uni-loadmore" v-if="showLoadMore">{{loadMoreText}}</view>
  54. <y-Fab :bottom="20" :right="140" @click="publish" bgColor="#0fa5e5" text="发布"></y-Fab>
  55. <block v-if="index == -1">
  56. <y-Fab :bottom="20" :right="20" @click="back" text="返回"></y-Fab>
  57. </block>
  58. <view v-if="showComment">
  59. <dever-publish :title="title" :is_upload="is_upload" @hideModal="hideModal" @getRefresh="getRefresh" :type="publish_type" :type_id="publish_type_id" :api="api" :to_id="to_id" :to_uid="to_uid"></dever-publish>
  60. </view>
  61. </view>
  62. </template>
  63. <script>
  64. import postData from '@/lib/moment/index.post.data.js';//朋友圈数据data
  65. import deverPublish from '@/lib/dever/components/publish.vue';
  66. export default {
  67. name: "moment",
  68. props: {
  69. control : {
  70. type : Object,
  71. value : null
  72. },
  73. item : {
  74. type : Object,
  75. value : null
  76. },
  77. index : 0
  78. },
  79. components: {
  80. deverPublish
  81. },
  82. data() {
  83. return {
  84. user_id: 4,
  85. username: 'Liuxy',
  86. data_index: '',
  87. comment_index: '',
  88. input_placeholder: '评论', //占位内容
  89. focus: false, //是否自动聚焦输入框
  90. is_reply: false, //回复还是评论
  91. showInput: false, //评论输入框
  92. screenHeight: '', //屏幕高度(系统)
  93. platform: '',
  94. windowHeight: '' ,//可用窗口高度(不计入软键盘)
  95. loadMoreText: "加载中...",
  96. showLoadMore: false,
  97. fetch : {
  98. 'info' : [],
  99. },
  100. style : '',
  101. title : '发布新动态',
  102. api : 'app/community/?l=api.addMoment',
  103. type : 3,
  104. type_id : 0,
  105. publish_type : 3,
  106. publish_type_id : 0,
  107. type_id : 0,
  108. to_id : 0,
  109. to_uid : 0,
  110. is_upload : true,
  111. showComment : false,
  112. more : '',
  113. }
  114. },
  115. mounted() {
  116. this.type_id = this.item.id;
  117. this.style = 'background:url("'+this.item.pic+'");background-size: contain;';
  118. uni.getSystemInfo({ //获取设备信息
  119. success: (res) => {
  120. this.screenHeight = res.screenHeight;
  121. this.platform = res.platform;
  122. }
  123. });
  124. uni.onWindowResize((res) => { //监听窗口尺寸变化,窗口尺寸不包括底部导航栏
  125. if(this.platform === 'ios'){
  126. this.windowHeight = res.size.windowHeight;
  127. this.adjust();
  128. }else{
  129. if (this.screenHeight - res.size.windowHeight > 60 && this.windowHeight <= res.size.windowHeight) {
  130. this.windowHeight = res.size.windowHeight;
  131. this.adjust();
  132. }
  133. }
  134. });
  135. this.getData(1);
  136. },
  137. onHide() {
  138. uni.offWindowResize(); //取消监听窗口尺寸变化
  139. },
  140. onUnload() {
  141. this.max = 0,
  142. this.data = [],
  143. this.loadMoreText = "加载更多",
  144. this.showLoadMore = false;
  145. },
  146. onReachBottom() { //监听上拉触底事件
  147. console.log('onReachBottom');
  148. this.showLoadMore = true;
  149. setTimeout(() => {
  150. //获取数据
  151. if (this.posts.length < 20){//测试数据
  152. this.posts = this.posts.concat(this.posts);
  153. }else{
  154. this.loadMoreText = "暂无更多";
  155. }
  156. }, 1000);
  157. },
  158. onPullDownRefresh() { //监听下拉刷新动作
  159. console.log('onPullDownRefresh');
  160. // 这里获取数据
  161. setTimeout(function() {
  162. //初始化数据
  163. uni.stopPullDownRefresh(); //停止下拉刷新
  164. }, 1000);
  165. },
  166. onNavigationBarButtonTap(e) {//监听标题栏点击事件
  167. if (e.index == 0) {
  168. this.navigateTo('../publish/publish')
  169. }
  170. },
  171. computed:{
  172. },
  173. methods: {
  174. getData : function(page) {
  175. this.Dever.page([page, 'info'], this, 'app/community/?l=api.moment', {type:this.type,type_id:this.type_id});
  176. },
  177. showModal : function() {
  178. this.showComment = true;
  179. },
  180. hideModal : function() {
  181. this.showComment = false;
  182. },
  183. getRefresh : function(cate_id, type, type_id, content) {
  184. this.getData(1);
  185. this.hideModal();
  186. },
  187. getMore : function(page, push) {
  188. var self = this;
  189. if (page && typeof(page) != 'object') {
  190. self.page = page;
  191. }
  192. if (self.page > 1 && self.more == '收起') {
  193. // 收起
  194. self.item.child = self.child;
  195. self.more = '展开'+(self.item.child_total-1)+'条回复';
  196. self.page = 1;
  197. return;
  198. }
  199. var send = {cate_id:self.cate_id, type:self.type, type_id:self.item.id, pg:self.page, noconcat:true};
  200. send.code = self.Dever.config.code;
  201. send.info_id = self.id;
  202. this.Dever.get(this, 'app/community/?l=api.moment', send, function(t) {
  203. if (self.page == 1) {
  204. self.item.child = self.child;
  205. }
  206. if (t.info && t.info.length > 0) {
  207. self.item.child = self.item.child.concat(t.info);
  208. self.page = self.page + 1;
  209. }
  210. if (self.Dever.pageData.status == 0) {
  211. self.more = '收起';
  212. } else {
  213. self.more = '展开更多回复';
  214. }
  215. self.hideModal();
  216. });
  217. },
  218. publish : function() {
  219. this.publish_type = 3;
  220. this.publish_type_id = this.item.id;
  221. this.to_id = 0;
  222. this.to_uid = 0;
  223. this.is_upload = true;
  224. this.showModal();
  225. },
  226. updateComment : function (type_id, to_id, to_uid) {
  227. this.publish_type = 30;
  228. this.publish_type_id = type_id;
  229. if (to_id) {
  230. this.to_id = to_id;
  231. } else {
  232. this.to_id = 0;
  233. }
  234. if (to_uid) {
  235. this.to_uid = to_uid;
  236. } else {
  237. this.to_uid = 0;
  238. }
  239. this.is_upload = false;
  240. this.showModal();
  241. },
  242. }
  243. }
  244. </script>
  245. <style scoped>
  246. .liked{
  247. /* display: inline-block; */
  248. position: relative;
  249. margin-right: 10upx;
  250. width: 34upx;
  251. height: 34upx;
  252. }
  253. .post-username{
  254. font-size:32upx;
  255. font-weight: 600;
  256. color: #36648B;
  257. }
  258. .gallery_img {
  259. width: 100%;
  260. height: 100%
  261. }
  262. .header {
  263. width: 100%;
  264. height: 100%;
  265. z-index: 10;
  266. border-radius: 40upx;
  267. }
  268. .publish {
  269. position: absolute;
  270. top: 20upx;
  271. right: 20upx;
  272. /* z-index: 9999; */
  273. }
  274. .post_header {
  275. width: 90upx !important;
  276. height: 90upx !important;
  277. border-radius: 10upx;
  278. margin-top: 8upx;
  279. }
  280. #moments {
  281. background: #fff;
  282. }
  283. #moments .home-pic {
  284. width: 100%;
  285. /* margin-top: -150upx; */
  286. position: relative;
  287. height: 500upx;
  288. z-index: 5;
  289. background-size: cover;
  290. margin-bottom: 50upx
  291. }
  292. #moments .home-pic-base {
  293. position: absolute;
  294. /*left: -60upx;*/
  295. bottom: -40upx;
  296. width: 100%;
  297. height: 160upx;
  298. padding: 0 30upx;
  299. }
  300. #moments .home-pic-base .top-pic {
  301. width: 360upx;
  302. height: 360upx;
  303. border-radius: 40upx;
  304. -webkit-transform: scale(0.5);
  305. -ms-transform: scale(0.5);
  306. transform: scale(0.5);
  307. -webkit-transform-origin: 100% 0%;
  308. -ms-transform-origin: 100% 0%;
  309. transform-origin: 100% 0%;
  310. background-color: #ffffff;
  311. float: right
  312. }
  313. #moments .home-pic-base .top-name {
  314. position: absolute;
  315. /* left: 20px; */
  316. right: 240upx;
  317. top: 30upx;
  318. font-size: 32upx;
  319. font-weight: 600;
  320. text-align: right;
  321. color: #ffffff;
  322. overflow: hidden
  323. }
  324. #moments .moments__post {
  325. background: #fff;
  326. display: block;
  327. border-bottom: 1px solid #f2eeee;
  328. padding: 30upx 20upx;
  329. position: relative;
  330. display: -webkit-box;
  331. display: -webkit-flex;
  332. display: flex;
  333. }
  334. #moments .moments__post::before {
  335. content: none
  336. }
  337. #moments .moments__post .post_right {
  338. font-size: 32upx;
  339. display: table-cell;
  340. padding-left: 20upx;
  341. width: 100%;
  342. }
  343. /* #moments .moments__post .post_right .paragraphExtender {
  344. margin: 5px auto;
  345. display: -webkit-box;
  346. display: -webkit-flex;
  347. display: -ms-flexbox;
  348. display: flex
  349. } */
  350. #moments .moments__post .title {
  351. color: #094dcc
  352. }
  353. #moments .moments__post .thumbnails {
  354. width: 100%;
  355. display: flex;
  356. flex-wrap: wrap;
  357. /* display: -webkit-box;
  358. display: -webkit-flex;
  359. display: -ms-flexbox; */
  360. /* -webkit-flex-wrap: wrap;
  361. -ms-flex-wrap: wrap; */
  362. }
  363. #moments .moments__post .thumbnails .thumbnail {
  364. width: 30%;
  365. height: 180upx;
  366. margin: 4upx;
  367. background: #757575;
  368. overflow: hidden;
  369. }
  370. .my-gallery{
  371. width: 250upx;
  372. height: 400upx;
  373. margin: 4upx;
  374. background: #757575;
  375. overflow: hidden
  376. }
  377. #moments .moments__post .toolbar {
  378. position: relative;
  379. top: 10upx;
  380. display: -webkit-box;
  381. display: -webkit-flex;
  382. display: -ms-flexbox;
  383. display: flex;
  384. -webkit-box-align: center;
  385. -webkit-align-items: center;
  386. -ms-flex-align: center;
  387. align-items: center
  388. }
  389. #moments .moments__post .toolbar .timestamp {
  390. color: #757575;
  391. font-size: 22upx;
  392. }
  393. #moments .moments__post .like {
  394. width: auto;
  395. height: auto;
  396. position: absolute;
  397. right: 60upx;
  398. display: flex;
  399. align-items: center;
  400. }
  401. #moments .moments__post .comment {
  402. width: auto;
  403. height: auto;
  404. position: absolute;
  405. right: 0upx;
  406. display: flex;
  407. align-items: center;
  408. }
  409. #moments .moments__post .toolbar image{
  410. padding-left: 20upx;
  411. width: 40upx;
  412. height: 40upx;
  413. }
  414. .post-footer{
  415. margin-top: 30upx;
  416. background-color: #f3f3f5;
  417. width: 100%;
  418. }
  419. #moments .moments__post .footer_content {
  420. padding-left: 10upx;
  421. position: relative;
  422. display: -webkit-box;
  423. display: -webkit-flex;
  424. display: -ms-flexbox;
  425. display: flex;
  426. -webkit-box-align: center;
  427. -webkit-align-items: center;
  428. -ms-flex-align: center;
  429. align-items: center;
  430. -webkit-flex-wrap: wrap;
  431. -ms-flex-wrap: wrap;
  432. flex-wrap: wrap
  433. }
  434. #moments .moments__post .footer_content .nickname {
  435. color: #36648B;
  436. font-size: 24upx
  437. }
  438. #moments .moments__post .footer_content .comment-nickname {
  439. color: #36648B;
  440. font-size: 24upx
  441. }
  442. #moments .moments__post .footer_content .comment-content {
  443. color: #000000;
  444. font-size: 24upx
  445. }
  446. .foot {
  447. position: fixed;
  448. width: 100%;
  449. height: 90upx;
  450. min-height: 90upx;
  451. left: 0upx;
  452. bottom: 0upx;
  453. overflow: hidden;
  454. }
  455. @font-face {
  456. font-family: uniicons;
  457. font-weight: normal;
  458. font-style: normal;
  459. src: url('https://img-cdn-qiniu.dcloud.net.cn/fonts/uni.ttf') format('truetype');
  460. }
  461. /*通用 */
  462. view{
  463. font-size:28upx;
  464. line-height:1.8;
  465. }
  466. progress, checkbox-group{
  467. width: 100%;
  468. }
  469. form {
  470. width: 100%;
  471. }
  472. .uni-flex {
  473. display: flex;
  474. flex-direction: row;
  475. }
  476. .uni-flex-item {
  477. flex: 1;
  478. }
  479. .uni-row {
  480. flex-direction: row;
  481. }
  482. .uni-column {
  483. flex-direction: column;
  484. }
  485. .uni-link{
  486. color:#576B95;
  487. font-size:26upx;
  488. }
  489. .uni-center{
  490. text-align:center;
  491. }
  492. .uni-inline-item{
  493. display: flex;
  494. flex-direction: row;
  495. align-items:center;
  496. }
  497. .uni-inline-item text{
  498. margin-right: 20upx;
  499. }
  500. .uni-inline-item text:last-child{
  501. margin-right: 0upx;
  502. margin-left: 20upx;
  503. }
  504. /* page */
  505. .uni-page-head{
  506. padding:35upx;
  507. text-align: center;
  508. }
  509. .uni-page-head-title {
  510. display: inline-block;
  511. padding: 0 40upx;
  512. font-size: 30upx;
  513. height: 88upx;
  514. line-height: 88upx;
  515. color: #BEBEBE;
  516. box-sizing: border-box;
  517. border-bottom: 2upx solid #D8D8D8;
  518. }
  519. .uni-page-body {
  520. width: 100%;
  521. flex-grow: 1;
  522. overflow-x: hidden;
  523. }
  524. .uni-padding-wrap{
  525. width:690upx;
  526. padding:0 30upx;
  527. }
  528. .uni-word {
  529. text-align: center;
  530. padding:200upx 100upx;
  531. }
  532. .uni-title {
  533. font-size:30upx;
  534. font-weight:500;
  535. padding:20upx 0;
  536. line-height:1.5;
  537. }
  538. .uni-text{
  539. font-size:28upx;
  540. }
  541. .uni-title text{
  542. font-size:24upx;
  543. color:#888;
  544. }
  545. .uni-text-gray{
  546. color: #ccc;
  547. }
  548. .uni-text-small {
  549. font-size:24upx;
  550. }
  551. .uni-common-mb{
  552. margin-bottom:30upx;
  553. }
  554. .uni-common-pb{
  555. padding-bottom:30upx;
  556. }
  557. .uni-common-pl{
  558. padding-left:30upx;
  559. }
  560. .uni-common-mt{
  561. margin-top:30upx;
  562. }
  563. /* 背景色 */
  564. .uni-bg-red{
  565. background:#F76260; color:#FFF;
  566. }
  567. .uni-bg-green{
  568. background:#09BB07; color:#FFF;
  569. }
  570. .uni-bg-blue{
  571. background:#007AFF; color:#FFF;
  572. }
  573. /* 标题 */
  574. .uni-h1 {font-size: 80upx; font-weight:700;}
  575. .uni-h2 {font-size: 60upx; font-weight:700;}
  576. .uni-h3 {font-size: 48upx; font-weight:700;}
  577. .uni-h4 {font-size: 36upx; font-weight:700;}
  578. .uni-h5 {font-size: 28upx; color: #8f8f94;}
  579. .uni-h6 {font-size: 24upx; color: #8f8f94;}
  580. .uni-bold{font-weight:bold;}
  581. /* 文本溢出隐藏 */
  582. .uni-ellipsis {overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
  583. /* 竖向百分百按钮 */
  584. .uni-btn-v{
  585. padding:10upx 0;
  586. }
  587. .uni-btn-v button{margin:20upx 0;}
  588. /* 表单 */
  589. .uni-form-item{
  590. display:flex;
  591. width:100%;
  592. padding:10upx 0;
  593. }
  594. .uni-form-item .title{
  595. padding:10upx 25upx;
  596. }
  597. .uni-label {
  598. width: 210upx;
  599. word-wrap: break-word;
  600. word-break: break-all;
  601. text-indent:20upx;
  602. }
  603. .uni-input {
  604. height: 50upx;
  605. padding: 15upx 25upx;
  606. line-height:50upx;
  607. font-size:28upx;
  608. background:#FFF;
  609. flex: 1;
  610. }
  611. radio-group, checkbox-group{
  612. width:100%;
  613. }
  614. radio-group label, checkbox-group label{
  615. padding-right:20upx;
  616. }
  617. .uni-form-item .with-fun{
  618. display:flex;
  619. flex-wrap:nowrap;
  620. background:#FFFFFF;
  621. }
  622. .uni-form-item .with-fun .uni-icon{
  623. width:40px;
  624. height:80upx;
  625. line-height:80upx;
  626. flex-shrink:0;
  627. }
  628. /* loadmore */
  629. .uni-loadmore{
  630. height:80upx;
  631. line-height:80upx;
  632. text-align:center;
  633. padding-bottom:30upx;
  634. }
  635. /*数字角标*/
  636. .uni-badge,
  637. .uni-badge-default {
  638. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  639. font-size: 12px;
  640. line-height: 1;
  641. display: inline-block;
  642. padding: 3px 6px;
  643. color: #333;
  644. border-radius: 100px;
  645. background-color: rgba(0, 0, 0, .15);
  646. }
  647. .uni-badge.uni-badge-inverted {
  648. padding: 0 5px 0 0;
  649. color: #929292;
  650. background-color: transparent
  651. }
  652. .uni-badge-primary {
  653. color: #fff;
  654. background-color: #007aff
  655. }
  656. .uni-badge-blue.uni-badge-inverted,
  657. .uni-badge-primary.uni-badge-inverted {
  658. color: #007aff;
  659. background-color: transparent
  660. }
  661. .uni-badge-green,
  662. .uni-badge-success {
  663. color: #fff;
  664. background-color: #4cd964;
  665. }
  666. .uni-badge-green.uni-badge-inverted,
  667. .uni-badge-success.uni-badge-inverted {
  668. color: #4cd964;
  669. background-color: transparent
  670. }
  671. .uni-badge-warning,
  672. .uni-badge-yellow {
  673. color: #fff;
  674. background-color: #f0ad4e
  675. }
  676. .uni-badge-warning.uni-badge-inverted,
  677. .uni-badge-yellow.uni-badge-inverted {
  678. color: #f0ad4e;
  679. background-color: transparent
  680. }
  681. .uni-badge-danger,
  682. .uni-badge-red {
  683. color: #fff;
  684. background-color: #dd524d
  685. }
  686. .uni-badge-danger.uni-badge-inverted,
  687. .uni-badge-red.uni-badge-inverted {
  688. color: #dd524d;
  689. background-color: transparent
  690. }
  691. .uni-badge-purple,
  692. .uni-badge-royal {
  693. color: #fff;
  694. background-color: #8a6de9
  695. }
  696. .uni-badge-purple.uni-badge-inverted,
  697. .uni-badge-royal.uni-badge-inverted {
  698. color: #8a6de9;
  699. background-color: transparent
  700. }
  701. /*折叠面板 */
  702. .uni-collapse-content {
  703. height: 0;
  704. width: 100%;
  705. overflow: hidden;
  706. }
  707. .uni-collapse-content.uni-active {
  708. height: auto;
  709. }
  710. /*卡片视图 */
  711. .uni-card {
  712. background: #fff;
  713. border-radius: 8upx;
  714. margin:20upx 0;
  715. position: relative;
  716. box-shadow: 0 2upx 4upx rgba(0, 0, 0, .3);
  717. }
  718. .uni-card-content {
  719. font-size: 30upx;
  720. }
  721. .uni-card-content.image-view{
  722. width: 100%;
  723. margin: 0;
  724. }
  725. .uni-card-content-inner {
  726. position: relative;
  727. padding: 30upx;
  728. }
  729. .uni-card-footer,
  730. .uni-card-header {
  731. position: relative;
  732. display: flex;
  733. min-height: 50upx;
  734. padding: 20upx 30upx;
  735. justify-content: space-between;
  736. align-items: center;
  737. }
  738. .uni-card-header {
  739. font-size: 36upx;
  740. }
  741. .uni-card-footer {
  742. color: #6d6d72;
  743. }
  744. .uni-card-footer:before,
  745. .uni-card-header:after {
  746. position: absolute;
  747. top: 0;
  748. right: 0;
  749. left: 0;
  750. height: 2upx;
  751. content: '';
  752. -webkit-transform: scaleY(.5);
  753. transform: scaleY(.5);
  754. background-color: #c8c7cc;
  755. }
  756. .uni-card-header:after {
  757. top: auto;
  758. bottom: 0;
  759. }
  760. .uni-card-media {
  761. justify-content: flex-start;
  762. }
  763. .uni-card-media-logo {
  764. height: 84upx;
  765. width: 84upx;
  766. margin-right: 20upx;
  767. }
  768. .uni-card-media-body {
  769. height: 84upx;
  770. display: flex;
  771. flex-direction: column;
  772. justify-content: space-between;
  773. align-items: flex-start;
  774. }
  775. .uni-card-media-text-top {
  776. line-height: 36upx;
  777. font-size: 34upx;
  778. }
  779. .uni-card-media-text-bottom {
  780. line-height: 30upx;
  781. font-size: 28upx;
  782. color: #8f8f94;
  783. }
  784. .uni-card-link {
  785. color: #007AFF;
  786. }
  787. /* 列表 */
  788. .uni-list {
  789. background-color: #FFFFFF;
  790. position: relative;
  791. width: 100%;
  792. display: flex;
  793. flex-direction: column;
  794. }
  795. .uni-list:after {
  796. position: absolute;
  797. z-index: 10;
  798. right: 0;
  799. bottom: 0;
  800. left: 0;
  801. height: 1px;
  802. content: '';
  803. -webkit-transform: scaleY(.5);
  804. transform: scaleY(.5);
  805. background-color: #c8c7cc;
  806. }
  807. .uni-list::before {
  808. position: absolute;
  809. z-index: 10;
  810. right: 0;
  811. top: 0;
  812. left: 0;
  813. height: 1px;
  814. content: '';
  815. -webkit-transform: scaleY(.5);
  816. transform: scaleY(.5);
  817. background-color: #c8c7cc;
  818. }
  819. .uni-list-cell {
  820. position: relative;
  821. display: flex;
  822. flex-direction: row;
  823. justify-content: space-between;
  824. align-items: center;
  825. }
  826. .uni-list-cell-hover {
  827. background-color: #eee;
  828. }
  829. .uni-list-cell-pd {
  830. padding: 22upx 30upx;
  831. }
  832. .uni-list-cell-left {
  833. font-size:28upx;
  834. padding: 0 30upx;
  835. }
  836. .uni-list-cell-db,
  837. .uni-list-cell-right {
  838. flex: 1;
  839. }
  840. .uni-list-cell::after {
  841. position: absolute;
  842. z-index: 3;
  843. right: 0;
  844. bottom: 0;
  845. left: 30upx;
  846. height: 1px;
  847. content: '';
  848. -webkit-transform: scaleY(.5);
  849. transform: scaleY(.5);
  850. background-color: #c8c7cc;
  851. }
  852. .uni-list .uni-list-cell:last-child::after {
  853. height: 0upx;
  854. }
  855. .uni-list-cell-last.uni-list-cell::after {
  856. height: 0upx;
  857. }
  858. .uni-list-cell-divider {
  859. position: relative;
  860. display: flex;
  861. color: #999;
  862. background-color: #f7f7f7;
  863. padding:15upx 20upx;
  864. }
  865. .uni-list-cell-divider::before {
  866. position: absolute;
  867. right: 0;
  868. top: 0;
  869. left: 0;
  870. height: 1px;
  871. content: '';
  872. -webkit-transform: scaleY(.5);
  873. transform: scaleY(.5);
  874. background-color: #c8c7cc;
  875. }
  876. .uni-list-cell-divider::after {
  877. position: absolute;
  878. right: 0;
  879. bottom: 0;
  880. left: 0upx;
  881. height: 1px;
  882. content: '';
  883. -webkit-transform: scaleY(.5);
  884. transform: scaleY(.5);
  885. background-color: #c8c7cc;
  886. }
  887. .uni-list-cell-navigate {
  888. font-size:30upx;
  889. padding: 22upx 30upx;
  890. line-height: 48upx;
  891. position: relative;
  892. display: flex;
  893. box-sizing: border-box;
  894. width: 100%;
  895. flex: 1;
  896. justify-content: space-between;
  897. align-items: center;
  898. }
  899. .uni-list-cell-navigate {
  900. padding-right: 36upx;
  901. }
  902. .uni-navigate-badge {
  903. padding-right: 50upx;
  904. }
  905. .uni-list-cell-navigate.uni-navigate-right:after {
  906. font-family: uniicons;
  907. content: '\e583';
  908. position: absolute;
  909. right: 24upx;
  910. top: 50%;
  911. color: #bbb;
  912. -webkit-transform: translateY(-50%);
  913. transform: translateY(-50%);
  914. }
  915. .uni-list-cell-navigate.uni-navigate-bottom:after {
  916. font-family: uniicons;
  917. content: '\e581';
  918. position: absolute;
  919. right: 24upx;
  920. top: 50%;
  921. color: #bbb;
  922. -webkit-transform: translateY(-50%);
  923. transform: translateY(-50%);
  924. }
  925. .uni-list-cell-navigate.uni-navigate-bottom.uni-active::after {
  926. font-family: uniicons;
  927. content: '\e580';
  928. position: absolute;
  929. right: 24upx;
  930. top: 50%;
  931. color: #bbb;
  932. -webkit-transform: translateY(-50%);
  933. transform: translateY(-50%);
  934. }
  935. .uni-collapse.uni-list-cell {
  936. flex-direction: column;
  937. }
  938. .uni-list-cell-navigate.uni-active {
  939. background: #eee;
  940. }
  941. .uni-list.uni-collapse {
  942. box-sizing: border-box;
  943. height: 0;
  944. overflow: hidden;
  945. }
  946. .uni-collapse .uni-list-cell {
  947. padding-left: 20upx;
  948. }
  949. .uni-collapse .uni-list-cell::after {
  950. left: 52upx;
  951. }
  952. .uni-list.uni-active {
  953. height: auto;
  954. }
  955. /* 三行列表 */
  956. .uni-triplex-row {
  957. display: flex;
  958. flex: 1;
  959. width: 100%;
  960. box-sizing: border-box;
  961. flex-direction: row;
  962. padding: 22upx 30upx;
  963. }
  964. .uni-triplex-right,
  965. .uni-triplex-left {
  966. display: flex;
  967. flex-direction: column;
  968. }
  969. .uni-triplex-left {
  970. width: 84%;
  971. }
  972. .uni-triplex-left .uni-title{
  973. padding:8upx 0;
  974. }
  975. .uni-triplex-left .uni-text, .uni-triplex-left .uni-text-small{color:#999999;}
  976. .uni-triplex-right {
  977. width: 16%;
  978. text-align: right;
  979. }
  980. /* 图文列表 */
  981. .uni-media-list {
  982. padding: 22upx 30upx;
  983. box-sizing: border-box;
  984. display: flex;
  985. width: 100%;
  986. flex-direction: row;
  987. }
  988. .uni-navigate-right.uni-media-list {
  989. padding-right: 74upx;
  990. }
  991. .uni-pull-right {
  992. flex-direction: row-reverse;
  993. }
  994. .uni-pull-right>.uni-media-list-logo {
  995. margin-right: 0upx;
  996. margin-left: 20upx;
  997. }
  998. .uni-media-list-logo {
  999. height: 84upx;
  1000. width: 84upx;
  1001. margin-right: 20upx;
  1002. }
  1003. .uni-media-list-logo image {
  1004. height: 100%;
  1005. width: 100%;
  1006. }
  1007. .uni-media-list-body {
  1008. height: 84upx;
  1009. display: flex;
  1010. flex: 1;
  1011. flex-direction: column;
  1012. justify-content: space-between;
  1013. align-items: flex-start;
  1014. overflow: hidden;
  1015. }
  1016. .uni-media-list-text-top {
  1017. width: 100%;
  1018. line-height: 36upx;
  1019. font-size: 30upx;
  1020. }
  1021. .uni-media-list-text-bottom {
  1022. width: 100%;
  1023. line-height: 30upx;
  1024. font-size: 26upx;
  1025. color: #8f8f94;
  1026. }
  1027. /* 九宫格 */
  1028. .uni-grid-9 {
  1029. background: #f2f2f2;
  1030. width: 750upx;
  1031. display: flex;
  1032. flex-direction: row;
  1033. flex-wrap: wrap;
  1034. border-top: 2upx solid #eee;
  1035. }
  1036. .uni-grid-9-item {
  1037. width: 250upx;
  1038. height: 200upx;
  1039. display: flex;
  1040. flex-direction: column;
  1041. align-items: center;
  1042. justify-content: center;
  1043. border-bottom: 2upx solid;
  1044. border-right: 2upx solid;
  1045. border-color: #eee;
  1046. box-sizing: border-box;
  1047. }
  1048. .no-border-right {
  1049. border-right: none;
  1050. }
  1051. .uni-grid-9-image {
  1052. width: 100upx;
  1053. height: 100upx;
  1054. }
  1055. .uni-grid-9-text {
  1056. width: 250upx;
  1057. line-height: 4upx;
  1058. height: 40upx;
  1059. text-align: center;
  1060. font-size: 30upx;
  1061. }
  1062. .uni-grid-9-item-hover {
  1063. background: rgba(0, 0, 0, 0.1);
  1064. }
  1065. /* 上传 */
  1066. .uni-uploader {
  1067. flex: 1;
  1068. flex-direction: column;
  1069. }
  1070. .uni-uploader-head {
  1071. display: flex;
  1072. flex-direction: row;
  1073. justify-content: space-between;
  1074. }
  1075. .uni-uploader-info {
  1076. color: #B2B2B2;
  1077. }
  1078. .uni-uploader-body {
  1079. margin-top: 16upx;
  1080. }
  1081. .uni-uploader__files {
  1082. display: flex;
  1083. flex-direction: row;
  1084. flex-wrap: wrap;
  1085. }
  1086. .uni-uploader__file {
  1087. margin: 10upx;
  1088. width: 210upx;
  1089. height: 210upx;
  1090. }
  1091. .uni-uploader__img {
  1092. display: block;
  1093. width: 210upx;
  1094. height: 210upx;
  1095. }
  1096. .uni-uploader__input-box {
  1097. position: relative;
  1098. margin:10upx;
  1099. width: 208upx;
  1100. height: 208upx;
  1101. border: 2upx solid #D9D9D9;
  1102. }
  1103. .uni-uploader__input-box:before,
  1104. .uni-uploader__input-box:after {
  1105. content: " ";
  1106. position: absolute;
  1107. top: 50%;
  1108. left: 50%;
  1109. -webkit-transform: translate(-50%, -50%);
  1110. transform: translate(-50%, -50%);
  1111. background-color: #D9D9D9;
  1112. }
  1113. .uni-uploader__input-box:before {
  1114. width: 4upx;
  1115. height: 79upx;
  1116. }
  1117. .uni-uploader__input-box:after {
  1118. width: 79upx;
  1119. height: 4upx;
  1120. }
  1121. .uni-uploader__input-box:active {
  1122. border-color: #999999;
  1123. }
  1124. .uni-uploader__input-box:active:before,
  1125. .uni-uploader__input-box:active:after {
  1126. background-color: #999999;
  1127. }
  1128. .uni-uploader__input {
  1129. position: absolute;
  1130. z-index: 1;
  1131. top: 0;
  1132. left: 0;
  1133. width: 100%;
  1134. height: 100%;
  1135. opacity: 0;
  1136. }
  1137. /*问题反馈*/
  1138. .feedback-title {
  1139. display: flex;
  1140. flex-direction: row;
  1141. justify-content: space-between;
  1142. align-items: center;
  1143. padding: 20upx;
  1144. color: #8f8f94;
  1145. font-size: 28upx;
  1146. }
  1147. .feedback-star-view.feedback-title {
  1148. justify-content: flex-start;
  1149. margin: 0;
  1150. }
  1151. .feedback-quick {
  1152. position: relative;
  1153. padding-right: 40upx;
  1154. }
  1155. .feedback-quick:after {
  1156. font-family: uniicons;
  1157. font-size: 40upx;
  1158. content: '\e581';
  1159. position: absolute;
  1160. right: 0;
  1161. top: 50%;
  1162. color: #bbb;
  1163. -webkit-transform: translateY(-50%);
  1164. transform: translateY(-50%);
  1165. }
  1166. .feedback-body {
  1167. background: #fff;
  1168. }
  1169. .feedback-textare {
  1170. height: 200upx;
  1171. font-size: 34upx;
  1172. line-height: 50upx;
  1173. width: 100%;
  1174. box-sizing: border-box;
  1175. padding: 20upx 30upx 0;
  1176. }
  1177. .feedback-input {
  1178. font-size: 34upx;
  1179. height: 50upx;
  1180. min-height: 50upx;
  1181. padding: 15upx 20upx;
  1182. line-height: 50upx;
  1183. }
  1184. .feedback-uploader {
  1185. padding: 22upx 20upx;
  1186. }
  1187. .feedback-star {
  1188. font-family: uniicons;
  1189. font-size: 40upx;
  1190. margin-left: 6upx;
  1191. }
  1192. .feedback-star-view {
  1193. margin-left: 20upx;
  1194. }
  1195. .feedback-star:after {
  1196. content: '\e408';
  1197. }
  1198. .feedback-star.active {
  1199. color: #FFB400;
  1200. }
  1201. .feedback-star.active:after {
  1202. content: '\e438';
  1203. }
  1204. .feedback-submit {
  1205. background: #007AFF;
  1206. color: #FFFFFF;
  1207. margin: 20upx;
  1208. }
  1209. /* input group */
  1210. .uni-input-group {
  1211. position: relative;
  1212. padding: 0;
  1213. border: 0;
  1214. background-color: #fff;
  1215. }
  1216. .uni-input-group:before {
  1217. position: absolute;
  1218. top: 0;
  1219. right: 0;
  1220. left: 0;
  1221. height: 2upx;
  1222. content: '';
  1223. transform: scaleY(.5);
  1224. background-color: #c8c7cc;
  1225. }
  1226. .uni-input-group:after {
  1227. position: absolute;
  1228. right: 0;
  1229. bottom: 0;
  1230. left: 0;
  1231. height: 2upx;
  1232. content: '';
  1233. transform: scaleY(.5);
  1234. background-color: #c8c7cc;
  1235. }
  1236. .uni-input-row {
  1237. position: relative;
  1238. display: flex;
  1239. flex-direction: row;
  1240. font-size:28upx;
  1241. padding: 22upx 30upx;
  1242. justify-content: space-between;
  1243. }
  1244. .uni-input-group .uni-input-row:after {
  1245. position: absolute;
  1246. right: 0;
  1247. bottom: 0;
  1248. left: 30upx;
  1249. height: 2upx;
  1250. content: '';
  1251. transform: scaleY(.5);
  1252. background-color: #c8c7cc;
  1253. }
  1254. .uni-input-row label {
  1255. line-height: 70upx;
  1256. }
  1257. /* textarea */
  1258. .uni-textarea{
  1259. width:100%;
  1260. background:#FFF;
  1261. }
  1262. .uni-textarea textarea{
  1263. width:96%;
  1264. padding:18upx 2%;
  1265. line-height:1.6;
  1266. font-size:28upx;
  1267. height:150upx;
  1268. }
  1269. /* tab bar */
  1270. .uni-tab-bar {
  1271. display: flex;
  1272. flex: 1;
  1273. flex-direction: column;
  1274. overflow: hidden;
  1275. height: 100%;
  1276. }
  1277. .uni-tab-bar .list {
  1278. width: 750upx;
  1279. height: 100%;
  1280. }
  1281. .uni-swiper-tab {
  1282. width: 100%;
  1283. white-space: nowrap;
  1284. line-height: 100upx;
  1285. height: 100upx;
  1286. border-bottom: 1px solid #c8c7cc;
  1287. }
  1288. .swiper-tab-list {
  1289. font-size: 30upx;
  1290. width: 150upx;
  1291. display: inline-block;
  1292. text-align: center;
  1293. color: #555;
  1294. }
  1295. .uni-tab-bar .active {
  1296. color: #007AFF;
  1297. }
  1298. .uni-tab-bar .swiper-box {
  1299. flex: 1;
  1300. width: 100%;
  1301. height: calc(100% - 100upx);
  1302. }
  1303. .uni-tab-bar-loading{
  1304. padding:20upx 0;
  1305. }
  1306. /* steps */
  1307. .uni-steps{padding:20upx 30upx; flex-grow: 1; display:flex; flex-wrap:wrap;}
  1308. .uni-steps view{display:flex; flex-wrap:wrap; float:none;}
  1309. .uni-steps .step{width:31.3%; margin:0 1%; flex-wrap:nowrap;}
  1310. .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;}
  1311. .uni-steps .step-content{width:100%; height:22upx; border-bottom:1px solid #F1F2F3;}
  1312. .uni-steps .step-title{line-height:50upx; height:50upx; background:#FFFFFF; width:auto; overflow:hidden; padding-right:8upx;}
  1313. .uni-steps .current .step-circle{background:#00B26A; color:#FFFFFF;}
  1314. .uni-steps .current .step-content{border-color:#00B26A;}
  1315. .uni-steps .current .step-title{color:#00B26A;}
  1316. /* comment */
  1317. .uni-comment{padding:5rpx 0; display: flex; flex-grow:1; flex-direction: column;}
  1318. .uni-comment-list{flex-wrap:nowrap; padding:10rpx 0; margin:10rpx 0; width:100%; display: flex;}
  1319. .uni-comment-face{width:70upx; height:70upx; border-radius:100%; margin-right:20upx; flex-shrink:0; overflow:hidden;}
  1320. .uni-comment-face image{width:100%; border-radius:100%;}
  1321. .uni-comment-body{width:100%;}
  1322. .uni-comment-top{line-height:1.5em; justify-content:space-between;}
  1323. .uni-comment-top text{color:#0A98D5; font-size:24upx;}
  1324. .uni-comment-date{line-height:38upx; flex-direction:row; justify-content:space-between; display:flex !important; flex-grow:1;}
  1325. .uni-comment-date view{color:#666666; font-size:24upx; line-height:38upx;}
  1326. .uni-comment-content{line-height:1.6em; font-size:28upx; padding:8rpx 0;}
  1327. .uni-comment-replay-btn{background:#FFF; font-size:24upx; line-height:28upx; padding:5rpx 20upx; border-radius:30upx; color:#333 !important; margin:0 10upx;}
  1328. /* swiper msg */
  1329. .uni-swiper-msg{width:100%; padding:12rpx 0; flex-wrap:nowrap; display:flex;}
  1330. .uni-swiper-msg-icon{width:50upx; margin-right:20upx;}
  1331. .uni-swiper-msg-icon image{width:100%; flex-shrink:0;}
  1332. .uni-swiper-msg swiper{width:100%; height:50upx;}
  1333. .uni-swiper-msg swiper-item{line-height:50upx;}
  1334. /* product */
  1335. .uni-product-list {
  1336. display: flex;
  1337. width: 100%;
  1338. flex-wrap: wrap;
  1339. flex-direction: row;
  1340. }
  1341. .uni-product {
  1342. padding: 20upx;
  1343. display: flex;
  1344. flex-direction: column;
  1345. }
  1346. .image-view {
  1347. height: 330upx;
  1348. width: 330upx;
  1349. margin:12upx 0;
  1350. }
  1351. .uni-product-image {
  1352. height: 330upx;
  1353. width: 330upx;
  1354. }
  1355. .uni-product-title {
  1356. width: 300upx;
  1357. word-break: break-all;
  1358. display: -webkit-box;
  1359. overflow: hidden;
  1360. line-height:1.5;
  1361. text-overflow: ellipsis;
  1362. -webkit-box-orient: vertical;
  1363. -webkit-line-clamp: 2;
  1364. }
  1365. .uni-product-price {
  1366. margin-top:10upx;
  1367. font-size: 28upx;
  1368. line-height:1.5;
  1369. position: relative;
  1370. }
  1371. .uni-product-price-original {
  1372. color: #e80080;
  1373. }
  1374. .uni-product-price-favour {
  1375. color: #888888;
  1376. text-decoration: line-through;
  1377. margin-left: 10upx;
  1378. }
  1379. .uni-product-tip {
  1380. position: absolute;
  1381. right: 10upx;
  1382. background-color: #ff3333;
  1383. color: #ffffff;
  1384. padding: 0 10upx;
  1385. border-radius: 5upx;
  1386. }
  1387. /* timeline */
  1388. .uni-timeline {
  1389. margin: 35upx 0;
  1390. display: flex;
  1391. flex-direction: column;
  1392. position: relative;
  1393. }
  1394. .uni-timeline-item {
  1395. display: flex;
  1396. flex-direction: row;
  1397. position: relative;
  1398. padding-bottom: 20upx;
  1399. box-sizing: border-box;
  1400. overflow: hidden;
  1401. }
  1402. .uni-timeline-item .uni-timeline-item-keynode {
  1403. width: 160upx;
  1404. flex-shrink: 0;
  1405. box-sizing: border-box;
  1406. padding-right: 20upx;
  1407. text-align: right;
  1408. line-height: 65upx;
  1409. }
  1410. .uni-timeline-item .uni-timeline-item-divider {
  1411. flex-shrink: 0;
  1412. position: relative;
  1413. width: 30upx;
  1414. height: 30upx;
  1415. top: 15upx;
  1416. border-radius: 50%;
  1417. background-color: #bbb;
  1418. }
  1419. .uni-timeline-item-divider::before,
  1420. .uni-timeline-item-divider::after {
  1421. position: absolute;
  1422. left: 15upx;
  1423. width: 1upx;
  1424. height: 100vh;
  1425. content: '';
  1426. background: inherit;
  1427. }
  1428. .uni-timeline-item-divider::before {
  1429. bottom: 100%;
  1430. }
  1431. .uni-timeline-item-divider::after {
  1432. top: 100%;
  1433. }
  1434. .uni-timeline-last-item .uni-timeline-item-divider:after {
  1435. display: none;
  1436. }
  1437. .uni-timeline-first-item .uni-timeline-item-divider:before {
  1438. display: none;
  1439. }
  1440. .uni-timeline-item .uni-timeline-item-content {
  1441. padding-left: 20upx;
  1442. }
  1443. .uni-timeline-last-item .bottom-border::after{
  1444. display: none;
  1445. }
  1446. .uni-timeline-item-content .datetime{
  1447. color: #CCCCCC;
  1448. }
  1449. /* 自定义节点颜色 */
  1450. .uni-timeline-last-item .uni-timeline-item-divider{
  1451. background-color: #1AAD19;
  1452. }
  1453. /* uni-icon */
  1454. .uni-icon {
  1455. font-family: uniicons;
  1456. font-size: 24px;
  1457. font-weight: normal;
  1458. font-style: normal;
  1459. line-height: 1;
  1460. display: inline-block;
  1461. text-decoration: none;
  1462. -webkit-font-smoothing: antialiased;
  1463. }
  1464. .uni-icon.uni-active {
  1465. color: #007aff;
  1466. }
  1467. .uni-icon-contact:before {
  1468. content: '\e100';
  1469. }
  1470. .uni-icon-person:before {
  1471. content: '\e101';
  1472. }
  1473. .uni-icon-personadd:before {
  1474. content: '\e102';
  1475. }
  1476. .uni-icon-contact-filled:before {
  1477. content: '\e130';
  1478. }
  1479. .uni-icon-person-filled:before {
  1480. content: '\e131';
  1481. }
  1482. .uni-icon-personadd-filled:before {
  1483. content: '\e132';
  1484. }
  1485. .uni-icon-phone:before {
  1486. content: '\e200';
  1487. }
  1488. .uni-icon-email:before {
  1489. content: '\e201';
  1490. }
  1491. .uni-icon-chatbubble:before {
  1492. content: '\e202';
  1493. }
  1494. .uni-icon-chatboxes:before {
  1495. content: '\e203';
  1496. }
  1497. .uni-icon-phone-filled:before {
  1498. content: '\e230';
  1499. }
  1500. .uni-icon-email-filled:before {
  1501. content: '\e231';
  1502. }
  1503. .uni-icon-chatbubble-filled:before {
  1504. content: '\e232';
  1505. }
  1506. .uni-icon-chatboxes-filled:before {
  1507. content: '\e233';
  1508. }
  1509. .uni-icon-weibo:before {
  1510. content: '\e260';
  1511. }
  1512. .uni-icon-weixin:before {
  1513. content: '\e261';
  1514. }
  1515. .uni-icon-pengyouquan:before {
  1516. content: '\e262';
  1517. }
  1518. .uni-icon-chat:before {
  1519. content: '\e263';
  1520. }
  1521. .uni-icon-qq:before {
  1522. content: '\e264';
  1523. }
  1524. .uni-icon-videocam:before {
  1525. content: '\e300';
  1526. }
  1527. .uni-icon-camera:before {
  1528. content: '\e301';
  1529. }
  1530. .uni-icon-mic:before {
  1531. content: '\e302';
  1532. }
  1533. .uni-icon-location:before {
  1534. content: '\e303';
  1535. }
  1536. .uni-icon-mic-filled:before,
  1537. .uni-icon-speech:before {
  1538. content: '\e332';
  1539. }
  1540. .uni-icon-location-filled:before {
  1541. content: '\e333';
  1542. }
  1543. .uni-icon-micoff:before {
  1544. content: '\e360';
  1545. }
  1546. .uni-icon-image:before {
  1547. content: '\e363';
  1548. }
  1549. .uni-icon-map:before {
  1550. content: '\e364';
  1551. }
  1552. .uni-icon-compose:before {
  1553. content: '\e400';
  1554. }
  1555. .uni-icon-trash:before {
  1556. content: '\e401';
  1557. }
  1558. .uni-icon-upload:before {
  1559. content: '\e402';
  1560. }
  1561. .uni-icon-download:before {
  1562. content: '\e403';
  1563. }
  1564. .uni-icon-close:before {
  1565. content: '\e404';
  1566. }
  1567. .uni-icon-redo:before {
  1568. content: '\e405';
  1569. }
  1570. .uni-icon-undo:before {
  1571. content: '\e406';
  1572. }
  1573. .uni-icon-refresh:before {
  1574. content: '\e407';
  1575. }
  1576. .uni-icon-star:before {
  1577. content: '\e408';
  1578. }
  1579. .uni-icon-plus:before {
  1580. content: '\e409';
  1581. }
  1582. .uni-icon-minus:before {
  1583. content: '\e410';
  1584. }
  1585. .uni-icon-circle:before,
  1586. .uni-icon-checkbox:before {
  1587. content: '\e411';
  1588. }
  1589. .uni-icon-close-filled:before,
  1590. .uni-icon-clear:before {
  1591. content: '\e434';
  1592. }
  1593. .uni-icon-refresh-filled:before {
  1594. content: '\e437';
  1595. }
  1596. .uni-icon-star-filled:before {
  1597. content: '\e438';
  1598. }
  1599. .uni-icon-plus-filled:before {
  1600. content: '\e439';
  1601. }
  1602. .uni-icon-minus-filled:before {
  1603. content: '\e440';
  1604. }
  1605. .uni-icon-circle-filled:before {
  1606. content: '\e441';
  1607. }
  1608. .uni-icon-checkbox-filled:before {
  1609. content: '\e442';
  1610. }
  1611. .uni-icon-closeempty:before {
  1612. content: '\e460';
  1613. }
  1614. .uni-icon-refreshempty:before {
  1615. content: '\e461';
  1616. }
  1617. .uni-icon-reload:before {
  1618. content: '\e462';
  1619. }
  1620. .uni-icon-starhalf:before {
  1621. content: '\e463';
  1622. }
  1623. .uni-icon-spinner:before {
  1624. content: '\e464';
  1625. }
  1626. .uni-icon-spinner-cycle:before {
  1627. content: '\e465';
  1628. }
  1629. .uni-icon-search:before {
  1630. content: '\e466';
  1631. }
  1632. .uni-icon-plusempty:before {
  1633. content: '\e468';
  1634. }
  1635. .uni-icon-forward:before {
  1636. content: '\e470';
  1637. }
  1638. .uni-icon-back:before,
  1639. .uni-icon-left-nav:before {
  1640. content: '\e471';
  1641. }
  1642. .uni-icon-checkmarkempty:before {
  1643. content: '\e472';
  1644. }
  1645. .uni-icon-home:before {
  1646. content: '\e500';
  1647. }
  1648. .uni-icon-navigate:before {
  1649. content: '\e501';
  1650. }
  1651. .uni-icon-gear:before {
  1652. content: '\e502';
  1653. }
  1654. .uni-icon-paperplane:before {
  1655. content: '\e503';
  1656. }
  1657. .uni-icon-info:before {
  1658. content: '\e504';
  1659. }
  1660. .uni-icon-help:before {
  1661. content: '\e505';
  1662. }
  1663. .uni-icon-locked:before {
  1664. content: '\e506';
  1665. }
  1666. .uni-icon-more:before {
  1667. content: '\e507';
  1668. }
  1669. .uni-icon-flag:before {
  1670. content: '\e508';
  1671. }
  1672. .uni-icon-home-filled:before {
  1673. content: '\e530';
  1674. }
  1675. .uni-icon-gear-filled:before {
  1676. content: '\e532';
  1677. }
  1678. .uni-icon-info-filled:before {
  1679. content: '\e534';
  1680. }
  1681. .uni-icon-help-filled:before {
  1682. content: '\e535';
  1683. }
  1684. .uni-icon-more-filled:before {
  1685. content: '\e537';
  1686. }
  1687. .uni-icon-settings:before {
  1688. content: '\e560';
  1689. }
  1690. .uni-icon-list:before {
  1691. content: '\e562';
  1692. }
  1693. .uni-icon-bars:before {
  1694. content: '\e563';
  1695. }
  1696. .uni-icon-loop:before {
  1697. content: '\e565';
  1698. }
  1699. .uni-icon-paperclip:before {
  1700. content: '\e567';
  1701. }
  1702. .uni-icon-eye:before {
  1703. content: '\e568';
  1704. }
  1705. .uni-icon-arrowup:before {
  1706. content: '\e580';
  1707. }
  1708. .uni-icon-arrowdown:before {
  1709. content: '\e581';
  1710. }
  1711. .uni-icon-arrowleft:before {
  1712. content: '\e582';
  1713. }
  1714. .uni-icon-arrowright:before {
  1715. content: '\e583';
  1716. }
  1717. .uni-icon-arrowthinup:before {
  1718. content: '\e584';
  1719. }
  1720. .uni-icon-arrowthindown:before {
  1721. content: '\e585';
  1722. }
  1723. .uni-icon-arrowthinleft:before {
  1724. content: '\e586';
  1725. }
  1726. .uni-icon-arrowthinright:before {
  1727. content: '\e587';
  1728. }
  1729. .uni-icon-pulldown:before {
  1730. content: '\e588';
  1731. }
  1732. .uni-icon-scan:before {
  1733. content: "\e612";
  1734. }
  1735. </style>