index.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <template>
  2. <gracePage :customHeader="false">
  3. <view slot="gBody" class="grace-body">
  4. <view class='journal-list'>
  5. <view class='list'>
  6. <view class='journal' v-for="(v, k) in fetch.info" :key="k">
  7. <view data-journal="list" @click="location(v.id_code)">
  8. <image mode='aspectFill' class='default cover' :src="v.pic_cover"></image>
  9. <view class='infos'>
  10. <view class='tit'>{{v.name}}</view>
  11. <view class='num'>
  12. <text class='grace-icons icon-user'>100</text>
  13. <text class='grace-icons icon-shoucang'>20</text>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </gracePage>
  22. </template>
  23. <script>
  24. export default{
  25. data() {
  26. return {
  27. fetch : {
  28. info : [],
  29. }
  30. }
  31. },
  32. onLoad() {
  33. this.getData();
  34. },
  35. // 重新加载
  36. onPullDownRefresh: function() {
  37. this.getData();
  38. },
  39. methods:{
  40. getData : function() {
  41. this.Dever.get(this, 'app/collection/?l=api.home', {id:-1});
  42. },
  43. location : function(id) {
  44. this.Dever.location('dream/index?id=' + id);
  45. }
  46. },
  47. }
  48. </script>
  49. <style>
  50. .grace-icons {
  51. margin-left:12rpx;
  52. }
  53. page {
  54. padding-bottom: 100rpx;
  55. }
  56. .push-journal {
  57. position: relative;
  58. width: 750rpx;
  59. margin: 0 auto;
  60. padding: 20rpx 0 43rpx;
  61. overflow: visible;
  62. }
  63. .push-journal view{
  64. overflow: visible;
  65. }
  66. .push-journal .icon-fee, .push-journal .icon-free, .push-journal .icon-vip {
  67. top: 82rpx;
  68. }
  69. .push-journal swiper {
  70. width: 750rpx;
  71. height: 964rpx;
  72. display: block;
  73. margin: 0 auto;
  74. }
  75. .push-journal swiper image{
  76. display: block;
  77. margin: 18rpx auto 0;
  78. width: 545rpx;
  79. height: 768rpx;
  80. transition-property: all;
  81. transition-duration: 0.3s;
  82. }
  83. .push-journal .active image{
  84. width: 570rpx;
  85. height: 804rpx;
  86. margin: 0 auto;
  87. }
  88. .push-journal .push-infos{
  89. box-shadow:0rpx 0 20rpx 0rpx rgba(187, 187, 187, 0.35);
  90. width: 545rpx;
  91. margin: 0 auto;
  92. padding: 20rpx 0;
  93. }
  94. .push-journal .active .push-infos{
  95. width: 570rpx;
  96. }
  97. .push-journal .tit {
  98. font-size: 30rpx;
  99. line-height: 50rpx;
  100. text-align: center;
  101. overflow: hidden;
  102. text-overflow: ellipsis;
  103. white-space: nowrap;
  104. }
  105. .push-journal .num {
  106. font-size: 22rpx;
  107. color: #999;
  108. text-align: center;
  109. margin-top: 20rpx;
  110. display: flex;
  111. justify-content: center;
  112. align-items: center;
  113. }
  114. .push-journal .num .ico-dingyue{
  115. margin-right: 13rpx;
  116. flex-shrink: 0;
  117. }
  118. .spriter {
  119. height: 45rpx;
  120. width: 750rpx;
  121. background: #f2f2f2;
  122. }
  123. .journal-list {
  124. width: 650rpx;
  125. box-sizing: border-box;
  126. margin: 0 auto;
  127. }
  128. .journal-list .list {
  129. display: flex;
  130. justify-content: space-between;
  131. flex-wrap: wrap;
  132. }
  133. .journal {
  134. position: relative;
  135. width: 300rpx;
  136. padding: 50rpx 0 22rpx;
  137. }
  138. .journal .cover {
  139. width: 300rpx;
  140. height: 420rpx;
  141. display: block;
  142. }
  143. .journal .infos{
  144. box-shadow:0rpx 0 20rpx 0rpx rgba(187, 187, 187, 0.35);
  145. width: 300rpx;
  146. margin: 0 auto;
  147. padding: 20rpx 30rpx;
  148. box-sizing: border-box;
  149. }
  150. .journal .tit {
  151. font-size: 28rpx;
  152. line-height: 36rpx;
  153. height: 72rpx;
  154. margin-bottom: 20rpx;
  155. overflow: hidden;
  156. }
  157. .journal .num {
  158. font-size: 20rpx;
  159. color: #999;
  160. margin-top: 15rpx;
  161. display: flex;
  162. align-items: center;
  163. margin-left: -14rpx;
  164. }
  165. .journal .num .ico-dingyue{
  166. margin-right: 9rpx;
  167. }
  168. .journal-list .loading {
  169. margin: 40rpx auto 0;
  170. }
  171. .myinfo {
  172. display: flex;
  173. justify-content: space-between;
  174. align-items: center;
  175. padding: 50rpx 0 50rpx;
  176. }
  177. .uprofile {
  178. display: flex;
  179. align-items: center;
  180. font-size: 26rpx;
  181. }
  182. .uprofile image {
  183. width: 83rpx;
  184. height: 83rpx;
  185. display: block;
  186. border-radius: 50%;
  187. margin-right: 10rpx;
  188. }
  189. .myinfo .contact {
  190. position: relative;
  191. width: 150rpx;
  192. height: 55rpx;
  193. text-align: center;
  194. border: 2rpx solid #000;
  195. border-radius: 55rpx;
  196. font-size: 26rpx;
  197. line-height: 55rpx;
  198. }
  199. .myinfo .contact button {
  200. opacity: 0;
  201. position: absolute;
  202. top: 0;
  203. right: 0;
  204. width: 100%;
  205. height: 100%;
  206. }
  207. .help {
  208. width: 590rpx;
  209. margin: 0 auto;
  210. }
  211. .wxParse-img {
  212. width: 590rpx;
  213. }
  214. .order-list{
  215. width: 650rpx;
  216. margin: 0 auto;
  217. }
  218. .order-list .list{
  219. margin-bottom: 40rpx;
  220. }
  221. .order-item {
  222. position: relative;
  223. border-bottom: solid 1rpx #ccc;
  224. padding: 40rpx 0 0;
  225. }
  226. .order-item .order-info {
  227. display: flex;
  228. justify-content: space-between;
  229. align-items: center;
  230. }
  231. .order-item .order-info view {
  232. display: flex;
  233. align-items: center;
  234. line-height: 24rpx;
  235. font-size: 24rpx;
  236. color: #666;
  237. overflow: hidden;
  238. }
  239. .order-item .order-info view:before {
  240. content: '';
  241. width: 4rpx;
  242. background-color: #d1171a;
  243. height: 22rpx;
  244. margin-right: 18rpx
  245. }
  246. .order-item .order-info navigator {
  247. color: #d1171a;
  248. font-size: 28rpx;
  249. }
  250. .order-item .mag-info {
  251. background-color: #f1f1f1;
  252. margin: 27rpx 0 40rpx;
  253. font-size: 28rpx;
  254. padding: 17rpx 0;
  255. }
  256. .order-item .mag-info text {
  257. display: block;
  258. padding: 15rpx 0 0 17rpx;
  259. }
  260. .order-item .mag-info view{
  261. padding-left: 17rpx;
  262. }
  263. </style>