confirm_success.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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. uni.switchTab({
  112. url:'/pages/learn/index'
  113. })
  114. },
  115. radioChange(e) {
  116. // console.log(e);
  117. },
  118. // 选中任一radio时,由radio-group触发
  119. radioGroupChange(e) {
  120. // console.log(e);
  121. },
  122. cMenu(index){
  123. this.menuIndex = index;
  124. },
  125. change(index){
  126. this.current = index;
  127. }
  128. },
  129. onReachBottom() {},
  130. computed: { ...mapGetters(['userInfo','shoppingCartList']) }
  131. };
  132. </script>
  133. <style >
  134. ::-webkit-scrollbar{
  135. width: 0;
  136. height: 0;
  137. color: transparent
  138. }
  139. page{
  140. background-color: #EAEEF1;
  141. }
  142. </style>
  143. <style scoped>
  144. .btn2{
  145. /* width: 160rpx; */
  146. padding: 0rpx 20rpx;
  147. height: 56rpx;
  148. background: #007AFF;
  149. border-radius: 16rpx;
  150. font-size: 30rpx;
  151. color: #FFFFFF;
  152. margin: 10rpx;
  153. text-align: center;
  154. line-height: 56rpx;
  155. }
  156. .btn1{
  157. padding: 0rpx 20rpx;
  158. /* width: 160rpx; */
  159. height: 56rpx;
  160. background: #F5F5F5;
  161. border-radius: 16rpx;
  162. font-size: 30rpx;
  163. color: #007AFF;
  164. margin: 10rpx;
  165. text-align: center;
  166. line-height: 56rpx;
  167. }
  168. .txt_left_pay{
  169. display: flex;
  170. align-items: center;
  171. height: 64rpx;
  172. font-size: 24rpx;
  173. color: #666666;
  174. }
  175. .pay_icon{
  176. width: 64rpx;
  177. height: 64rpx;
  178. margin-right: 10rpx;
  179. }
  180. .box3{
  181. width: 100%;
  182. background: #FFFFFF;
  183. border-radius: 16rpx;
  184. margin-top: 30rpx;
  185. }
  186. .tip{
  187. text-align: center;
  188. font-size: 24rpx;
  189. color: #999999;
  190. height: 40rpx;
  191. line-height: 40rpx;
  192. }
  193. .txt_right_sn{
  194. font-size: 30rpx;
  195. font-weight: bold;
  196. color: #666666;
  197. }
  198. .txt_right_price{
  199. font-size: 30rpx;
  200. font-weight: bold;
  201. color: #FF2D55;
  202. }
  203. .txt_left{
  204. font-size: 24rpx;
  205. color: #666666;
  206. }
  207. .txt_right{
  208. text-align: right;
  209. color: #333333;
  210. font-weight: bold;
  211. width: 75%;
  212. }
  213. .list_item{
  214. display: flex;
  215. justify-content: space-between;
  216. height: 80rpx;
  217. align-items: center;
  218. }
  219. .title2{
  220. font-size: 30rpx;
  221. font-weight: bold;
  222. color: #333333;
  223. height: 80rpx;
  224. line-height: 80rpx;
  225. margin-left: 30rpx;
  226. }
  227. .box2{
  228. width: 100%;
  229. background: #FFFFFF;
  230. border-radius: 16rpx;
  231. margin-top: 16rpx;
  232. }
  233. .box1_t2{
  234. font-size: 24rpx;
  235. color: #999999;
  236. text-align: center;
  237. }
  238. .box1_t1{
  239. font-size: 30rpx;
  240. font-weight: bold;
  241. color: #333333;
  242. height: 70rpx;
  243. display: flex;
  244. align-items: center;
  245. justify-content: center;
  246. }
  247. .box1{
  248. width: 100%;
  249. background: #FFFFFF;
  250. border-radius: 16rpx;
  251. padding: 15rpx;
  252. }
  253. .bottomBtn{
  254. position: fixed;
  255. bottom: 0;
  256. width: 100%;
  257. height: 98rpx;
  258. background: linear-gradient(0deg, #015EEA, #00C0FA);
  259. color: #FFFFFF;
  260. text-align: center;
  261. line-height: 98rpx;
  262. font-weight: bold;
  263. font-size: 30rpx;
  264. }
  265. </style>