index.vue 5.1 KB

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