confirm_success.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <template>
  2. <view>
  3. <nav-bar title="支付成功"></nav-bar>
  4. <view>
  5. <view style="padding: 8rpx">
  6. <view class="box1">
  7. <view class="box1_t1">
  8. <u-icon name="checkmark-circle" color="#34C759" size="32"></u-icon
  9. ><text style="margin-left: 8rpx">您的订单已支付成功!</text>
  10. </view>
  11. <view class="tip">*您可在“我的>我的订单”中查询</view>
  12. <view
  13. style="display: flex; align-items: center; justify-content: center"
  14. v-if="isBK === '1'"
  15. >
  16. <view class="btn1" @click="backMyStudent"> 返回我的网课 </view>
  17. <view class="btn2" @click="gots"> 继续本次的考试预约 </view>
  18. </view>
  19. <view
  20. style="display: flex; align-items: center; justify-content: center"
  21. v-else
  22. >
  23. <view class="btn1" @click="goCourse"> 继续选课 </view>
  24. <view class="btn2" @click="goOrder"> 我的订单 </view>
  25. </view>
  26. </view>
  27. <view class="box2">
  28. <view class="title2">订单信息</view>
  29. <u-line color="#D6D6DB" />
  30. <view
  31. style="padding: 10rpx 30rpx"
  32. v-for="(item, index) in shoppingCartList"
  33. :key="index"
  34. >
  35. <view class="list_item">
  36. <view class="txt_left">商品名称</view>
  37. <view class="txt_right">{{ item.goodsName }}</view>
  38. </view>
  39. <view class="list_item">
  40. <view class="txt_left">应付金额</view>
  41. <view class="txt_right_price">¥ {{ item.standPrice }}</view>
  42. </view>
  43. <view class="list_item">
  44. <view class="txt_left">订单编号</view>
  45. <view class="txt_right_sn">{{ sn }}</view>
  46. </view>
  47. </view>
  48. <u-line color="#D6D6DB" />
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. import { mapGetters } from "vuex";
  56. export default {
  57. components: {},
  58. data() {
  59. return {
  60. list: [
  61. {
  62. name: "网课",
  63. },
  64. {
  65. name: "题库通",
  66. },
  67. ],
  68. array: [
  69. "全部",
  70. "建设工程施工管理",
  71. "机电全科",
  72. "机电工程管理与实",
  73. "机电全科",
  74. "全科",
  75. ],
  76. current: 0,
  77. menuIndex: 0,
  78. sn: "",
  79. isBK: "", //1补考商品
  80. getDatas: {},
  81. };
  82. },
  83. onPullDownRefresh() {},
  84. onLoad(option) {
  85. this.sn = option.sn;
  86. this.isBK = option.isBk;
  87. if (option.isBk === "1") {
  88. this.getDatas = this.$store.getters.getBackPageApplyData;
  89. console.log(this.isBK === "1", this.getDatas);
  90. }
  91. },
  92. onShow() {
  93. /* if(this.current === 2 && this.$method.isLogin()){
  94. this.$refs.refMy.init();
  95. } */
  96. },
  97. methods: {
  98. // 返回我的网课
  99. backMyStudent() {
  100. uni.redirectTo({
  101. url: "/pages2/wd/class",
  102. });
  103. },
  104. // 继续本次的考试预约
  105. gots() {
  106. uni.redirectTo({
  107. url: `/pages2/appointment/index?goodsId=${this.getDatas.goodsId}&gradeId=${this.getDatas.gradeId}&orderGoodsId=${this.getDatas.orderGoodsId}&applyId=${this.getDatas.applyId}`,
  108. });
  109. },
  110. goCourse() {
  111. uni.switchTab({
  112. url: "/pages/course/index",
  113. });
  114. },
  115. goOrder() {
  116. uni.redirectTo({
  117. url: "/pages2/order/index?current=1",
  118. });
  119. },
  120. radioChange(e) {
  121. // console.log(e);
  122. },
  123. // 选中任一radio时,由radio-group触发
  124. radioGroupChange(e) {
  125. // console.log(e);
  126. },
  127. cMenu(index) {
  128. this.menuIndex = index;
  129. },
  130. change(index) {
  131. this.current = index;
  132. },
  133. },
  134. onReachBottom() {},
  135. computed: { ...mapGetters(["userInfo", "shoppingCartList"]) },
  136. };
  137. </script>
  138. <style >
  139. ::-webkit-scrollbar {
  140. width: 0;
  141. height: 0;
  142. color: transparent;
  143. }
  144. page {
  145. background-color: #eaeef1;
  146. }
  147. </style>
  148. <style scoped>
  149. .btn2 {
  150. /* width: 160rpx; */
  151. padding: 0rpx 20rpx;
  152. height: 56rpx;
  153. background: #007aff;
  154. border-radius: 16rpx;
  155. font-size: 30rpx;
  156. color: #ffffff;
  157. margin: 10rpx;
  158. text-align: center;
  159. line-height: 56rpx;
  160. }
  161. .btn1 {
  162. padding: 0rpx 20rpx;
  163. /* width: 160rpx; */
  164. height: 56rpx;
  165. background: #f5f5f5;
  166. border-radius: 16rpx;
  167. font-size: 30rpx;
  168. color: #007aff;
  169. margin: 10rpx;
  170. text-align: center;
  171. line-height: 56rpx;
  172. }
  173. .txt_left_pay {
  174. display: flex;
  175. align-items: center;
  176. height: 64rpx;
  177. font-size: 24rpx;
  178. color: #666666;
  179. }
  180. .pay_icon {
  181. width: 64rpx;
  182. height: 64rpx;
  183. margin-right: 10rpx;
  184. }
  185. .box3 {
  186. width: 100%;
  187. background: #ffffff;
  188. border-radius: 16rpx;
  189. margin-top: 30rpx;
  190. }
  191. .tip {
  192. text-align: center;
  193. font-size: 24rpx;
  194. color: #999999;
  195. height: 40rpx;
  196. line-height: 40rpx;
  197. }
  198. .txt_right_sn {
  199. font-size: 30rpx;
  200. font-weight: bold;
  201. color: #666666;
  202. }
  203. .txt_right_price {
  204. font-size: 30rpx;
  205. font-weight: bold;
  206. color: #ff2d55;
  207. }
  208. .txt_left {
  209. font-size: 24rpx;
  210. color: #666666;
  211. }
  212. .txt_right {
  213. text-align: right;
  214. color: #333333;
  215. font-weight: bold;
  216. width: 75%;
  217. }
  218. .list_item {
  219. display: flex;
  220. justify-content: space-between;
  221. height: 80rpx;
  222. align-items: center;
  223. }
  224. .title2 {
  225. font-size: 30rpx;
  226. font-weight: bold;
  227. color: #333333;
  228. height: 80rpx;
  229. line-height: 80rpx;
  230. margin-left: 30rpx;
  231. }
  232. .box2 {
  233. width: 100%;
  234. background: #ffffff;
  235. border-radius: 16rpx;
  236. margin-top: 16rpx;
  237. }
  238. .box1_t2 {
  239. font-size: 24rpx;
  240. color: #999999;
  241. text-align: center;
  242. }
  243. .box1_t1 {
  244. font-size: 30rpx;
  245. font-weight: bold;
  246. color: #333333;
  247. height: 70rpx;
  248. display: flex;
  249. align-items: center;
  250. justify-content: center;
  251. }
  252. .box1 {
  253. width: 100%;
  254. background: #ffffff;
  255. border-radius: 16rpx;
  256. padding: 15rpx;
  257. }
  258. .bottomBtn {
  259. position: fixed;
  260. bottom: 0;
  261. width: 100%;
  262. height: 98rpx;
  263. background: linear-gradient(0deg, #015eea, #00c0fa);
  264. color: #ffffff;
  265. text-align: center;
  266. line-height: 98rpx;
  267. font-weight: bold;
  268. font-size: 30rpx;
  269. }
  270. </style>