teachingDetail.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. <template>
  2. <!-- 教研室详情 -->
  3. <view class="teachingDetail">
  4. <statusBar :item="navbar"></statusBar>
  5. <!-- 顶部 -->
  6. <view class="backPic">
  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">xxxx虚拟教研教室</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. 成立日期:2023.5.12
  22. </view>
  23. <view class="col fz-font">
  24. 人数:23人
  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></detailBlock>
  50. </view>
  51. <!-- 创建者用户名 -->
  52. <view style="padding: 0 30rpx;">
  53. <view class="creator">
  54. <image src="http://43.139.158.220:5007/img/static/mine/Avatar.png" mode="aspectFill"></image>
  55. <view class="creName btn-font">
  56. 创建者用户名
  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: #666666;display: flex;align-items: center;" @click="gotoMorePer">
  66. 查看更多
  67. <uni-icons type="right"></uni-icons>
  68. </view>
  69. </view>
  70. <view class="pers">
  71. <view class="per" v-for="i in 6">
  72. <image src="http://43.139.158.220:5007/img/static/mine/Avatar.png" mode="aspectFill"></image>
  73. <view class="perName fz-font">
  74. 袁一鸣
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. <!-- 申请加入 -->
  81. <view class="btnBlock">
  82. <button class="btn zw-font" @click="applyAdd">申请加入</button>
  83. </view>
  84. </view>
  85. </template>
  86. <script>
  87. export default {
  88. data() {
  89. return {
  90. navbar:{
  91. title:'教研室详情',
  92. btn:1
  93. }
  94. };
  95. },
  96. methods:{
  97. gotoMorePer(){
  98. uni.navigateTo({
  99. url:'/pages/dy/dy'
  100. })
  101. },
  102. applyAdd(){
  103. uni.navigateTo({
  104. url:'/pages/jys/jys'
  105. })
  106. }
  107. }
  108. }
  109. </script>
  110. <style lang="scss">
  111. .teachingDetail{
  112. padding-bottom: 80px;
  113. .backPic{
  114. width: 750rpx;
  115. position: relative;
  116. image{
  117. width: 100%;
  118. display: block;
  119. }
  120. .card{
  121. position: absolute;
  122. width: 690rpx;
  123. height: 256rpx;
  124. bottom: 10px;
  125. left: 50%;
  126. padding: 30rpx;
  127. background-color: rgba(0, 0, 0, 0.26);
  128. border-radius: 10px;
  129. transform: translate(-50%,0);
  130. border: 1rpx #667870 solid;
  131. color: #ffffff;
  132. // display: flex;
  133. // flex-direction: column;
  134. // justify-content: space-between;
  135. .cardTop{
  136. display: flex;
  137. justify-content: space-between;
  138. .title{
  139. // padding-bottom: 20rpx;
  140. margin-bottom: 20rpx;
  141. width: 506rpx;
  142. height: 48rpx;
  143. color: #ffffff;
  144. font-family: PingFang SC;
  145. // font-weight: 550;
  146. overflow: hidden;
  147. text-overflow:ellipsis;
  148. white-space: nowrap;
  149. }
  150. .icons{
  151. flex: 1;
  152. display: flex;
  153. align-items: center;
  154. justify-content: space-between;
  155. .icon{
  156. width: 48rpx;
  157. height: 48rpx;
  158. display: flex;
  159. align-items: center;
  160. justify-content: center;
  161. }
  162. }
  163. }
  164. .col{
  165. margin-bottom: 10rpx;
  166. font-weight: 100;
  167. color: #f0edea;
  168. // font-size: 30rpx;
  169. }
  170. .tag{
  171. display: flex;
  172. }
  173. }
  174. // background-image: url(http://43.139.158.220:5007/img/static/resource/jqr.png);
  175. }
  176. .teaData{
  177. width: 750rpx;
  178. display: flex;
  179. padding:20rpx 30rpx;
  180. justify-content: space-between;
  181. // padding: 20px 0;
  182. .cla{
  183. width: 49%;
  184. background: linear-gradient(to bottom , #fcfcff 30%, #e8ecfd 100%);
  185. border-radius: 10px;
  186. padding: 35rpx 30rpx;
  187. color: #424f85;
  188. .tit1{
  189. // font-size: 38rpx;
  190. margin-bottom: 10rpx;
  191. font-weight: bold;
  192. }
  193. .tit2{
  194. // font-size: 22px;
  195. // font-size: 30rpx;
  196. // margin-bottom: 5px;
  197. }
  198. }
  199. .cla2{
  200. width: 45%;
  201. background: linear-gradient(to bottom , #fcfcff 10%, #fef3ea 100%);
  202. border-radius: 10px;
  203. padding: 35rpx 30rpx;
  204. color: #855e42;
  205. .tit1{
  206. // font-size: 38rpx;
  207. margin-bottom: 10rpx;
  208. font-weight: bold;
  209. }
  210. .tit2{
  211. // font-size: 22px;
  212. // margin-bottom: 5px;
  213. // font-size: 30rpx;
  214. }
  215. }
  216. }
  217. .creator{
  218. display: flex;
  219. padding: 30rpx;
  220. background-color: #ffffff;
  221. align-items: center;
  222. margin-top: 20rpx;
  223. border-radius: 10px;
  224. image{
  225. width: 96rpx;
  226. height: 96rpx;
  227. border-radius: 50%;
  228. margin-right: 20rpx;
  229. }
  230. .creName{
  231. font-weight: bold;
  232. }
  233. }
  234. .member{
  235. background-color: #ffffff;
  236. margin-top: 20rpx;
  237. padding: 30rpx;
  238. border-radius: 10px;
  239. .memberTop{
  240. display: flex;
  241. justify-content: space-between;
  242. margin-bottom: 10px;
  243. }
  244. .pers{
  245. display: flex;
  246. justify-content: space-between;
  247. align-items: center;
  248. .per{
  249. display: flex;
  250. flex-direction: column;
  251. image{
  252. width: 72rpx;
  253. height: 72rpx;
  254. border-radius: 50%;
  255. }
  256. .perName{
  257. // font-size: 14px;
  258. text-align: center;
  259. }
  260. }
  261. }
  262. }
  263. .btnBlock{
  264. position: fixed;
  265. bottom: 0;
  266. width: 750rpx;
  267. background-color: #ffffff;
  268. // padding: 20px 0;
  269. padding: 2vh 0;
  270. .btn{
  271. width: 432rpx;
  272. height: 88rpx;
  273. font-weight: 500;
  274. display: flex;
  275. justify-content: center;
  276. align-items: center;
  277. margin: auto;
  278. background-color: #0056a8;
  279. color: #ffffff;
  280. }
  281. }
  282. }
  283. </style>