index.vue 5.2 KB

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