simulationLibrary.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. <template>
  2. <view class="s_container">
  3. <image src="../../assets/test/4.png" class="s_logo" mode=""></image>
  4. <view class="s_content_container">
  5. <view class="s_search" style="">
  6. <view class="" style="position: relative;width: 100%;">
  7. <img src="../../assets/home/search.png" class="s_search_img_input" alt="">
  8. <input type="text" value="" class="s_search_input" style="width: 96%;" placeholder="请输入搜索内容" />
  9. </view>
  10. <button type="warn" size="mini" class="s_btn_search">搜索</button>
  11. </view>
  12. <view class="s_search_condition">
  13. <view class="uni-list">
  14. <view class="uni-list-cell">
  15. <view class="uni-list-cell-db">
  16. <picker @change="bindPickerChange" :value="index" :range="array">
  17. <view class="uni-input">{{array[index]}}</view>
  18. </picker>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="uni-list">
  23. <view class="uni-list-cell">
  24. <view class="uni-list-cell-db">
  25. <picker @change="bindPickerChange" :value="index" :range="array">
  26. <view class="uni-input">{{array[index]}}</view>
  27. </picker>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="uni-list">
  32. <view class="uni-list-cell">
  33. <view class="uni-list-cell-db">
  34. <picker @change="bindPickerChange" :value="index" :range="array">
  35. <view class="uni-input">{{array[index]}}</view>
  36. </picker>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="uni-list">
  41. <view class="uni-list-cell">
  42. <view class="uni-list-cell-db">
  43. <picker @change="bindPickerChange" :value="index" :range="array">
  44. <view class="uni-input">{{array[index]}}</view>
  45. </picker>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="uni-list">
  50. <view class="uni-list-cell">
  51. <view class="uni-list-cell-db">
  52. <picker @change="bindPickerChange" :value="index" :range="array">
  53. <view class="uni-input">{{array[index]}}</view>
  54. </picker>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="uni-list">
  59. <view class="uni-list-cell">
  60. <view class="uni-list-cell-db">
  61. <picker @change="bindPickerChange" :value="index" :range="array">
  62. <view class="uni-input">{{array[index]}}</view>
  63. </picker>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. <view class="s_search_img">
  69. <view class="s_img_left">
  70. <view class="s_top_img">
  71. <view class="s_top_content" v-for="(item,index) in oneImgList" :key="index">
  72. <img :src="item.src" class="s_top_image" mode=""></img>
  73. <view class="s_top_title">
  74. {{item.name}}
  75. </view>
  76. </view>
  77. </view>
  78. <view class="s_img s_img_1">
  79. <view class="s_img_title" v-text="'艺术类'"></view>
  80. <view class="s_img_image">
  81. <view class="s_img_content" v-for="(item,index) in twoImgList" :key="index">
  82. <img :src="item.src" class="s_image" mode="" @click="change1(index)"></img>
  83. <view class="s_operation" v-show="index==act">
  84. <text>{{item.name}}</text>
  85. <view>
  86. <img src="../../assets/home/find.png" alt="">
  87. <img src="../../assets/home/dowload.png" alt="">
  88. </view>
  89. </view>
  90. </view>
  91. <img src="../../assets/home/left.png" class="v-left" alt="">
  92. </view>
  93. </view>
  94. <view class="s_img">
  95. <view class="s_img_title" v-text="'文化类'"></view>
  96. <view class="s_img_image">
  97. <view class="s_img_content" v-for="(item,index) in twoImgList" :key="index">
  98. <img :src="item.src" class="s_image" mode="" @click="change2(index)"></img>
  99. <view class="s_operation" v-show="index==act1">
  100. <text>{{item.name}}</text>
  101. <view>
  102. <img src="../../assets/home/find.png" alt="">
  103. <img src="../../assets/home/dowload.png" alt="">
  104. </view>
  105. </view>
  106. </view>
  107. <img src="../../assets/home/left.png" class="v-left" alt="">
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="s_footer" style="text-align: center;padding: 80rpx;">
  114. </view>
  115. </view>
  116. </template>
  117. <script>
  118. export default {
  119. name: "simulationLibrary",
  120. data() {
  121. return {
  122. act: -1,
  123. act1: -1,
  124. array: ['项目类型'],
  125. index: 0,
  126. url: '/assets/home/homeBG.png',
  127. oneImgList: [{
  128. src: require("../../assets/test/1.png"),
  129. name: "大标题"
  130. }, {
  131. src: require("../../assets/test/2.png"),
  132. name: "大标题"
  133. }, {
  134. src: require("../../assets/test/3.png"),
  135. name: "大标题"
  136. }],
  137. twoImgList: [{
  138. name: "地球",
  139. src: require("../../assets/test/3.png")
  140. },
  141. {
  142. name: "地球",
  143. src: require("../../assets/test/3.png")
  144. },
  145. {
  146. name: "地球",
  147. src: require("../../assets/test/3.png")
  148. },
  149. {
  150. name: "地球",
  151. src: require("../../assets/test/3.png")
  152. },
  153. {
  154. name: "地球",
  155. src: require("../../assets/test/3.png")
  156. },
  157. {
  158. name: "地球",
  159. src: require("../../assets/test/3.png")
  160. },
  161. ]
  162. }
  163. },
  164. created() {
  165. },
  166. methods: {
  167. bindPickerChange(e) {
  168. this.index = e.target.value
  169. },
  170. change1(e) {
  171. if (this.act == e) {
  172. this.act = -1;
  173. } else {
  174. this.act = e;
  175. }
  176. },
  177. change2(e) {
  178. if (this.act1 == e) {
  179. this.act1 = -1;
  180. } else {
  181. this.act1 = e;
  182. }
  183. }
  184. }
  185. }
  186. </script>
  187. <style scoped>
  188. .s_container {
  189. width: 100%;
  190. height: 100%;
  191. background-color: #fff;
  192. }
  193. .s_logo {
  194. width: 100%;
  195. height: 400rpx;
  196. }
  197. .m_btn_download {
  198. height: 80rpx;
  199. line-height: 80rpx;
  200. padding: 0 70rpx;
  201. background: #EA252C;
  202. color: #fff;
  203. font-family: MicrosoftYaHei;
  204. }
  205. .s_search {
  206. display: flex;
  207. justify-content: space-between;
  208. }
  209. .s_search_input {
  210. border: 2rpx solid #DDDDDD;
  211. width: 100%;
  212. height: 80rpx;
  213. line-height: 80rpx;
  214. padding: 0 60rpx;
  215. border-radius: 10rpx;
  216. font-size: 20rpx;
  217. }
  218. .s_content_container {
  219. padding: 40rpx 100rpx;
  220. }
  221. .s_btn_search {
  222. width: 130rpx;
  223. height: 80rpx;
  224. line-height: 80rpx;
  225. margin-left: 20rpx;
  226. }
  227. .s_search_condition {
  228. background-color: #F9F9F9;
  229. margin-top: 40rpx;
  230. height: 100rpx;
  231. width: 100%;
  232. }
  233. .m_select {
  234. width: 300rpx;
  235. line-height: 80rpx;
  236. }
  237. .uni-list-cell-db {
  238. width: 300rpx;
  239. // height: 100rpx;
  240. line-height: 100rpx;
  241. }
  242. .uni-selector-select .uni-picker-item.selected {
  243. color: red;
  244. }
  245. .uni-input {
  246. text-align: center;
  247. }
  248. .s_search_condition {
  249. display: flex;
  250. justify-items: start;
  251. }
  252. .uni-list {
  253. position: relative;
  254. }
  255. .uni-list::after {
  256. content: url(../../assets/learning/icon_ylrz_arrow.png);
  257. position: absolute;
  258. right: 0;
  259. top: 50%;
  260. transform: translateY(-50%);
  261. }
  262. .s_image_text {
  263. margin-left: 20rpx;
  264. }
  265. .s_top_img {
  266. display: flex;
  267. justify-content: space-between;
  268. padding-bottom: 80rpx;
  269. border-bottom: 3rpx solid #D7D7D7;
  270. }
  271. .s_top_content {
  272. margin-top: 40rpx;
  273. width: 30%;
  274. position: relative;
  275. }
  276. .s_top_image {
  277. width: 100%;
  278. }
  279. .s_top_title {
  280. color: #fff;
  281. position: absolute;
  282. bottom: 40rpx;
  283. font-size: 2.0rem;
  284. line-height: 100rpx;
  285. font-weight: 500;
  286. width: 100%;
  287. text-align: left;
  288. margin-left: 50rpx;
  289. }
  290. .s_img_title {
  291. font-size: 36rpx;
  292. line-height: 200rpx;
  293. font-weight: bold;
  294. }
  295. /* .s_top_image {
  296. width: 400rpx;
  297. } */
  298. .s_img_image {
  299. display: flex;
  300. position: relative;
  301. }
  302. .s_image {
  303. margin-right: 40rpx;
  304. /* height: 550rpx; */
  305. }
  306. .s_img_1 {
  307. padding-bottom: 80rpx;
  308. border-bottom: 3rpx solid #D7D7D7;
  309. }
  310. .s_img_left {
  311. padding-right: 130rpx;
  312. }
  313. .s_img_content {
  314. position: relative;
  315. padding: 10rpx;
  316. /* display: flex; */
  317. /* justify-content: left; */
  318. /* justify-items: center; */
  319. }
  320. .s_image {
  321. width: 100%;
  322. }
  323. /* @media sscreen (min-with:1050px) and (max-width: 1920px) and {
  324. } */
  325. .s_operation {
  326. /* position: absolute;
  327. bottom: -10rpx;
  328. left: 0;
  329. width: 100%; */
  330. margin-top: 30rpx;
  331. display: flex;
  332. justify-content: space-between;
  333. /* margin-right: 40rpx; */
  334. background-color: #dbd9d9;
  335. padding: 10rpx 20rpx;
  336. border-radius: 10rpx;
  337. }
  338. .s_operation img {
  339. margin-left: 20rpx;
  340. }
  341. .v-left {
  342. position: absolute;
  343. width: 25rpx;
  344. height: 50rpx;
  345. right: -100rpx;
  346. top: 50%;
  347. transform: translateY(-50%);
  348. }
  349. .s_search_img_input {
  350. position: absolute;
  351. left: 20rpx;
  352. top: 50%;
  353. width: 30rpx;
  354. transform: translateY(-50%);
  355. }
  356. </style>