teachingDetail.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. <template>
  2. <!-- 教研室详情 -->
  3. <view class="teachingDetail">
  4. <statusBar :item="navbar"></statusBar>
  5. <!-- 顶部 -->
  6. <view class="backPic" v-for="(item,index) in actItemList" :key="index + 'a' ">
  7. <image src="http://43.139.158.220:5007/img/static/yym/Rectangle 40.png" mode="aspectFill"></image>
  8. <view class="card">
  9. <view class="cardTop">
  10. <view class="title three-font">{{ item.acName }}</view>
  11. <view class="icons">
  12. <view class="icon">
  13. <image src="http://43.139.158.220:5007/img/static/yym/Star 1 (Stroke) (2).png" style="width: 42rpx;height: 40rpx;" mode="aspectFill"></image>
  14. </view>
  15. <view class="icon">
  16. <image src="http://43.139.158.220:5007/img/static/yym/Vector (Stroke) (1).png" style="width: 38rpx;height: 42rpx;" mode="aspectFill"></image>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="col fz-font">
  21. 成立日期:暂无
  22. </view>
  23. <view class="col fz-font">
  24. 人数:{{ item.pers }}人
  25. </view>
  26. <view class="tag col">
  27. <view class="fz-font">教研标签:</view>
  28. <view class="" style="display: flex;">
  29. <view class="bqZ-font" style="color: #00b2b6; border: 1px #00b2b6 solid;padding: 2rpx 10rpx;border-radius: 5rpx;font-weight: 600;">
  30. 类型标签
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. <!-- 两个大资料文件 -->
  37. <view class="teaData">
  38. <view class="cla">
  39. <view class="tit1 three-font">课程资料</view>
  40. <view class="tit2 fz-font">教研室专属课程</view>
  41. </view>
  42. <view class="cla2">
  43. <view class="tit1 titColor three-font">资源文件</view>
  44. <view class="tit2 titColor fz-font">教研室专属资源</view>
  45. </view>
  46. </view>
  47. <!-- 教研室详情 -->
  48. <view class="" style="padding: 0 30rpx;">
  49. <detailBlock :actItemList='actItemList' :item="judge"></detailBlock>
  50. </view>
  51. <!-- 创建者用户名 -->
  52. <view style="padding: 0 30rpx;">
  53. <view class="creator" v-for="(item,index) in actItemList" :key="index + 'b' ">
  54. <image :src="item.avatar == null ? 'http://43.139.158.220:5007/img/static/mine/Avatar_default.png' : item.avatar" mode="aspectFill"></image>
  55. <view class="creName btn-font">
  56. {{ item.username }}
  57. </view>
  58. </view>
  59. </view>
  60. <!-- 当前成员 -->
  61. <view style="padding: 0 30rpx;">
  62. <view class="member">
  63. <view class="memberTop">
  64. <view class="btn-font" >当前成员</view>
  65. <view class="fz-font" style="color: rgba(0, 0, 0, 0.4);display: flex;align-items: center;" @click="gotoMorePer">
  66. <text>查看更多</text>
  67. <image src="http://43.139.158.220:5007/img/static/mine/arrow-right.png" style="width: 32rpx;height: 32rpx;" mode="aspectFill"></image>
  68. <!-- <uni-icons type="right"></uni-icons> -->
  69. </view>
  70. </view>
  71. <view class="pers">
  72. <!-- <view class="per" v-for="i in perNum">
  73. <image :src="i.img"></image>
  74. <view class="perName fz-font">
  75. {{i.Name}}
  76. </view>
  77. </view> -->
  78. <view class="per">
  79. <!-- <image :src="item.img"></image> -->
  80. <view class="perName fz-font">
  81. 暂无人员
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. <!-- 申请加入 -->
  88. <view class="btnBlock">
  89. <button class="btn zw-font" @click="applyAdd">申请加入</button>
  90. </view>
  91. </view>
  92. </template>
  93. <script>
  94. export default {
  95. data() {
  96. return {
  97. navbar:{
  98. title:'教研室详情',
  99. btn:1
  100. },
  101. actItemList: [],
  102. perNum:[
  103. {Name:'金晶',img:'http://43.139.158.220:5007/img/static/yym/Ellipse 4 (1).png'},
  104. {Name:'朱心艺',img:'http://43.139.158.220:5007/img/static/yym/Ellipse 4 (2).png'},
  105. {Name:'李红',img:'http://43.139.158.220:5007/img/static/yym/Ellipse 4 (3).png'},
  106. {Name:'杨婉',img:'http://43.139.158.220:5007/img/static/yym/Ellipse 4 (4).png'},
  107. {Name:'郑元雄',img:'http://43.139.158.220:5007/img/static/yym/Ellipse 4.png'},
  108. {Name:'罗佳诚',img:'http://43.139.158.220:5007/img/static/yym/Ellipse 4 (3).png'}
  109. ],
  110. judge: {
  111. isShow: 0,
  112. info:""
  113. }
  114. };
  115. },
  116. methods:{
  117. gotoMorePer(){
  118. uni.navigateTo({
  119. url:'/pages/dy/dy'
  120. })
  121. },
  122. applyAdd(){
  123. const clickedAcId = this.actItemList[0].acId;
  124. console.log(clickedAcId);
  125. uni.navigateTo({
  126. url:'/pages/jys/jys?acId=' + clickedAcId
  127. })
  128. },
  129. getActivity() {
  130. // 获取当前页面的URL
  131. const routes = getCurrentPages();
  132. console.log(routes);
  133. const acId = routes[1].options.acId ? routes[1].options.acId : routes[2].options.acId
  134. let data = {
  135. acId: acId,
  136. ty: 2
  137. }
  138. this.$request('/selectActivityID', "POST", data).then(res => {
  139. console.log(res[0]);
  140. // this.activeList=[...this.activeList,...res[0]]
  141. this.actItemList = res[0]
  142. })
  143. },
  144. },
  145. onShow() {
  146. this.getActivity()
  147. }
  148. }
  149. </script>
  150. <style lang="scss">
  151. .teachingDetail{
  152. padding-bottom: 80px;
  153. .backPic{
  154. width: 750rpx;
  155. position: relative;
  156. image{
  157. width: 100%;
  158. display: block;
  159. }
  160. .card{
  161. position: absolute;
  162. width: 690rpx;
  163. height: 256rpx;
  164. bottom: 10px;
  165. left: 50%;
  166. padding: 30rpx;
  167. background-color: rgba(0, 0, 0, 0.26);
  168. border-radius: 10px;
  169. transform: translate(-50%,0);
  170. border: 1rpx #667870 solid;
  171. color: #ffffff;
  172. // display: flex;
  173. // flex-direction: column;
  174. // justify-content: space-between;
  175. .cardTop{
  176. display: flex;
  177. justify-content: space-between;
  178. .title{
  179. // padding-bottom: 20rpx;
  180. margin-bottom: 20rpx;
  181. width: 506rpx;
  182. height: 48rpx;
  183. color: #ffffff;
  184. font-family: PingFang SC;
  185. // font-weight: 550;
  186. overflow: hidden;
  187. text-overflow:ellipsis;
  188. white-space: nowrap;
  189. }
  190. .icons{
  191. flex: 1;
  192. display: flex;
  193. align-items: center;
  194. justify-content: space-between;
  195. .icon{
  196. width: 48rpx;
  197. height: 48rpx;
  198. display: flex;
  199. align-items: center;
  200. justify-content: center;
  201. }
  202. }
  203. }
  204. .col{
  205. margin-bottom: 10rpx;
  206. font-weight: 100;
  207. color: #f0edea;
  208. // font-size: 30rpx;
  209. }
  210. .tag{
  211. display: flex;
  212. }
  213. }
  214. // background-image: url(http://43.139.158.220:5007/img/static/resource/jqr.png);
  215. }
  216. .teaData{
  217. width: 750rpx;
  218. display: flex;
  219. padding:20rpx 30rpx;
  220. justify-content: space-between;
  221. // padding: 20px 0;
  222. .cla{
  223. width: 49%;
  224. background: linear-gradient(to bottom , #fcfcff 30%, #e8ecfd 100%);
  225. border-radius: 10px;
  226. padding: 35rpx 30rpx;
  227. color: #424f85;
  228. .tit1{
  229. // font-size: 38rpx;
  230. margin-bottom: 10rpx;
  231. font-weight: bold;
  232. }
  233. .tit2{
  234. // font-size: 22px;
  235. // font-size: 30rpx;
  236. // margin-bottom: 5px;
  237. }
  238. }
  239. .cla2{
  240. width: 45%;
  241. background: linear-gradient(to bottom , #fcfcff 10%, #fef3ea 100%);
  242. border-radius: 10px;
  243. padding: 35rpx 30rpx;
  244. color: #855e42;
  245. .tit1{
  246. // font-size: 38rpx;
  247. margin-bottom: 10rpx;
  248. font-weight: bold;
  249. }
  250. .tit2{
  251. // font-size: 22px;
  252. // margin-bottom: 5px;
  253. // font-size: 30rpx;
  254. }
  255. }
  256. }
  257. .creator{
  258. display: flex;
  259. padding: 30rpx;
  260. background-color: #ffffff;
  261. align-items: center;
  262. margin-top: 20rpx;
  263. border-radius: 10px;
  264. image{
  265. width: 96rpx;
  266. height: 96rpx;
  267. border-radius: 50%;
  268. margin-right: 20rpx;
  269. }
  270. .creName{
  271. font-weight: bold;
  272. }
  273. }
  274. .member{
  275. background-color: #ffffff;
  276. margin-top: 20rpx;
  277. padding: 30rpx;
  278. border-radius: 10px;
  279. margin-bottom: 30rpx;
  280. .memberTop{
  281. display: flex;
  282. justify-content: space-between;
  283. margin-bottom: 10px;
  284. }
  285. .pers{
  286. display: flex;
  287. justify-content: space-between;
  288. align-items: center;
  289. .per{
  290. display: flex;
  291. flex-direction: column;
  292. image{
  293. width: 72rpx;
  294. height: 72rpx;
  295. border-radius: 50%;
  296. }
  297. .perName{
  298. // font-size: 14px;
  299. text-align: center;
  300. }
  301. }
  302. }
  303. }
  304. .btnBlock{
  305. position: fixed;
  306. bottom: 0;
  307. width: 750rpx;
  308. background-color: #ffffff;
  309. // padding: 20px 0;
  310. padding: 2vh 0;
  311. .btn{
  312. width: 432rpx;
  313. height: 88rpx;
  314. font-weight: 500;
  315. display: flex;
  316. justify-content: center;
  317. align-items: center;
  318. margin: auto;
  319. background-color: #0056a8;
  320. color: #ffffff;
  321. }
  322. }
  323. }
  324. </style>