confirm_success.vue 5.4 KB

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