index.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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-eye'></text><text class="icon-num">{{v.num_view_total}}</text>
  13. <text class='grace-icons icon-user'></text><text class="icon-num">{{v.num_buy_total}}</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. text-align: center;
  163. margin-top: 20rpx;
  164. display: flex;
  165. justify-content: flex-end;
  166. align-items: flex-end;
  167. }
  168. .journal .num .ico-dingyue{
  169. margin-right: 9rpx;
  170. }
  171. .journal-list .loading {
  172. margin: 40rpx auto 0;
  173. }
  174. .myinfo {
  175. display: flex;
  176. justify-content: space-between;
  177. align-items: center;
  178. padding: 50rpx 0 50rpx;
  179. }
  180. .uprofile {
  181. display: flex;
  182. align-items: center;
  183. font-size: 26rpx;
  184. }
  185. .uprofile image {
  186. width: 83rpx;
  187. height: 83rpx;
  188. display: block;
  189. border-radius: 50%;
  190. margin-right: 10rpx;
  191. }
  192. .myinfo .contact {
  193. position: relative;
  194. width: 150rpx;
  195. height: 55rpx;
  196. text-align: center;
  197. border: 2rpx solid #000;
  198. border-radius: 55rpx;
  199. font-size: 26rpx;
  200. line-height: 55rpx;
  201. }
  202. .myinfo .contact button {
  203. opacity: 0;
  204. position: absolute;
  205. top: 0;
  206. right: 0;
  207. width: 100%;
  208. height: 100%;
  209. }
  210. .help {
  211. width: 590rpx;
  212. margin: 0 auto;
  213. }
  214. .wxParse-img {
  215. width: 590rpx;
  216. }
  217. .order-list{
  218. width: 650rpx;
  219. margin: 0 auto;
  220. }
  221. .order-list .list{
  222. margin-bottom: 40rpx;
  223. }
  224. .order-item {
  225. position: relative;
  226. border-bottom: solid 1rpx #ccc;
  227. padding: 40rpx 0 0;
  228. }
  229. .order-item .order-info {
  230. display: flex;
  231. justify-content: space-between;
  232. align-items: center;
  233. }
  234. .order-item .order-info view {
  235. display: flex;
  236. align-items: center;
  237. line-height: 24rpx;
  238. font-size: 24rpx;
  239. color: #666;
  240. overflow: hidden;
  241. }
  242. .order-item .order-info view:before {
  243. content: '';
  244. width: 4rpx;
  245. background-color: #d1171a;
  246. height: 22rpx;
  247. margin-right: 18rpx
  248. }
  249. .order-item .order-info navigator {
  250. color: #d1171a;
  251. font-size: 28rpx;
  252. }
  253. .order-item .mag-info {
  254. background-color: #f1f1f1;
  255. margin: 27rpx 0 40rpx;
  256. font-size: 28rpx;
  257. padding: 17rpx 0;
  258. }
  259. .order-item .mag-info text {
  260. display: block;
  261. padding: 15rpx 0 0 17rpx;
  262. }
  263. .order-item .mag-info view{
  264. padding-left: 17rpx;
  265. }
  266. .icon-num {
  267. margin-left:6rpx;
  268. }
  269. </style>