Audit.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <template>
  2. <!-- 审核 -->
  3. <div class="Nopyment">
  4. <div class="message">
  5. <div>
  6. <img :src="data.coverUrl" alt="" />
  7. </div>
  8. <div class="text">
  9. <p class="p1">
  10. {{ data.name }}
  11. </p>
  12. <p class="p2">
  13. <span>xx课程</span>
  14. </p>
  15. <p class="p3">{{ data.teacher }}</p>
  16. </div>
  17. <div class="price">
  18. <p>${{ data.price }}</p>
  19. </div>
  20. </div>
  21. <div class="total">
  22. <p class="p1">
  23. <span> 一件商品,总金额: </span>
  24. <span class="co-value">¥{{ data.price }}</span>
  25. </p>
  26. <p class="p2">
  27. <span> 优惠折扣: </span>
  28. <span class="co-value">-${{ discount_money }}</span>
  29. </p>
  30. <p class="p4">
  31. <span></span>
  32. <span class="co-value useCode">使没使用优惠码</span>
  33. </p>
  34. <p class="p3">
  35. <span> 应付: </span>
  36. <span class="co-value">¥{{ receivables_money }}</span>
  37. </p>
  38. </div>
  39. <div class="submitBtn">
  40. <div>
  41. <img src="../../assets/teacherTrain/auditimg.png" alt="" />
  42. 参加本课程学习需提交申请,审核通过后完成付款即可参加学习。
  43. </div>
  44. <button @click="buy(data)">提交申请</button>
  45. </div>
  46. </div>
  47. </template>
  48. <script>
  49. //这里可以导入其它文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
  50. //例如:import 《组件名称》from ‘《组件路径》';
  51. import { LearnWebSI } from "@/api/api";
  52. export default {
  53. //import引入的组件需要注入到对象中才能使用
  54. components: {},
  55. props: ["data", "orderNumber", "closePyment"],
  56. data() {
  57. //这里存放数据
  58. return {
  59. discount_code: "", //优惠码
  60. discount_money: 0.0, // 优惠金额
  61. receivables_money: this.data.price, // 应收款
  62. };
  63. },
  64. //计算属性 类似于data概念
  65. computed: {},
  66. //监控data中数据变化
  67. watch: {},
  68. //方法集合
  69. methods: {
  70. // 提交申请
  71. buy(item) {},
  72. },
  73. //生命周期 - 创建完成(可以访问当前this实例)
  74. created() {},
  75. //生命周期 - 挂载完成(可以访问DOM元素)
  76. mounted() {},
  77. //生命周期-创建之前
  78. beforeCreated() {},
  79. //生命周期-挂载之前
  80. beforeMount() {},
  81. //生命周期-更新之前
  82. beforUpdate() {},
  83. //生命周期-更新之后
  84. updated() {},
  85. //生命周期-销毁之前
  86. beforeDestory() {},
  87. //生命周期-销毁完成
  88. destoryed() {},
  89. //如果页面有keep-alive缓存功能,这个函数会触发
  90. activated() {},
  91. };
  92. </script>
  93. <style lang="scss" scoped>
  94. /* @import url(); 引入css类 */
  95. .Nopyment {
  96. .message {
  97. width: 656px;
  98. height: 152px;
  99. background: rgba(70, 70, 70, 0.03);
  100. border-radius: 8px;
  101. display: flex;
  102. img {
  103. width: 120px;
  104. height: 120px;
  105. margin-left: 16px;
  106. margin-top: 16px;
  107. }
  108. .text {
  109. margin-left: 24px;
  110. .p1 {
  111. width: 360px;
  112. // height: 45px;
  113. max-height: 48px;
  114. font-size: 16px;
  115. line-height: 20px;
  116. color: #2c2c2c;
  117. margin-top: 22px;
  118. word-break: break-all;
  119. display: -webkit-box;
  120. -webkit-box-orient: vertical;
  121. -webkit-line-clamp: 2;
  122. text-overflow: ellipsis;
  123. overflow: hidden;
  124. }
  125. .p2 {
  126. margin-top: 10px;
  127. span {
  128. width: 64px;
  129. height: 24px;
  130. background: #ffefd8;
  131. border-radius: 4px;
  132. font-weight: bold;
  133. font-size: 12px;
  134. text-align: center;
  135. color: #ff9900;
  136. line-height: 24px;
  137. padding: 2px 8px;
  138. }
  139. }
  140. .p3 {
  141. margin-top: 10px;
  142. }
  143. }
  144. .price {
  145. p {
  146. margin-left: 67px;
  147. margin-top: 22px;
  148. font-weight: bold;
  149. font-size: 16px;
  150. text-align: right;
  151. color: #ff4c00;
  152. }
  153. }
  154. }
  155. .promotionCode {
  156. display: flex;
  157. justify-content: flex-start;
  158. align-self: center;
  159. width: 100%;
  160. margin-top: 24px;
  161. height: 58px;
  162. line-height: 56px;
  163. border-top: 1px solid rgba(44, 44, 44, 0.15);
  164. border-bottom: 1px solid rgba(44, 44, 44, 0.15);
  165. .sp1 {
  166. font-size: 16px;
  167. color: #000000;
  168. }
  169. input {
  170. padding: 0 24px;
  171. flex: 1;
  172. height: 56px;
  173. outline: none;
  174. border: none;
  175. box-sizing: border-box;
  176. }
  177. .sp2 {
  178. cursor: pointer;
  179. font-size: 16px;
  180. color: #ff9900;
  181. }
  182. }
  183. .total {
  184. width: 656px;
  185. text-align: right;
  186. color: #000000;
  187. font-size: 16px;
  188. padding-top: 24px;
  189. .useCode {
  190. font-size: 12px;
  191. color: rgba(0, 0, 0, 0.5);
  192. }
  193. > p {
  194. > span {
  195. display: inline-block;
  196. }
  197. .co-value {
  198. width: 160px;
  199. }
  200. }
  201. .p1 {
  202. > span {
  203. display: inline-block;
  204. line-height: 24px;
  205. }
  206. }
  207. .p2 {
  208. margin: 16px 0 10px;
  209. }
  210. .p3 {
  211. > span {
  212. line-height: 36px;
  213. }
  214. .co-value {
  215. font-size: 24px;
  216. color: #ff4c00;
  217. }
  218. }
  219. }
  220. .submitBtn {
  221. text-align: right;
  222. margin-top: 16px;
  223. button {
  224. width: 120px;
  225. height: 40px;
  226. background: #ff9900;
  227. border-radius: 4px;
  228. color: white;
  229. line-height: 40px;
  230. text-align: center;
  231. border: none;
  232. outline: none;
  233. cursor: pointer;
  234. }
  235. }
  236. }
  237. </style>