jiyi.vue 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. <template>
  2. <view class="">
  3. <view class="box">
  4. <view class="nabBar" style="background-image: url('https://huli-app.wenlvti.net/app_static/minnanhun/image/jiyi_zxc.png'); background-size: cover">
  5. <u-navbar title="记忆" bgColor="rgba(255,255,255,0)" :placeholder="true" :leftIconSize="0" titleStyle="font-weight:bold;color:#7a5831"></u-navbar>
  6. </view>
  7. <view class="box_15">
  8. <u-swiper previousMargin="40" nextMargin="40" :autoplay="true" showTitle :height="150" :list="bannerlist" :circular="true" radius="5" bgColor="#ffffff"></u-swiper>
  9. </view>
  10. <view class="box_1">
  11. <view class="box_20">
  12. <view class="block_9">
  13. <button bindtap="onClick" class="button_1">
  14. <text lines="1" class="text_1">城市记忆</text>
  15. </button>
  16. <button bindtap="onClick" class="button_2" @click="cunShiBtn">
  17. <text lines="1" class="text_2">村史馆</text>
  18. </button>
  19. </view>
  20. <view class="block_10">
  21. <button bindtap="onClick" class="button_3">
  22. <text lines="1" class="text_3">区史馆</text>
  23. </button>
  24. <button bindtap="onClick" class="button_5">
  25. <text lines="1" class="text_4">校史馆</text>
  26. </button>
  27. <button bindtap="onClick" class="button_4">
  28. <text lines="1" class="text_5">医史馆</text>
  29. </button>
  30. </view>
  31. <view class="text-wrapper_4">
  32. <text lines="1" class="text_6">经典推荐</text>
  33. <!-- <text lines="1" class="text_7">查看更多》</text> -->
  34. </view>
  35. <!-- 瀑布流 -->
  36. <custom-waterfalls-flow :value="list" style="width: 90%; margin: auto">
  37. <view class="item" style="position: relative" v-for="(item, index) in list" :key="index" slot="slot{{index}}">
  38. <view class="title_pubu">
  39. {{ item.title }}
  40. </view>
  41. <!-- <view class="desc">{{ item.desc }}</view> -->
  42. </view>
  43. </custom-waterfalls-flow>
  44. </view>
  45. </view>
  46. </view>
  47. <mntabBar footerTab="1" :messageCount="0"></mntabBar>
  48. </view>
  49. </template>
  50. <script>
  51. import { mapState } from 'vuex';
  52. let that;
  53. export default {
  54. data() {
  55. return {
  56. bannerlist: [
  57. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt2.png',
  58. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt1.png',
  59. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt3.jpg',
  60. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt4.jpg',
  61. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt5.png'
  62. ],
  63. list: [
  64. {
  65. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy1.png',
  66. title: '传统捏泥人',
  67. desc: '描述描述描述描述描述描述描述描述2'
  68. },
  69. {
  70. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy2.png',
  71. title: '青龙宫',
  72. desc: '描述描述描述描述描述描述描述描述1'
  73. },
  74. {
  75. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy3.png',
  76. title: '火把节',
  77. desc: '11'
  78. },
  79. {
  80. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy9.png',
  81. title: '老物件',
  82. desc: '描述描述描述描述描述描述描述描述2'
  83. },
  84. {
  85. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy4.png',
  86. title: '林后青龙宫',
  87. desc: '描述描述描述描述描述描述描述描述2'
  88. },
  89. {
  90. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy10.png',
  91. title: '书籍',
  92. desc: '描述描述描述描述描述描述描述描述2'
  93. },
  94. {
  95. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy7.png',
  96. title: '建筑',
  97. desc: '描述描述描述描述描述描述描述描述2'
  98. },
  99. {
  100. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy8.png',
  101. title: '老钟表',
  102. desc: '描述描述描述描述描述描述描述描述2'
  103. },
  104. {
  105. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy14.png',
  106. title: '老物件',
  107. desc: '描述描述描述描述描述描述描述描述2'
  108. }
  109. ]
  110. };
  111. },
  112. onLoad(option) {
  113. that = this;
  114. // this.getBannerList();
  115. },
  116. computed: {
  117. ...mapState(['ceShi'])
  118. },
  119. methods: {
  120. cunShiBtn() {
  121. uni.navigateTo({
  122. url: '/index_fenbao/cs_liebiao/cs_liebiao'
  123. });
  124. },
  125. getBannerList() {
  126. this.$api.getBannerList({ block: 'home' }, function (res) {
  127. // console.log(res);
  128. if (res.code > 0) {
  129. that.bannerlist = [];
  130. for (var i = 0; i < res.data.length; i++) {
  131. if (res.data[i].type == 'banner') {
  132. that.bannerlist.push({
  133. title: res.data[i].title,
  134. url: that.$config.baseUrl + res.data[i].image,
  135. page: res.data[i].url
  136. });
  137. }
  138. }
  139. }
  140. });
  141. }
  142. }
  143. };
  144. </script>
  145. <style>
  146. .box {
  147. height: auto;
  148. width: 100%;
  149. /* background-image: url('https://huli-app.wenlvti.net/app_static/wuyuan/static/shouhu/wyj-feiyi3-001.png'); */
  150. /* background-size: 100% 100%; */
  151. background-attachment: fixed;
  152. border-radius: 16px 16px 0 0;
  153. position: relative;
  154. display: flex;
  155. flex-direction: column;
  156. }
  157. .nabBar {
  158. height: 340rpx;
  159. }
  160. .u-swiper.data-v-6b019429 {
  161. background-color: rgba(0, 0, 0, 0) !important;
  162. }
  163. /deep/.column-value.data-v-ddfcbb1c {
  164. border-radius: 25rpx 60rpx 0rpx 30rpx !important;
  165. }
  166. .box_1 {
  167. position: relative;
  168. width: 750rpx;
  169. flex-direction: row;
  170. display: flex;
  171. }
  172. .title_pubu {
  173. width: 100%;
  174. height: 65rpx;
  175. line-height: 65rpx;
  176. background-color: #ca5642;
  177. font-size: 30rpx;
  178. text-align: center;
  179. color: #ffffff;
  180. position: absolute;
  181. bottom: 0;
  182. left: 0;
  183. }
  184. .box_20 {
  185. position: relative;
  186. width: 750rpx;
  187. display: flex;
  188. flex-direction: column;
  189. }
  190. .block_9 {
  191. width: 684rpx;
  192. height: 67rpx;
  193. flex-direction: row;
  194. display: flex;
  195. justify-content: space-between;
  196. margin: auto;
  197. }
  198. .button_1 {
  199. background-color: rgba(22, 69, 89, 1);
  200. border-radius: 33rpx;
  201. height: 67rpx;
  202. display: flex;
  203. flex-direction: column;
  204. width: 330rpx;
  205. position: relative;
  206. }
  207. .text_1 {
  208. color: rgba(255, 255, 255, 1);
  209. font-size: 28rpx;
  210. font-weight: 700;
  211. text-align: center;
  212. line-height: 60rpx;
  213. }
  214. .image_1 {
  215. position: absolute;
  216. left: 0rpx;
  217. top: 0rpx;
  218. width: 330rpx;
  219. height: 67rpx;
  220. }
  221. .button_2 {
  222. background-color: rgba(202, 86, 66, 1);
  223. border-radius: 33rpx;
  224. height: 67rpx;
  225. display: flex;
  226. flex-direction: column;
  227. width: 330rpx;
  228. position: relative;
  229. }
  230. .text_2 {
  231. color: rgba(255, 255, 255, 1);
  232. font-size: 28rpx;
  233. font-weight: 700;
  234. text-align: center;
  235. line-height: 60rpx;
  236. }
  237. .block_10 {
  238. width: 691rpx;
  239. height: 67rpx;
  240. flex-direction: row;
  241. display: flex;
  242. margin: 31rpx 0 0 32rpx;
  243. }
  244. .button_3 {
  245. background: #c3a07b;
  246. border-radius: 33rpx;
  247. height: 67rpx;
  248. display: flex;
  249. flex-direction: column;
  250. width: 212rpx;
  251. position: relative;
  252. }
  253. .button_5 {
  254. background: #5c987b;
  255. border-radius: 33rpx;
  256. height: 67rpx;
  257. display: flex;
  258. flex-direction: column;
  259. width: 212rpx;
  260. position: relative;
  261. }
  262. .text_3 {
  263. color: rgba(255, 255, 255, 1);
  264. font-size: 28rpx;
  265. font-weight: 700;
  266. text-align: center;
  267. line-height: 60rpx;
  268. }
  269. .text-wrapper_1 {
  270. background-color: rgba(197, 186, 165, 1);
  271. border-radius: 33rpx;
  272. height: 67rpx;
  273. margin-left: 24rpx;
  274. display: flex;
  275. flex-direction: column;
  276. width: 212rpx;
  277. }
  278. .text_4 {
  279. color: rgba(255, 255, 255, 1);
  280. font-size: 28rpx;
  281. font-weight: 700;
  282. text-align: center;
  283. line-height: 60rpx;
  284. }
  285. .button_4 {
  286. background-color: rgba(91, 84, 84, 1);
  287. border-radius: 33rpx;
  288. height: 67rpx;
  289. display: flex;
  290. flex-direction: column;
  291. width: 212rpx;
  292. position: relative;
  293. }
  294. .text_5 {
  295. color: rgba(255, 255, 255, 1);
  296. font-size: 28rpx;
  297. font-weight: 700;
  298. text-align: center;
  299. line-height: 60rpx;
  300. }
  301. .text-wrapper_4 {
  302. width: 668rpx;
  303. height: 34rpx;
  304. flex-direction: row;
  305. display: flex;
  306. justify-content: space-between;
  307. margin: 33rpx 0 25rpx 49rpx;
  308. }
  309. .text_6 {
  310. width: 144rpx;
  311. height: 34rpx;
  312. overflow-wrap: break-word;
  313. color: rgba(49, 37, 32, 1);
  314. font-size: 36rpx;
  315. font-family: Adobe Heiti Std R;
  316. font-weight: normal;
  317. text-align: left;
  318. white-space: nowrap;
  319. line-height: 36rpx;
  320. }
  321. .text_7 {
  322. width: 107rpx;
  323. height: 23rpx;
  324. overflow-wrap: break-word;
  325. color: rgba(102, 102, 102, 1);
  326. font-size: 24rpx;
  327. font-family: Adobe Heiti Std R;
  328. font-weight: normal;
  329. text-align: left;
  330. white-space: nowrap;
  331. line-height: 24rpx;
  332. margin-top: 5rpx;
  333. }
  334. .box_15 {
  335. margin-top: -160rpx;
  336. margin-left: 32rpx;
  337. margin-right: 32rpx;
  338. border-radius: 20rpx;
  339. padding: 20rpx;
  340. height: 360rpx;
  341. background-color: #ffe4b0;
  342. display: flex;
  343. margin-bottom: 35rpx;
  344. box-sizing: border-box;
  345. flex-direction: column;
  346. }
  347. </style>