old.vue 6.1 KB

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