AschoolFeature.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <template>
  2. <div style="display: flex;flex-direction: column;gap: 20px;height: 100%;">
  3. <div class="top">
  4. <div class="topTit">
  5. <div>
  6. <div>集团简介</div>
  7. <div style="height: 4px;background-color: #0663FE;width: 2rem;margin-top: 6px;"></div>
  8. </div>
  9. <div>
  10. <img src="../../../assets/img/bianji.svg" alt="">
  11. </div>
  12. </div>
  13. <div class="Topbri">
  14. {{ fromL.admin.CampusF.GroupBri }}
  15. </div>
  16. </div>
  17. <div class="feature">
  18. <div class="topTit">
  19. <div>
  20. <div>办学特色</div>
  21. <div style="height: 4px;background-color: #0663FE;width: 2rem;margin-top: 6px;"></div>
  22. </div>
  23. <div>
  24. <img src="../../../assets/img/bianji.svg" alt="">
  25. </div>
  26. </div>
  27. <div style="display: flex;justify-content: space-between;">
  28. <div class="featureCon" v-for="(i, index) in featureList" :key="index">
  29. <img style="width: 24px;" src="../../../assets/img/tese.svg" alt="">
  30. <div class="featureConTit">{{ i.name }}</div>
  31. <div class="Topbri">{{ i.bri }}</div>
  32. </div>
  33. </div>
  34. </div>
  35. <div class="feature">
  36. <div class="topTit">
  37. <div>
  38. <div>师资力量</div>
  39. <div style="height: 4px;background-color: #0663FE;width: 2rem;margin-top: 6px;"></div>
  40. </div>
  41. <div>
  42. <img src="../../../assets/img/bianji.svg" alt="">
  43. </div>
  44. </div>
  45. <div class="Topbri">
  46. {{ fromL.admin.CampusF.GroupBri }}
  47. </div>
  48. <div style="display: flex;justify-content: space-between;">
  49. <div class="featureCon2" v-for="(i, index) in teaData" :key="index">
  50. <div class="featureConTit2">{{ i.bri }}</div>
  51. <div class="Topbri">{{ i.name }}</div>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="feature">
  56. <div class="topTit">
  57. <div>
  58. <div>特色应用</div>
  59. <div style="height: 4px;background-color: #0663FE;width: 2rem;margin-top: 6px;"></div>
  60. </div>
  61. <div>
  62. <img src="../../../assets/img/bianji.svg" alt="">
  63. </div>
  64. </div>
  65. <div class="AppStoreList">
  66. <div class="AppStore" v-for="(i,index) in featureApp" :key="index">
  67. <img style="width: 24px;" src="../../../assets/img/bianji.svg" alt="">
  68. <div class="AppStoreCon">
  69. <img style="width: 18px;margin-bottom: 10px;" src="../../../assets/img/tese.svg" alt="">
  70. <div class="AppStoreConTit">{{i.name}}</div>
  71. <div class="AppStoreConBri">{{i.detail}}</div>
  72. </div>
  73. </div>
  74. <div class="AppStore">
  75. <div style="height: 24px;"></div>
  76. <div class="AppAdd">
  77. <img src="../../../assets/img/add.svg" alt="">
  78. </div>
  79. <div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </template>
  86. <script>
  87. import { mapGetters } from 'vuex';
  88. import { API_CONFIG } from '../../../common/apiConfig.js';
  89. export default {
  90. data() {
  91. return {
  92. featureApp:[]
  93. }
  94. },
  95. computed: {
  96. ...mapGetters(['fromL']),
  97. featureList() {
  98. return this.fromL.admin.CampusF.feature; // 从 Vuex 的 fromL 中获取 featureList
  99. },
  100. teaData() {
  101. return this.fromL.admin.CampusF.teacherN.list; // 从 Vuex 的 fromL 中获取 teaData
  102. },
  103. },
  104. methods: {
  105. // 获取cocoFlow2应用
  106. getData() {
  107. let cocoFlowCopy = []
  108. if (this.fromL.admin.cocoFlow2 && this.fromL.admin.cocoFlow2.length) {
  109. cocoFlowCopy = this.fromL.admin.cocoFlow2.map(item => item.id);
  110. } else {
  111. return
  112. }
  113. let params = [
  114. {
  115. functionName: API_CONFIG.ajax_AdminApp.functionName,
  116. con: cocoFlowCopy.join(','),
  117. },
  118. ];
  119. this.$ajax
  120. .post(API_CONFIG.baseUrl, params)
  121. .then((res) => {
  122. this.featureApp = res.data[0]
  123. // console.log("后端传的数据", this.featureApp);
  124. })
  125. .catch((err) => {
  126. console.log(err);
  127. });
  128. },
  129. },
  130. mounted() {
  131. this.getData()
  132. }
  133. }
  134. </script>
  135. <style scoped>
  136. .top {
  137. height: 159px;
  138. padding: 36px 27px;
  139. box-sizing: border-box;
  140. display: flex;
  141. flex-direction: column;
  142. background: #fff;
  143. border-radius: 12px;
  144. justify-content: space-between;
  145. }
  146. .topTit {
  147. font-family: PingFang SC;
  148. font-weight: 600;
  149. font-size: 20px;
  150. line-height: 22px;
  151. color: #0663FE;
  152. display: flex;
  153. height: 36px;
  154. justify-content: space-between;
  155. }
  156. .topTit img{
  157. cursor: pointer;
  158. }
  159. .Topbri{
  160. font-family: PingFang SC;
  161. font-weight: 400;
  162. font-size: 12px;
  163. line-height: 22px;
  164. color: #000;
  165. }
  166. .feature {
  167. width: 100%;
  168. padding: 36px 27px;
  169. border-radius: 12px;
  170. box-sizing: border-box;
  171. background: #EEEEEE;
  172. display: flex;
  173. flex-direction: column;
  174. gap: 20px;
  175. justify-content: space-between;
  176. }
  177. .featureCon {
  178. background: #FFFFFF;
  179. width: 24%;
  180. height: 206px;
  181. display: flex;
  182. flex-direction: column;
  183. justify-content: center;
  184. border-radius: 12px;
  185. padding: 40px 20px;
  186. align-items: center;
  187. box-sizing: border-box;
  188. gap: 18px;
  189. }
  190. .featureCon2 {
  191. background: #FFFFFF;
  192. width: 24%;
  193. height: 94px;
  194. display: flex;
  195. flex-direction: column;
  196. justify-content: center;
  197. border-radius: 12px;
  198. padding: 40px 20px;
  199. align-items: center;
  200. box-sizing: border-box;
  201. gap: 10px;
  202. }
  203. .featureConTit {
  204. font-family: PingFang SC;
  205. font-weight: 600;
  206. font-size: 20px;
  207. line-height: 22px;
  208. color: #000;
  209. }
  210. .featureConTit2 {
  211. font-family: PingFang SC;
  212. font-weight: 600;
  213. font-size: 20px;
  214. line-height: 22px;
  215. color: #0663FE;
  216. }
  217. .AppStoreList {
  218. display: flex;
  219. gap: 20px;
  220. }
  221. .AppStore {
  222. width: 33%;
  223. display: flex;
  224. flex-direction: column;
  225. gap: 10px;
  226. }
  227. .AppStoreCon {
  228. height: 122px;
  229. border-radius: 10px;
  230. padding: 17px 17px;
  231. box-sizing: border-box;
  232. background: #fff;
  233. }
  234. .AppAdd {
  235. height: 122px;
  236. border-radius: 10px;
  237. padding: 17px 17px;
  238. box-sizing: border-box;
  239. border: 1px dashed #000000;
  240. background: #E5E5E5;
  241. display: flex;
  242. justify-content: center;
  243. align-items: center;
  244. }
  245. .AppStoreConTit {
  246. font-family: PingFang SC;
  247. font-weight: 500;
  248. font-size: 16px;
  249. margin-bottom: 5px;
  250. }
  251. .AppStoreConBri {
  252. font-family: PingFang SC;
  253. font-weight: 300;
  254. font-size: 12px;
  255. color: #969BA3;
  256. display: -webkit-box;
  257. -webkit-line-clamp: 2;
  258. -webkit-box-orient: vertical;
  259. overflow: hidden;
  260. text-overflow: ellipsis;
  261. }
  262. .AppStoreBri {
  263. font-family: PingFang SC;
  264. font-size: 10px;
  265. color: #969BA3;
  266. }
  267. </style>