confirm_success.vue 5.3 KB

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