confirm_success.vue 4.4 KB

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