course-detail.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <template>
  2. <view class="content">
  3. <view class="content-view">
  4. <swiper
  5. class="swiper"
  6. :indicator-dots="indicatorDots"
  7. :autoplay="autoplay"
  8. :interval="interval"
  9. :duration="duration"
  10. indicator-active-color="#0251FF"
  11. >
  12. <swiper-item>
  13. <view class="swiper-item">
  14. <img class="swiper-item-pic" src="@/static/swiper_pic.png" />
  15. </view>
  16. </swiper-item>
  17. <swiper-item>
  18. <view class="swiper-item uni-bg-green">B</view>
  19. </swiper-item>
  20. <swiper-item>
  21. <view class="swiper-item uni-bg-blue">C</view>
  22. </swiper-item>
  23. </swiper>
  24. <view class="detail-view">
  25. <view class="detail-top">
  26. <view class="right-tag"><text class="cost-text">¥800/人</text></view>
  27. <view class="title-text-view">
  28. <text class="title-text">花样跳绳(B)</text>
  29. </view>
  30. <view class="time-text">
  31. <u-icon name="clock"></u-icon>每周 星期三 17:00~18:10
  32. </view>
  33. </view>
  34. <view class="detail-info-view">
  35. <view class="detail-title">
  36. 课程详情
  37. </view>
  38. <view class="detail-info">
  39. 1.掌握跳绳技术,通过跳绳技术的学习,发展下肢以及及时空感觉,控制平衡能力。
  40. 2.树立安全意识,懂得自我保护和相互保护的方法和意义。
  41. 3.为中考打下良好的体能基础。
  42. </view>
  43. <view class="detail-title">
  44. 课程备注
  45. </view>
  46. <view class="detail-info">
  47. 含跳绳一条1.课程收费均为一学期14次课时的学费标准。
  48. 2.请家长以自愿为原则,根据孩子兴趣爱好,为孩子报名。
  49. 3.每班不超过30人,15人开班。4.所以项目开班后不接受
  50. 退班费或直接转让。5.人数不够开不了班的可以选择退费或
  51. 换班。6.如因学员个人原因,请假缺课,不予补课或退款。
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="bottom">
  57. <view class="btn-view">
  58. <u-button
  59. :hair-line="false"
  60. size="mini"
  61. plain
  62. :custom-style="bBtnStyle"
  63. >
  64. <u-icon name="kefu-ermai" size="40"></u-icon>
  65. <br />
  66. 客服
  67. </u-button>
  68. </view>
  69. <view class="btn-view">
  70. <u-button
  71. :hair-line="false"
  72. size="mini"
  73. plain
  74. :custom-style="bBtnStyle"
  75. >
  76. <u-icon name="order" size="40"></u-icon>
  77. <br />
  78. 选课单
  79. </u-button>
  80. </view>
  81. <view class="btn-view1">
  82. <u-button v-if="btnMode === 1" shape="circle" size="medium" :custom-style="submitBtnStyle">立即报名</u-button>
  83. <u-button v-else-if="btnMode === 2" shape="circle" size="medium" disabled="true" :custom-style="submitBtnDisableStyle">报名已结束</u-button>
  84. <u-button v-else-if="btnMode === 3" shape="circle" size="medium" type="primary" plain :custom-style="cancleBtnStyle" @click="handleCancle">取消报名</u-button>
  85. </view>
  86. <u-select title="请选择取消原因" v-model="selectShow" mode="single-column" :list="selectList" @confirm="selectConfirm"></u-select>
  87. </view>
  88. </view>
  89. </template>
  90. <script>
  91. export default {
  92. components: {},
  93. data: () => ({
  94. indicatorDots: true,
  95. autoplay: true,
  96. interval: 2000,
  97. duration: 500,
  98. btnMode: 3,
  99. bBtnStyle: {
  100. width: '100rpx',
  101. height: '100rpx',
  102. display: 'inline-block',
  103. color: '#0251FF',
  104. paddingTop: '20rpx',
  105. lineHeight: '40rpx',
  106. border: '0',
  107. },
  108. submitBtnStyle: {
  109. background: 'linear-gradient(3deg, #0251FF 0%, #2794F6 100%)',
  110. color: '#fff',
  111. width: '100%'
  112. },
  113. submitBtnDisableStyle: {
  114. background: ' linear-gradient(3deg, #0251FF 0%, #2794F6 100%)',
  115. color: '#fff',
  116. width: '100%',
  117. opacity: '0.5'
  118. },
  119. cancleBtnStyle: {
  120. width: '100%'
  121. },
  122. selectList: [
  123. {
  124. value: '1',
  125. label: '个人原因'
  126. },
  127. {
  128. value: '2',
  129. label: '计划有变'
  130. },
  131. {
  132. value: '3',
  133. label: '其他'
  134. }
  135. ],
  136. selectShow: false
  137. }),
  138. computed: {},
  139. methods: {
  140. handleCancle() {
  141. this.selectShow = true
  142. },
  143. selectConfirm() {
  144. }
  145. },
  146. watch: {},
  147. // 页面周期函数--监听页面加载
  148. onLoad() {},
  149. // 页面周期函数--监听页面初次渲染完成
  150. onReady() {},
  151. // 页面周期函数--监听页面显示(not-nvue)
  152. onShow() {},
  153. // 页面周期函数--监听页面隐藏
  154. onHide() {},
  155. // 页面周期函数--监听页面卸载
  156. onUnload() {},
  157. // 页面处理函数--监听用户下拉动作
  158. onPullDownRefresh() {
  159. uni.stopPullDownRefresh()
  160. },
  161. // 页面处理函数--监听用户上拉触底
  162. onReachBottom() {},
  163. }
  164. </script>
  165. <style>
  166. .content-view {
  167. padding-bottom: 110rpx;
  168. }
  169. .swiper {
  170. height: 450rpx;
  171. }
  172. .swiper-item {
  173. height: 450rpx;
  174. }
  175. .swiper-item-pic {
  176. width: 100%;
  177. height: 100%;
  178. display: block;
  179. }
  180. .right-tag {
  181. background: #fce6e5;
  182. width: 178rpx;
  183. height: 62rpx;
  184. border-radius: 30rpx 0 0 30rpx;
  185. text-align: center;
  186. position: relative;
  187. float: right;
  188. }
  189. .cost-text {
  190. font-size: 28rpx;
  191. font-weight: bold;
  192. color: #ec655b;
  193. overflow: hidden;
  194. text-overflow: ellipsis;
  195. white-space: nowrap;
  196. line-height: 62rpx;
  197. }
  198. .detial-top {
  199. margin-top: 30rpx;
  200. margin-left: 30rpx;
  201. }
  202. .title-text {
  203. font-size: 36rpx;
  204. font-weight: bold;
  205. color: #333333;
  206. }
  207. .title-text-view {
  208. margin-bottom: 47rpx;
  209. }
  210. .time-text {
  211. font-size: 24rpx;
  212. font-weight: 400;
  213. color: #333333;
  214. }
  215. .detail-info-view {
  216. margin-top: 50rpx;
  217. margin-right: 20rpx;
  218. }
  219. .detail-view {
  220. margin-top: 30rpx;
  221. margin-left: 20rpx;
  222. }
  223. .detail-title {
  224. font-size: 30rpx;
  225. font-weight: bold;
  226. color: #333333;
  227. margin-bottom: 20rpx;
  228. }
  229. .detail-info {
  230. font-size: 24rpx;
  231. font-weight: 400;
  232. color: #a3abbf;
  233. line-height: 36rpx;
  234. margin-bottom: 30rpx;
  235. }
  236. .bottom {
  237. position: fixed;
  238. bottom: 0px;
  239. height: 108rpx;
  240. width: 100%;
  241. background: #ffffff;
  242. border: 1rpx solid #d6dcf1;
  243. }
  244. .btn-view {
  245. margin: 0 30rpx;
  246. display: inline-block;
  247. }
  248. .btn-view1 {
  249. width: 50%;
  250. display: inline-block;
  251. margin-bottom: 50rpx;
  252. vertical-align: middle;
  253. margin-left: 20rpx;
  254. }
  255. </style>